/* ==========================================================================
   Oakline Screen Co. — longwoodrescreening.com
   Direction 3: organic botanical, calm. Forest / moss / cream.
   Humanist sans throughout, no serif, no webfonts, no external requests.
   Layout spine: one long narrative scroll, numbered chapters.
   ========================================================================== */

:root {
  --forest:      #25402B;
  --forest-deep: #16281A;
  --moss:        #7C9473;
  --moss-deep:   #5E7757;
  --moss-tint:   #E9EEE4;
  --cream:       #FBF8F1;
  --paper:       #FFFDF7;
  --ink:         #1E2A20;
  --body:        #4C5B4E;
  --muted:       #6E7B6F;
  --line:        #DFDACD;
  --line-soft:   #EDE8DC;
  --clay:        #9C5233;   /* used only for unverified [NEED:] markers */
  --clay-tint:   #FBF0E9;

  --measure: 34rem;         /* ~66 characters at the body size */
  --wrap: 74rem;

  /* Humanist sans, system faces only. No @font-face, no network request. */
  --sans: Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans",
          source-sans-pro, "Segoe UI", "Trebuchet MS", system-ui,
          -apple-system, sans-serif;
}

*, *::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: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--forest);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.014em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.35rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.03rem; }

p { margin: 0 0 1.15em; }
a { color: var(--forest); text-decoration-color: var(--moss); text-underline-offset: 0.18em; }
a:hover { color: var(--moss-deep); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--moss-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
strong { color: var(--forest); font-weight: 600; }
small { font-size: 0.86rem; }
img, svg { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.4rem; }
.prose { max-width: var(--measure); }
.prose-wide { max-width: 44rem; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--forest);
  color: var(--cream); padding: 0.7rem 1.1rem; z-index: 50;
}
.skip:focus { left: 0.6rem; top: 0.6rem; }

/* --------------------------------------------------------------- header  */

.site-head {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; min-height: 4.4rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--forest); padding: 0.6rem 0;
}
.brand-logo { height: 42px; width: auto; flex: none; display: block; }
.brand-name {
  font-size: 1.12rem; font-weight: 600; letter-spacing: 0.005em; line-height: 1.1;
}
.brand-name span {
  display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--moss-deep); margin-top: 0.18rem;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 1.15rem; }
.nav a {
  font-size: 0.95rem; text-decoration: none; color: var(--body);
  padding: 0.45rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--forest); border-bottom-color: var(--moss); }
.nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--forest); }
.nav .nav-cta {
  background: var(--forest); color: var(--cream); border-radius: 999px;
  padding: 0.5rem 1.05rem; border-bottom: 0;
}
.nav .nav-cta:hover { background: var(--forest-deep); color: var(--cream); border-bottom-color: transparent; }

/* ----------------------------------------------------------------- hero  */

