/* ============================================================
   SAY IT WITH CONFIDENCE — "Two Voices"
   A free live communication workshop in Dublin.

   The page is a conversation between two voices:
   - the inner voice: what you think but don't say.
     Fraunces italic, light, a little wonky. Tentative, personal.
   - the spoken voice: what the evening is about.
     Fraunces upright, heavier, at display optical size. Assured.
   Open Sans carries everything practical: body, details, form.

   Colour: the November dusk through a Georgian window (harbour)
   and the lamplight inside (marigold). Chalk for the page itself.
   ============================================================ */

:root {
    --chalk:          #F8F6F1;   /* page ground */
    --paper:          #FFFFFF;   /* form panel */
    --ink:            #141A26;   /* text on light */
    --ink-soft:       #4F5A6B;   /* secondary text on light */
    --harbour:        #0F3A4A;   /* dusk through the window: bands */
    --harbour-deep:   #0A2A37;   /* the reserve section, hero base */
    --harbour-text:   #E6EDF0;   /* text on harbour */
    --harbour-muted:  #A4BAC3;   /* secondary text on harbour */
    --marigold:       #E9A63A;   /* lamplight: the confident colour */
    --marigold-deep:  #C98A22;
    --marigold-soft:  #F6D9A6;
    --rule:           rgba(20, 26, 38, 0.13);
    --rule-dark:      rgba(230, 237, 240, 0.16);

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:  'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --wrap:    76rem;
    --gutter:  clamp(1.25rem, 5vw, 5rem);
    --measure: 40rem;   /* ~63 characters of Open Sans at 18px */
}

/* ---------- Base ---------- */

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

html {
    background: var(--chalk);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;

}

body {
    margin: 0;
    background: var(--chalk);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.125rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

p { margin: 0; }

a { color: inherit; }

strong { font-weight: 700; }

em { font-style: italic; }

::selection { background: var(--marigold-soft); color: var(--ink); }

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

[tabindex="-1"]:focus { outline: none; }

.nowrap { white-space: nowrap; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* ---------- The two voices ---------- */

.voice {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 30, "WONK" 1;
    letter-spacing: 0.002em;
}

.spoken,
h2 {
    font-family: var(--serif);
    font-style: normal;
    font-weight: 600;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 0, "WONK" 0;
    letter-spacing: -0.012em;
    text-wrap: balance;
}

h2 { margin: 0; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0 1.75rem;
    border: 0;
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.btn-primary {
    background: var(--marigold);
    color: var(--ink);
    box-shadow: 0 10px 30px -14px rgba(233, 166, 58, 0.9);
}

.btn-primary:hover {
    background: #F0B556;
    box-shadow: 0 16px 36px -14px rgba(233, 166, 58, 0.95);
}

.btn-primary:active { transform: translateY(1px); }

.btn-ink {
    background: var(--ink);
    color: var(--chalk);
}

.btn-ink:hover { background: #26324A; }

.btn-ink:active { transform: translateY(1px); }


/* ============================================================
   HERO — someone speaking, and being listened to
   ============================================================ */

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    min-height: max(100vh, 46rem);
    background: var(--harbour-deep);
    color: #FFFFFF;
    overflow: hidden;
}

@supports (min-height: 100svh) {
    .hero { min-height: max(100svh, 46rem); }
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    margin: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 40%;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg,
            rgba(10, 42, 55, 0.18) 0%,
            rgba(10, 42, 55, 0.00) 28%,
            rgba(10, 42, 55, 0.42) 60%,
            rgba(10, 42, 55, 0.90) 100%),
        linear-gradient(90deg,
            rgba(10, 42, 55, 0.70) 0%,
            rgba(10, 42, 55, 0.38) 42%,
            rgba(10, 42, 55, 0.00) 72%);
}

.hero-inner {
    max-width: 50rem;
    padding-top: 9rem;
    padding-bottom: clamp(2.5rem, 6vh, 5rem);
}

.hero-kicker {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--marigold-soft);
}

.hero h1 {
    margin: 0;
    font-weight: 400;
}

.hero .voice {
    display: block;
    margin-bottom: 0.55rem;
    font-size: clamp(1.35rem, 0.95rem + 1.8vw, 2.25rem);
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.88);
}

.hero .spoken {
    display: block;
    font-size: clamp(2.5rem, 1.1rem + 5.6vw, 5.6rem);
    line-height: 1.02;
    color: #FFFFFF;
}

.hero-lede {
    margin-top: 1.5rem;
    max-width: 34rem;
    font-size: 1.125rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.90);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2.25rem;
    margin-top: 2rem;
}

