/* Pith & Peel Home: farmhouse-modern theme. Airy, light warm neutrals, thin rules, line icons, a quiet citrus accent.
   Fonts are self-hosted (see /assets/fonts, OFL licenses included): Plus Jakarta Sans (headings) + Figtree (body).
   Mobile-first: base rules are for phones, min-width queries add the wider layouts. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/plus-jakarta-sans-latin-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --cream: #fff8ee;            /* page background: the owner's favorite, do not change */
  --linen: #fbf3e5;            /* slightly deeper cream for alternating bands */
  --oat: #f3ebdc;              /* soft oat panels */
  --greige: #e7dfd1;           /* greige fills (table heads, chips) */
  --white: #ffffff;
  --ink: #2e2923;              /* warm charcoal */
  --ink-soft: #5b5349;         /* secondary text (6.9:1 on cream) */
  --sage: #a8b79f;             /* decorative sage */
  --sage-deep: #52674b;        /* sage text/accents (5.6:1 on cream) */
  --sage-wash: #edf0e6;
  --orange: #f4a259;           /* the logo's orange: decorative accent only, never text */
  --orange-deep: #a8500e;      /* accessible link/button orange (5.5:1 on cream and white) */
  --orange-wash: #fcebd6;
  --line: #e3d9c7;             /* thin rules */
  --serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* heading face (name kept for older rules) */
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* the logo keeps its v1 type stack exactly */
  --logo-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --logo-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --gutter: 1.35rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1.0625rem/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(100% - 2 * var(--gutter), 66rem); margin-inline: auto; }
a { color: var(--orange-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #7a3708; text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip-link:focus { left: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.orn { width: 1.5rem; height: 1.5rem; flex: none; display: inline-block; vertical-align: middle; color: var(--orange); }
.orn-xs { width: 1rem; height: 1rem; }
.orn-sm { width: 1.25rem; height: 1.25rem; }
.orn-lg { width: 2.6rem; height: 2.6rem; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--ink); font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5.6vw, 3rem); margin: .4rem 0 1rem; line-height: 1.12; letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 3rem 0 .8rem; }
h3 { font-size: 1.2rem; margin: 1.8rem 0 .4rem; }
strong { font-weight: 650; }
p, ul, ol { margin: 0 0 1.1rem; }
.muted { color: var(--ink-soft); font-size: .92em; }
.center { text-align: center; }

/* ---- Header / logo (logo artwork and type stacks are unchanged from v1) ---- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--logo-serif); font-size: 1.25rem; font-weight: 700; letter-spacing: 0; }
.brand-sub { font-family: var(--logo-sans); font-size: .78rem; color: var(--ink-soft); }
.nav-toggle { display: inline-block; background: transparent; border: 1px solid var(--ink-soft); border-radius: var(--radius); padding: .5rem 1rem; font: inherit; font-size: .92rem; letter-spacing: .04em; color: var(--ink); cursor: pointer; min-height: 2.75rem; }
.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; list-style: none; margin: 0; padding: .4rem 0 .6rem; }
.site-nav a { display: block; text-decoration: none; color: var(--ink); font-size: 1rem; padding: .7rem .1rem; border-top: 1px solid var(--line); }
.site-nav a:hover { color: var(--orange-deep); }
.site-nav a[aria-current="page"] { color: var(--orange-deep); font-weight: 600; }
@media (min-width: 52.01rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; gap: 2rem; padding: 0; }
  .site-nav a { border: 0; padding: .4rem 0; font-size: .95rem; letter-spacing: .02em; border-bottom: 1px solid transparent; }
  .site-nav a:hover { border-bottom-color: var(--orange); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
}

.notice-bar { background: var(--oat); border-bottom: 1px solid var(--line); font-size: .82rem; }
.notice-bar p { margin: 0; padding: .45rem 0; color: var(--ink-soft); line-height: 1.5; }

.main { padding: 0 0 4rem; }
.prose { max-width: 44rem; margin-inline: auto; }
.prose-narrow { max-width: 44rem; margin-inline: auto; }
.page-header { margin: 2.6rem 0 1.6rem; }
.hub-header { max-width: 44rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 600; color: var(--sage-deep); margin: 0; display: flex; align-items: center; gap: .55rem; }
.lede { font-family: var(--sans); font-weight: 400; font-size: clamp(1.15rem, 2.2vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); margin: 0 0 1rem; }
.verified-badge { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-soft); margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); }
.verified-badge .orn { color: var(--sage-deep); }
.verified-label { font-weight: 600; color: var(--sage-deep); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }

/* ---- Article ---- */
.article-hero { margin: 1.6rem 0 2.2rem; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.article-body > h2 { display: flex; align-items: center; gap: .6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); margin-top: 3rem; }
.article-body > h2::before { content: ""; width: 1.25rem; height: 1.25rem; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4a259' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 12V5M12 12l6.06-3.5M12 12l6.06 3.5M12 12v7M12 12l-6.06 3.5M12 12L5.94 8.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.article-body > h2 span[id] { display: none; }
.article-body h2 { scroll-margin-top: 5.5rem; }

.quick-take { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--orange); border-radius: var(--radius); padding: 1.2rem 1.4rem 1.1rem; margin: 1.8rem 0; }
.quick-take > :last-child { margin-bottom: 0; }
.quick-take-title { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; margin: 0 0 .6rem; color: var(--orange-deep); }
.quick-take ul { padding-left: 1.1rem; }
.quick-take li { margin-bottom: .5rem; }
.quick-take li::marker { color: var(--orange); }

