/* ==========================================================================
   COZY HOME — EDITORIAL STYLESHEET
   Warm paper palette, consistent 2:3 photography, generous reading measure.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #FBF7F1;
  --paper-deep: #F4ECE1;
  --surface: #FFFFFF;
  --ink: #2B211B;
  --ink-soft: #554A42;
  --muted: #77685B;
  --line: #E6DCCD;
  --line-strong: #D6C7B4;
  --brand: #8E4A2F;
  --brand-dark: #6B3520;
  --brand-soft: #C98A6C;
  --olive: #5F6B4F;
  --olive-soft: #EEF1E6;
  --mood: #F6EEE3;

  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-read: "Georgia", "Iowan Old Style", "Times New Roman", serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(43, 33, 27, 0.05);
  --shadow: 0 10px 30px rgba(43, 33, 27, 0.08);
  --shadow-lg: 0 24px 60px rgba(43, 33, 27, 0.14);
  --wrap: 1180px;
  --header-height: 76px;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

img { height: auto; }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; }

[hidden] { display: none !important; }

::selection { background: #EBC9B7; color: var(--ink); }

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

.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;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

/* ---------- 3. Utility bar ---------- */
.utility-bar {
  background: var(--ink);
  color: #E7D8C9;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
}
.utility-note {
  margin: 0;
  text-transform: uppercase;
  color: #C9B49F;
  font-size: 10.5px;
  letter-spacing: 0.16em;
}
.utility-links { display: flex; gap: 18px; }
.utility-links a,
.utility-social {
  color: #E7D8C9;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.14em;
}
.utility-links a:hover,
.utility-social:hover { color: #fff; }
.utility-social { white-space: nowrap; }

/* ---------- 4. Header ---------- */
.site-header {
  background: var(--paper);
  padding: 24px 0 22px;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.brand {
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  display: grid;
  gap: 4px;
  justify-items: center;
}
.brand:hover { color: var(--ink); }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.brand-tagline {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  justify-self: start;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--brand); color: var(--brand); }
.menu-bars { display: grid; gap: 3px; width: 14px; }
.menu-bars i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; }

.header-search {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
  width: min(240px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 4px 3px 14px;
}
.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 7px 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
}
.header-search input::placeholder { color: var(--muted); }
.header-search input:focus { outline: none; }
.header-search button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--mood);
  color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}
