/*
  Postalino pre-launch teaser — the whole stylesheet, served from the page's own origin.
  No CDN, no framework, no build step: deploy/teaser/README.md, "Why static and separate".

  Deliberately light-only. The product is a printed paper and the palette is that paper, so
  `color-scheme: light` stops a browser force-darkening it into something the brand is not.
*/

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfair-display-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mulish';
    src: url('fonts/mulish-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mulish';
    src: url('fonts/mulish-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;

    --paper: #fdfaf1;
    --paper-warm: #f4ecdd;
    --ink: #241f1b;
    --ink-soft: #5b5248;
    /* Darkened from #8a8073, which measured 3.72:1 on paper — below AA for the 13px
       figcaptions and footer text that use it. #726a5f is 5.10:1 on paper, 4.54:1 on the warm band. */
    --ink-faint: #726a5f;
    --rule: #ddd2bf;
    --accent: #581c87;
    --accent-dark: #431566;
    --error: #9a2a18;

    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --measure: 34rem;
    --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

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

img,
svg {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--accent-dark);
}

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

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 5.6vw, 3rem);
}

h2 {
    font-size: clamp(1.6rem, 4.2vw, 2.3rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1.1em;
    max-width: var(--measure);
    text-wrap: pretty;
}

/* ---------- layout ---------- */

.wrap {
    width: 100%;
    max-width: 63rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

section {
    padding-block: clamp(2.75rem, 8vw, 4.5rem);
}

.section--warm {
    background: var(--paper-warm);
}

.rule-top {
    border-top: 1px solid var(--rule);
}

/* ---------- masthead ---------- */

.masthead {
    padding-block: 1.75rem 0;
    text-align: center;
}

.masthead__name {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    margin: 0;
    color: var(--ink);
}

.masthead__rules {
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    height: 4px;
    margin-top: 0.6rem;
}

/* ---------- hero ---------- */

.hero {
    padding-top: clamp(2rem, 6vw, 3.25rem);
}

.hero__grid {
    display: grid;
    gap: clamp(1.75rem, 5vw, 3rem);
    align-items: center;
}

@media (min-width: 56rem) {
    .hero__grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

.hero__lead {
    font-size: clamp(1.075rem, 2.4vw, 1.2rem);
    color: var(--ink-soft);
}

.hero__figure {
    margin: 0;
}

.hero__figure img {
    display: block;
    width: 100%;
    border-radius: 4px;
}

figcaption {
    font-size: 0.8125rem;
    color: var(--ink-faint);
    margin-top: 0.6rem;
    font-style: italic;
}

/* ---------- form ----------
   Nothing on the site uses these today: the signup form is parked in _pending-form/ and not
   deployed (FC-472). They are kept rather than deleted so putting the form back is a restore
   rather than a rebuild, and 60 unused selectors in one hand-written stylesheet cost nothing
   a reader cannot see. */

.signup {
    margin-top: 1.75rem;
    max-width: var(--measure);
}

.signup__label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.signup__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.signup__input {
    flex: 1 1 15rem;
    min-width: 0;
    font: inherit;
    color: var(--ink);
    background: #fff;
    padding: 0.8rem 0.9rem;
    border: 1.5px solid #8a8073; /* 3.72:1 — a UI component boundary, AA bar is 3:1 */
    border-radius: 4px;
}

.signup__input::placeholder {
    color: var(--ink-faint);
}

.signup__input[aria-invalid='true'] {
    border-color: var(--error);
}

.signup__button {
    flex: 0 0 auto;
    font: inherit;
    font-weight: 700;
    color: var(--paper);
    background: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    padding: 0.8rem 1.4rem;
    cursor: pointer;
}

.signup__button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.signup__button[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.signup__consent {
    font-size: 0.875rem;
    color: var(--ink-soft);
    margin: 0.75rem 0 0;
    max-width: none;
}

/*
  The live region stays in the accessibility tree at all times. `display: none` while empty — which
  is what this rule used to do — removes it from the tree, and several screen readers then announce
  nothing when text is injected into it, so the one message telling a blind user why their signup
  bounced would never be spoken. Empty, it simply has no height.
*/
.signup__error {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--error);
    margin: 0;
    max-width: none;
}

.signup__error:not(:empty) {
    margin-top: 0.6rem;
}

.signup__offer {
    font-weight: 700;
    margin: 1.75rem 0 0;
}

.signup__offer + .signup {
    margin-top: 0.4rem;
}

/*
  Honeypot. Hidden from sight and from assistive technology, skipped by the tab order, and never
  autofilled — so no person reaches it, while the scripted signups that find an indexed form do.
  `display: none` is deliberately avoided: some bots skip fields that are display-none, which is
  the opposite of what a trap wants.
*/
.signup__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- hero note and the contact call to action ---------- */

.hero__note {
    margin-top: 1.5rem;
    color: var(--ink-soft);
}

.cta-row {
    margin-top: 1.75rem;
}

.cta {
    display: inline-block;
    font-weight: 700;
    color: var(--paper);
    background: var(--accent);
    border-radius: 4px;
    padding: 0.8rem 1.4rem;
    text-decoration: none;
}

.cta:hover {
    background: var(--accent-dark);
    color: var(--paper);
}

/* ---------- steps ---------- */

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

@media (min-width: 46rem) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.steps > li {
    counter-increment: step;
    border-top: 2px solid var(--ink);
    padding-top: 0.9rem;
}

.steps > li::before {
    content: counter(step);
    display: block;
    font-family: var(--serif);
    font-size: 1.75rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.steps h3 {
    margin-bottom: 0.3em;
}

.steps p {
    margin-bottom: 0;
    color: var(--ink-soft);
}

/* ---------- artefact ---------- */

.artefact {
    display: grid;
    gap: clamp(1.5rem, 5vw, 2.75rem);
    align-items: center;
}

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

.artefact figure {
    margin: 0;
}

.artefact img {
    display: block;
    width: 100%;
    border: 1px solid var(--rule);
    border-radius: 3px;
}

/* ---------- pull quote ---------- */

.pull {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 3.6vw, 1.9rem);
    line-height: 1.3;
    color: var(--ink);
    border-left: 3px solid var(--accent);
    padding-left: 1.1rem;
    margin: 0 0 1.5rem;
    max-width: 30rem;
}

/* ---------- trust ---------- */

.founders {
    display: grid;
    gap: 1.5rem;
    margin: 0 0 1.75rem;
    padding: 0;
}

@media (min-width: 46rem) {
    .founders {
        grid-template-columns: repeat(2, minmax(0, 22rem));
    }
}

.founders div {
    border-top: 1px solid var(--rule);
    padding-top: 0.75rem;
}

.founders dt {
    font-weight: 700;
}

.founders dd {
    margin: 0.15rem 0 0;
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.promise {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    max-width: var(--measure);
}

.promise li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.promise li::before {
    content: '·';
    position: absolute;
    left: 0.4rem;
    top: -0.15rem;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--accent);
}

/* ---------- faq ----------
   No max-width here on purpose. `.faq` sits ON the `.wrap`, so constraining it would shrink the
   centred box and shunt the whole section inwards, out of line with every other section's left
   edge. The reading measure comes from `p`'s own max-width instead. */

.faq h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.35em;
}

.faq h3:first-of-type {
    margin-top: 0;
}

.faq p {
    color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid var(--rule);
    padding-block: 2rem 2.75rem;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.site-footer p {
    max-width: 48rem;
}

.site-footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    padding: 0;
    margin: 0 0 1rem;
}

/* ---------- utility ---------- */

.lede {
    font-size: 1.125rem;
    color: var(--ink-soft);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