.hero {
  position: relative; overflow: hidden;
  background: var(--forest);
  color: #E4EADF;
  padding: clamp(3.4rem, 8vw, 6.2rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero-canopy {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.5;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--cream); max-width: 17ch; }
.hero .lede {
  font-size: clamp(1.08rem, 2.1vw, 1.28rem);
  color: #D3DCCB; max-width: 40rem; line-height: 1.6;
}
.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--moss); margin: 0 0 1.1rem;
}
.hero .eyebrow { color: #A9BFA0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.7rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 0.82rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--cream); color: var(--forest); }
.btn-primary:hover { background: #fff; color: var(--forest-deep); }
.btn-ghost { border-color: rgba(233,238,228,0.45); color: #E4EADF; }
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); background: rgba(255,255,255,0.06); }
.btn-solid { background: var(--forest); color: var(--cream); }
.btn-solid:hover { background: var(--forest-deep); color: var(--cream); }
.btn-line { border-color: var(--forest); color: var(--forest); }
.btn-line:hover { background: var(--moss-tint); }

.hero-facts {
  margin-top: 2.6rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(233,238,228,0.22);
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.hero-facts div { font-size: 0.93rem; color: #C6D2BE; }
.hero-facts b { display: block; color: var(--cream); font-size: 1.02rem; font-weight: 600; margin-bottom: 0.2rem; }

/* --------------------------------------------------------- page headers  */

.page-head { background: var(--forest); color: #D3DCCB; padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2.2rem, 5vw, 3.2rem); position: relative; overflow: hidden; }
.page-head h1 { color: var(--cream); max-width: 22ch; }
.page-head .lede { font-size: 1.1rem; max-width: 42rem; color: #D3DCCB; }
.crumbs { font-size: 0.83rem; color: #A9BFA0; margin-bottom: 1rem; letter-spacing: 0.02em; }
.crumbs a { color: #C6D2BE; }

/* -------------------------------------------------------------- section  */

section { padding: clamp(2.8rem, 6.5vw, 5rem) 0; }
section.tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.band-paper { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band-moss  { background: var(--moss-tint); border-top: 1px solid #DCE4D5; border-bottom: 1px solid #DCE4D5; }
.band-deep  { background: var(--forest); color: #C6D2BE; }
.band-deep h2, .band-deep h3 { color: var(--cream); }
.band-deep a { color: var(--cream); text-decoration-color: var(--moss); }

/* Signature move: numbered chapters with a hairline leaf rule. The site is
   one continuous argument — canopy, debris, mesh — so the chapters are
   numbered like a walk-through rather than blocked out as feature cards. */
.chapter { display: grid; gap: clamp(1.4rem, 4vw, 3.2rem); grid-template-columns: 1fr; }
@media (min-width: 62rem) {
  .chapter { grid-template-columns: 12.5rem 1fr; align-items: start; }
  .chapter-mark { position: sticky; top: 6rem; }
}
.chapter + .chapter { margin-top: clamp(2.6rem, 6vw, 4.4rem); padding-top: clamp(2.6rem, 6vw, 4.4rem); border-top: 1px solid var(--line); }
.chapter-num {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.19em;
  text-transform: uppercase; color: var(--moss-deep);
  display: flex; align-items: center; gap: 0.55rem;
}
.chapter-num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (min-width: 62rem) { .chapter-num::after { display: none; } }
.chapter-mark p { font-size: 0.9rem; color: var(--muted); margin: 0.7rem 0 0; }
.chapter-body > :last-child { margin-bottom: 0; }
.chapter-body h2 { margin-top: 0; }

.section-head { max-width: 42rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p:last-child { margin-bottom: 0; }
.leaf-rule { display: block; width: 3.6rem; height: 10px; margin: 0 0 1.1rem; color: var(--moss); }

/* ---------------------------------------------------------------- cards  */

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.5rem 1.5rem 1.4rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card .card-icon { width: 30px; height: 30px; color: var(--moss-deep); margin-bottom: 0.9rem; display: block; }
.card-link { display: inline-block; margin-top: 0.9rem; font-weight: 600; font-size: 0.95rem; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--moss); background: #fff; }
a.card p { color: var(--body); }

.band-deep .card { background: rgba(255,255,255,0.055); border-color: rgba(233,238,228,0.2); }
.band-deep .card p { color: #C6D2BE; }

/* --------------------------------------------------------- quote / note  */

/* Ordinance quotations. The whole site rests on these, so they are set as
   evidence — monospace-free, indented, cited underneath. */
.ordinance {
  background: var(--paper); border-left: 3px solid var(--moss);
  border-radius: 0 10px 10px 0; padding: 1.3rem 1.4rem;
  margin: 1.6rem 0; font-size: 1.02rem;
}
.ordinance p { color: var(--forest); margin-bottom: 0.7rem; }
.ordinance p:last-child { margin-bottom: 0; }
.ordinance cite {
  display: block; font-style: normal; font-size: 0.84rem; color: var(--muted);
  line-height: 1.5;
}
.ordinance cite a { color: var(--moss-deep); }
.band-deep .ordinance { background: rgba(255,255,255,0.06); border-left-color: var(--moss); }
.band-deep .ordinance p { color: var(--cream); }
.band-deep .ordinance cite { color: #A9BFA0; }

.callout {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--moss-tint); padding: 1.3rem 1.4rem; margin: 1.7rem 0;
}
.callout h3 { margin-bottom: 0.35rem; font-size: 1.08rem; }
.callout > :last-child { margin-bottom: 0; }

/* [NEED: x] — deliberately loud. Nothing unverified ships quietly. */
.need {
  display: inline; background: var(--clay-tint); color: var(--clay);
  border: 1px dashed var(--clay); border-radius: 5px;
  padding: 0.05em 0.4em; font-size: 0.92em; font-weight: 600;
}
p.need, div.need { display: block; padding: 0.75rem 0.9rem; font-weight: 500; }

.pricing-note {
  border: 1px solid var(--line); border-left: 3px solid var(--clay);
  background: var(--paper); border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.2rem; margin: 1.5rem 0; font-size: 0.95rem;
}
.pricing-note strong { color: var(--clay); }

/* ---------------------------------------------------------------- lists  */

ul.plain, ol.plain { padding-left: 1.15rem; margin: 0 0 1.2rem; }
ul.plain li, ol.plain li { margin-bottom: 0.55rem; }
ul.plain li::marker { color: var(--moss); }
ol.plain li::marker { color: var(--moss-deep); font-weight: 600; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
ul.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.6rem; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 0.72rem; height: 0.72rem; border-radius: 50% 0 50% 50%;
  background: var(--moss); transform: rotate(45deg);
}
.band-deep ul.ticks li::before { background: var(--moss); }

dl.facts { margin: 0; }
dl.facts div { padding: 0.85rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.15rem 1.5rem; }
@media (min-width: 40rem) { dl.facts div { grid-template-columns: 11rem 1fr; } }
dl.facts dt { font-weight: 600; color: var(--forest); font-size: 0.95rem; }
dl.facts dd { margin: 0; }

/* ---------------------------------------------------------------- table  */

.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.96rem; }
caption { text-align: left; padding: 1rem 1.1rem 0; color: var(--muted); font-size: 0.88rem; }
th, td { text-align: left; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { color: var(--forest); font-weight: 600; font-size: 0.83rem; letter-spacing: 0.07em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--forest); }

/* ------------------------------------------------------------------ FAQ  */

.faq { margin-top: 1.5rem; }
.faq-item { border-top: 1px solid var(--line); padding: 1.35rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  font-size: 1.1rem; color: var(--forest); margin: 0 0 0.55rem;
  font-weight: 600; letter-spacing: -0.008em;
}
.faq-q .asked {
  display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--moss-deep); margin-bottom: 0.35rem;
}
.faq-item p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------- areas / stacks  */

.area-group + .area-group { margin-top: 2.4rem; }
.area-group h3 { margin-bottom: 0.3rem; }
.jur-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 999px;
  margin-bottom: 0.8rem;
}
.jur-city { background: var(--forest); color: var(--cream); }
.jur-county { background: var(--moss-tint); color: var(--forest); border: 1px solid var(--moss); }
.jur-mixed { background: var(--clay-tint); color: var(--clay); border: 1px dashed var(--clay); }

.nb-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-top: 1.2rem; }
.nb {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.15rem 1.2rem;
}
.nb h4 { margin-bottom: 0.3rem; }
.nb p { font-size: 0.94rem; margin-bottom: 0; color: var(--body); }

/* --------------------------------------------------------------- inline  */

.split { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 58rem) { .split { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.figure { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; }
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 0.85rem; line-height: 1.5; }
.band-deep .figure { background: rgba(255,255,255,0.05); border-color: rgba(233,238,228,0.2); }
.band-deep .figure figcaption { color: #A9BFA0; }

.sources { font-size: 0.87rem; color: var(--muted); }
.sources h2, .sources h3 { font-size: 1rem; }
.sources li { margin-bottom: 0.5rem; word-break: break-word; }

.cta-strip { background: var(--forest); color: #D3DCCB; }
.cta-strip h2 { color: var(--cream); }
.cta-strip .wrap { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 54rem) { .cta-strip .wrap { grid-template-columns: 1.4fr auto; } }

/* ---------------------------------------------------------------- footer */

.site-foot {
  background: var(--forest-deep); color: #A9BFA0;
  padding: clamp(2.6rem, 6vw, 3.8rem) 0 2rem; font-size: 0.94rem;
}
.site-foot a { color: #D3DCCB; }
.site-foot h4 { color: var(--cream); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.9rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 0.45rem; }
.foot-brand .brand-name { color: var(--cream); }
.footer-logo {
  height: 36px; width: auto; background: #fff; padding: 6px 12px;
  border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.foot-brand .brand-logo { height: 36px; width: auto; }
.foot-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(233,238,228,0.16);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between;
  font-size: 0.85rem; color: #8FA487;
}
.site-foot .need { background: rgba(255,255,255,0.07); color: #E7BFA8; border-color: #B4785A; }

/* ------------------------------------------------------------ lead form */

/* Same paper-on-cream, soft-cornered vocabulary as .card and .nb. Nothing
   here is a new visual language, just the existing one applied to inputs. */

.lead-form { margin: 1.5rem 0 0; }
.lead-form .field { margin-bottom: 1.05rem; }
.lead-form .field-row { display: grid; gap: 0 1.05rem; }
@media (min-width: 40rem) {
  .lead-form .field-row { grid-template-columns: 1fr 1fr; }
}
.lead-form label {
  display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--moss-deep); margin-bottom: 0.4rem;
}
.lead-form .hint {
  display: block; margin-top: 0.2rem; font-size: 0.88rem; font-weight: 400;
  letter-spacing: normal; text-transform: none; color: var(--muted);
  line-height: 1.5;
}
.lead-form .req { color: var(--clay); }
.lead-form input,
.lead-form select,
.lead-form textarea {
  display: block; width: 100%; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.72rem 0.85rem;
}
.lead-form textarea { min-height: 7.5rem; resize: vertical; line-height: 1.6; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--muted); opacity: 1; }
.lead-form input:hover,
.lead-form select:hover,
.lead-form textarea:hover { border-color: var(--moss); }
.lead-form input:focus-visible,
.lead-form select:focus-visible,
.lead-form textarea:focus-visible {
  outline: 2px solid var(--moss-deep); outline-offset: 2px;
  border-color: var(--moss); background: #fff;
}
.lead-form button { margin-top: 0.4rem; }
.form-foot {
  margin: 1rem 0 0; font-size: 0.88rem; color: var(--muted); line-height: 1.55;
}

@media print { .lead-form { display: none; } }

/* --------------------------------------------------------------- 404 etc */

.centered { text-align: center; }
.centered .lede, .centered .prose { margin-left: auto; margin-right: auto; }

@media print {
  .site-head, .nav, .cta-strip, .hero-actions { display: none; }
  body { background: #fff; color: #000; }
  .hero, .page-head, .band-deep { background: #fff; color: #000; }
  .hero h1, .page-head h1, .band-deep h2 { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
