@charset "utf-8";
/* ===========================================================================
   ONDAM 온담 — 가구 저널
   Design system + components
   --------------------------------------------------------------------------
   0. Tokens          5. Hero / Featured
   1. Reset & base    6. Cards & grids
   2. Typography      7. Article (post)
   3. Layout          8. Forms & CTA
   4. Header & nav    9. Footer / utilities
   =========================================================================== */

/* -------------------------------------------------- 0. Tokens ----------- */
:root {
  /* Surfaces */
  --paper:        #FBF9F6;
  --paper-2:      #F3EFE8;
  --paper-3:      #EAE4DA;
  --surface:      #FFFFFF;

  /* Ink */
  --ink:          #16130F;
  --ink-2:        #443D34;
  --muted:        #8C8378;
  --muted-2:      #A79E92;

  /* Lines */
  --line:         #E4DDD2;
  --line-2:       #D3CABD;

  /* Accent — walnut */
  --accent:       #96613D;
  --accent-deep:  #6B4228;
  --accent-soft:  #F0E6DC;

  /* Effects */
  --shadow-sm:    0 1px 2px rgba(22,19,15,.05), 0 2px 8px rgba(22,19,15,.04);
  --shadow-md:    0 2px 6px rgba(22,19,15,.06), 0 14px 34px rgba(22,19,15,.08);
  --shadow-lg:    0 4px 10px rgba(22,19,15,.07), 0 28px 60px rgba(22,19,15,.12);

  /* Type */
  --serif:  "Noto Serif KR", "Nanum Myeongjo", Georgia, "Times New Roman", serif;
  --sans:   "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
            "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --latin:  "Poppins", "Noto Sans KR", sans-serif;

  /* Metrics */
  --wrap:       1280px;
  --wrap-narrow: 720px;
  --gutter:     clamp(20px, 5vw, 56px);
  --radius:     3px;
  --radius-lg:  6px;
  --ease:       cubic-bezier(.22, .61, .36, 1);
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --header-h:   72px;

  color-scheme: light;
}

/* Dark theme — follows the system unless the user picked a theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #121110;
    --paper-2:     #1A1816;
    --paper-3:     #22201D;
    --surface:     #1A1816;
    --ink:         #F2EEE7;
    --ink-2:       #C6BEB2;
    --muted:       #918879;
    --muted-2:     #7C7365;
    --line:        #2D2925;
    --line-2:      #3C3731;
    --accent:      #C8895F;
    --accent-deep: #E0A87F;
    --accent-soft: #2A2320;
    --shadow-sm:   0 1px 2px rgba(0,0,0,.4);
    --shadow-md:   0 2px 6px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.38);
    --shadow-lg:   0 4px 10px rgba(0,0,0,.45), 0 28px 60px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:       #121110;
  --paper-2:     #1A1816;
  --paper-3:     #22201D;
  --surface:     #1A1816;
  --ink:         #F2EEE7;
  --ink-2:       #C6BEB2;
  --muted:       #918879;
  --muted-2:     #7C7365;
  --line:        #2D2925;
  --line-2:      #3C3731;
  --accent:      #C8895F;
  --accent-deep: #E0A87F;
  --accent-soft: #2A2320;
  --shadow-sm:   0 1px 2px rgba(0,0,0,.4);
  --shadow-md:   0 2px 6px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.38);
  --shadow-lg:   0 4px 10px rgba(0,0,0,.45), 0 28px 60px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* -------------------------------------------- 1. Reset & base ----------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 0;
}

img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--paper-3); }

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button { background: none; border: 0; cursor: pointer; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: #fff; }

/* Skip link */
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ------------------------------------------- 2. Typography -------------- */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -.035em;
  text-wrap: pretty;
}

.display {
  font-size: clamp(2rem, 1.15rem + 3.7vw, 4.1rem);
  line-height: 1.2;
  letter-spacing: -.045em;
}
.h1 { font-size: clamp(1.75rem, 1.1rem + 2.7vw, 3rem); line-height: 1.26; letter-spacing: -.04em; }
.h2 { font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.1rem); }
.h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); }
.h4 { font-size: 1.0625rem; line-height: 1.5; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

/* Eyebrow / small-caps latin label */
.eyebrow {
  font-family: var(--latin);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  display: block;
}
.eyebrow--accent { color: var(--accent); }

.lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  line-height: 1.85;
  color: var(--ink-2);
}

