/* www.avahevidence.com. Same foundation as the product (web/src/app/globals.css):
   a cool grey-green ground, Charter for substance, a system sans for detail,
   and the four evidence states, of which "not assessed" is hatched so it can
   never be read as a pass. That hatch is the one thing this site is
   remembered by. */
:root {
  --ground: #E6EBE8; --panel: #FFFFFF; --ink: #17211D; --ink2: #44524C; --muted: #5F6C66;
  --rule: #CDD5D1; --action: #17566E; --action-ink: #FFFFFF;
  --met: #2E6B4F; --notmet: #A32C22; --unknown: #A96400;
  --hatch-a: #C9D2CD; --hatch-b: #EBEFEC;
  --serif: "Charter", "Bitstream Charter", "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 66ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121816; --panel: #19211E; --ink: #E7EDEA; --ink2: #B2BEB9; --muted: #8E9C96;
    --rule: #2C3733; --action: #6FB7D4; --action-ink: #0E1A1F;
    --met: #5FA37D; --notmet: #DE7A6E; --unknown: #D79A3C; --hatch-a: #2F3A35; --hatch-b: #1E2724;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--action); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; background: var(--panel); padding: 8px 12px; z-index: 2; }

/* header */
.top { display: flex; align-items: center; gap: 24px; padding: 20px 0; flex-wrap: wrap; }
.mark { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.mark img { display: block; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; flex-wrap: wrap; }
.top nav a { color: var(--ink2); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.signin { border: 1px solid var(--rule); border-radius: 6px; padding: 6px 14px; color: var(--ink) !important; background: var(--panel); }

/* hero */
.hero { padding: 64px 0 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; } }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); }
.hero .lede { font-size: 19px; color: var(--ink2); max-width: 46ch; margin-top: 22px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; font: 600 16px/1 var(--sans); padding: 14px 20px; border-radius: 8px; text-decoration: none; }
.btn.primary { background: var(--action); color: var(--action-ink); }
.btn.quiet { color: var(--ink); border: 1px solid var(--rule); background: var(--panel); }

/* the ledger: one site's requirements, no score */
.ledger { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 22px 22px 18px; }
.ledger h2 { font-size: 17px; font-family: var(--sans); font-weight: 600; }
.ledger .site { color: var(--muted); font-size: 14px; margin: 2px 0 16px; }
.cells { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.cell { aspect-ratio: 1; border-radius: 3px; }
.met { background: var(--met); } .notmet { background: var(--notmet); } .unknown { background: var(--unknown); }
.na { background: repeating-linear-gradient(45deg, var(--hatch-a) 0 4px, var(--hatch-b) 4px 8px); box-shadow: inset 0 0 0 1px var(--rule); }
.key { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink2); }
.key li { display: flex; align-items: center; gap: 8px; }
.key i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; flex: none; }
.ledger .note { margin: 14px 0 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 12px; }

/* sections */
section.band { padding: 56px 0; border-top: 1px solid var(--rule); }
section.band > .wrap > h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 24ch; }
.intro { color: var(--ink2); max-width: var(--measure); margin-top: 14px; font-size: 18px; }
.jobs { margin: 32px 0 0; display: grid; grid-template-columns: 180px 1fr; gap: 22px 32px; max-width: 900px; }
@media (max-width: 640px) { .jobs { grid-template-columns: 1fr; gap: 6px; } .jobs dd { margin-bottom: 18px; } }
.jobs dt { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.jobs dd { margin: 0; color: var(--ink2); max-width: var(--measure); }
.jobs dd b { color: var(--ink); font-weight: 600; }

/* how data arrives: a real sequence, so numbered */
.flow { counter-reset: step; list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 880px) { .flow { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }
.flow li { counter-increment: step; padding: 0 22px 0 0; border-left: 2px solid var(--rule); padding-left: 18px; }
.flow li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 34px; color: var(--action); line-height: 1; margin-bottom: 10px; }
.flow h3 { font-size: 19px; margin-bottom: 6px; }
.flow p { color: var(--ink2); font-size: 16px; }
.never { margin-top: 34px; max-width: var(--measure); padding: 16px 18px; background: var(--panel); border: 1px solid var(--rule); border-left: 4px solid var(--unknown); border-radius: 0 8px 8px 0; color: var(--ink2); }
.never b { color: var(--ink); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 28px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.two h3 { font-size: 20px; margin-bottom: 8px; }
.two p, .two li { color: var(--ink2); }
.two ul { padding-left: 20px; margin: 0; } .two li { margin: 6px 0; }

.contact { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.contact h2 { font-size: 28px; } .contact p { color: var(--ink2); margin: 8px 0 0; max-width: 52ch; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .end { margin-left: auto; }

/* security page */
.page { padding: 40px 0 24px; }
.page h1 { font-size: clamp(36px, 5vw, 54px); max-width: 20ch; }
.table { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.table th { font-weight: 600; color: var(--ink2); font-size: 14px; background: var(--ground); }
.table td:first-child { font-weight: 600; width: 32%; }
.table tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }
@media (prefers-reduced-motion: no-preference) {
  .cells .cell { animation: settle 600ms ease-out both; }
  @keyframes settle { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
}

/* The estate loop under the hero: wide and short, cropped from 16:9, so it
   reads as a strip of the plant rather than a second hero. */
.estate { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); aspect-ratio: 21 / 8; background: var(--panel); margin-bottom: 8px; }
.estate video, .estate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.estate img { display: none; }
@media (prefers-reduced-motion: reduce) {
  .estate video { display: none; }
  .estate img { display: block; }
}
@media (max-width: 880px) { .estate { aspect-ratio: 16 / 9; } }
.btn .dur { font-weight: 400; color: var(--muted); margin-left: 4px; }

/* The narrated overview (see README.md, "Video"). */
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 6px; margin-top: 20px; }
.intro.spaced { margin-top: 28px; }
/* Plain reading pages (privacy). */
.prose-page { max-width: 720px; padding-top: 32px; padding-bottom: 64px; }
.prose-page h1 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 18px; }
.prose-page h2 { font-size: 22px; margin: 32px 0 10px; }
.prose-page p { max-width: var(--measure); color: var(--ink2); }
.muted-note { color: var(--muted); font-size: 14px; margin-top: 40px; }
