/* Living in Sherman TX
   Layout: one centered column (max 72rem) on a mint-tinted page. Deep-green hero bands sit on
   rolling "Grayson County hills"; guide pages pair a sticky "On this page" list with the article. */
:root {
  --bg: #F2F7F0;
  --surface: #FFFFFF;
  --ink: #14301E;
  --muted: #4A6454;
  --line: #D2E2D5;
  --green: #1D6B3B;
  --on-green: #FFFFFF;
  --deep: #0F3B22;
  --on-deep: #EAF5EC;
  --on-deep-muted: #B9D4C1;
  --leaf: #7DBE55;
  --mint: #E3F1E5;
  --pecan: #8A5A2B;
  --pecan-soft: #F7ECDF;
  --sun: #F3D36B;
  --hill-1: #2F7A45;
  --canopy-1: #3E8E4F;
  --canopy-2: #5FA85E;
  --trunk: #6B4423;
  --coat: #B8752F;
  --letter: #FFFFFF;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1911; --surface: #14241A; --ink: #E2EFE5; --muted: #A2BCA8; --line: #284030;
    --green: #7BD096; --on-green: #0B1A10; --deep: #0A2415; --on-deep: #E2EFE5; --on-deep-muted: #9DBBA6;
    --leaf: #8FCB6B; --mint: #18301F; --pecan: #E3AC72; --pecan-soft: #2A2016; --sun: #E7C659;
    --hill-1: #1C4A2B; --canopy-1: #2F6E3E; --canopy-2: #468A4B; --trunk: #8A5E38; --coat: #D39A55; --letter: #F4F4F0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1911; --surface: #14241A; --ink: #E2EFE5; --muted: #A2BCA8; --line: #284030;
  --green: #7BD096; --on-green: #0B1A10; --deep: #0A2415; --on-deep: #E2EFE5; --on-deep-muted: #9DBBA6;
  --leaf: #8FCB6B; --mint: #18301F; --pecan: #E3AC72; --pecan-soft: #2A2016; --sun: #E7C659;
  --hill-1: #1C4A2B; --canopy-1: #2F6E3E; --canopy-2: #468A4B; --trunk: #8A5E38; --coat: #D39A55; --letter: #F4F4F0;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; color: var(--ink); font-weight: 800; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.label {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  margin: 0 0 .35rem; color: var(--green);
}

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: .75rem 1.25rem; padding-block: .7rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-mark .bm-bg { fill: var(--green); }
.brand-mark .bm-tree { fill: var(--surface); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.1; display: block; }
.brand-sub { font-size: .78rem; color: var(--muted); display: block; }
.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: thin; }
.main-nav a {
  display: block; padding: .42rem .7rem; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.main-nav a:hover { background: var(--mint); }
.main-nav a[aria-current="page"] { background: var(--mint); color: var(--green); }
.btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px;
  background: var(--green); color: var(--on-green); font-weight: 700; text-decoration: none; font-size: .95rem; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.header-cta { order: 2; margin-left: auto; }
.main-nav { order: 3; flex-basis: 100%; }
.main-nav ul { margin-inline: -.7rem; }
@media (max-width: 30rem) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.08rem; }
  .header-cta { padding: .6rem; }
  .header-cta .cta-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- hills (signature edge under every hero) ---------- */
.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; display: block; }
.hills .hill-back { fill: var(--hill-1); }
.hills .hill-front { fill: var(--bg); }

/* ---------- page hero ---------- */
.page-hero { background: var(--deep); color: var(--on-deep); position: relative; }
.page-hero .wrap { padding-block: 1.5rem 4.75rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .92rem; color: var(--on-deep-muted); }
.crumbs li + li::before { content: "\203A"; margin-right: .35rem; }
.crumbs a { color: var(--on-deep); }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--leaf); margin: 0; }
.page-hero h1 { color: var(--on-deep); font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem); margin: .5rem 0 1.25rem; max-width: 24ch; }
.answer {
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
  padding: 1.1rem 1.35rem 1.2rem; max-width: 50rem;
}
.answer p:last-child { margin-bottom: 0; }
.page-meta { font-size: .92rem; color: var(--on-deep-muted); margin: 1rem 0 0; }