.meta {
  font-family: var(--latin);
  font-size: .75rem;
  letter-spacing: .09em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); flex: none; }

/* Category tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--latin);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.tag::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--accent);
}

/* Section heading block */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--line);
}
.section-head .eyebrow { margin-bottom: .6rem; }
.section-head p { color: var(--muted); font-size: .9375rem; margin: .5rem 0 0; max-width: 46ch; }

/* Links with the quiet underline the whole site uses */
.link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--latin);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-2);
  transition: color .3s var(--ease), border-color .3s var(--ease), gap .3s var(--ease);
  white-space: nowrap;
}
.link:hover { color: var(--accent); border-color: var(--accent); gap: .8rem; }
.link svg { width: 14px; height: 14px; }

/* ------------------------------------------------ 3. Layout ------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

section { position: relative; }
.pad      { padding-block: clamp(56px, 8vw, 110px); }
.pad-top  { padding-top: clamp(56px, 8vw, 110px); }
.pad-sm   { padding-block: clamp(40px, 5vw, 68px); }

.tint { background: var(--paper-2); }

.grid { display: grid; gap: clamp(28px, 3vw, 44px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------- 4. Header & navigation --------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--latin);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 34px;
}
.topbar a { opacity: .72; transition: opacity .25s var(--ease); }
.topbar a:hover { opacity: 1; }
.topbar nav { display: flex; gap: 1.5rem; }
.topbar .tb-note { opacity: .55; }

/* In dark mode the utility bar follows the page instead of inverting */
:root[data-theme="dark"] .topbar { background: var(--paper-3); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar { background: var(--paper-3); color: var(--ink); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
  transition: height .35s var(--ease);
}
.site-header.is-stuck .header-inner { height: 62px; }

/* Wordmark */
.brand { display: flex; align-items: baseline; gap: .55rem; flex: none; }
.brand-mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}
.brand-sub {
  font-family: var(--latin);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 1px;
}

/* Primary nav */
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.1rem); }
.nav a {
  position: relative;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink-2);
  padding: .4rem 0;
  transition: color .25s var(--ease);
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current] { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: .35rem; flex: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.icon-btn:hover { background: var(--paper-3); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }

/* Theme toggle icon swap */
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-rows: 1fr;
  background: var(--paper);
  padding: 0 var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .35s var(--ease), transform .4s var(--ease-out), visibility .35s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.035em;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink);
}
.drawer nav a span {
  font-family: var(--latin);
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.drawer-foot { margin-top: 2.5rem; color: var(--muted); font-size: .875rem; }

/* --------------------------------------- 5. Hero / featured ------------- */
.hero { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

.hero-copy .display { margin: .25rem 0 1.25rem; }
.hero-copy .lead { max-width: 40ch; margin-bottom: 2rem; }
.hero-figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out);
}
.hero-figure:hover img { transform: scale(1.06); }

/* Caption plate floating over the hero image */
.hero-plate {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--surface);
  padding: 1.1rem 1.5rem 1.2rem;
  max-width: 78%;
  border-top-right-radius: var(--radius-lg);
}
.hero-plate .eyebrow { margin-bottom: .3rem; }
.hero-plate p { font-size: .875rem; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* Marquee strip of category words */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 1.1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee span {
  font-family: var(--latin);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex; align-items: center; gap: 3.5rem;
  white-space: nowrap;
}
.marquee span::after { content: "·"; color: var(--line-2); }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ------------------------------------------ 6. Cards & grids ------------ */
.card { display: flex; flex-direction: column; }

.card-figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  margin-bottom: 1.3rem;
  background: var(--paper-3);
}
.card-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out), filter .6s var(--ease);
}
.card:hover .card-figure img { transform: scale(1.05); }

.card-figure .num {
  position: absolute;
  top: 0; left: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--latin);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  padding: .5rem .85rem;
  border-bottom-right-radius: var(--radius);
}

.card .tag { margin-bottom: .65rem; }
.card h3 {
  font-size: 1.1875rem;
  line-height: 1.45;
  margin-bottom: .6rem;
  transition: color .25s var(--ease);
}
.card:hover h3 { color: var(--accent); }
.card p {
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta { margin-top: auto; }

/* Card variant: portrait feature */
.card--tall .card-figure { aspect-ratio: 3 / 4; }

/* Horizontal list row */
.row-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(20px, 2.5vw, 36px);
  align-items: center;
  padding: clamp(20px, 2.5vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.row-item:first-child { border-top: 1px solid var(--line); }
.row-item .card-figure { aspect-ratio: 4 / 3; margin: 0; }
.row-item h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); }
.row-item .card-body { min-width: 0; }