.header-search button:hover { background: var(--brand); color: #fff; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }

/* ---------- 5. Navigation ---------- */
.site-nav {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}
.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}
.nav-link {
  display: block;
  padding: 14px 15px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-link:hover { color: var(--brand); background: #FCF8F2; }
.nav-link.is-active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- 6. Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #FFFDFA; }
.btn-sm { padding: 8px 15px; font-size: 11.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px;
  text-decoration: none;
}
.chip span { color: var(--muted); font-size: 11px; }
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.text-link, .section-link {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.text-link:hover, .section-link:hover { color: var(--brand-dark); text-decoration: underline; }

/* ---------- 7. Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 12% 0%, #F8E9D8 0%, rgba(248, 233, 216, 0) 62%),
    linear-gradient(180deg, #F7EDDF 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 58px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.78fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand);
}
.hero-copy { min-width: 0; }
.hero-title {
  font-size: clamp(36px, 4.9vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 18ch;
}
.hero-lede {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.68;
  max-width: 56ch;
  margin-bottom: 14px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  font-size: 12px;
  color: var(--muted);
}
.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.hero-media {
  display: block;
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: end;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper-deep);
  text-decoration: none;
}
.hero-media picture,
.hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; transition: transform 0.7s ease; }
.hero-media:hover img { transform: scale(1.03); }
.hero-badge {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 5px;
  padding: 54px 20px 20px;
  background: linear-gradient(180deg, rgba(30, 20, 14, 0) 0%, rgba(30, 20, 14, 0.82) 70%);
  color: #fff;
}
.hero-badge-kicker {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #E7C9B3;
}
.hero-badge-title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.28;
}

/* ---------- 8. Sections ---------- */
.section { margin: 54px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-kicker {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
}
.section-title {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
}
.section-foot { text-align: center; margin-top: 34px; }

/* ---------- 9. Room cards ---------- */
.rooms-section {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 48px 0 54px;
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.room-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.room-card picture,
.room-card img { width: 100%; height: 100%; }
.room-card img { object-fit: cover; transition: transform 0.7s ease; }
.room-card:hover img { transform: scale(1.05); }
.room-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 16px 15px;
  background: linear-gradient(180deg, rgba(30, 20, 14, 0) 0%, rgba(30, 20, 14, 0.8) 72%);
  color: #fff;
  display: grid;
  gap: 2px;
}
.room-label strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}
.room-label span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #E3CDBA;
}
.room-card--all {
  background: var(--ink);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 22px;
  text-align: center;
  color: #F4E7D9;
}
.room-card--all .room-all-kicker {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #C9A98F;
}
.room-card--all strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  color: #FBF3E9;
}
.room-card--all .room-all-arrow {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #E0BFA4;
}
.room-card--all:hover { background: var(--brand-dark); }
.room-card--all:hover img { transform: none; }

/* ---------- 10. Layout & sidebar ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 52px;
  align-items: start;
  padding-block: 52px;
}
.main-col { min-width: 0; }
.sidebar { display: grid; gap: 22px; align-content: start; }

.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.widget-kicker {
  margin: 0 0 2px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.about-widget {
  background: var(--mood);
  border-color: #EAD9C6;
}
.about-widget p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }
.about-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #F9EFE4;
  font-family: var(--font-display);
  font-size: 17px;
  flex-shrink: 0;
}
.avatar-sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar-lg { width: 68px; height: 68px; font-size: 24px; }

.popular-list { list-style: none; display: grid; gap: 14px; }
.popular-item { display: flex; gap: 12px; align-items: flex-start; }
.popular-thumb {
  width: 60px;
  height: 60px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--paper-deep);
}
.popular-thumb picture,
.popular-thumb img { width: 100%; height: 100%; }
.popular-thumb img { object-fit: cover; }
.popular-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}
.popular-title:hover { color: var(--brand); }
.popular-meta {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cat-list { list-style: none; }
.cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.cat-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cat-list a { color: var(--ink-soft); text-decoration: none; }
.cat-list a:hover,
.cat-list a.is-active { color: var(--brand); }
.cat-count { font-size: 11px; color: var(--muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 11.5px;
  text-decoration: none;
}
.tag:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ---------- 11. Article cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 24px;
}
.post-card { display: flex; flex-direction: column; }
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: var(--shadow-sm);
}
.card-media picture,
.card-media img { width: 100%; height: 100%; }
.card-media img { object-fit: cover; transition: transform 0.7s ease; }
.card-media:hover img { transform: scale(1.04); }
.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-title { font-size: 19.5px; line-height: 1.24; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.card-meta .dot { margin: 0 6px; }
.card-arrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  text-decoration: none;
}
.card-arrow:hover { text-decoration: underline; }

.post-card--lead {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 26px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.post-card--lead .card-media { aspect-ratio: 2 / 3; }
.post-card--lead .card-body { padding: 8px 8px 8px 0; gap: 10px; }
.post-card--lead .card-title { font-size: 28px; line-height: 1.16; }
.post-card--lead .card-excerpt { font-size: 15px; -webkit-line-clamp: 4; }
.post-card--lead .card-tag { top: 12px; left: 12px; }

/* ---------- 12. Ads ---------- */
.ad-block {
  margin: 38px 0;
  padding: 14px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sidebar .ad-block { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; }
.ad-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 10px;
}
.ad-slot { display: flex; justify-content: center; align-items: center; min-height: 90px; }
.ad-slot iframe { max-width: 100%; }
.sidebar .ad-slot { min-height: 250px; }

/* ---------- 13. Article ---------- */
.article { max-width: 760px; margin-inline: auto; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--mood);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.pill:hover { background: var(--brand); color: #fff; text-decoration: none; }

.article-header { margin-bottom: 28px; }
.article-title {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 16px 0 16px;
}
.article-dek {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.meta-item { display: inline-flex; align-items: center; gap: 7px; }
.meta-item + .meta-item::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  margin-right: 6px;
}
.meta-author { color: var(--ink-soft); font-weight: 600; }
.meta-author::before { display: none; }
.pin-save {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-decoration: none;
}
.pin-save:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.article-hero {
  margin: 0 auto 30px;
  max-width: 600px;
  width: 100%;
}
.article-hero picture,
.article-hero img { width: 100%; }
.article-hero img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--paper-deep);
}
.article-hero figcaption,
.article-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.takeaways {
  background: var(--mood);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  margin-bottom: 24px;
}
.takeaways-title {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  margin-bottom: 12px;
}
.takeaways ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}
.takeaways li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.takeaways li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--olive);
  font-weight: 700;
  font-size: 12px;
}

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 22px;
  margin-bottom: 26px;
}
.toc-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  margin-bottom: 10px;
}
.toc ol {
  columns: 2;
  column-gap: 26px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
}
.toc li { margin-bottom: 7px; break-inside: avoid; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.toc a.is-active { color: var(--brand); font-weight: 600; }

.article-body {
  font-family: var(--font-read);
  font-size: 18.5px;
  line-height: 1.85;
  color: #3A2F28;
  max-width: 690px;
  margin-inline: auto;
}
.article-body > p { margin-bottom: 1.35em; }
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.9em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--brand);
}
.article-body h2 {
  font-size: clamp(25px, 3vw, 31px);
  line-height: 1.2;
  margin: 2.1em 0 0.65em;
  scroll-margin-top: 90px;
}
.article-body h3 {
  font-size: 21px;
  line-height: 1.3;
  margin: 1.7em 0 0.5em;
  scroll-margin-top: 90px;
}
.article-body ul,
.article-body ol { margin: 0 0 1.35em; padding-left: 1.35em; }
.article-body li { margin-bottom: 0.5em; }
.article-body a { color: var(--brand); }
.article-body strong { color: var(--ink); }
.article-body blockquote {
  margin: 1.8em 0;
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--brand);
  font-style: italic;
  color: var(--ink-soft);
}
.article-body blockquote p { margin: 0; }