/* ---------- guide layout ---------- */
.page-grid { display: grid; gap: 2rem 3rem; padding-block: 1.5rem 3rem; }
@media (min-width: 62rem) { .page-grid { grid-template-columns: 14.5rem minmax(0, 1fr); } }
.toc { align-self: start; min-width: 0; }
@media (min-width: 62rem) { .toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 1rem); } }
.toc h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.toc a { display: block; text-decoration: none; color: var(--ink); font-size: .92rem; line-height: 1.35; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.toc a:hover { color: var(--green); border-color: var(--green); }
@media (min-width: 62rem) {
  .toc ol { display: grid; gap: 0; border-left: 2px solid var(--line); }
  .toc a { border: 0; border-radius: 0; background: none; padding: .35rem .9rem; color: var(--muted); }
}

.prose { min-width: 0; }
.prose > section { scroll-margin-top: 1rem; padding-block: .25rem 1.25rem; border-top: 1px solid var(--line); }
.prose > section:first-child { border-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.85rem); margin: 1.4rem 0 .8rem; }
.prose h3 { font-size: 1.15rem; margin: 1rem 0 .4rem; }
.prose p, .prose li { max-width: 65ch; }
.note { color: var(--muted); font-size: 1rem; }

ul.dots { padding-left: 1.2rem; margin: 0 0 1rem; }
ul.dots li { margin-bottom: .35rem; }
ul.dots li::marker { color: var(--leaf); }
ul.checks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .7rem; }
ul.checks li { position: relative; padding-left: 2.1rem; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--mint);
}
ul.checks li::after {
  content: ""; position: absolute; left: .47rem; top: .42em; width: .45rem; height: .75rem;
  border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
ol.steps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; counter-reset: step; }
ol.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: var(--on-green);
  font-family: var(--font-display); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums;
}

.kid-box, .tip { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0; max-width: 65ch; }
.kid-box { background: var(--mint); }
.tip { background: var(--pecan-soft); }
.tip .label { color: var(--pecan); }
.kid-box p:last-child, .tip p:last-child { margin-bottom: 0; }

.mini-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 0 0 1rem; }
.mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; min-width: 0; }
.mini-card h3 { margin-top: 0; }
.mini-card p { margin: 0; font-size: 1.02rem; }
.two-col, .school-grid { display: grid; gap: .5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.two-col h3, .school-grid h3 { margin-top: .5rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { padding: .65rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--mint); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
tbody th { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
caption { caption-side: top; text-align: left; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; padding: .85rem .9rem .35rem; }
.src { display: block; font-size: .8rem; color: var(--muted); }
.facts-note { font-size: .9rem; color: var(--muted); margin-top: -.5rem; }

.task-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.task-list label { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; }
.task-list input { width: 1.25rem; height: 1.25rem; margin: .28rem 0 0; accent-color: var(--green); flex: none; }
.task-list input:checked + span { color: var(--muted); text-decoration: line-through; }

ol.timeline { list-style: none; padding: 0; margin: 1rem 0 1rem .55rem; border-left: 3px solid var(--line); }
ol.timeline li { position: relative; padding: 0 0 1.1rem 1.5rem; }
ol.timeline li::before {
  content: ""; position: absolute; left: -.72rem; top: .3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--leaf); border: 3px solid var(--bg);
}
ol.timeline .yr { font-family: var(--font-display); font-weight: 800; color: var(--green); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
ol.timeline p { margin: .1rem 0 0; }

.faq-item { padding-block: .6rem; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { margin: .3rem 0 .35rem; font-size: 1.1rem; }
.faq-item p { margin: 0; }

.related { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr)); list-style: none; padding: 0; margin: 0 0 1rem; }
.related a {
  display: flex; gap: .7rem; align-items: center; height: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.3;
}
.related a:hover { border-color: var(--green); color: var(--green); }
.related .icon { color: var(--green); }

.sources ol { padding-left: 1.3rem; margin: 0; font-size: .92rem; color: var(--muted); }
.sources li { margin-bottom: .3rem; overflow-wrap: anywhere; }

.news-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem; }
.news-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.news-item time { font-size: .85rem; font-weight: 700; color: var(--green); letter-spacing: .04em; text-transform: uppercase; }
.news-item h3 { margin: .25rem 0 .4rem; }
.news-item p { margin: 0 0 .4rem; }
.news-item .src { font-size: .85rem; }

.dir-group { margin-bottom: 1.5rem; }
.dir-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.dir-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem 1rem; min-width: 0; }
.dir-list strong { display: block; }
.dir-list span { font-size: .98rem; color: var(--muted); }

.fact-group { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; counter-reset: none; }
.fact-group li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .9rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; scroll-margin-top: 1rem; }
.fact-group li:target { border-color: var(--pecan); box-shadow: 0 0 0 3px var(--pecan-soft); }
.fact-num { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--pecan); font-variant-numeric: tabular-nums; }
.fact-group p { margin: 0; }

