:root {
  --bg: #ffffff;
  --ink: #1c1712;
  --ink-soft: #57483b;
  --muted: #8a7b6a;
  --block: #fff3c9;
  --block-2: #fff8df;
  --blue: #006fa8;
  --blue-soft: #e7f5fb;
  --tea: #597a37;
  --tea-dark: #2f5b34;
  --wood: #9f6a38;
  --wood-dark: #6c3f1f;
  --red: #d94132;
  --line: #1c1712;
  --soft-line: rgba(28, 23, 18, .16);
  --shadow: 0 12px 28px rgba(28, 23, 18, .1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(28, 23, 18, .04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(28, 23, 18, .035) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  font-family: "Noto Sans TC", sans-serif;
  line-height: 1.65;
}

body.article-page {
  position: relative;
  background:
    url("../media/tea-leaf-transparent-01-100.png") 7vw 170px / 72px 72px no-repeat,
    url("../media/tea-leaf-transparent-02-100.png") calc(100% - 13vw) 245px / 60px 60px no-repeat,
    url("../media/tea-leaf-transparent-03-100.png") 9vw 68vh / 80px 80px no-repeat,
    url("../media/tea-leaf-transparent-04-100.png") calc(100% - 10vw) 80vh / 70px 70px no-repeat,
    url("../media/tea-leaf-transparent-02-100.png") 23vw 980px / 58px 58px no-repeat,
    url("../media/tea-leaf-transparent-01-100.png") calc(100% - 21vw) 1120px / 76px 76px no-repeat,
    url("../media/tea-leaf-transparent-03-100.png") 14vw 1510px / 68px 68px no-repeat,
    url("../media/tea-leaf-transparent-04-100.png") calc(100% - 16vw) 1680px / 62px 62px no-repeat,
    url("../media/tea-leaf-transparent-01-100.png") 42vw 2050px / 54px 54px no-repeat,
    url("../media/tea-leaf-transparent-02-100.png") 8vw 2380px / 72px 72px no-repeat,
    url("../media/tea-leaf-transparent-03-100.png") calc(100% - 11vw) 2560px / 76px 76px no-repeat,
    url("../media/tea-leaf-transparent-04-100.png") 34vw 2920px / 58px 58px no-repeat,
    radial-gradient(circle at 12% 18%, rgba(220, 232, 198, .42) 0 180px, transparent 181px),
    radial-gradient(circle at 88% 16%, rgba(232, 210, 160, .32) 0 150px, transparent 151px),
    radial-gradient(circle at 72% 88%, rgba(216, 240, 246, .3) 0 170px, transparent 171px),
    var(--bg);
  background-size: auto;
  overflow-x: hidden;
}

body.article-page::before,
body.article-page::after {
  content: "";
  display: none;
}

body.article-page::before {
  background: none;
}

body.article-page::after {
  display: none;
}

body.article-page .article-template,
body.article-page .site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: -9999px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.user-is-tabbing .skip-link:focus {
  left: 12px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, .9);
  border-bottom: 3px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  position: relative;
  border: 3px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 72% 24%, rgba(47, 91, 52, .16) 0 5px, transparent 6px),
    #fff;
  box-shadow: 4px 4px 0 var(--block);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-sprout {
  content: "";
  position: absolute;
  display: block;
  border: 2px solid var(--tea-dark);
  background: #dce8c6;
  pointer-events: none;
}

.brand-sprout--top {
  width: 18px;
  height: 11px;
  right: -5px;
  top: 4px;
  border-radius: 100% 0 100% 0;
  transform: rotate(-28deg);
}

.brand-sprout--bottom {
  width: 14px;
  height: 9px;
  left: -4px;
  bottom: 5px;
  border-radius: 0 100% 0 100%;
  transform: rotate(-24deg);
}

.brand-sprout--core {
  width: 17px;
  height: 25px;
  left: 13px;
  top: 9px;
  border-radius: 100% 0 100% 0;
  transform: rotate(-45deg);
}

.brand strong {
  display: block;
  font-family: "Noto Serif TC", serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .14em;
}

.brand small {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__tools,
.language-switcher { display: flex; align-items: center; }
.site-header__tools { gap: 10px; }
.language-switcher { padding-left: 10px; border-left: 2px solid var(--line); }
.language-switcher select { min-height: 36px; padding: 0 28px 0 10px; border: 2px solid var(--blue); border-radius: 999px; background: #fff; color: var(--blue); font: inherit; font-size: 13px; font-weight: 900; white-space: nowrap; }
.language-switcher select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  border: 2px solid transparent;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

.map-hero {
  min-height: 100dvh;
  padding: 92px clamp(14px, 3vw, 34px) 24px;
}

.map-shell {
  min-height: calc(100dvh - 116px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.map-board {
  min-height: auto;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 10px 10px 0 var(--block);
  padding: 14px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.map-board::before {
  content: "拖曳地圖 / 點擊店家";
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 8;
  padding: 6px 12px;
  color: #fff;
  background: var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.map-paper {
  position: relative;
  width: 100%;
  aspect-ratio: 1568 / 1003;
  overflow: visible;
  border-radius: 4px;
  background: #fff;
  line-height: 0;
}

.hand-map {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.distant-hills path {
  fill: #79c9d8;
  stroke: none;
}

.distant-hills path + path {
  fill: #5eb2c6;
  opacity: .85;
}

.street-network path {
  fill: none;
  stroke: var(--line);
  stroke-width: 17;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.town-blocks path {
  fill: var(--block);
  stroke: var(--line);
  stroke-width: 5;
  stroke-linejoin: round;
}

.town-blocks path:nth-child(3n) {
  fill: var(--block-2);
}

.water-route path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.water-route path:first-child {
  stroke: #74c8df;
  stroke-width: 24;
}

.water-route path:last-child {
  stroke: var(--blue);
  stroke-width: 4;
  stroke-dasharray: 12 10;
}

.tea-icons path,
.tea-icons ellipse {
  fill: #fff8dc;
  stroke: var(--line);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tea-icons .tree {
  fill: #c6d86d;
}

.tea-icons .tea-cup path:first-of-type,
.tea-icons .tea-cup ellipse {
  fill: #fff1bd;
}

.tea-icons .shop-sign path:first-child {
  fill: #fff;
}

.tea-icons .shop-sign text {
  fill: var(--red);
  font-family: "Noto Serif TC", serif;
  font-size: 40px;
  font-weight: 900;
}

.tea-icons .bamboo-slip path {
  fill: #f4dfaa;
}

.map-labels text {
  fill: var(--ink);
  font-family: "Noto Serif TC", serif;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .08em;
}

.blue-notes text {
  fill: var(--blue);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .04em;
}

.map-title-card path {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 4;
}

.map-title-card text {
  fill: var(--red);
  font-family: "Noto Serif TC", serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: .12em;
}

.map-compass path {
  fill: #fff;
  stroke: var(--red);
  stroke-width: 4;
}

.map-compass text {
  fill: var(--ink);
  font-family: "Noto Serif TC", serif;
  font-size: 22px;
  font-weight: 900;
}

.markers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-marker {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 34px;
  height: 42px;
  transform: translate(-50%, -92%);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  pointer-events: auto;
}

.map-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 30px;
  height: 30px;
  border: 3px solid var(--line);
  border-radius: 50% 50% 50% 8px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 4px, var(--line) 4px 6px, transparent 6px),
    var(--marker-color, var(--red));
  box-shadow: 4px 5px 0 rgba(28, 23, 18, .24);
  transform: translateX(-50%) rotate(-45deg);
}

.map-marker::after {
  content: attr(data-label);
  position: absolute;
  top: 10px;
  left: calc(100% + 4px);
  transform: translateY(-50%);
  transform-origin: left center;
  min-width: max-content;
  max-width: 142px;
  padding: 4px 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  opacity: .88;
  pointer-events: none;
  box-shadow: 2px 2px 0 rgba(0, 111, 168, .2);
  text-shadow: none;
}

.map-marker.is-label-left::after {
  left: auto;
  right: calc(100% + 4px);
  transform: translateY(-50%);
  transform-origin: right center;
}

.map-marker.is-label-bottom::after {
  top: calc(100% + 2px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.map-marker.is-label-top::after {
  top: auto;
  bottom: calc(100% + 7px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.is-active {
  transform: translate(-50%, -92%) scale(1.12);
  z-index: 5;
}

.map-marker:hover::after,
.map-marker:focus-visible::after,
.map-marker.is-active::after {
  opacity: 1;
}

.map-marker:hover::before,
.map-marker:focus-visible::before,
.map-marker.is-active::before {
  box-shadow: 6px 7px 0 rgba(28, 23, 18, .3);
}

.map-marker.is-hidden {
  display: none;
}

.marker-tea {
  --marker-color: #e94336;
}

.marker-food {
  --marker-color: #006fa8;
}

.marker-cafe {
  --marker-color: #8b3cc2;
}

.marker-culture {
  --marker-color: #f2b705;
}

.marker-nature {
  --marker-color: #1f9d62;
}

.map-sidebar {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(159, 106, 56, .16) 1px, transparent 1px),
    linear-gradient(90deg, #fff 0 18%, #fff8e7 18% 20%, #fff 20% 38%, #fff8e7 38% 40%, #fff 40% 58%, #fff8e7 58% 60%, #fff 60% 78%, #fff8e7 78% 80%, #fff 80%);
  box-shadow: 10px 10px 0 #e8d2a0;
  padding: clamp(18px, 2.5vw, 26px);
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Noto Serif TC", serif;
  line-height: 1.22;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: .08em;
}

.map-sidebar h1 {
  font-size: clamp(28px, 9vw, 44px);
  letter-spacing: 0;
  white-space: nowrap;
}

.lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.map-sidebar .filter-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 11px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 2px 2px 0 #e8d2a0;
}

.map-sidebar .filter-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  min-height: 34px;
  padding-inline: 2px;
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: -.04em;
  white-space: nowrap;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  background: var(--blue-soft);
  color: var(--blue);
}

.place-panel {
  margin-top: auto;
  display: grid;
  gap: 12px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 4px 4px 0 #e8d2a0;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.panel-topline span:first-child {
  color: var(--red);
}

.place-panel h2 {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 900;
  letter-spacing: .04em;
}

.place-panel p,
.place-meta {
  margin: 0;
}

.place-meta {
  display: grid;
  gap: 12px;
}

.place-meta div {
  padding-top: 10px;
  border-top: 2px dotted rgba(28, 23, 18, .2);
}

.place-meta dt {
  color: var(--wood-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  margin-bottom: 4px;
}

.place-meta dd {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

#place-opening-hours {
  white-space: pre-line;
}

.source-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--line);
}

#place-source {
  width: 100%;
  min-height: 44px;
  text-align: center;
}

.site-footer {
  margin: 0 clamp(14px, 3vw, 34px) 34px;
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 8px 8px 0 var(--block);
  padding: clamp(22px, 4vw, 38px);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-brand strong {
  display: block;
  font-family: "Noto Serif TC", serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .12em;
}

.footer-brand small,
.footer-maker span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 2px 2px 0 #e8d2a0;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--blue);
  background: var(--blue-soft);
}

.footer-maker {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.footer-maker strong {
  font-family: "Noto Serif TC", serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .08em;
}

.source-link:hover,
.source-link:focus-visible {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 var(--line);
}

.story-band,
.history-section,
.brand-story {
  margin: 0 clamp(14px, 3vw, 34px) 34px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 8px 8px 0 var(--block);
}

.story-band {
  padding: clamp(42px, 6vw, 74px);
}

.history-section {
  padding: clamp(38px, 5vw, 60px);
  background:
    linear-gradient(90deg, rgba(159, 106, 56, .14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(159, 106, 56, .08) 1px, transparent 1px),
    #fff;
  background-size: 52px 52px;
}

.section-copy {
  max-width: 720px;
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.section-copy h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: .06em;
}

.section-copy p:last-child {
  color: var(--ink-soft);
  margin: 0;
  font-weight: 700;
}

.route-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.route-cards article {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 5px 5px 0 #e8d2a0;
  padding: 24px;
}

.route-cards span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--block);
  color: var(--red);
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
}

.route-cards h3 {
  font-size: 22px;
  font-weight: 900;
}

.route-cards p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.history-grid article {
  min-height: 240px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 5px 5px 0 #e8d2a0;
  padding: 24px;
}

.history-grid span {
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
}

.history-grid h3 {
  font-size: 24px;
  font-weight: 900;
}

.history-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.brand-story {
  padding: clamp(36px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(159, 106, 56, .12) 1px, transparent 1px),
    #fff;
  background-size: 76px 100%;
}

.brand-story__intro {
  max-width: 860px;
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-story__intro h2 {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  letter-spacing: .05em;
}

.brand-story__intro p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.brand-grid article {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 5px 5px 0 #e8d2a0;
  padding: 24px;
}

.brand-grid span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
}

.brand-grid h3 {
  font-size: 24px;
  font-weight: 900;
}

.brand-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.brand-callout {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-soft);
  padding: 20px 24px;
  box-shadow: 5px 5px 0 #e8d2a0;
}

.source-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-strip a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 3px 3px 0 #e8d2a0;
}

.source-strip a:hover,
.source-strip a:focus-visible {
  background: var(--blue-soft);
}

.brand-callout p:last-child {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 900;
  letter-spacing: .05em;
}

.field-guide {
  scroll-margin-top: 110px;
  margin: 0 clamp(14px, 3vw, 34px) 34px;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 6vw, 86px);
  position: relative;
  overflow: hidden;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(159, 106, 56, .12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(159, 106, 56, .08) 1px, transparent 1px),
    #fff;
  background-size: 74px 74px;
  box-shadow: 8px 8px 0 var(--block);
}

.field-guide-orbit {
  position: absolute;
  width: min(44vw, 520px);
  height: min(44vw, 520px);
  right: -16vw;
  top: -15vw;
  border: 3px solid rgba(47, 91, 52, .22);
  border-radius: 50%;
  background: rgba(220, 232, 198, .26);
}

.field-guide-watermark {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: 34px;
  color: rgba(108, 63, 31, .12);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(52px, 10vw, 132px);
  font-weight: 900;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.guide-heading {
  width: min(720px, 100%);
  display: grid;
  gap: 16px;
  margin-bottom: clamp(48px, 8vw, 96px);
  position: relative;
  z-index: 1;
}

.guide-heading h2 {
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: .05em;
}

.guide-heading p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.95;
}

.field-story {
  scroll-margin-top: 120px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(320px, .78fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  min-height: 520px;
  margin: clamp(42px, 8vw, 106px) 0;
}

.field-story--reverse {
  grid-template-columns: minmax(320px, .78fr) minmax(300px, .92fr);
}

.field-story--reverse .photo-collage {
  order: 2;
}

.field-story--reverse .field-story__text {
  order: 1;
}

.field-story__text {
  display: grid;
  gap: 16px;
  align-content: center;
  max-width: 620px;
}

.field-story__text h2 {
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: .04em;
}

.field-story__text p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 700;
  line-height: 2;
}

.story-accent {
  width: 86px;
  height: 7px;
  background: var(--red);
  border-radius: 999px;
  box-shadow: 20px 0 0 var(--block), 40px 0 0 var(--blue-soft);
}

.photo-collage {
  min-height: 440px;
  position: relative;
}

.photo-slot {
  position: absolute;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .3), transparent 48%),
    #e4e8c0;
  box-shadow: 10px 12px 0 rgba(28, 23, 18, .12);
  transform-origin: center;
}

.photo-slot::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 3px dashed rgba(28, 23, 18, .28);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-slot span {
  position: relative;
  z-index: 2;
  padding: 7px 13px;
  background: rgba(255, 255, 255, .88);
  border: 3px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.photo-slot--large {
  width: min(86%, 500px);
  height: 360px;
  left: 0;
  top: 36px;
  border-radius: 34px 12px 30px 16px;
  background-color: #dce8c6;
  transform: rotate(-3deg);
}

.photo-slot--wide {
  width: min(94%, 560px);
  height: 300px;
  right: 0;
  top: 66px;
  border-radius: 18px 34px 14px 30px;
  background-color: #f2dfae;
  transform: rotate(2deg);
}

.photo-slot--portrait {
  width: min(72%, 390px);
  height: 410px;
  left: 10%;
  top: 6px;
  border-radius: 28px 14px 34px 18px;
  background-color: #f3d5a9;
  transform: rotate(-2deg);
}

.photo-slot--small {
  width: 190px;
  height: 150px;
  border-radius: 18px 10px 24px 12px;
  z-index: 2;
}

.photo-slot--tea-cup {
  right: 4%;
  bottom: 18px;
  background-color: #d8f0f6;
  transform: rotate(6deg);
}

.photo-slot--bridge {
  left: 6%;
  bottom: 12px;
  background-color: #d8f0f6;
  transform: rotate(-7deg);
}

.photo-slot--snack {
  right: 6%;
  bottom: 54px;
  background-color: #fff3c9;
  transform: rotate(7deg);
}

.photo-note {
  position: absolute;
  left: 34px;
  bottom: 8px;
  z-index: 3;
  padding: 10px 16px;
  color: #fff;
  background: var(--tea-dark);
  border: 3px solid var(--line);
  border-radius: 999px;
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  letter-spacing: .1em;
  transform: rotate(-2deg);
  box-shadow: 5px 5px 0 rgba(28, 23, 18, .18);
}

.photo-note--blue {
  left: auto;
  right: 44px;
  bottom: 6px;
  background: var(--blue);
  transform: rotate(2deg);
}

.guide-sources {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: clamp(30px, 6vw, 70px);
  padding-top: 24px;
  border-top: 3px solid rgba(28, 23, 18, .16);
}

.guide-sources .eyebrow {
  width: 100%;
}

.guide-sources a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--blue);
  background: rgba(255, 255, 255, .84);
  border: 2px solid rgba(0, 111, 168, .34);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.guide-sources a:hover,
.guide-sources a:focus-visible {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.place-page .site-header {
  position: sticky;
}

.place-detail-main,
.place-category-main {
  padding: clamp(24px, 4vw, 48px) clamp(14px, 3vw, 34px) 42px;
}

.place-detail-hero,
.place-category-hero {
  min-height: calc(100dvh - 140px);
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(360px, .9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  margin-bottom: 34px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(159, 106, 56, .12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(159, 106, 56, .08) 1px, transparent 1px),
    #fff;
  background-size: 58px 58px;
  box-shadow: 8px 8px 0 var(--block);
  padding: clamp(24px, 5vw, 68px);
  overflow: hidden;
  position: relative;
}

.place-hero-decorative,
.place-category-hero::after {
  content: "茶路";
  position: absolute;
  right: clamp(12px, 3vw, 36px);
  bottom: -22px;
  color: rgba(108, 63, 31, .12);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(62px, 12vw, 148px);
  font-weight: 900;
  letter-spacing: .18em;
  pointer-events: none;
}

.place-hero-image {
  position: relative;
  min-height: 460px;
}

.place-hero-image img {
  position: absolute;
  inset: 4% auto auto 0;
  width: min(94%, 560px);
  height: min(58vw, 430px);
  object-fit: cover;
  display: block;
  border: 4px solid var(--line);
  border-radius: 34px 12px 30px 16px;
  background: var(--block-2);
  box-shadow: 12px 14px 0 rgba(28, 23, 18, .13);
  transform: rotate(-2deg);
}

.place-hero-image span,
.place-type-pill,
.category-count {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 34px;
  padding: 0 12px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.place-hero-image span {
  position: absolute;
  left: 26px;
  bottom: 18px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  box-shadow: 5px 5px 0 rgba(28, 23, 18, .18);
  transform: rotate(-3deg);
}

.place-hero-copy,
.category-hero-copy,
.related-heading,
.directory-heading {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.place-hero-copy h1,
.category-hero-copy h1 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: .05em;
}

.place-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.place-outline-link,
.place-card-link,
.place-source-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  padding: 0 16px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 4px 4px 0 #e8d2a0;
}

.place-outline-link:hover,
.place-outline-link:focus-visible,
.place-card-link:hover,
.place-card-link:focus-visible,
.place-source-pill:hover,
.place-source-pill:focus-visible {
  background: var(--blue-soft);
}

.place-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}

.place-basic-card,
.place-story-card,
.related-posts,
.category-directory {
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 8px 8px 0 var(--block);
  padding: clamp(24px, 4vw, 42px);
}

.place-basic-card {
  background: #fff8df;
}

.place-basic-card h2,
.place-story-card h2,
.related-heading h2,
.directory-heading h2,
.place-category-section__heading h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: .05em;
}

.place-basic-card dl,
.place-story-card p,
.place-card-facts {
  margin: 0;
}

.place-basic-card dl,
.place-card-facts {
  display: grid;
  gap: 14px;
}

.place-basic-card dl {
  margin-top: 20px;
}

.place-basic-card dl div,
.place-card-facts div {
  padding-top: 12px;
  border-top: 3px dotted rgba(28, 23, 18, .2);
}

.place-basic-card dt,
.place-card-facts dt {
  margin-bottom: 4px;
  color: var(--wood-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.place-basic-card dd,
.place-card-facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.place-basic-card dd a {
  color: var(--blue);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.place-basic-card dd a:hover,
.place-basic-card dd a:focus-visible {
  color: var(--red);
}

.place-story-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.place-story-card p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 700;
  line-height: 2;
}

.place-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.place-source-pill {
  min-height: 38px;
  border-width: 2px;
  border-radius: 999px;
  color: var(--blue);
  font-size: 13px;
  box-shadow: 3px 3px 0 #e8d2a0;
}

.related-posts {
  display: grid;
  gap: 24px;
  background:
    linear-gradient(90deg, rgba(0, 111, 168, .08) 1px, transparent 1px),
    #fff;
  background-size: 42px 100%;
}

.place-map-embed {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(159, 106, 56, .12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(159, 106, 56, .08) 1px, transparent 1px),
    #fff;
  background-size: 58px 58px;
  box-shadow: 8px 8px 0 var(--block);
  padding: clamp(20px, 4vw, 34px);
}

.place-map-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.place-map-copy h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: .05em;
}

.place-map-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.place-map-frame {
  min-height: 380px;
  overflow: hidden;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-soft);
  box-shadow: 5px 5px 0 #e8d2a0;
}

.place-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
  border: 0;
  background: #fff;
}

.related-heading p:last-child,
.place-category-section__heading p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.related-grid,
.place-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card,
.place-list-card,
.category-summary-card {
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 5px 5px 0 #e8d2a0;
}

.related-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
}

.related-card__number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--block);
  color: var(--red);
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
}

