/* The Coeliac Parent - live site (12 Oct 2026)
   Brand: forest #1B3D2F, sage #52796F, cream #F4EFE4, clay #C4A484, charcoal #2F2F2F,
   teal #2BB3A3 (decorative), teal dark #16796E (text-safe), gold #C99A2E (badge).
   Never hazard red. Fonts are self-hosted (no third-party requests). */

@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/PlayfairDisplay-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --forest: #1B3D2F;
  --sage: #52796F;
  --sage-text: #40665B; /* sage darkened for small-text contrast (AA) */
  --cream: #F4EFE4;
  --cream-deep: #EAE3D3;
  --clay: #C4A484;
  --charcoal: #2F2F2F;
  --teal: #2BB3A3;
  --teal-dark: #16796E;
  --teal-light: #D5F0EC;
  --gold: #C99A2E;
  --gold-light: #F3E6C4;
  --white: #FFFDF8;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(27, 61, 47, .10);
  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--charcoal); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--forest); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; }
.eyebrow { font-family: var(--sans); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-text); margin-bottom: .6rem; }
.small { font-size: .92rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section--white { background: var(--white); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest h2, .section--forest h3 { color: var(--cream); }
.section--forest a { color: var(--gold-light); }
.section--teal { background: var(--teal-light); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--cream); padding: .75rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--cream-deep); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--forest); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.nav a { text-decoration: none; font-weight: 700; color: var(--forest); padding: .35rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--teal); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; font-family: var(--sans); font-weight: 800; font-size: 1.02rem; text-decoration: none; border: 2px solid var(--forest); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--forest); color: var(--cream); }
.btn--primary:hover { background: #24503e; color: var(--cream); }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--white); color: var(--forest); }
.btn--small { min-height: 42px; padding: .5rem 1.1rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero */
.hero { padding: 2.5rem 0 3rem; background: radial-gradient(ellipse at 85% 30%, var(--teal-light) 0, rgba(213,240,236,0) 60%), var(--cream); overflow: hidden; }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
.hero__art { justify-self: center; width: min(68vw, 300px); position: relative; }
.hero__art::before { content: ""; position: absolute; inset: 12% -6% -2%; background: var(--gold-light); border-radius: 50%; z-index: 0; }
.hero__art img { position: relative; z-index: 1; }
.hero h1 { margin-bottom: .35em; }
.hero h1 span { color: var(--teal-dark); display: block; }

/* Founder story */
.story { display: grid; gap: 2rem; }
.story__card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border-top: 6px solid var(--teal); }
.signoff { font-family: var(--serif); font-size: 1.35rem; color: var(--forest); margin: 0; }
.pull { font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--forest); line-height: 1.25; margin: 0; }
.pull small { display: block; font-family: var(--sans); font-size: 1rem; color: var(--sage-text); margin-top: .75rem; font-weight: 700; }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p { flex: 1 0 auto; }
.card .btn { align-self: flex-start; }
.card__tag { display: inline-block; align-self: flex-start; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); background: var(--teal-light); padding: .2rem .6rem; border-radius: 999px; margin-bottom: .75rem; }

/* School and lunchbox kit page */
.disclosure-box { background: var(--gold-light); border-left: 6px solid var(--gold); border-radius: 12px; padding: 1.1rem 1.25rem; margin: 0 0 2rem; }
.disclosure-box p { margin: 0 0 .5em; }
.disclosure-box p:last-child { margin-bottom: 0; }
.ad-label { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--forest); color: var(--cream); padding: .1rem .45rem; border-radius: 6px; margin-right: .4rem; vertical-align: .1em; }
.product { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.product__num { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--teal-light); color: var(--forest); font-weight: 800; margin-bottom: .6rem; }
.links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border-radius: 999px; border: 2px solid var(--forest); text-decoration: none; font-weight: 700; color: var(--forest); }
.links a:hover { background: var(--cream); }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.6rem; margin-top: 2rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .4rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .6rem; border-bottom: 1px solid var(--cream-deep); }
.legal th { color: var(--forest); }

/* Hero brand */
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); }
.hero__tagline { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 3.6vw, 2rem); color: var(--teal-dark); line-height: 1.2; margin: -.1em 0 1rem; }
.hero__mark { position: relative; z-index: 1; width: 100%; height: auto; display: block; }
.hero__art { width: min(52vw, 210px); }
.hero .hero__art::before { inset: -6%; }

/* Etsy call to action */
.cta { text-align: center; max-width: 760px; }
.btn--light, .section--forest .btn--light { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn--light:hover, .section--forest .btn--light:hover { background: var(--white); color: var(--forest); }

/* Footer */
.site-footer { background: var(--forest); color: var(--cream); padding: 2.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--cream); }
.site-footer .tagline { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin-bottom: 1rem; }
.site-footer .tagline span { display: block; font-size: 1.05rem; margin-top: .3rem; color: #e6dfd0; }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.disclaimer { border-top: 1px solid rgba(244, 239, 228, .25); margin-top: 1.5rem; padding-top: 1.25rem; color: #e6dfd0; }
.disclaimer p { margin-bottom: .6em; }

/* Larger screens */
@media (min-width: 720px) {
  .section { padding: 4.5rem 0; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 4rem 0 4.5rem; }
  .hero .wrap { grid-template-columns: 1.25fr .75fr; }
  .hero__art { width: 100%; max-width: 330px; }
  .story { grid-template-columns: .8fr 1.2fr; align-items: center; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}