.callout {
  margin: 1.9em 0;
  padding: 20px 22px;
  background: var(--olive-soft);
  border: 1px solid #DCE4D0;
  border-radius: var(--radius);
}
.callout-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #4C5A3C;
  margin-bottom: 7px;
}
.callout p:last-child { margin: 0; font-size: 16.5px; line-height: 1.65; color: #414A36; }

.table-wrap {
  margin: 1.9em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
}
.table-wrap caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.table-wrap th,
.table-wrap td {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table-wrap thead th {
  background: var(--paper-deep);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.table-wrap tbody th { font-weight: 600; color: var(--ink); }

.article-figure {
  margin: 2.2em auto;
  max-width: 600px;
}
.article-figure picture,
.article-figure img { width: 100%; }
.article-figure img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-deep);
}

/* ---------- 14. FAQ, author, related, pager ---------- */
.faq {
  margin: 52px 0 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.faq-title { font-size: 30px; margin-bottom: 18px; }
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-size: 18px; line-height: 1.35; margin-bottom: 7px; }
.faq-item p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }

.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--mood);
  border-radius: var(--radius);
  padding: 24px;
  margin: 38px 0;
}
.author-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand);
  color: #F9EFE4;
  font-family: var(--font-display);
  font-size: 21px;
  flex-shrink: 0;
}
.author-kicker {
  margin: 0 0 2px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.author-info h2 { font-size: 21px; margin-bottom: 6px; }
.author-info p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0;
}
.post-nav-item {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
}
.post-nav-item:hover { border-color: var(--brand); text-decoration: none; }
.post-nav-item span {
  display: block;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 5px;
}
.post-nav-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.post-nav-next { text-align: right; }

