:root {
  --paper: #fffaf4;
  --surface: #ffffff;
  --ink: #211b17;
  --muted: #685d54;
  --line: #eadfd3;
  --clay: #b75f45;
  --clay-dark: #914833;
  --moss: #6f8065;
  --rose: #d8a59a;
  --gold: #b58a36;
  --blue: #516f8f;
  --shadow: 0 18px 45px rgba(53, 38, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 250, 244, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 22px;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--clay);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  min-height: calc(100vh - 64px);
}

.home-hero__media {
  background-image:
    linear-gradient(90deg, rgba(33, 27, 23, 0.12), rgba(33, 27, 23, 0.02)),
    url("https://images.unsplash.com/photo-1574158622682-e40e69881006?auto=format&fit=crop&w=1500&q=82");
  background-position: center;
  background-size: cover;
}

.home-hero__content {
  align-self: center;
  max-width: 650px;
  padding: 64px;
}

.eyebrow {
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.06;
  margin: 0;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 5.35rem);
  letter-spacing: 0;
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.45rem;
}

.home-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 570px;
}

.section {
  margin: 0 auto;
  max-width: 1120px;
  padding: 78px 28px;
}

.section-heading {
  margin-bottom: 28px;
}

.muted-band {
  background: #f5eee6;
  max-width: none;
  padding-left: max(28px, calc((100vw - 1120px) / 2 + 28px));
  padding-right: max(28px, calc((100vw - 1120px) / 2 + 28px));
}

.featured-post {
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  overflow: hidden;
}

.featured-post__image {
  background-image: url("https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?auto=format&fit=crop&w=1200&q=82");
  background-position: center;
  background-size: cover;
  min-height: 360px;
}

.featured-post__body {
  padding: 42px;
}

.featured-post h3 a,
.text-link {
  text-decoration: none;
}

.featured-post p {
  color: var(--muted);
}

.post-meta {
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.text-link {
  color: var(--clay);
  font-weight: 700;
}

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

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.article-hero {
  background-image:
    linear-gradient(90deg, rgba(33, 27, 23, 0.82), rgba(33, 27, 23, 0.44)),
    url("https://images.unsplash.com/photo-1518791841217-8f162f1e1131?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
  color: #fffaf4;
  min-height: 76vh;
  padding: 88px 28px 72px;
}

.article-hero__inner {
  max-width: 940px;
  padding-top: 8vh;
}

.article-hero .eyebrow,
.article-hero .post-meta {
  color: #f3c8a9;
}

.article-hero p:not(.eyebrow):not(.post-meta) {
  color: rgba(255, 250, 244, 0.84);
  font-size: 1.12rem;
  max-width: 650px;
}

.article-shell {
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 760px) 260px;
  margin: 0 auto;
  max-width: 1120px;
  padding: 64px 28px 90px;
}

.article-content {
  min-width: 0;
}

.article-content > p:first-child {
  border-left: 4px solid var(--clay);
  color: #3d332d;
  font-size: 1.08rem;
  margin-top: 0;
  padding-left: 20px;
}

.article-content h2 {
  font-size: 2.05rem;
  margin: 54px 0 16px;
}

.article-content h3 {
  font-size: 1.35rem;
  margin: 28px 0 8px;
}

.article-content p {
  color: #3d332d;
}

.article-content a {
  color: var(--clay);
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  color: #3d332d;
  padding-left: 22px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content figure {
  margin: 38px 0;
}

.article-content figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.article-content figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 8px;
}

.toc {
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
  position: sticky;
  top: 88px;
}

.toc strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.toc a {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  padding: 5px 0;
  text-decoration: none;
}

.toc a:hover {
  color: var(--clay);
}

.recommendation {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--clay);
  box-shadow: var(--shadow);
  margin: 34px 0;
  padding: 28px;
}

.recommendation h3 {
  margin-top: 0;
}

.detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.detail-list li {
  background: #f3eee8;
  color: #5b4b40;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0;
  padding: 5px 10px;
}

.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.button {
  background: var(--clay);
  color: #fff;
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 10px 18px;
  text-align: center;
  text-decoration: none;
}

.article-content a.button {
  color: #fff;
  text-decoration: none;
}

.button:hover {
  background: var(--clay-dark);
}

.article-content a.button:hover {
  color: #fff;
}

.quiet-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.callout {
  background: #f4efe8;
  border: 1px solid var(--line);
  margin: 38px 0;
  padding: 28px;
}

.callout h3 {
  margin-top: 0;
}

.placeholder-hero {
  align-items: center;
  display: grid;
  min-height: calc(100vh - 64px);
  padding: 72px 28px;
}

.placeholder-hero__inner {
  margin: 0 auto;
  max-width: 760px;
}

.placeholder-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.faq-item h3 {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.35;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 250, 244, 0.72);
  padding: 34px 28px;
  text-align: center;
}

.site-footer p {
  margin: 0 auto 10px;
  max-width: 720px;
}

.site-footer a {
  color: #f3c8a9;
  font-weight: 700;
  text-decoration: none;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

.cookie-banner {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  bottom: 18px;
  box-shadow: 0 18px 50px rgba(33, 27, 23, 0.18);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 50%;
  max-width: min(920px, calc(100vw - 36px));
  padding: 18px;
  position: fixed;
  transform: translateX(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 100%;
  z-index: 100;
}

.cookie-banner--hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}

.cookie-banner__text strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.cookie-banner__text p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.cookie-banner__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-banner__actions a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cookie-button {
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 42px;
  padding: 9px 14px;
}

.cookie-button--primary {
  background: var(--clay);
  color: #fff;
}

.cookie-button--primary:hover {
  background: var(--clay-dark);
}

.cookie-button--secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.privacy-page {
  margin: 0 auto;
  max-width: 820px;
  padding: 72px 28px 92px;
}

.privacy-page h1 {
  margin-bottom: 18px;
}

.privacy-page h2 {
  font-size: 1.65rem;
  margin: 42px 0 12px;
}

.privacy-page p,
.privacy-page li {
  color: #3d332d;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
    position: static;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .home-hero,
  .featured-post,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
  }

  .home-hero__media {
    min-height: 340px;
    order: 2;
  }

  .home-hero__content {
    padding: 48px 24px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .article-hero {
    min-height: 0;
    padding: 56px 22px;
  }

  .article-hero__inner {
    padding-top: 0;
  }

  .toc {
    position: static;
  }

  .cookie-banner {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .section,
  .article-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .featured-post__body,
  .recommendation,
  .callout,
  .post-card {
    padding: 22px;
  }

  .button {
    width: 100%;
  }

  .cookie-banner {
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }

  .cookie-banner__actions,
  .cookie-button {
    width: 100%;
  }

  .cookie-banner__actions a {
    text-align: center;
    width: 100%;
  }
}