.related-card h3 {
  font-size: 24px;
  font-weight: 900;
}

.related-card__hook {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.place-category-hero {
  grid-template-columns: minmax(360px, .72fr) minmax(420px, 1fr);
}

.category-summary-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.category-summary-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.category-summary-card img {
  width: 118px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 3px solid var(--line);
  border-radius: 16px 8px 18px 10px;
  background: var(--block-2);
}

.category-summary-card div {
  display: grid;
  gap: 6px;
}

.category-summary-card h2 {
  font-size: 22px;
  font-weight: 900;
}

.category-summary-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.category-count {
  min-height: 30px;
  border-width: 2px;
  font-size: 11px;
  letter-spacing: .08em;
}

.category-directory {
  display: grid;
  gap: 28px;
}

.directory-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.directory-heading .eyebrow,
.directory-heading h2 {
  grid-column: 1;
}

.directory-heading .place-category-filters {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-content: flex-end;
  max-width: 540px;
}

.place-section-list {
  display: grid;
  gap: 34px;
}

.place-category-section {
  display: grid;
  gap: 18px;
}

.place-category-section__heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.place-list-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.place-list-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 4px solid var(--line);
  background: var(--block-2);
}

.place-list-card__body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.place-list-card h3 {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .03em;
}

.place-list-card p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.place-card-link {
  margin-top: auto;
  color: #fff;
  background: var(--red);
  box-shadow: 4px 4px 0 var(--line);
}

