/* Speak Easy marketing theme, base layer.
   Warm botanical editorial. Tokens mirror the app's shipped WCAG-AA values.
   Convention: 4-space indent, opening brace on the selector line. */

:root {
    /* Brand */
    --forest: #2D4738;
    --moss: #5E7E62;
    --bracken: #7E9173;
    --clay: #A85636;
    --clay-ink: #94472E; /* darker clay, for inline text links (AA on parchment) */
    --russet: #A04B3D;
    --butter: #E8C566;
    --bark: #6B4D38;

    /* Surfaces */
    --parchment: #F4EBD8;
    --parchment-50: #FBF6EA;
    --parchment-100: #ECDDC2;
    --stone: #C9BFA5;

    /* Text */
    --ink: #1F2A24;
    --ash-600: #4B5651;
    --ash-400: #626C65;

    /* Type */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --label-tracking: 0.06em;

    /* Shape */
    --radius-card: 20px;
    --radius-button: 12px;
    --radius-input: 10px;

    /* Layout */
    --container: 1180px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --header-h: 72px;

    /* Vertical rhythm: deliberate, not uniform */
    --space-section-sm: clamp(2.5rem, 5vw, 3.5rem);
    --space-section: clamp(3.5rem, 7vw, 5.5rem);
    --space-section-lg: clamp(5rem, 10vw, 8rem);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

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

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

a {
    color: var(--clay-ink);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    font-optical-sizing: auto;
    line-height: 1.1;
    color: var(--forest);
    text-wrap: balance;
    margin: 0 0 0.5em;
}

p {
    margin: 0 0 1rem;
}

/* Focus ring: a clay outline plus a contrasting halo so it stays visible on
   every ground. Coloured bands flip the halo dark and the ring to parchment. */
:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--parchment-50);
    border-radius: 4px;
}
.se-hero-band--forest :focus-visible,
.se-ctaband--forest :focus-visible,
.se-ctaband--clay :focus-visible,
.se-footer :focus-visible {
    outline-color: var(--parchment-50);
    box-shadow: 0 0 0 4px rgba(45, 71, 56, 0.45);
}

.se-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.se-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--forest);
    color: var(--parchment-50);
    padding: 0.75rem 1rem;
    border-radius: 0 0 var(--radius-button) 0;
    z-index: 100;
}
.se-skip:focus {
    left: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Buttons */
.se-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-button);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.se-btn:hover {
    text-decoration: none;
}
.se-btn--primary {
    background: var(--clay);
    color: var(--parchment-50);
}
.se-btn--primary:hover {
    background: var(--bark);
}
.se-btn--ghost {
    background: transparent;
    color: var(--parchment-50);
    border-color: rgba(251, 246, 234, 0.4);
}
.se-btn--ghost:hover {
    border-color: var(--parchment-50);
}
.se-btn--text {
    background: transparent;
    color: var(--forest);
    padding-inline: 0.5rem;
}
.se-btn--text:hover {
    color: var(--clay-ink);
}

.se-eyebrow {
    font-size: 0.75rem;
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    color: var(--ash-600);
    margin: 0 0 1rem;
}

/* Announcement bar */
.se-announce {
    background: var(--forest);
    color: var(--parchment-50);
    text-align: center;
    font-size: 0.9rem;
    padding: 0.6rem 0;
}
.se-announce a {
    color: var(--butter);
}

/* Header */
.se-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--parchment);
    border-bottom: 1px solid var(--stone);
}
.se-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.se-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--forest);
}
.se-logo:hover {
    text-decoration: none;
}
.se-logo__word {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.se-logo--knockout .se-logo__word {
    color: var(--parchment-50);
}

.se-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.se-nav__list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.se-nav__list a {
    color: var(--ash-600);
    font-size: 0.975rem;
    font-weight: 500;
}
.se-nav__list a:hover {
    color: var(--forest);
    text-decoration: none;
}
.se-nav-toggle {
    display: none;
}

/* M0 fallback hero (front page placeholder) */
.se-hero {
    padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
}
.se-hero__inner {
    max-width: 56rem;
}
.se-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 0.4em;
}
.se-hero__lead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.5;
    color: var(--ash-600);
    max-width: 42ch;
    text-wrap: balance;
    margin-bottom: 2rem;
}
.se-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/* Generic section + prose (used by page.php fallback) */
.se-section {
    padding: var(--space-section) 0;
}
.se-section--center {
    text-align: center;
}
.se-section__title {
    font-size: clamp(2rem, 4vw, 3rem);
}
.se-prose {
    max-width: 65ch;
}
.se-prose h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
}
.se-section--center .se-prose {
    margin-inline: auto;
}

.se-post-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--stone);
}
.se-post-card__title {
    font-size: 1.5rem;
}
.se-post-card__title a {
    color: var(--forest);
}

/* Footer, forest-drenched */
.se-footer {
    background: var(--forest);
    color: var(--parchment);
    margin-top: 2rem;
}
.se-footer__inner {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr) auto;
    gap: 2.5rem;
    padding-top: clamp(3rem, 6vw, 4.5rem);
    padding-bottom: 2.5rem;
}
.se-footer__blurb {
    color: var(--parchment-100);
    max-width: 32ch;
    margin-top: 1rem;
    font-size: 0.95rem;
}
.se-footer__heading {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    color: var(--parchment-100);
    margin: 0 0 1rem;
}
.se-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}
.se-footer__list a {
    color: var(--parchment);
    font-size: 0.95rem;
}
.se-footer__list a:hover {
    color: var(--butter);
    text-decoration: none;
}
.se-footer__base {
    border-top: 1px solid rgba(251, 246, 234, 0.14);
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}
.se-footer__copy {
    color: var(--parchment-100);
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 860px) {
    .se-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
    .se-footer__brand,
    .se-footer__cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .se-nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        background: transparent;
        border: 0;
        cursor: pointer;
        padding: 0;
    }
    .se-nav-toggle__bar,
    .se-nav-toggle::before,
    .se-nav-toggle::after {
        content: '';
        display: block;
        width: 22px;
        height: 2px;
        background: var(--forest);
        margin-inline: auto;
    }
    .se-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--parchment);
        border-bottom: 1px solid var(--stone);
        padding: 1rem var(--gutter) 1.5rem;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        transform: translateY(-120%);
        transition: transform 220ms ease;
        box-shadow: 0 12px 24px rgba(31, 42, 36, 0.08);
    }
    .se-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .se-nav__list li {
        border-bottom: 1px solid var(--parchment-100);
    }
    .se-nav__list a {
        display: block;
        padding: 0.9rem 0;
    }
    .se-nav__cta {
        margin-top: 1rem;
    }
    .se-nav-open .se-nav {
        transform: translateY(0);
    }
}

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