@font-face {
    font-family: "Zilla Slab";
    src: url("/fonts/zilla-slab-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Zilla Slab";
    src: url("/fonts/zilla-slab-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #000;          /* exact black: the logo is a jpg on #000 */
    --paper: #fff;
    --mist: #eceeef;
    --muted: #4b5157;
    --signal: #ffcc00;    /* caution yellow, used for numbers and focus only */
    --error: #b00020;
    --ok: #0b6e3a;
    --slab: "Zilla Slab", Rockwell, Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font: 1.0625rem/1.6 var(--sans);
    color: var(--ink);
    background: var(--paper);
}

h1, h2, h3 { font-family: var(--slab); line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.75rem); font-weight: 700; max-width: 17ch; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 60ch; }
a { color: inherit; text-underline-offset: .2em; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); padding: .5rem 1rem; }

/* Header */
.site-header { background: var(--ink); color: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.logo { display: block; text-decoration: none; }
.logo img { display: block; width: clamp(150px, 22vw, 230px); height: auto; }
.header-link { font-family: var(--slab); font-weight: 600; font-size: 1.125rem; text-decoration: none; padding: .5rem 0; border-bottom: 2px solid var(--signal); }

/* Hero */
.hero { padding-block: clamp(3.5rem, 10vw, 7.5rem) clamp(3rem, 8vw, 6rem); }
.lead { font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--muted); margin-bottom: 2rem; }

.button {
    display: inline-block;
    font: 600 1.125rem/1 var(--slab);
    color: var(--paper);
    background: var(--ink);
    border: 2px solid var(--ink);
    padding: 1rem 1.5rem;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: var(--signal); color: var(--ink); }

/* Steps: a real sequence, so numbered */
.steps { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 8vw, 5.5rem); }
.step-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.step-list li { counter-increment: step; border-top: 2px solid var(--paper); padding-top: 1.25rem; }
.step-list li::before {
    content: counter(step);
    display: block;
    font: 700 3.5rem/1 var(--slab);
    color: var(--signal);
    margin-bottom: .75rem;
}
.step-list p { color: #c9cdd1; margin: 0; }

/* Contact */
.contact { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-intro p { color: var(--muted); }
.contact-intro a { color: var(--ink); font-weight: 600; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .375rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 0;
    padding: .75rem .875rem;
    width: 100%;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .9375rem; margin: 0; }

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

.notice { padding: 1rem 1.25rem; border-left: 6px solid; margin: 0 0 1.5rem; max-width: none; }
.notice--error { border-color: var(--error); background: #fbeaec; }
.notice--ok { border-color: var(--ok); background: #e7f3ec; padding: 1.5rem 1.75rem; }
.notice--ok p { margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: #c9cdd1; font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--paper); }

@media (max-width: 900px) {
    .step-list { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .step-list, .fields { grid-template-columns: 1fr; }
}