.place-card-link:hover,
.place-card-link:focus-visible {
  background: var(--blue);
  color: #fff;
}

.is-tea .place-type-pill,
.is-tea .category-count { background: #dce8c6; color: var(--tea-dark); }
.is-food .place-type-pill,
.is-food .category-count { background: var(--blue-soft); color: var(--blue); }
.is-cafe .place-type-pill,
.is-cafe .category-count { background: #f1ddff; color: #6f2aa0; }
.is-culture .place-type-pill,
.is-culture .category-count { background: var(--block); color: var(--wood-dark); }
.is-nature .place-type-pill,
.is-nature .category-count { background: #dff3e8; color: #1f7f50; }

.place-load-error {
  min-height: 60dvh;
  display: grid;
  align-content: center;
  gap: 12px;
  margin: clamp(24px, 4vw, 48px);
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 8px 8px 0 var(--block);
  padding: clamp(28px, 6vw, 70px);
}

.place-load-error h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.place-load-error p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

:focus-visible {
  outline: 4px solid rgba(0, 111, 168, .42);
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  .map-shell {
    grid-template-columns: 1fr;
  }

  .map-board {
    min-height: auto;
  }

  .place-panel {
    margin-top: 0;
  }

  .place-category-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .place-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 172px;
  }

  .site-header {
    position: sticky;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .site-header__tools {
    width: 100%;
    overflow-x: auto;
  }

  .site-nav,
  .language-switcher { flex: 0 0 auto; }

  .site-nav a {
    white-space: nowrap;
  }

  .map-hero {
    padding: 16px 12px 20px;
  }

  .map-shell {
    min-height: auto;
  }

  .map-board {
    padding: 8px;
    overflow: visible;
  }

  .map-paper {
    min-width: 0;
    width: 100%;
  }

  .map-sidebar {
    padding: 20px;
  }

  .map-marker {
    width: 30px;
    height: 36px;
  }

  .map-marker::before {
    width: 26px;
    height: 26px;
    border-width: 2px;
    box-shadow: 3px 4px 0 rgba(28, 23, 18, .22);
  }

  .map-marker::after {
    display: none;
  }

  h1 {
    font-size: 36px;
  }

  .route-cards,
  .history-grid,
  .brand-grid,
  .related-grid,
  .place-list-grid,
  .field-story,
  .field-story--reverse {
    grid-template-columns: 1fr;
  }

  .place-detail-main,
  .place-category-main {
    padding: 16px 12px 34px;
  }

  .place-detail-hero,
  .place-category-hero,
  .place-detail-grid,
  .place-map-embed,
  .category-summary-board,
  .directory-heading {
    grid-template-columns: 1fr;
  }

  .place-detail-hero,
  .place-category-hero {
    min-height: auto;
    padding: 28px 18px 34px;
  }

  .place-hero-decorative,
  .place-category-hero::after {
    display: none;
  }

  .place-hero-image {
    min-height: 330px;
  }

  .place-hero-image img {
    width: 88%;
    height: 280px;
  }

  .place-hero-copy h1,
  .category-hero-copy h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .place-hero-actions {
    align-items: stretch;
  }

  .place-hero-actions .source-link,
  .place-outline-link {
    width: 100%;
  }

  .directory-heading .place-category-filters {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    max-width: none;
  }

  .category-summary-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .category-summary-card img {
    width: 96px;
  }

  .field-story--reverse .photo-collage,
  .field-story--reverse .field-story__text {
    order: initial;
  }

  .story-band,
  .history-section,
  .brand-story,
  .field-guide {
    margin-inline: 12px;
  }

  .brand-callout {
    display: grid;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-maker {
    justify-items: start;
  }

  .field-guide {
    scroll-margin-top: 170px;
    padding: 34px 18px 46px;
  }

  .field-story {
    scroll-margin-top: 164px;
  }

  .field-guide::after {
    display: none;
  }

  .guide-heading {
    margin-bottom: 42px;
  }

  .field-story {
    min-height: auto;
    margin: 46px 0 64px;
  }

  .photo-collage {
    min-height: 360px;
  }

  .photo-slot--large,
  .photo-slot--wide,
  .photo-slot--portrait {
    width: 82%;
    height: 280px;
    left: 0;
    right: auto;
  }

  .photo-slot--small {
    width: 155px;
    height: 124px;
  }

  .photo-slot--tea-cup,
  .photo-slot--snack {
    right: 0;
  }

  .photo-note,
  .photo-note--blue {
    left: 12px;
    right: auto;
    bottom: 0;
    max-width: calc(100% - 24px);
  }
}

@media (max-width: 430px) {
  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 10px;
  }

  .map-board {
    padding: 6px;
  }

  .map-labels text {
    font-size: 20px;
  }

  .filter-chip {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

.article-template,
.category-template {
  padding: 122px clamp(14px, 3vw, 34px) 54px;
}

.article-template {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.article-template::before {
  content: "";
  position: absolute;
  inset: 92px clamp(10px, 2.2vw, 28px) 24px;
  z-index: 0;
  pointer-events: none;
  display: none;
  background: none;
  opacity: 0;
  mix-blend-mode: multiply;
}

.article-template > article,
.article-template > .related-notes {
  position: relative;
  z-index: 1;
}

.article-hero,
.archive-hero,
.featured-archive-note,
.related-notes,
.archive-listing {
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 8px 8px 0 var(--block);
}

.article-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .7fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: stretch;
  padding: clamp(26px, 5vw, 58px);
  background:
    radial-gradient(circle at 12% 14%, rgba(220, 232, 198, .52) 0 88px, transparent 89px),
    radial-gradient(circle at 94% 12%, rgba(232, 210, 160, .36) 0 78px, transparent 79px),
    #fff;
  overflow: hidden;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("../media/tea-leaf-transparent-02-100.png"),
    url("../media/tea-leaf-transparent-04-100.png");
  background-position:
    calc(100% - 38px) 30px,
    30px calc(100% - 44px);
  background-repeat: no-repeat;
  background-size:
    82px 82px,
    64px 64px;
  opacity: .18;
  mix-blend-mode: multiply;
}

.article-hero > * {
  position: relative;
}

.article-hero__copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.article-tax-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tax-row a,
.article-tax-row span,
.term-nav a,
.archive-card span,
.note-card span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0 12px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 3px 3px 0 #e8d2a0;
}

.article-tax-row span {
  color: var(--wood-dark);
  background: var(--block-2);
}

.article-hero h1,
.archive-hero h1 {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 900;
  letter-spacing: .05em;
}

.article-deck,
.archive-hero__copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.95;
}

.article-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.article-meta div {
  padding: 14px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 223, .78);
  box-shadow: 4px 4px 0 #e8d2a0;
}

.article-meta dt,
.article-meta dd {
  margin: 0;
}

.article-meta dt {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.article-meta dd {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 900;
}

.article-featured {
  min-height: 420px;
  margin: 0;
  position: relative;
  transform: rotate(1.4deg);
}

.article-featured img,
.article-inline-image img,
.note-card img,
.featured-archive-note__image img,
.archive-card img {
  width: 100%;
  display: block;
  border: 4px solid var(--line);
  object-fit: cover;
}

.article-featured img {
  height: 100%;
  border-radius: 26px 10px 30px 14px;
  box-shadow: 10px 12px 0 rgba(28, 23, 18, .14);
}

.article-featured figcaption,
.article-inline-image figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 12px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--wood-dark);
  font-size: 12px;
  font-weight: 900;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 760px);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  max-width: 1160px;
  margin: clamp(34px, 6vw, 74px) auto 0;
}

