/* The LYN Collective — site styles
   Palette: ink, sage-white paper, marsh green, one amber (the porch light). */
:root {
  --ink: #1f2a2a;
  --ink-soft: #46534f;
  --paper: #f4f6f2;
  --paper-deep: #e7ebe4;
  --white: #ffffff;
  --marsh: #3e6b58;
  --marsh-deep: #2f5445;
  --amber: #e0a33a;
  --line: #cfd6cf;
  --danger: #a4362a;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --measure: 62ch;
  --gutter: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--marsh-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-variation-settings: "opsz" 144, "SOFT" 60; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--ink-soft); }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section + .section { padding-top: 0; }
.section.tint { background: var(--paper-deep); padding-top: clamp(56px, 9vw, 120px); }
.section.ink { background: var(--ink); color: var(--paper); padding-top: clamp(56px, 9vw, 120px); }
.section.ink a { color: var(--paper); }
.section.ink a.btn.light { color: var(--ink); }
.section.ink a.btn.light:hover { color: var(--ink); }
.hero a.btn.quiet, .section.ink a.btn.quiet { color: var(--paper); border-color: var(--paper); }
.hero a.btn.quiet:hover, .section.ink a.btn.quiet:hover { background: var(--paper); color: var(--ink); }
.section.ink .lede { color: #c9d3cc; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { font-family: var(--display); font-size: 1.35rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand small { display: block; font-family: var(--body); font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0; line-height: 1.2; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 1rem; padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--amber); }
.nav .call { background: var(--marsh); color: var(--white); padding: 10px 16px; border-radius: 6px; }
.nav .call:hover { background: var(--marsh-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; color: var(--ink); }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.1rem; }
  .nav .call { text-align: center; margin-top: 8px; }
}

/* Buttons */
.btn { display: inline-block; font: inherit; font-size: 1.05rem; text-decoration: none; padding: 14px 22px; border-radius: 6px; border: 2px solid var(--marsh); background: var(--marsh); color: var(--white); cursor: pointer; }
.btn:hover { background: var(--marsh-deep); border-color: var(--marsh-deep); color: var(--white); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.quiet:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 28px; }
.actions .note { flex-basis: 100%; font-size: 0.95rem; color: var(--ink-soft); margin: 4px 0 0; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; color: var(--paper); isolation: isolate; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20, 28, 28, 0.95) 0%, rgba(20, 28, 28, 0.78) 40%, rgba(20, 28, 28, 0.35) 75%, rgba(20, 28, 28, 0.2) 100%); }
.hero .wrap { padding: clamp(80px, 14vw, 160px) 0 clamp(48px, 7vw, 88px); }
.hero h1 { max-width: 14ch; margin-bottom: 0.4em; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 40ch; color: #e9eee9; }
.hero .lamp { width: 64px; height: 4px; background: var(--amber); margin: 0 0 28px; border-radius: 2px; }
.hero .actions .note { color: #c9d3cc; }

/* Situations list */
.situations { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; }
.situations li { border-top: 2px solid var(--marsh); padding-top: 16px; }
.situations h3 { margin-bottom: 0.3em; }
.situations p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: step; display: grid; gap: 28px; max-width: 720px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--amber); padding-top: 2px; }
.steps h3 { margin-bottom: 0.25em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Two-column story */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.story img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } .story img { order: -1; } }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 36px; }
.person { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; }
.person img { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; }
.person .ph { width: 112px; height: 112px; border-radius: 50%; background: var(--paper-deep); display: grid; place-items: center; font-family: var(--display); font-size: 2rem; color: var(--marsh); }
.person h3 { margin-bottom: 0.1em; }
.person .role { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.6em; }
.person p { font-size: 1rem; margin: 0; }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; margin-top: 36px; }
.promises h3 { font-size: 1.2rem; }
.promises p { color: #c9d3cc; font-size: 1rem; margin: 0; }

/* Quotes */
.quotes { display: grid; gap: 36px; max-width: 760px; }
.quote { border-left: 4px solid var(--amber); padding-left: 24px; }
.quote blockquote { margin: 0 0 0.6em; font-family: var(--display); font-size: 1.25rem; line-height: 1.4; }
.quote blockquote p { margin: 0 0 0.7em; max-width: 60ch; }
.quote blockquote p:first-child { font-size: 1.5rem; font-style: italic; }
.quote figcaption { color: var(--ink-soft); font-size: 0.95rem; }
.sample { display: inline-block; font-size: 0.8rem; background: #f6e7c6; color: #6b4b12; border-radius: 4px; padding: 2px 8px; margin-bottom: 8px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 1.3rem; padding: 18px 36px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.6rem; color: var(--marsh); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-bottom: 1em; }
.faq details > div { padding-bottom: 16px; }
.faq-groups h2 { margin-top: 48px; }
.faq-groups h2:first-child { margin-top: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.ways { display: grid; gap: 20px; margin-top: 24px; }
.ways div { border-top: 1px solid var(--line); padding-top: 14px; }
.ways strong { display: block; font-size: 0.95rem; color: var(--ink-soft); font-weight: 400; }
.ways a { font-size: 1.25rem; font-family: var(--display); text-decoration: none; }
form.lead { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 4vw, 36px); }
.field { margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.95rem; margin-bottom: 6px; color: var(--ink-soft); }
label .req { color: var(--marsh-deep); font-size: 0.85rem; }
.field-error { color: var(--danger); font-size: 0.9rem; margin-top: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #aeb8b0; border-radius: 6px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--marsh); outline: 3px solid rgba(62, 107, 88, 0.25); outline-offset: 0; }
input.bad, select.bad, textarea.bad { border-color: var(--danger); }
textarea { min-height: 140px; resize: vertical; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.9rem; color: var(--ink-soft); margin: 8px 0 22px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--marsh); }
.consent label { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { margin-top: 16px; min-height: 24px; font-size: 1rem; }
.msg.ok { color: var(--marsh-deep); }
.msg.err { color: var(--danger); }
.fine { font-size: 0.9rem; color: var(--ink-soft); }

/* Legal pages */
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d3cc; padding: 56px 0 40px; font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--paper); font-size: 1.15rem; margin-bottom: 0.4em; }
.site-footer a { color: var(--paper); }
.site-footer p { margin-bottom: 0.6em; }
.site-footer .legal-line { grid-column: 1 / -1; border-top: 1px solid #36443f; padding-top: 20px; margin-top: 8px; font-size: 0.85rem; color: #9fb0a6; }
.site-footer .legal-line p { max-width: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--amber); color: var(--ink); padding: 8px 12px; z-index: 20; }