/* Ranked list (editor picks) */
.rank { list-style: none; margin: 0; padding: 0; }
.rank li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.rank li:first-child { border-top: 1px solid var(--line); }
.rank .n {
  font-family: var(--latin);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--line-2);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.rank h4 { margin-bottom: .35rem; transition: color .25s var(--ease); }
.rank a:hover h4 { color: var(--accent); }
.rank .meta { font-size: .6875rem; }

/* Category tiles */
.cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  color: #fff;
}
.cat-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.cat-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,11,8,.82) 0%, rgba(14,11,8,.25) 45%, rgba(14,11,8,.05) 100%);
}
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 1.5rem 1.4rem;
}
.cat-tile-body .en {
  font-family: var(--latin);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .75;
  display: block;
  margin-bottom: .35rem;
}
.cat-tile-body .ko {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.03em;
  display: block;
}
.cat-tile-body .count { font-size: .75rem; opacity: .7; }

/* Quote band */
.quote {
  text-align: center;
  max-width: 24ch;
  margin-inline: auto;
}
.quote blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1rem + 1.9vw, 2.35rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.04em;
}
.quote cite {
  font-family: var(--latin);
  font-size: .75rem;
  font-style: normal;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------------------------------------------- 7. Article ------------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  z-index: 300;
  transition: transform .1s linear;
}

.post-head { padding-top: clamp(36px, 4.5vw, 64px); text-align: center; }
.post-head .h1 { margin: 1rem auto 1.25rem; max-width: 20ch; }
.post-head .lead { max-width: 54ch; margin-inline: auto; }
.post-head .meta { justify-content: center; margin-top: 1.75rem; }

.post-cover {
  margin-top: clamp(32px, 4vw, 56px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) 232px;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
  padding-top: clamp(44px, 5vw, 72px);
}
.post-layout .prose { max-width: none; }

/* Body copy — the single most important block on the site */
.prose {
  font-size: 1.0625rem;
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 68ch;
}
.prose > * + * { margin-top: 1.4em; }
.prose h2 {
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem);
  color: var(--ink);
  margin-top: 2.6em;
  margin-bottom: -.2em;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.prose h3 {
  font-size: 1.1875rem;
  color: var(--ink);
  margin-top: 2.1em;
  margin-bottom: -.35em;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color .25s var(--ease);
}
.prose a:hover { border-color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.25em; margin-block: 1.4em; }
.prose li { margin-bottom: .55em; padding-left: .25em; }
.prose li::marker { color: var(--accent); }

.prose figure { margin: 2.6em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption {
  margin-top: .85rem;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--muted);
  padding-left: .9rem;
  border-left: 2px solid var(--line-2);
}

.prose blockquote {
  margin: 2.4em 0;
  padding: 0 0 0 1.6rem;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.75;
  letter-spacing: -.03em;
  color: var(--ink);
}

/* Callout box */
.callout {
  margin: 2.4em 0;
  padding: 1.5rem 1.6rem;
  background: var(--paper-2);
  border-radius: var(--radius);
  border-left: 2px solid var(--accent);
}
.callout .eyebrow { margin-bottom: .55rem; }
.callout p { font-size: .9375rem; line-height: 1.8; margin: 0; }
.callout ul { margin: .7em 0 0; font-size: .9375rem; }

/* Spec table */
.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 2.4em 0;
  font-size: .9375rem;
}
.spec th, .spec td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec thead th {
  font-family: var(--latin);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-2);
}
.spec tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.spec tbody tr:hover { background: var(--paper-2); }

/* Sticky sidebar: table of contents + share */
.post-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.toc { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: .1rem; }
.toc a {
  display: block;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--muted);
  padding: .45rem 0 .45rem .9rem;
  border-left: 1px solid var(--line);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); }