.article-toc {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 6px 6px 0 var(--block);
  overflow: hidden;
}

.article-toc::before {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 70px;
  height: 70px;
  z-index: 0;
  pointer-events: none;
  background: url("../media/tea-leaf-transparent-03-100.png") center / contain no-repeat;
  opacity: .14;
  mix-blend-mode: multiply;
}

.article-toc > * {
  position: relative;
}

.article-toc nav {
  display: grid;
  gap: 8px;
}

.article-toc a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 2px solid rgba(28, 23, 18, .18);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.article-toc a:hover,
.article-toc a:focus-visible,
.term-nav a:hover,
.term-nav a:focus-visible,
.term-nav a.is-active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: var(--blue);
}

.article-content {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 600;
  line-height: 2.05;
}

.article-content > * {
  margin-top: 0;
}

.article-content p {
  margin-bottom: 24px;
}

.article-lead {
  color: var(--ink);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 900;
  line-height: 1.75;
}

.article-content h2 {
  margin: 48px 0 18px;
  padding-top: 18px;
  border-top: 4px solid var(--line);
  color: var(--ink);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  letter-spacing: .04em;
}

.article-content h2::before {
  content: "";
  width: 78px;
  height: 7px;
  display: block;
  margin-bottom: 18px;
  background: var(--red);
  border-radius: 999px;
  box-shadow: 18px 0 0 var(--block), 36px 0 0 var(--blue-soft);
}

