/* ---------------------------------------------------------------------------
   Aktenhub — marketing site
   Deep green masthead + hero panel, pale paper below it.
   Light-only by design; colors are stated once on :root and never redefined.
   --------------------------------------------------------------------------- */

@font-face {
    font-family: 'Newsreader';
    src: url('fonts/newsreader-latin.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Newsreader';
    src: url('fonts/newsreader-latin-italic.woff2') format('woff2');
    font-weight: 300 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-latin.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* The green ground and what sits on it */
    --ground: #24352b;
    --ground-deep: #1b2721;
    --on-ground: #f2efe6;
    --on-ground-soft: #b9c5b8;

    /* The paper below it and what sits on that */
    --paper: #f7f6f2;
    --panel: #eeece4;
    --card: #fffefb;
    --ink: #1c2320;
    --ink-soft: #4a534c;
    --rule: #dfdbd0;
    --green: #2b4034;
    --danger: #8f2c22;

    /* One accent, and two values that are NOT interchangeable.
       --accent      on paper/panel/card — 5.38:1, safe for text and buttons.
       --accent-dark on the green band   — 3.44:1, GRAPHIC ONLY (the mark's
                     circle). Never a word of text on the band; an action there
                     stays cream. See ../web/brand/README.md. */
    --accent: #a8481e;
    --accent-hover: #8e3b17;
    --accent-dark: #c86a34;
    --on-accent: #f7f6f2;

    --serif: 'Newsreader', 'Iowan Old Style', Palatino, Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --measure: 58ch;
    --gutter: clamp(1.5rem, 5vw, 5rem);
    --section-gap: clamp(4rem, 9vw, 8rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

.shell {
    max-width: 76rem;
    margin: 0 auto;
    padding-inline: var(--gutter);
}

a {
    color: var(--green);
}

:where(a, button, input, textarea, summary):focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 3px;
}

/* --- The green band: masthead + hero ------------------------------------ */

.band {
    background: var(--ground);
    color: var(--on-ground);
}

.band a {
    color: var(--on-ground);
}

.band :where(a, button):focus-visible {
    outline-color: var(--on-ground);
}

.masthead {
    padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    text-decoration: none;
}

.wordmark svg {
    display: block;
    flex: none;
}

.hero {
    padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7.5rem);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-ground-soft);
}

.eyebrow::before {
    content: '';
    width: 2.5rem;
    height: 1px;
    background: var(--on-ground-soft);
    opacity: 0.7;
    flex: none;
}

h1 {
    margin: 0 0 1.75rem;
    font-family: var(--serif);
    font-size: clamp(2.75rem, 6.5vw, 5rem);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.018em;
    text-wrap: balance;
}

h1 .turn {
    display: block;
    font-style: italic;
    font-weight: 350;
    color: var(--on-ground-soft);
}

.lead {
    max-width: var(--measure);
    margin: 0 0 2.75rem;
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: var(--on-ground-soft);
    text-wrap: pretty;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.75rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

/* On the green band: cream button, green label. */
.band .btn {
    background: var(--on-ground);
    border-color: var(--on-ground);
    color: var(--ground);
}

.band .btn:hover {
    background: #fff;
    border-color: #fff;
}

/* On paper: the accent. This is the one button on the site that asks for a
   click, so it is the one place the accent is spent. 5.38:1 with --on-accent. */
.btn-solid {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.btn-solid:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

.cta-note {
    max-width: 34ch;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--on-ground-soft);
}

/* --- Pillars ------------------------------------------------------------ */

.pillars {
    padding-block: var(--section-gap);
}

.section-label {
    margin: 0 0 3rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.pillar-grid {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.pillar h3 {
    margin: 0 0 0.85rem;
    font-family: var(--serif);
    font-size: 1.625rem;
    font-weight: 450;
    line-height: 1.2;
    letter-spacing: -0.012em;
}

.pillar p {
    margin: 0;
    color: var(--ink-soft);
    text-wrap: pretty;
}

.pillar-rule {
    width: 1.75rem;
    height: 2px;
    margin-bottom: 1.5rem;
    background: var(--accent);
}

/* --- Demo form ---------------------------------------------------------- */

.demo {
    padding-block: var(--section-gap);
    border-top: 1px solid var(--rule);
}

.demo-layout {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
    grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
    .demo-layout {
        grid-template-columns: 1fr 1.15fr;
    }
}

.demo h2 {
    margin: 0 0 1.25rem;
    font-family: var(--serif);
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.018em;
}

.demo-intro {
    max-width: 42ch;
    margin: 0;
    color: var(--ink-soft);
    text-wrap: pretty;
}

.panel {
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 8px;
}

.contact-label {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.contact-address {
    margin: 0 0 1rem;
    font-family: var(--serif);
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 450;
    line-height: 1.2;
    letter-spacing: -0.012em;
    overflow-wrap: anywhere;
}

.contact-address a {
    color: var(--accent);
    text-decoration: none;
}

.contact-address a:hover {
    text-decoration: underline;
}

.contact-hint {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink-soft);
    text-wrap: pretty;
}

/* --- Form styles, kept for when the submission form is switched back on.
       The markup currently lives in backend-later/. ------------------------ */

.field-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 34rem) {
    .field-grid {
        grid-template-columns: 1fr 1fr;
    }

    .field-wide {
        grid-column: 1 / -1;
    }
}

.field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
}

.field input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--rule);
    border-radius: 5px;
    background: var(--card);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.5;
}

.field input::placeholder {
    color: #666e67;
}

.field input:hover {
    border-color: #c7c0b1;
}

.field input[aria-invalid='true'] {
    border-color: var(--danger);
}

.turnstile {
    margin-top: 1.5rem;
    min-height: 65px;
}

.panel .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
}

.form-status {
    margin: 1.25rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.form-status:empty {
    margin: 0;
}

.form-status[data-state='error'] {
    color: var(--danger);
}

.form-status[data-state='ok'] {
    color: var(--green);
}

.privacy-note {
    margin: 1.25rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* --- Footer ------------------------------------------------------------- */

footer {
    padding-block: 3rem 4rem;
    border-top: 1px solid var(--rule);
    font-size: 0.875rem;
    color: var(--ink-soft);
}

footer p {
    margin: 0 0 0.5rem;
}

footer p:last-child {
    margin-bottom: 0;
}

/* --- Prose pages (privacy) ---------------------------------------------- */

.prose {
    max-width: 42rem;
    padding-block: clamp(3rem, 7vw, 5rem) var(--section-gap);
}

.prose h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.prose .updated {
    margin: 0 0 3rem;
    font-size: 0.875rem;
    color: var(--ink-soft);
}

.prose h2 {
    margin: 2.75rem 0 0.85rem;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.012em;
}

.prose p,
.prose li {
    color: var(--ink-soft);
    text-wrap: pretty;
}

.prose ul {
    padding-left: 1.15rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