.share { margin-top: 2.25rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.share-row { display: flex; gap: .5rem; margin-top: .9rem; }
.share-row button {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: all .25s var(--ease);
}
.share-row button:hover { border-color: var(--accent); color: var(--accent); }
.share-row svg { width: 15px; height: 15px; }

/* Author card */
.author {
  display: flex;
  gap: 1.3rem;
  align-items: center;
  margin-top: clamp(44px, 5vw, 70px);
  padding: 1.75rem;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
}
.author-avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.3rem;
  flex: none;
}
.author h4 { margin-bottom: .2rem; }
.author p { font-size: .875rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* Prev / next */
.pagenav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: clamp(44px, 5vw, 70px);
}
.pagenav a {
  background: var(--paper);
  padding: 1.6rem clamp(1rem, 2vw, 1.9rem);
  transition: background .25s var(--ease);
}
.pagenav a:hover { background: var(--paper-2); }
.pagenav .eyebrow { margin-bottom: .5rem; }
.pagenav .t { font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.5; }
.pagenav a:last-child { text-align: right; }

/* ------------------------------------------- 8. Forms & CTA ------------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.cta .eyebrow { color: var(--accent-deep); }
.cta h2 { color: var(--paper); margin-bottom: .9rem; }
.cta p { color: rgba(251,249,246,.62); font-size: .9375rem; max-width: 42ch; margin: 0; }
:root[data-theme="dark"] .cta { background: var(--paper-3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta { background: var(--paper-3); }
}

.field-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.field-row .field { flex: 1 1 220px; }

.field label {
  display: block;
  font-family: var(--latin);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.input, .textarea, select.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-size: .9375rem;
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.75; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cta .input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--paper); }
.cta .input::placeholder { color: rgba(251,249,246,.4); }
.cta .input:focus { border-color: var(--accent-deep); box-shadow: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--latin);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .95rem 1.8rem;
  border-radius: var(--radius);
  transition: background .25s var(--ease), transform .25s var(--ease);
  flex: none;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--block { width: 100%; }

.form-note { font-size: .75rem; color: var(--muted); margin-top: .9rem; }
.cta .form-note { color: rgba(251,249,246,.45); }

.form-status {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--accent);
  min-height: 1.4em;
}

/* Filter bar (journal page) */
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 4vw, 52px);
}
.chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.chip {
  font-family: var(--latin);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.search-box { position: relative; flex: 0 1 260px; }
.search-box .input { padding-left: 2.4rem; padding-block: .7rem; }
.search-box svg {
  position: absolute;
  left: .85rem; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.empty {
  text-align: center;
  padding: clamp(48px, 7vw, 90px) 0;
  color: var(--muted);
}
.empty .h3 { color: var(--ink); margin-bottom: .6rem; }

.count-line {
  font-family: var(--latin);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.count-line b { color: var(--ink); font-weight: 600; }

/* --------------------------------------- 9. Footer & utilities ---------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 80px);
  margin-top: clamp(56px, 7vw, 100px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 3vw, 48px);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; color: var(--muted); line-height: 1.8; max-width: 34ch; }

.fcol h5 {
  font-family: var(--latin);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin-bottom: .6rem; }
.fcol a, .fcol span {
  font-size: .875rem;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.fcol a:hover { color: var(--accent); }

.cs-hours { font-size: .8125rem; color: var(--muted); line-height: 1.9; }
.cs-hours .tel {
  font-family: var(--latin);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  display: block;
  margin-bottom: .5rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem clamp(28px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.biz-info { font-size: .75rem; color: var(--muted-2); line-height: 1.9; max-width: 72ch; }
.biz-info b { color: var(--muted); font-weight: 500; }
.socials { display: flex; gap: .5rem; }
.socials a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.socials svg { width: 15px; height: 15px; }

/* Back to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 17px; height: 17px; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Utility */
.center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 56px); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------- Responsive ----------------- */
@media (max-width: 1080px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .topbar nav { display: none; }
  .nav-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure { aspect-ratio: 4 / 3; }
  .hero-copy { order: 2; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; }
  .topbar .tb-note { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 1fr; gap: 16px; }
  .row-item .card-figure { aspect-ratio: 16 / 9; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .pagenav { grid-template-columns: 1fr; }
  .pagenav a:last-child { text-align: left; }
  .author { flex-direction: column; align-items: flex-start; text-align: left; }
  .filters { flex-direction: column; align-items: stretch; }
  .search-box { flex: 1 1 auto; }
  .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .4rem; }
  .prose { font-size: 1rem; }
  .hero-plate { position: static; max-width: none; padding: 1.1rem 0 0; background: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .to-top { right: 14px; bottom: 14px; }
}

/* ------------------------------------------- Preferences ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .site-footer, .post-aside, .to-top, .cta, .progress { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
}