.article-content h3 {
  margin: 34px 0 14px;
  color: var(--tea-dark);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: .03em;
}

.article-callout {
  display: grid;
  gap: 8px;
  margin: 36px 0;
  padding: 22px 24px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--ink);
  box-shadow: 6px 6px 0 #e8d2a0;
}

.article-callout strong {
  color: var(--red);
  font-family: "Noto Serif TC", serif;
  font-size: 22px;
  font-weight: 900;
}

.article-inline-image {
  position: relative;
  margin: 40px 0;
}

.article-inline-image img {
  aspect-ratio: 16 / 10;
  border-radius: 18px 32px 14px 26px;
  box-shadow: 8px 10px 0 rgba(28, 23, 18, .12);
}

.article-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.article-list li {
  padding: 14px 16px;
  border-left: 6px solid var(--red);
  background: rgba(255, 243, 201, .58);
  color: var(--ink);
  font-weight: 900;
}

.related-notes {
  position: relative;
  max-width: 1160px;
  margin: clamp(34px, 6vw, 74px) auto 0;
  padding: clamp(24px, 4vw, 38px);
  background:
    radial-gradient(circle at 92% 18%, rgba(220, 232, 198, .36) 0 96px, transparent 97px),
    #fff;
  overflow: hidden;
}

.related-notes::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  pointer-events: none;
  background-image: url("../media/tea-leaf-transparent-04-100.png");
  background-position: calc(100% - 16px) 10px;
  background-repeat: no-repeat;
  background-size: 72px 72px;
  opacity: .16;
  mix-blend-mode: multiply;
}