.hero-when {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.hero-when strong {
    display: block;
    font-size: 1.1rem;
    color: #FFFFFF;
}

.hero-cue {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.hero-cue:hover { color: #FFFFFF; }

.hero-cue i {
    font-size: 0.9rem;
    color: var(--marigold-soft);
}

/* one orchestrated arrival: the inner voice first, then the spoken line lands */
@media (prefers-reduced-motion: no-preference) {
    .hero-kicker,
    .hero .voice,
    .hero .spoken,
    .hero-lede,
    .hero-actions,
    .hero-cue {
        animation: arrive 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
    .hero-kicker  { animation-delay: 0.10s; }
    .hero .voice  { animation-delay: 0.25s; }
    .hero .spoken { animation-delay: 0.60s; animation-duration: 1.1s; }
    .hero-lede    { animation-delay: 1.00s; }
    .hero-actions { animation-delay: 1.15s; }
    .hero-cue     { animation-delay: 1.35s; }
}

@keyframes arrive {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}


/* ============================================================
   ASKED — the public's own words
   ============================================================ */

.asked {
    padding-top: clamp(4rem, 9vw, 7.5rem);
    padding-bottom: clamp(4rem, 9vw, 7.5rem);
    background: var(--chalk);
    color: var(--ink);
}

.asked-head {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 1.5rem 4rem;
    align-items: end;
}

.asked h2 {
    max-width: 22ch;
    font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.1rem);
    line-height: 1.12;
}

.asked-sub {
    max-width: 18ch;
    font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem);
    line-height: 1.3;
    color: var(--ink-soft);
    text-wrap: balance;
}

.answers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem clamp(2.5rem, 6vw, 6rem);
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
    padding-top: 2.5rem;
    border-top: 1px solid var(--rule);
}

.answer h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 0 1rem;
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.answer h3::before {
    content: "";
    flex: none;
    width: 2rem;
    height: 3px;
    background: var(--marigold);
}

.answer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.answer li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
    line-height: 1.3;
}

.asked-close {
    margin-top: 3rem;
    max-width: var(--measure);
    font-size: 1.2rem;
    line-height: 1.6;
}


/* ============================================================
   PILLARS — confidence, and expressing ideas
   ============================================================ */

.pillar {
    padding-bottom: clamp(4rem, 9vw, 7.5rem);
    background: var(--chalk);
}

.pillar-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}

.pillar--flip .pillar-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.pillar--flip .pillar-figure { order: 2; }

.pillar-figure { margin: 0; }

.pillar-figure img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
}

.pillar h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.4rem);
    line-height: 1.08;
}

.pillar p { max-width: var(--measure); }

.pillar p + p { margin-top: 1.1rem; }


/* ============================================================
   COVER — what the evening explores
   ============================================================ */

.cover {
    padding-top: clamp(4rem, 9vw, 7rem);
    padding-bottom: clamp(4rem, 9vw, 7rem);
    background: var(--harbour);
    color: var(--harbour-text);
}

.cover-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.cover h2 {
    font-weight: 500;
    font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.9rem);
    line-height: 1.15;
    color: #FFFFFF;
}

.cover-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cover-list li {
    position: relative;
    padding: 1.05rem 0 1.05rem 2.1rem;
    border-top: 1px solid var(--rule-dark);
    font-size: 1.15rem;
    line-height: 1.55;
}

.cover-list li:last-child { border-bottom: 1px solid var(--rule-dark); }

.cover-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.75rem;
    width: 1.1rem;
    height: 3px;
    background: var(--marigold);
}

.live-note {
    margin-top: 2rem;
    max-width: var(--measure);
    font-size: 1.15rem;
    line-height: 1.6;
}

.live-note strong { color: #FFFFFF; }

.cover .btn { margin-top: 2rem; }


/* ============================================================
   STATEMENT — the most important topic, and the room itself
   ============================================================ */

.statement {
    padding-top: clamp(4rem, 9vw, 7.5rem);
    padding-bottom: clamp(4rem, 9vw, 7.5rem);
    background: var(--chalk);
}

.statement-lead {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    color: var(--ink-soft);
}

.statement h2 {
    max-width: 17ch;
    font-size: clamp(2.2rem, 1.2rem + 4vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.018em;
}

.statement-sub {
    margin-top: 1.5rem;
    max-width: 32ch;
    font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
    line-height: 1.35;
    color: var(--ink-soft);
}

.statement-figure {
    margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
}

.statement-figure img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 4px;
}

.statement-figure figcaption {
    margin-top: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink-soft);
}


/* ============================================================
   RESERVE — details and the form
   ============================================================ */

.reserve {
    padding-top: clamp(4rem, 9vw, 7rem);
    padding-bottom: clamp(4rem, 9vw, 7rem);
    background: var(--harbour-deep);
    color: var(--harbour-text);
}

.reserve-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.reserve h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 1.2rem + 2.8vw, 3.4rem);
    line-height: 1.06;
    color: #FFFFFF;
}

.reserve .limited {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--marigold-soft);
}