.related {
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.related-card h3 { font-size: 15.5px; line-height: 1.3; margin-top: 10px; }
.related-card h3 a { color: var(--ink); text-decoration: none; }
.related-card h3 a:hover { color: var(--brand); }
.related-media {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-deep);
}
.related-media picture,
.related-media img { width: 100%; height: 100%; }
.related-media img { object-fit: cover; transition: transform 0.6s ease; }
.related-media:hover img { transform: scale(1.04); }
.related-meta {
  margin-top: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 15. Category / collection ---------- */
.collection-head {
  padding: 6px 0 30px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.collection-title {
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.06;
  margin-bottom: 18px;
}
.collection-intro { display: grid; gap: 13px; max-width: 68ch; }
.collection-intro p { font-size: 16px; line-height: 1.72; color: var(--ink-soft); }
.collection-meta {
  margin-top: 18px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.related-categories { margin-bottom: 0; }

/* ---------- 16. Guide index ---------- */
.guide-index { display: grid; gap: 40px; }
.index-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.index-title { font-size: 24px; }
.index-title a { color: var(--ink); text-decoration: none; }
.index-title a:hover { color: var(--brand); }
.index-group-head > span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.guide-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
}
.guide-link:hover { border-color: var(--brand-soft); text-decoration: none; }
.guide-thumb {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--paper-deep);
}
.guide-thumb picture,
.guide-thumb img { width: 100%; height: 100%; }
.guide-thumb img { object-fit: cover; }
.guide-copy { min-width: 0; display: grid; gap: 2px; }
.guide-copy strong {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.guide-copy span {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-time {
  grid-column: 2;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- 17. Full link index on the homepage ---------- */
.link-index {
  background: var(--mood);
  border-top: 1px solid var(--line);
  padding: 50px 0 56px;
}
.link-index .section-head { margin-bottom: 28px; }
.index-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 34px;
}
.index-list { list-style: none; display: grid; gap: 7px; }
.link-index .index-title {
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(43, 33, 27, 0.12);
}
.link-index .index-title span { font-size: 10px; color: var(--muted); }
.index-list a {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-decoration: none;
}
.index-list a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- 18. Planner ---------- */
.planner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  margin: 54px 0;
  box-shadow: var(--shadow-sm);
}
.planner-head { max-width: 66ch; }
.planner-head p:last-child { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }
.planner-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
  gap: 14px;
  align-items: end;
  margin: 24px 0;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.field select,
.field input,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 140px; }
.planner-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FCFAF5;
  padding: 22px;
}
.palette-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.palette-head h3 { font-size: 21px; margin-bottom: 4px; }
.palette-head p { font-size: 13px; color: var(--ink-soft); max-width: 58ch; }
.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.swatch {
  border: 1px solid rgba(43, 33, 27, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.swatch-color {
  display: flex;
  align-items: flex-end;
  height: 78px;
  padding: 7px;
}
.swatch-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.35);
  padding: 2px 5px;
  border-radius: 3px;
}
.swatch-name { display: block; padding: 8px 9px; font-size: 11px; line-height: 1.35; color: var(--ink-soft); }
.planner-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.planner-details h4 {
  font-family: var(--font-body);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  margin-bottom: 4px;
}
.planner-details p { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }
.planner-link { margin-top: 16px; font-size: 12.5px; }

/* ---------- 19. Static pages ---------- */
.page-head {
  padding: 8px 0 28px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(34px, 4.2vw, 48px); line-height: 1.07; margin-bottom: 14px; }
.page-lede { font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 64ch; }
.page-lede a { color: var(--brand); }

.prose {
  font-family: var(--font-read);
  font-size: 17.5px;
  line-height: 1.8;
  color: #3A2F28;
  max-width: 72ch;
}
.prose h2 { font-size: 28px; line-height: 1.22; margin: 1.9em 0 0.6em; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; margin: 1.6em 0 0.5em; }
.prose p { margin-bottom: 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.55em; }
.prose figure { margin: 1.8em 0; }
.prose .article-figure { max-width: 100%; }
.prose .article-figure img { aspect-ratio: 4 / 5; }
.contact-card,
.editor-card {
  background: var(--mood);
  border-radius: var(--radius);
  padding: 24px;
  margin: 1.8em 0;
}
.contact-card h2 { margin-top: 0; }
.contact-email { font-family: var(--font-display); font-size: 24px; }
.editor-card { display: flex; gap: 18px; align-items: flex-start; }
.editor-card h3 { margin: 0 0 6px; font-size: 21px; }
.editor-card p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }

.contact-form { display: grid; gap: 14px; max-width: 560px; margin: 20px 0 30px; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 12.5px; color: var(--muted); }

/* ---------- 20. Search, 404, misc ---------- */
.search-form--page {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}
.search-form--page input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.results-count {
  margin-bottom: 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.result-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
}
.result-item:hover { border-color: var(--brand-soft); text-decoration: none; }
.result-thumb {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--paper-deep);
}
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-copy { display: grid; gap: 3px; min-width: 0; }
.result-cat {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
}
.result-copy strong { font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.result-excerpt {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-meta { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.empty-state {
  padding: 26px;
  background: var(--mood);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.empty-state h2 { font-size: 24px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 14px; }

.not-found { text-align: center; padding: 56px 0 30px; }
.not-found h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 14px; }
.not-found p { font-size: 16px; color: var(--ink-soft); max-width: 52ch; margin: 0 auto 26px; }
.not-found .search-form--page { max-width: 460px; margin: 0 auto 22px; }
.not-found .chips { justify-content: center; }

/* ---------- 21. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #D8C8B9;
  margin-top: 60px;
  padding: 54px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
}
.footer-brand { max-width: 40ch; }
.footer-name {
  font-family: var(--font-display);
  font-size: 28px;
  color: #F6EADF;
  margin-bottom: 10px;
}
.footer-note { font-size: 13px; line-height: 1.7; color: #B7A493; max-width: 36ch; }
.footer-social {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #E3C9B1;
  text-decoration: none;
}
.footer-social:hover { color: #fff; }
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #B99B83;
  margin-bottom: 13px;
}
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { font-size: 12.5px; color: #D8C8B9; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #9D8B7C;
}

/* ---------- 22. Cookie notice, progress, to-top ---------- */
.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(760px, 100% - 32px);
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--ink-soft);
}
.cookie-notice p { flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 300;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 250;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--brand); color: var(--brand); }
body.has-cookie-notice .to-top { bottom: 150px; }
@media (min-width: 621px) {
  body.has-cookie-notice .to-top { bottom: 110px; }
}