.related-notes > * {
  position: relative;
}

.related-notes h2,
.archive-listing__head h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
}

.note-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.note-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 5px 5px 0 #e8d2a0;
}

.note-card img {
  aspect-ratio: 16 / 10;
  border-radius: 10px 18px 10px 14px;
}

.note-card strong {
  font-family: "Noto Serif TC", serif;
  font-size: 20px;
  line-height: 1.35;
}

.archive-hero {
  display: grid;
  grid-template-columns: minmax(130px, 220px) minmax(0, 850px);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  padding: clamp(30px, 6vw, 78px);
  overflow: hidden;
  background: #fff url("../media/archive-grid-pattern-v1.png") repeat;
  background-size: 1024px 1024px;
}

.archive-hero__mark {
  width: max-content;
  padding: 18px 16px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: var(--block-2);
  color: var(--red);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: .12em;
  box-shadow: 8px 8px 0 var(--block);
}

.archive-hero__copy {
  display: grid;
  gap: 18px;
}

.archive-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-stats > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 54px;
  padding: 0 16px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--wood-dark);
  font-weight: 900;
  box-shadow: 4px 4px 0 #e8d2a0;
  white-space: nowrap;
}

.archive-stats strong {
  color: var(--red);
  font-family: "Noto Serif TC", serif;
  font-size: 30px;
}

