/* Stegnor LLC — site styles. Static, no build step. Fonts are self-hosted (SIL OFL). */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-2: #f3efe5;
  --ink: #20271b;
  --olive: #333d29;
  --olive-2: #46533a;
  --text: #2d3427;
  --muted: #5b6152;
  --line: #e3ddcf;
  --line-strong: #d3ccbb;
  --gold: #a68a64;
  --gold-ink: #7a6040;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1140px;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--olive); color: var(--bg); padding: 0.6rem 1rem; border-radius: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 243, 0.92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-size: 1.28rem; font-weight: 500; letter-spacing: -0.02em; }
.brand-tag { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: 0.65rem; margin-left: 0.1rem; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { text-decoration: none; color: var(--text); font-size: 0.95rem; padding: 0.45rem 0.75rem; border-radius: 999px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav .nav-cta { background: var(--olive); color: var(--bg); margin-left: 0.4rem; }
.nav .nav-cta:hover { background: var(--ink); color: var(--bg); }

.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.92rem; color: var(--ink); background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface-2); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(84vw, 300px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(32, 39, 27, 0.35); padding: 0.5rem; display: grid; }
.menu-panel a { text-decoration: none; color: var(--text); padding: 0.75rem 0.9rem; border-radius: 10px; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
  .brand-tag { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.55rem; font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none; padding: 0.85rem 1.35rem; border-radius: 999px; border: 1px solid transparent; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--olive); color: var(--bg); }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--olive); }
.btn-light { background: var(--bg); color: var(--olive); }
.btn-light:hover { background: #fff; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(51, 61, 41, 0.10) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 70% 70% at 80% 30%, #000 0%, transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; margin: 0 0 1.4rem; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.27rem); color: var(--muted); max-width: 38rem; line-height: 1.6; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.glance { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 1.6rem 1.6rem 1.2rem; box-shadow: 0 30px 60px -40px rgba(32, 39, 27, 0.45); }
.glance-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.glance-title { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.glance-seal { width: 34px; height: 34px; }
.facts { margin: 0; display: grid; }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.88rem; }
.facts dd { margin: 0; color: var(--ink); font-size: 0.95rem; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .facts div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); margin: 0; max-width: 34rem; }
.kicker { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; margin: 0 0 0.9rem; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 0.75rem; } }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 20px 40px -32px rgba(32, 39, 27, 0.45); }
.card h3 { margin-top: 1.1rem; }
.card p { color: var(--muted); margin: 0; }
.card .more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.2rem; font-weight: 500; text-decoration: none; }
.card .more svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card .more:hover svg { transform: translateX(3px); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--olive); color: var(--bg); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }
.card-lg { padding: clamp(1.8rem, 3vw, 2.4rem); }
.card-dashed { background: transparent; border-style: dashed; border-color: var(--line-strong); }

.pill { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--bg); }
.pill-live { color: #2f5a2a; border-color: #b9cfb0; background: #eef5ea; }
.pill-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3f7a37; }

.ticks { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: 0.55rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.95rem; height: 0.5rem; border-left: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(-45deg) translateY(-25%); transform-origin: left; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--gold-ink); margin-bottom: 0.6rem; }
.steps h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.steps p { color: var(--muted); margin: 0; font-size: 0.97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.facts-wide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem 1.7rem; }
.facts-wide div { grid-template-columns: 13rem 1fr; padding: 0.95rem 0; }
.facts-wide div:first-child { border-top: 0; }
@media (max-width: 560px) { .facts-wide div { grid-template-columns: 1fr; gap: 0.15rem; } }

.cta { background: var(--olive); color: #e9e6dc; border-radius: calc(var(--radius) + 6px); padding: clamp(2.2rem, 5vw, 3.6rem); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 40px; border: 1px solid rgba(166, 138, 100, 0.45); transform: rotate(18deg); }
.cta h2 { color: #fbfaf6; margin-bottom: 0.4rem; }
.cta p { margin: 0; color: #d9d6ca; max-width: 36rem; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; position: relative; z-index: 1; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 0.75rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.service { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; }
.service h3 { margin: 0.2rem 0 0.4rem; }
.service p { color: var(--muted); margin: 0; }
.service .icon { width: 48px; height: 48px; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tags span { font-size: 0.85rem; padding: 0.35rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); }

.person { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.avatar { width: 72px; height: 72px; border-radius: 18px; background: var(--olive); color: var(--bg); display: grid; place-items: center; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.person h3 { margin: 0 0 0.2rem; }
.person p { margin: 0; color: var(--muted); }

.mailbox { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.mailbox:hover { color: var(--olive); }
address { font-style: normal; line-height: 1.7; }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 46rem; padding: clamp(2.2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4rem; }
.prose .meta { color: var(--muted); font-size: 0.95rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: clamp(2.8rem, 6vw, 4rem) 0 2rem; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-grid h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 0.9rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.foot-grid a { text-decoration: none; color: var(--text); }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { color: var(--muted); margin-top: 1rem; max-width: 26rem; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; border-top: 1px solid var(--line-strong); margin-top: 2.5rem; padding-top: 1.4rem; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 58vh; display: grid; align-content: center; padding: 4rem 0; }
.notfound .code { font-family: var(--serif); font-style: italic; color: var(--gold-ink); font-size: 1.4rem; margin-bottom: 0.4rem; }

@media print {
  .site-header, .menu, .cta, .site-footer .foot-grid > :not(:first-child) { display: none !important; }
  body { background: #fff; }
}

/* ---------- utilities (no inline styles: the CSP forbids them) ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.4rem; }
.mt-3 { margin-top: 1.8rem; }
.mb-1 { margin-bottom: 0.6rem; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }
.actions-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