.callout { background: var(--sage-wash); border: 1px solid #d9e0cf; border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .98rem; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; margin: 0 0 .3rem; }
.callout.caution { background: var(--orange-wash); border-color: #f2d6b3; }
.fineprint { font-size: .85rem; color: var(--ink-soft); margin: 2.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }

.pullquote { margin: 2.4rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 2px solid var(--orange); font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.5; letter-spacing: -.015em; color: var(--ink); }
.pullquote p { margin: 0; }

/* evidence disclosure: tucked away, thin rules, line style */
details.evidence { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.6rem 0; padding: 0; }
details.evidence + details.evidence { margin-top: -1.6rem; border-top: 0; }
details.evidence > summary { cursor: pointer; list-style: none; font-weight: 600; font-size: .98rem; color: var(--ink); padding: 1rem 0; display: flex; align-items: center; gap: .8rem; min-height: 3rem; }
details.evidence > summary::-webkit-details-marker { display: none; }
details.evidence > summary:hover { color: var(--orange-deep); }
details.evidence > summary::after { content: "+"; margin-left: auto; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--orange-deep); }
details.evidence[open] > summary::after { content: "\2212"; }
details.evidence > :last-child { margin-bottom: 1.2rem; }

/* tables: thin rules (stacked cards on phones) */
.table-wrap { margin: .6rem 0 1.4rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--oat); font-family: var(--sans); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink); border-bottom: 1px solid var(--greige); }
tbody tr:last-child td { border-bottom: 0; }
caption { text-align: left; padding: .6rem .8rem; font-weight: 600; font-family: var(--serif); }
.dodont thead th:nth-child(3) { background: var(--sage-wash); color: var(--sage-deep); }
.dodont thead th:nth-child(4) { background: var(--orange-wash); color: #7a3708; }
.dodont tbody td:nth-child(3) { background: #f8faf4; border-left: 2px solid var(--sage); }
.dodont tbody td:nth-child(4) { background: #fffaf3; border-left: 2px solid var(--orange); }
@media (max-width: 40rem) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; left: -9999px; }
  tbody tr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; padding: .4rem .1rem; }
  td { border: 0; padding: .4rem .9rem; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--sage-deep); }
  .dodont tbody td:nth-child(3), .dodont tbody td:nth-child(4) { margin: .3rem .5rem; width: auto; border-radius: 2px; }
}
@media (min-width: 40.01rem) {
  .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); -webkit-overflow-scrolling: touch; }
  table { min-width: 34rem; }
}

/* sources + footnote citations */
.sources { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .93rem; }
.sources h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.sources ol { padding-left: 1.4rem; margin-bottom: 0; }
.sources li { margin-bottom: .6rem; overflow-wrap: anywhere; }
.sources li::marker { color: var(--orange-deep); font-weight: 600; }
.sources li:target { background: var(--orange-wash); outline: 6px solid var(--orange-wash); border-radius: 2px; }
.cite { font-size: .72em; line-height: 0; margin-left: .12em; font-family: var(--sans); }
.cite a { color: var(--orange-deep); text-decoration: none; font-weight: 700; padding: 0 .08em; }
.cite a:hover { text-decoration: underline; }
.cite-sep { color: var(--ink-soft); padding-right: .05em; }

.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin: 1.4rem 0 1.8rem; }
.toc strong { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.toc ol { margin: .4rem 0 0; padding-left: 1.2rem; }

.dd { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.2rem 0; }
.dd > div { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--sage); border-radius: var(--radius); padding: .9rem 1.1rem; }
.dd > div:nth-child(2n) { border-top-color: var(--orange); }
.dd h3 { margin-top: 0; font-size: 1.05rem; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: .6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border: 1px solid var(--sage-deep); border-radius: 50%; background: var(--sage-wash); }