.term-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.term-nav a {
  min-height: 44px;
  color: var(--ink);
}

.featured-archive-note {
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(0, .72fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  background: var(--block-2);
}

.featured-archive-note__image {
  transform: rotate(-1.4deg);
}

.featured-archive-note__image img {
  aspect-ratio: 16 / 10;
  border-radius: 24px 12px 28px 14px;
  box-shadow: 10px 12px 0 rgba(28, 23, 18, .14);
}

.featured-archive-note__copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.featured-archive-note h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: .04em;
}

.featured-archive-note p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1.9;
}

.archive-listing {
  margin-top: 24px;
  padding: clamp(24px, 5vw, 54px);
}

.archive-listing__head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 18px;
}

.archive-card {
  min-height: 0;
  display: grid;
  gap: 13px;
  align-content: start;
  padding: 14px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 5px 5px 0 #e8d2a0;
  transition: transform .16s ease, box-shadow .16s ease;
}

.archive-card:hover,
.archive-card:focus-visible,
.note-card:hover,
.note-card:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #e8d2a0;
}

.archive-card img {
  aspect-ratio: 16 / 9;
  border-radius: 12px 20px 10px 16px;
}

.archive-card h3 {
  color: var(--ink);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 900;
  letter-spacing: .03em;
}

.archive-card p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.archive-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}