.reserve-copy p + p { margin-top: 0.9rem; }

.details {
    display: grid;
    gap: 1.1rem;
    margin: 2.25rem 0 0;
    padding: 0;
}

.details div {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--rule-dark);
}

.details dt {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--harbour-muted);
}

.details dd {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.55;
    color: #FFFFFF;
}

.dd-note {
    display: block;
    font-size: 0.95rem;
    color: var(--harbour-muted);
}

.form-panel {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 4px solid var(--marigold);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.65);
}

#subform .card-body { padding: 0; }

#subform .form-group { margin: 0 0 1.1rem; }

#subform .form-group label {
    display: block;
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

#subform .form-control {
    display: block;
    width: 100%;
    min-height: 3.1rem;
    padding: 0.75rem 0.95rem;
    font-family: var(--sans);
    font-size: 1rem;              /* 16px: stops iOS zooming on focus */
    line-height: 1.4;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid rgba(20, 26, 38, 0.28);
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#subform .form-control:hover { border-color: rgba(20, 26, 38, 0.48); }

#subform .form-control:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px var(--marigold-soft);
}

#subform .form-check { margin: 0.4rem 0 0; }

#subform .form-check-label {
    display: block;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

#subform .form-check-label a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#subform .btn-primary {
    display: flex;
    width: 100%;
    margin-top: 1.5rem;
}

#subform .btn-primary:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

.notice {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 1.75rem;
    border-top: 1px solid var(--rule-dark);
    max-width: 54rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--harbour-muted);
}

.notice em { color: var(--harbour-text); }


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    padding: 2.5rem 0 3rem;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    line-height: 1.65;
}

.site-footer .wrap > * + * { margin-top: 0.9rem; }

.site-footer .footer-address {
    font-weight: 600;
    color: #FFFFFF;
}

.site-footer a {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer .footer-legal { max-width: 62rem; }


/* ============================================================
   SOON — the seat is reserved
   ============================================================ */

.hero--soon {
    min-height: max(72vh, 34rem);
}

@supports (min-height: 100svh) {
    .hero--soon { min-height: max(72svh, 34rem); }
}

.hero--soon .hero-media img { object-position: 50% 45%; }

.hero--soon .hero-inner { padding-top: 7rem; }

.soon-title {
    margin: 0;
    font-size: clamp(2.5rem, 1.2rem + 5.2vw, 5.2rem);
    line-height: 1.02;
    color: #FFFFFF;
}

.soon-lede {
    margin-top: 1.25rem;
    max-width: 34rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.soon-details {
    padding-top: clamp(3.5rem, 8vw, 6rem);
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
    background: var(--chalk);
    color: var(--ink);
}

.soon-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.soon-details .details { margin-top: 0; }

.soon-details .details div { border-top-color: var(--rule); }

.soon-details .details dt { color: var(--ink-soft); }

.soon-details .details dd { color: var(--ink); }

.soon-details .dd-note { color: var(--ink-soft); }

.directions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.directions i { color: var(--marigold-deep); }

.soon-notes p { max-width: var(--measure); }

.soon-notes p + p { margin-top: 1rem; }

.soon-notes .voice {
    display: block;
    margin-top: 2rem;
    font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem);
    line-height: 1.3;
    color: var(--ink);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 60rem) {
    .asked-head,
    .answers,
    .pillar-grid,
    .pillar--flip .pillar-grid,
    .cover-grid,
    .reserve-grid,
    .soon-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pillar--flip .pillar-figure { order: 0; }

    .pillar-figure img {
        aspect-ratio: 5 / 4;
        max-height: 30rem;
    }

    .details div { grid-template-columns: 5.5rem 1fr; }
}

@media (max-width: 40rem) {
    body { font-size: 1.0625rem; }

    .hero-media img { object-position: 50% 50%; }

    .hero-shade {
        background:
            linear-gradient(180deg,
                rgba(10, 42, 55, 0.25) 0%,
                rgba(10, 42, 55, 0.05) 22%,
                rgba(10, 42, 55, 0.55) 52%,
                rgba(10, 42, 55, 0.94) 100%);
    }

    .hero-inner { padding-top: 46vh; }

    @supports (height: 100svh) {
        .hero-inner { padding-top: 44svh; }
    }

    .hero-lede { margin-top: 1.1rem; font-size: 1.05rem; }

    .hero-actions { margin-top: 1.5rem; }

    .hero-cue { margin-top: 1.75rem; }

    .hero-actions { gap: 1rem 1.5rem; }

    .hero .btn { width: 100%; }

    .answer li { font-size: 1.25rem; }

    .pillar-figure img { aspect-ratio: 4 / 5; }

    .cover-list li { font-size: 1.05rem; }

    .form-panel { margin-left: calc(var(--gutter) * -0.4); margin-right: calc(var(--gutter) * -0.4); }
}