/* ---- Buttons, tags ---- */
.btn { display: inline-block; background: var(--orange-deep); color: #fff; text-decoration: none; padding: .85rem 1.7rem; border: 1px solid var(--orange-deep); border-radius: var(--radius); font-weight: 600; font-size: .95rem; letter-spacing: .04em; margin: .25rem .5rem .25rem 0; transition: background .2s, color .2s; }
.btn:hover { background: #7a3708; border-color: #7a3708; color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: .5rem; }
.tag-soon { color: var(--orange-deep); }

/* ---- Home ---- */
.hero { padding: 1.4rem 0 3.4rem; }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.hero-media { order: -1; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.hero h1 { font-size: clamp(2.3rem, 8vw, 3.9rem); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; margin: 1rem 0 1.3rem; max-width: 15ch; }
.hero .lede { max-width: 31rem; font-size: clamp(1.1rem, 2.4vw, 1.25rem); }
.hero-actions { margin-top: 1.8rem; }
@media (min-width: 52rem) {
  .hero { padding: 3.2rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 5fr 6fr; gap: 4.5rem; }
  .hero-media { order: 0; }
  .hero-media img { aspect-ratio: 5 / 4.4; }
}

.band { padding: 4rem 0; }
.band-white { background: var(--white); }
.band-linen { background: var(--linen); }
.band-oat { background: var(--oat); }
.band-cream { background: var(--cream); }
.band h2 { margin-top: 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.4rem; }
.section-head h2 { margin-bottom: 0; }
.rule-mark { display: flex; align-items: center; gap: 1rem; justify-content: center; margin: 0 auto 1.1rem; color: var(--orange); max-width: 12rem; }
.rule-mark::before, .rule-mark::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.card-grid { display: grid; gap: 2.4rem 1.6rem; grid-template-columns: 1fr; margin-top: 0; }
@media (min-width: 36rem) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .card-grid { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; } }
.img-card { position: relative; list-style: none; }
.img-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: opacity .3s; }
.img-card:hover img, .img-card:focus-within img { opacity: .92; }
.img-card-body { padding: 1rem 0 0; }
.img-card-body h2, .img-card-body h3 { margin: 0 0 .4rem; font-size: 1.2rem; line-height: 1.25; }
.img-card-body h2 a, .img-card-body h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.img-card:hover .img-card-body a, .img-card:focus-within .img-card-body a { background-size: 100% 1px; }
.img-card-body h2 a::after, .img-card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.img-card-body a:focus-visible { outline-offset: 6px; }
.img-card-body p { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--ink-soft); }
.guide-grid { display: grid; gap: 2.4rem 1.6rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 1.6rem 0 2.4rem; }
@media (min-width: 36rem) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }

.promise-inner { display: grid; gap: 1.2rem; max-width: 44rem; text-align: center; justify-items: center; }
.promise h2 { margin-bottom: .2rem; }
.promise p { margin: 0; }
.promise .lede-sm { font-size: clamp(1.1rem, 2.2vw, 1.25rem); line-height: 1.65; color: var(--ink); }
.promise a { color: var(--orange-deep); }
.promise-icons { list-style: none; padding: 1.4rem 0 0; margin: .6rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem; width: 100%; border-top: 1px solid var(--greige); }
.promise-icons li { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-soft); line-height: 1.35; }
.promise-icons .orn { width: 1.9rem; height: 1.9rem; color: var(--sage-deep); }
@media (min-width: 36rem) { .promise-icons { grid-template-columns: repeat(4, 1fr); } }

.guide-list { list-style: none; padding: 0; margin: 0 auto; max-width: 46rem; border-top: 1px solid var(--line); }
.guide-item { display: flex; gap: 1.2rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line); position: relative; }
.guide-item img { width: 36%; max-width: 13rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); flex: none; }
.guide-item h3 { margin: .2rem 0 0; font-size: 1.1rem; line-height: 1.35; }
.guide-item h3 a { color: var(--ink); text-decoration: none; }
.guide-item:hover h3 a, .guide-item:focus-within h3 a { color: var(--orange-deep); }
.guide-item h3 a::after { content: ""; position: absolute; inset: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--oat); color: var(--ink); font-size: .95rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.site-footer a { color: #8f4309; }
.site-footer a:hover { color: #5e2a05; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding: 3rem 0 1.6rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer-brand { font-family: var(--logo-serif); font-size: 1.2rem; }
.footer-trade { color: var(--ink-soft); font-size: .9rem; }
.footer-heading { font-family: var(--sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; margin: 0 0 .8rem; color: var(--sage-deep); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { text-decoration: none; color: var(--ink); }
.footer-links a:hover { color: var(--orange-deep); text-decoration: underline; }
.footer-disclaimer { padding: 1.3rem 0; border-top: 1px solid var(--greige); font-size: .88rem; color: var(--ink-soft); }
.footer-disclaimer p { margin: 0; max-width: 52rem; }
.footer-disclaimer a { color: #8f4309; }
.footer-meta { padding: 1.3rem 0 2.4rem; border-top: 1px solid var(--greige); color: var(--ink-soft); font-size: .85rem; }
.footer-meta p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
@media print { .site-header, .site-nav, .notice-bar, .site-footer, .skip-link { display: none; } body { background: #fff; } }
@media (min-width: 52rem) {
  .band { padding: 5.5rem 0; }
  .guide-item img { width: 13rem; }
}