/* ---------- home ---------- */
.home-hero { background: var(--deep); color: var(--on-deep); position: relative; }
.home-hero .wrap { display: grid; gap: 1.5rem 3rem; padding-block: 2.25rem 5rem; align-items: center; }
@media (min-width: 56rem) { .home-hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.home-hero h1 { font-size: clamp(2.5rem, 1.4rem + 4.5vw, 4.4rem); color: var(--on-deep); margin: .35rem 0 1rem; letter-spacing: -.015em; line-height: 1.02; }
.home-hero h1 span { color: var(--leaf); }
.home-hero .answer { margin-bottom: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-ghost { background: transparent; color: var(--on-deep); box-shadow: inset 0 0 0 2px var(--on-deep-muted); }
.illustration { margin: 0; justify-self: center; width: 100%; max-width: 30rem; }
.illustration svg { width: 100%; height: auto; display: block; }
.illustration figcaption { font-size: .92rem; color: var(--on-deep-muted); text-align: center; margin-top: .4rem; }
.il-sun { fill: var(--sun); }
.il-hill { fill: var(--hill-1); }
.il-canopy-1 { fill: var(--canopy-1); }
.il-canopy-2 { fill: var(--canopy-2); }
.il-trunk { fill: var(--trunk); }
.il-branch { stroke: var(--trunk); fill: none; stroke-width: 9; stroke-linecap: round; }
.il-hook { stroke: var(--on-deep-muted); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.il-coat { fill: var(--coat); }
.il-coat-line { stroke: var(--deep); stroke-width: 2; fill: none; opacity: .45; }
.il-letter { fill: var(--letter); stroke: var(--deep); stroke-width: 1.2; }

.home-section { padding-block: 2.25rem .5rem; }
.home-section > h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin: 0 0 .35rem; }
.section-intro { color: var(--muted); margin: 0 0 1.25rem; max-width: 60ch; }

.funfact {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.4rem; align-items: start;
  background: var(--pecan-soft); border: 2px solid color-mix(in srgb, var(--pecan) 40%, transparent);
  border-radius: calc(var(--radius) + 4px); padding: 1.35rem 1.5rem; margin-top: -2.25rem; position: relative; z-index: 1;
}
.ff-badge { width: 4.25rem; height: 4.25rem; border-radius: 50%; background: var(--pecan); display: grid; place-items: center; }
.ff-badge svg { width: 2.4rem; height: 2.4rem; }
.ff-badge .nut { fill: var(--pecan-soft); }
.ff-badge .nut-line { stroke: var(--pecan); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.funfact h2 { font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pecan); margin: .15rem 0 .1rem; font-family: var(--font-body); font-weight: 700; }
.ff-num { font-size: .9rem; color: var(--muted); margin: 0 0 .5rem; font-variant-numeric: tabular-nums; }
.ff-text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + .9vw, 1.55rem); line-height: 1.35; margin: 0 0 .8rem; max-width: 52ch; }
.ff-foot { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .95rem; margin: 0; color: var(--muted); }
.ff-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: var(--surface); color: var(--pecan); }
.ff-foot a { color: var(--pecan); font-weight: 700; }
@media (max-width: 34rem) {
  .funfact { grid-template-columns: minmax(0, 1fr); }
  .ff-badge { width: 3.25rem; height: 3.25rem; }
  .ff-badge svg { width: 1.9rem; height: 1.9rem; }
}

.glance { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.glance li { border-top: 3px solid var(--leaf); padding-top: .6rem; }
.glance strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--green); line-height: 1.1; font-variant-numeric: tabular-nums; }
.glance span { color: var(--muted); font-size: 1rem; }
.glance-src { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

.paths { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.paths a {
  display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--green); color: var(--on-green); text-decoration: none;
}
.paths a:hover { filter: brightness(1.08); }
.paths .q { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.25; }
.paths .go { font-size: .98rem; opacity: .92; display: inline-flex; align-items: center; gap: .35rem; }

.hubs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.hubs a {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem .9rem; height: 100%; padding: 1.1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.hubs a:hover { border-color: var(--green); }
.hub-icon { grid-row: span 2; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.hub-icon .icon { width: 1.4rem; height: 1.4rem; }
.hubs .t { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.hubs .d { color: var(--muted); font-size: 1rem; line-height: 1.45; }

.story { display: grid; gap: 1.5rem 3rem; align-items: start; }
@media (min-width: 56rem) { .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.story p { max-width: 60ch; }

.home-faq { max-width: 50rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep); margin-top: 3rem; position: relative; }
.site-footer .wrap { padding-block: 2.5rem 2rem; }
.footer-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-note { border-top: 1px solid color-mix(in srgb, var(--on-deep) 20%, transparent); margin-top: 2rem; padding-top: 1.25rem; font-size: .9rem; color: var(--on-deep-muted); }
.footer-note p { margin: 0 0 .4rem; max-width: 75ch; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