/* ---------- 23. Responsive ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-title { font-size: 18px; }
}

@media (max-width: 900px) {
  .wrap { width: min(var(--wrap), 100% - 36px); }
  .utility-note { display: none; }
  .utility-inner { justify-content: space-between; }
  .site-header { padding: 16px 0 14px; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .menu-toggle { display: inline-flex; }
  .brand { grid-column: 2; }
  .brand-name { font-size: 28px; }
  .brand-tagline { font-size: 8.5px; letter-spacing: 0.16em; }
  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    margin-top: 12px;
  }
  .site-nav { position: static; background: var(--surface); }
  .nav-list { display: none; padding: 6px 0 10px; }
  .nav-list.is-open { display: flex; flex-direction: column; }
  .nav-list li { width: 100%; }
  .nav-link {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }
  .nav-link.is-active { border-bottom-color: var(--line); border-left-color: var(--brand); }
  .hero { padding: 40px 0 42px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-title { max-width: 20ch; }
  .hero-media { justify-self: start; max-width: 360px; }
  .hero-facts { gap: 22px; }
  .hero-facts strong { font-size: 21px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar .ad-block { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms-section { padding: 38px 0 42px; }
  .article-hero { max-width: 100%; }
  .article-title { font-size: clamp(30px, 6vw, 42px); }
  .takeaways ul { grid-template-columns: minmax(0, 1fr); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-list { grid-template-columns: minmax(0, 1fr); }
  .index-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner-controls { grid-template-columns: minmax(0, 1fr); }
  .planner-controls .btn { justify-self: start; }
  .planner-details { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card--lead { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .post-card--lead .card-body { padding: 0 4px 6px; }
  .post-card--lead .card-media { aspect-ratio: 4 / 5; }
  .post-card--lead .card-title { font-size: 24px; }
  .toc ol { columns: 1; }
}

@media (max-width: 620px) {
  .wrap { width: min(var(--wrap), 100% - 28px); }
  .utility-links { gap: 12px; }
  .utility-social { display: none; }
  .hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
  .hero-facts li:last-child { grid-column: 1 / -1; }
  .section { margin: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .card-media { aspect-ratio: 4 / 5; }
  .card-title { font-size: 20px; }
  .card-excerpt { -webkit-line-clamp: 4; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .article-dek { font-size: 16.5px; }
  .article-meta { gap: 6px 12px; font-size: 11px; }
  .meta-item + .meta-item::before { display: none; }
  .article-body { font-size: 17.5px; line-height: 1.8; }
  .article-body > p:first-of-type::first-letter { font-size: 3.2em; }
  .article-body h2 { font-size: 25px; }
  .article-body h3 { font-size: 19px; }
  .table-wrap table { font-size: 12.5px; }
  .table-wrap th, .table-wrap td { padding: 8px 10px; }
  .takeaways { padding: 18px; }
  .author-box { flex-direction: column; gap: 12px; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav-next { text-align: left; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .related-card h3 { font-size: 14px; }
  .planner { padding: 22px 18px; }
  .index-groups { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-notice {
    left: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
  }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  .to-top { right: 14px; bottom: 14px; }
  .search-form--page { flex-direction: column; }
  .search-form--page .btn { width: 100%; }
  .guide-link { grid-template-columns: 52px minmax(0, 1fr); }
  .guide-thumb { width: 52px; height: 52px; }
  .results-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .brand-name { font-size: 24px; }
  .brand-tagline { display: none; }
  .hero-title { font-size: 32px; }
  .hero-actions .btn { width: 100%; }
  .swatches { grid-template-columns: minmax(0, 1fr); }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 24. Print ---------- */
@media print {
  .utility-bar, .site-nav, .site-header, .sidebar, .site-footer,
  .ad-block, .cookie-notice, .reading-progress, .to-top, .post-nav { display: none !important; }
  body { background: #fff; }
  .layout { display: block; padding: 0; }
  .article-title { font-size: 30pt; }
  .article-body { font-size: 11pt; }
}