.archive-pagination a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 3px 3px 0 #e8d2a0;
}

.archive-pagination a[aria-current="page"],
.archive-pagination a:hover,
.archive-pagination a:focus-visible {
  background: var(--red);
  color: #fff;
}

@media (max-width: 980px) {
  .article-template,
  .category-template {
    padding-top: 104px;
  }

  .article-template::before {
    display: none;
  }

  .article-hero,
  .article-layout,
  .archive-hero,
  .featured-archive-note {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }

  .article-toc nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .article-toc a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .note-card-grid,
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-card--wide,
  .archive-card--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .archive-card--tall img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 760px) {
  body.article-page {
    background:
      url("../media/tea-leaf-transparent-01-100.png") 12px 146px / 54px 54px no-repeat,
      url("../media/tea-leaf-transparent-04-100.png") calc(100% - 54px) 720px / 52px 52px no-repeat,
      url("../media/tea-leaf-transparent-02-100.png") 22px 1180px / 48px 48px no-repeat,
      url("../media/tea-leaf-transparent-03-100.png") calc(100% - 66px) 1580px / 58px 58px no-repeat,
      url("../media/tea-leaf-transparent-01-100.png") 36px 2120px / 52px 52px no-repeat,
      url("../media/tea-leaf-transparent-04-100.png") calc(100% - 72px) 2620px / 50px 50px no-repeat,
      radial-gradient(circle at 12% 18%, rgba(220, 232, 198, .42) 0 180px, transparent 181px),
      radial-gradient(circle at 88% 16%, rgba(232, 210, 160, .32) 0 150px, transparent 151px),
      radial-gradient(circle at 72% 88%, rgba(216, 240, 246, .3) 0 170px, transparent 171px),
      var(--bg);
  }

  body.article-page::after,
  .article-template::before {
    display: none;
  }

  .article-template,
  .category-template {
    padding: 18px 12px 42px;
  }

  .archive-hero,
  .featured-archive-note,
  .archive-listing {
    box-shadow: 5px 5px 0 var(--block);
  }

  .article-hero,
  .archive-hero,
  .featured-archive-note,
  .archive-listing,
  .related-notes {
    padding: 22px 16px;
  }

  .archive-hero,
  .featured-archive-note,
  .archive-listing {
    box-shadow: 8px 8px 0 var(--block);
  }

  .article-page .article-hero,
  .article-page .article-hero__copy,
  .article-page .article-featured,
  .article-page .article-content,
  .article-page .related-notes {
    min-width: 0;
    max-width: 100%;
  }

  .article-page .article-hero {
    overflow: hidden;
  }

  .article-page .article-hero::before {
    inset: 8px;
    background-image: url("../media/tea-leaf-transparent-02-100.png");
    background-position: calc(100% - 22px) 18px;
    background-size: 54px 54px;
    opacity: .13;
  }

  .article-page .article-toc::before {
    display: none;
  }

  .article-page .related-notes::before {
    inset: 10px;
    background-position: calc(100% - 8px) 8px;
    background-size: 50px 50px;
    opacity: .11;
  }

  .article-page .article-hero h1 {
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.22;
  }

  .article-page .article-deck {
    overflow-wrap: anywhere;
  }

  .article-featured,
  .article-featured img {
    min-height: 280px;
  }

  .article-meta,
  .note-card-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .article-content {
    font-size: 16px;
  }

  .article-layout {
    margin-top: 28px;
  }

  .article-featured,
  .featured-archive-note__image {
    transform: none;
  }

  .archive-hero__mark {
    font-size: 34px;
    line-height: 1.18;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
