
/* =========================================================
   SODOSI NOTE / 小城筆記
   Editorial Travel Magazine
   ========================================================= */

:root {
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site {
  --paper: #f6f2e9;
  --paper-warm: #eee9dd;
  --ink: #202b29;
  --muted: #68736f;
  --line: #d9d7cd;
  --accent: #4f705b;
  --accent-dark: #304e40;
  --secondary: #bb7d5f;
  --soft: #e5e9df;

  background: var(--paper);
  color: var(--ink);

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;

  line-height: 1.65;
  overflow-wrap: anywhere;
}

.site-china {
  --accent: #4c6d58;
  --accent-dark: #2d4e3f;
  --secondary: #b9775e;
  --soft: #e6e8db;
}

.site-japan {
  --accent: #a65f49;
  --accent-dark: #854532;
  --secondary: #5b756f;
  --soft: #f0e5db;
}

.site-middleasia {
  --accent: #4e7976;
  --accent-dark: #2b5958;
  --secondary: #bb8661;
  --soft: #e3ebe6;
}

.site-taiwan {
  --accent: #54715d;
  --accent-dark: #35503f;
  --secondary: #bf7865;
  --soft: #e5eade;

  font-family:
    system-ui,
    -apple-system,
    "PingFang TC",
    "Microsoft JhengHei",
    sans-serif;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 4px;
  border-radius: 2px;
}

.container {
  width: min(100% - 3.5rem, 1240px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 1rem;
  transform: translateY(-130%);
  padding: .8rem 1.2rem;
  color: #fff;
  background: var(--accent-dark);
}

.skip-link:focus {
  transform: translateY(.5rem);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(246, 242, 233, .93);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .82rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 9px;
  width: 26px;
  height: 20px;
  background: var(--paper);

  clip-path: polygon(
    0 100%,
    42% 0,
    65% 54%,
    79% 29%,
    100% 100%
  );
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-type strong {
  font-size: 1.18rem;
  letter-spacing: -.045em;
  font-weight: 760;
}

.brand-type small {
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .06em;
  margin-top: .36rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.primary-nav a {
  font-size: .79rem;
  font-weight: 650;
  letter-spacing: -.012em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding: .45rem 0;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
}

/* TYPOGRAPHY */

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1,
.section-heading h2,
.principles-intro h2,
.interior-hero h1,
.article-hero h1,
.not-found h1 {
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Songti TC",
    "AppleMyungjo",
    "Batang",
    Georgia,
    serif;

  letter-spacing: -.07em;
  word-break: keep-all;
  font-weight: 650;
}

.eyebrow,
.section-kicker {
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .11em;
  color: var(--accent-dark);
}

/* HERO */

.hero-section {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.07fr .93fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding-block: 4.2rem 4.3rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.eyebrow-rule {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero-copy h1 {
  font-size: clamp(3.3rem, 5.7vw, 6.5rem);
  line-height: 1.2;
  margin: 2rem 0 1.4rem;
}

.hero-lead {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: #45534e;
  line-height: 1.95;
  max-width: 31.5rem;
  word-break: keep-all;
}

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-size: .95rem;
  font-weight: 750;
  text-decoration: none;
  margin-top: 1.75rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: .35rem;
}

.cta-circle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: white;

  transition:
    background .2s,
    transform .2s;
}

.text-cta:hover .cta-circle {
  background: var(--accent);
  transform: translate(3px, -3px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  color: var(--muted);
  font-size: .73rem;
  margin-top: 3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.hero-figure {
  margin: 0;
  position: relative;
}

.hero-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  border-radius: 46% 46% 5px 5px;
  background: var(--soft);
  border: 1px solid rgba(39, 67, 53, .11);
}

.hero-art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art-label {
  position: absolute;
  right: 1rem;
  bottom: 1.2rem;
  max-width: 72%;
  background: var(--paper);
  padding: .55rem .75rem;
  letter-spacing: .04em;
  font-size: .74rem;
  font-weight: 750;
}

.hero-figure figcaption {
  margin-top: 1rem;
  text-align: right;
  font-size: .69rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* SECTIONS */

.section {
  padding: 6.8rem 0;
  scroll-margin-top: 4rem;
}

.section-heading {
  display: grid;
  grid-template-columns:
    minmax(0, 1.3fr)
    minmax(240px, .7fr);

  gap: 2rem;
  align-items: end;
  margin-bottom: 2.7rem;
}

.section-heading h2,
.principles-intro h2 {
  font-size: clamp(2.5rem, 4vw, 4.3rem);
  line-height: 1.3;
  margin: 1.2rem 0 0;
}

.section-heading > p {
  max-width: 24rem;
  margin: 0 0 .2rem auto;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.9;
  word-break: keep-all;
}

.section-disclaimer {
  border-left: 3px solid var(--secondary);
  padding: .38rem 1rem;
  margin: 0 0 2rem;
  color: #5f6b65;
  font-size: .88rem;
  line-height: 1.8;
  background: rgba(255, 255, 255, .27);
}

/* FILTERS */

.filter-panel {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr auto;
  gap: .85rem;
  align-items: end;
  padding: 1.2rem;
  background: #ebe8df;
  border: 1px solid var(--line);
}

.filter-field {
  min-width: 0;
}

.filter-field label {
  display: block;
  margin-bottom: .45rem;
  font-size: .75rem;
  font-weight: 750;
  color: #46554c;
}

.filter-field input,
.filter-field select {
  width: 100%;
  height: 48px;
  min-width: 0;
  border: 1px solid #d0d2c9;
  border-radius: 0;
  background: #faf8f2;
  color: var(--ink);
  padding: 0 .85rem;
  font-size: .86rem;
  outline-offset: 2px;
}

.filter-field input::placeholder {
  color: #868f88;
}

.filter-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23415449' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 2.2rem;
}

.reset-button {
  height: 48px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0 1rem;
  font-weight: 700;
  font-size: .78rem;
  white-space: nowrap;
}

.reset-button:hover,
.no-results button:hover {
  background: var(--ink);
  color: #fff;
}

.filter-feedback {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .75rem;
  padding: 1.45rem 0 .85rem;
}

.filter-feedback p {
  margin: 0;
  font-weight: 650;
}

/* DESTINATION GRID */

.destination-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.destination-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #faf8f2;

  transition:
    transform .25s,
    box-shadow .25s;
}

.destination-card:hover,
.destination-card:focus-within {
  transform: translateY(-5px);

  box-shadow:
    0 16px 32px rgba(30, 44, 37, .09);
}

.destination-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.card-illustration {
  display: block;
  overflow: hidden;
  aspect-ratio: 620 / 380;
  background: var(--soft);
}

.card-illustration svg {
  width: 100%;
  height: 100%;
  transition: transform .5s;
}

.destination-card:hover svg {
  transform: scale(1.045);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2rem 1.25rem 1.35rem;
  min-height: 300px;
}

.card-index {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .08em;
  margin-bottom: 1.5rem;
}

.card-index span {
  color: var(--accent-dark);
  font-size: 1rem;
}

.card-tags {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.card-tags span {
  font-size: .63rem;
  color: var(--accent-dark);
  background: var(--soft);
  padding: .15rem .5rem;
}

.card-heading {
  font-family:
    "Iowan Old Style",
    "Songti TC",
    "AppleMyungjo",
    "Batang",
    Georgia,
    serif;

  font-weight: 650;
  font-size: 1.85rem;
  line-height: 1.35;
  letter-spacing: -.06em;
  margin: .7rem 0 .65rem;
}

.card-intro {
  color: #58655c;
  font-size: .82rem;
  line-height: 1.85;
  word-break: keep-all;
}

.card-caption {
  margin-top: auto;
  padding-top: 1.6rem;
  color: #919990;
  font-size: .64rem;
}

/* NO RESULTS */

.no-results {
  text-align: center;
  border: 1px dashed #9caaa0;
  padding: 3.6rem 1.5rem;
  background: #f1efe6;
}

.no-results > span {
  font-size: 3rem;
  color: var(--accent);
}

.no-results h3 {
  font-size: 1.35rem;
  margin: 1rem 0 .4rem;
}

.no-results p {
  color: var(--muted);
}

.no-results button {
  border: 1px solid var(--ink);
  background: transparent;
  padding: .7rem 1.1rem;
  margin-top: .6rem;
}

/* ARTICLES */

.articles-section {
  background: var(--paper-warm);
  border-block: 1px solid var(--line);
}

.empty-state {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.2rem 0;
}

.empty-symbol {
  color: var(--accent);
  font-size: 4rem;
  font-weight: 200;
  line-height: 1;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin: 0 0 .5rem;
}

.empty-state p {
  color: var(--muted);
  max-width: 42rem;
  margin: 0;
  line-height: 1.9;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 1.7rem;
  border: 1px solid var(--line);
  text-decoration: none;
  background: #f9f7f1;
}

.article-card:hover {
  border-color: var(--accent);
}

.article-date {
  color: var(--accent-dark);
  font-size: .76rem;
}

.article-card h3 {
  font-family:
    "Iowan Old Style",
    "Songti TC",
    "Batang",
    serif;

  font-size: 1.45rem;
  letter-spacing: -.04em;
  line-height: 1.45;
  margin: 1rem 0 .55rem;
}

.article-card p {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.85;
}

.article-more {
  font-size: .8rem;
  font-weight: 750;
  margin-top: auto;
  color: var(--accent-dark);
}

/* PREPARATION */

.preparation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.prep-card {
  border-top: 2px solid var(--accent);
  padding: 1.7rem .5rem 0 0;
}

.prep-number {
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .07em;
  color: var(--accent-dark);
}

.prep-card h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 1.3rem 0 .8rem;
  letter-spacing: -.04em;
}

.prep-card p {
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.95;
  margin: 0;
  word-break: keep-all;
}

/* PRINCIPLES */

.principles-section {
  background: #e3e7dd;
}

.principles-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 8vw, 9rem);
}

.principles-intro h2 {
  margin-bottom: 1.5rem;
}

.principles-intro > p {
  color: #536258;
  line-height: 1.95;
  font-size: .95rem;
  max-width: 31rem;
}

.inline-link {
  display: inline-flex;
  gap: .8rem;
  align-items: center;
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: .25rem;
  margin-top: 1.15rem;
}

.principle {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1.3rem;
  padding: 1.5rem 0;
  border-top: 1px solid #c2cfc1;
}

.principle:last-child {
  border-bottom: 1px solid #c2cfc1;
}

.principle > span {
  font-size: .7rem;
  color: var(--accent-dark);
  font-weight: 750;
}

.principle h3 {
  font-size: 1.13rem;
  letter-spacing: -.03em;
  margin: 0 0 .55rem;
}

.principle p {
  font-size: .88rem;
  color: #536258;
  line-height: 1.95;
  margin: 0;
}

/* FOOTER */

.site-footer {
  background: #22362f;
  color: #e8ece6;
  padding: 4.8rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-brand {
  font-family:
    "Iowan Old Style",
    "Songti TC",
    "Batang",
    serif;

  font-weight: 750;
  font-size: 2rem;
  letter-spacing: -.055em;
}

.footer-dot {
  color: #d39c7c;
}

.footer-identity p {
  color: #b9c8bf;
  font-size: .88rem;
  max-width: 21rem;
  line-height: 1.9;
  margin-top: .6rem;
}

.footer-column h2 {
  font-size: .76rem;
  letter-spacing: .08em;
  color: #c5d2c9;
  margin-bottom: 1.3rem;
}

.footer-column ul {
  padding: 0;
  list-style: none;
  margin: 0;
}

.footer-column li + li {
  margin-top: .65rem;
}

.footer-column a {
  font-size: .88rem;
  color: #eff2eb;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.footer-column a span {
  font-size: .7rem;
  color: #d19c80;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid #486057;
  padding-top: 1.4rem;
  font-size: .7rem;
  color: #b8c7bd;
}

/* MODAL */

.city-dialog {
  width: min(94vw, 590px);
  max-height: min(88vh, 810px);
  padding: 0;
  border: 1px solid #c7cfc5;
  background: #faf8f1;
  box-shadow: 0 30px 90px rgba(10, 23, 18, .34);
  color: var(--ink);
  overflow-y: auto;
}

.city-dialog::backdrop {
  background: rgba(16, 30, 25, .65);
  backdrop-filter: blur(3px);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.7rem;
  border-bottom: 1px solid var(--line);
}

.dialog-header > span {
  color: var(--accent-dark);
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .05em;
}

.dialog-close {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 37px;
  height: 37px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-close:hover {
  background: var(--ink);
  color: white;
}

.dialog-body {
  padding: 2.2rem 2rem 2rem;
}

.dialog-tags {
  font-size: .77rem;
  color: var(--accent-dark);
  font-weight: 750;
}

.dialog-body h2 {
  font-family:
    "Iowan Old Style",
    "Songti TC",
    "Batang",
    serif;

  letter-spacing: -.06em;
  font-size: clamp(2.5rem, 7vw, 3.8rem);
  margin: .4rem 0 1rem;
}

.dialog-description {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #394e43;
  word-break: keep-all;
}

.dialog-angle {
  color: #5d6c61;
  line-height: 1.9;
  font-size: .92rem;
}

.dialog-caution {
  border-left: 3px solid var(--secondary);
  padding: 1rem;
  background: var(--soft);
  font-size: .82rem;
  line-height: 1.9;
  color: #4b5b51;
  margin-top: 1.7rem;
}

.dialog-done {
  border: 0;
  background: var(--accent-dark);
  color: #fff;
  padding: .8rem 1.3rem;
  margin-top: 1.8rem;
  font-weight: 750;
}

.dialog-done:hover {
  background: var(--ink);
}

/* INTERNAL PAGES */

.interior-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.interior-inner {
  padding: 5.7rem 0 5.3rem;
  max-width: 1120px;
}

.interior-hero h1 {
  font-size: clamp(2.8rem, 5.3vw, 5.4rem);
  line-height: 1.3;
  margin: 1.2rem 0;
}

.interior-hero p {
  font-size: 1.08rem;
  color: #5d6c61;
  max-width: 41rem;
  line-height: 1.9;
}

.interior-layout {
  display: grid;
  grid-template-columns: .32fr .68fr;
  gap: clamp(2rem, 8vw, 8rem);
  padding-block: 5.3rem 7rem;
}

.interior-aside {
  align-self: start;
  border-top: 2px solid var(--accent);
  padding-top: 1.1rem;
}

.aside-icon {
  font-size: 3rem;
  color: var(--accent);
  display: block;
}

.interior-aside p {
  font-weight: 750;
  font-size: 1.15rem;
  margin: .4rem 0;
}

.interior-aside a {
  font-size: .83rem;
  color: var(--accent-dark);
  font-weight: 700;
}

/* PROSE */

.prose {
  font-size: 1.03rem;
  line-height: 2;
  color: #39473e;
  word-break: keep-all;
}

.prose h2,
.article-sources h2,
.affiliate-section h2 {
  font-size: 1.55rem;
  line-height: 1.5;
  letter-spacing: -.04em;
  color: var(--ink);
  margin: 2.8rem 0 .85rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.24rem;
  line-height: 1.5;
  margin: 2rem 0 .7rem;
}

.prose p {
  margin: 0 0 1.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin: 0 0 1.6rem;
}

.prose li {
  padding-left: .3rem;
  margin-bottom: .5rem;
}

.prose blockquote {
  margin: 1.5rem 0;
  border-left: 3px solid var(--accent);
  padding: .3rem 1.5rem;
  color: #596a5d;
}

.prose pre {
  overflow: auto;
  background: #e8e9e0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  font-size: .86rem;
  line-height: 1.7;
}

.prose code {
  font-size: .88em;
  background: #e8e9e0;
  padding: .13rem .3rem;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose a {
  color: var(--accent-dark);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* PUBLISHED ARTICLE PAGE */

.article-container {
  max-width: 820px;
}

.article-hero {
  background: var(--soft);
  padding: 4.2rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  gap: .65rem;
  align-items: center;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.article-hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1.28;
  margin: 1.2rem 0;
}

.article-deck {
  font-size: 1.12rem;
  line-height: 1.9;
  color: #55655a;
}

.article-dates {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: #5d6e61;
  font-size: .76rem;
  border-top: 1px solid #cad1c6;
  margin-top: 2.2rem;
  padding-top: 1rem;
}

.article-main {
  padding-block: 4rem 7rem;
}

.article-prose {
  margin-bottom: 3.5rem;
}

.article-images {
  display: grid;
  gap: 2rem;
  margin: 2.5rem 0;
}

.article-images figure {
  margin: 0;
}

.article-images img {
  width: 100%;
  height: auto;
}

.article-images figcaption {
  margin-top: .5rem;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.8;
}

.article-caution {
  background: #e8eae1;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--secondary);
  font-size: .84rem;
  line-height: 1.85;
  color: #536258;
}

.article-sources,
.affiliate-section {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.article-sources ol {
  padding-left: 1.5rem;
}

.article-sources li {
  margin: 1rem 0;
  overflow-wrap: anywhere;
  font-size: .85rem;
}

.article-sources li span {
  display: block;
  color: var(--muted);
  font-size: .73rem;
  margin-top: .2rem;
}

.affiliate-section ul {
  padding-left: 1.4rem;
}

.affiliate-section p,
.affiliate-section li {
  font-size: .89rem;
  line-height: 1.85;
}

.affiliate-section li + li {
  margin-top: .6rem;
}

.affiliate-section li span {
  color: var(--muted);
}

.article-back {
  margin-top: 3rem;
}

/* 404 */

.not-found {
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.error-number {
  font-size: clamp(6rem, 15vw, 13rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.12em;
  color: var(--accent-dark);
}

.error-number span {
  color: var(--secondary);
}

.not-found h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 1.4rem 0 .7rem;
}

.not-found p {
  max-width: 35rem;
  color: var(--muted);
  line-height: 1.9;
}

/* TABLET */

@media (max-width: 1090px) {
  .destination-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .hero-grid {
    min-height: 560px;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 5vw, 5rem);
  }

  .card-content {
    min-height: 285px;
  }

  .footer-top {
    gap: 2rem;
  }
}

/* MOBILE NAVIGATION AND TABLET */

@media (max-width: 800px) {
  .container {
    width: min(100% - 2.3rem, 1240px);
  }

  .header-inner {
    height: 72px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 43px;
    height: 43px;
    background: transparent;
    border: 1px solid var(--line);
  }

  .menu-toggle > span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform .2s;
  }

  .site-header[data-menu-open="true"]
  .menu-toggle > span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header[data-menu-open="true"]
  .menu-toggle > span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 1rem max(
      1.15rem,
      calc((100vw - 1240px) / 2)
    );
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow:
      0 18px 30px rgba(38, 53, 42, .1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header[data-menu-open="true"]
  .primary-nav {
    display: flex;
  }

  .primary-nav a {
    font-size: .95rem;
    padding: .9rem .2rem;
    border-bottom: 1px solid var(--line);
  }

  .hero-grid {
    grid-template-columns: 1fr .8fr;
    gap: 1.8rem;
    min-height: 0;
    padding-block: 3.6rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 6vw, 4rem);
  }

  .hero-meta {
    margin-top: 2rem;
  }

  .section {
    padding: 5rem 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-heading > p {
    margin: 0;
    max-width: 39rem;
  }

  .filter-panel {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .filter-search {
    grid-column: 1 / -1;
  }

  .reset-button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .destination-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .preparation-grid {
    gap: 1rem;
  }

  .principles-grid {
    gap: 2rem;
  }

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

  .footer-identity {
    grid-column: 1 / -1;
  }

  .interior-layout {
    grid-template-columns: .3fr .7fr;
    gap: 2rem;
  }
}

/* SMALL MOBILE */

@media (max-width: 560px) {
  html {
    scroll-padding-top: 5rem;
  }

  .container {
    width: min(100% - 2rem, 1240px);
  }

  .brand-type strong {
    font-size: 1.04rem;
  }

  .brand-mark {
    height: 33px;
    width: 33px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding-block: 3.4rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.3rem, 12vw, 4.7rem);
    margin: 1.5rem 0;
  }

  .hero-lead {
    font-size: .98rem;
  }

  .hero-meta {
    gap: .45rem 1rem;
  }

  .hero-art {
    aspect-ratio: 1.25 / 1;
    border-radius: 45% 45% 4px 4px;
  }

  .hero-figure figcaption {
    text-align: left;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-heading h2,
  .principles-intro h2 {
    font-size: clamp(2.3rem, 9vw, 3.4rem);
  }

  .filter-panel {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .filter-search,
  .reset-button {
    grid-column: auto;
  }

  .filter-feedback > span {
    display: none;
  }

  .destination-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-illustration {
    aspect-ratio: 620 / 350;
  }

  .card-content {
    min-height: 0;
    padding: 1.15rem 1.2rem 1.5rem;
  }

  .card-index {
    margin-bottom: 1rem;
  }

  .card-caption {
    padding-top: 1.1rem;
  }

  .card-heading {
    font-size: 2rem;
  }

  .article-grid,
  .preparation-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .empty-state {
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  .empty-symbol {
    font-size: 3rem;
  }

  .prep-card {
    padding-top: 1.2rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 2.1rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.1rem;
  }

  .footer-identity {
    grid-column: auto;
  }

  .site-footer {
    padding-top: 3.5rem;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .dialog-body {
    padding: 1.7rem 1.4rem;
  }

  .dialog-header {
    padding: 1rem 1.4rem;
  }

  .interior-inner {
    padding: 4.3rem 0;
  }

  .interior-layout {
    grid-template-columns: 1fr;
    padding-block: 3.4rem 5rem;
    gap: 2rem;
  }

  .interior-aside {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .aside-icon {
    font-size: 2rem;
  }

  .interior-aside p {
    margin: 0;
  }

  .interior-aside a {
    margin-left: auto;
  }

  .prose {
    font-size: .97rem;
  }

  .article-hero {
    padding: 3.3rem 0;
  }

  .breadcrumbs {
    margin-bottom: 2rem;
  }

  .article-main {
    padding: 3rem 0 5rem;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.hero-art.hero-photo-frame{position:relative;padding:0;aspect-ratio:4/3;overflow:hidden;isolation:isolate}
.hero-photo-frame .city-photo{display:block;width:100%;height:100%;object-fit:cover}
.hero-photo-frame .hero-art-label{padding:.4rem .65rem;max-width:85%;background:rgba(23,35,29,.72);color:#fff;border-radius:2px;line-height:1.5}
.destination-card{display:flex;flex-direction:column}
.destination-card .destination-trigger{height:auto;flex:1 1 auto;display:flex;flex-direction:column;justify-content:flex-start}
.destination-card .card-content{flex:1 1 auto}
.card-illustration.card-photo{display:block;width:100%;height:auto;min-height:0;padding:0;aspect-ratio:16/10;overflow:hidden}
.card-photo .city-photo{display:block;width:100%;height:100%;aspect-ratio:16/10;object-fit:cover;transition:transform .3s ease}
.destination-trigger:hover .card-photo .city-photo{transform:scale(1.025)}
.card-photo-credit{margin:0;padding:.65rem 1rem .8rem;border-top:1px solid rgba(40,55,45,.1);font-size:.66rem;line-height:1.7;color:#596259;overflow-wrap:anywhere}
.photo-credit-line{display:block;font-size:.68rem;line-height:1.7;overflow-wrap:anywhere}
.photo-credit-line a,.card-photo-credit a{color:inherit;text-underline-offset:3px}
.hero-figure figcaption{display:block;padding-top:.7rem;line-height:1.7}
.photo-credits-intro{max-width:52rem;color:#596259;line-height:1.9}
.photo-credits-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem;margin-top:2.5rem}
.photo-credit-entry{min-width:0;border-top:1px solid rgba(40,55,45,.2);padding-top:1.2rem;scroll-margin-top:7rem}
.photo-credit-entry img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;margin-bottom:1rem;border-radius:2px}
.photo-credit-entry h2{font-size:1.3rem;margin:.3rem 0 .8rem}
.photo-credit-entry p{font-size:.84rem;line-height:1.85;overflow-wrap:anywhere}
.photo-license-note{margin-top:3rem;font-size:.8rem;line-height:1.9;color:#596259}
@media(max-width:640px){.photo-credits-grid{grid-template-columns:1fr;gap:1.6rem}.hero-art.hero-photo-frame{aspect-ratio:4/3}.card-photo-credit{padding:.6rem .8rem}}
@media(prefers-reduced-motion:reduce){.card-photo .city-photo{transition:none}.destination-trigger:hover .card-photo .city-photo{transform:none}}
