/* Event capsules: the hub /events, the eight kinds /events/{slug}, the organisers' page, and the block of the home page.
   Paper cards, terracotta buttons and teal links, as on the rest of the site. No animation runs by itself. */

.events-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1rem 2.5rem;
}

.events-crumbs {
    margin: 1.25rem 0 0;
    font-size: 0.95rem;
}

.events-crumbs a {
    font-weight: 700;
}

.events-hero {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 0 0.5rem;
}

@media (min-width: 860px) {
    .events-hero {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 2.5rem;
    }
}

.events-eyebrow {
    margin: 0 0 0.4rem;
    color: var(--terracotta-deep);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.events-hero h1 {
    margin: 0 0 0.9rem;
    font-size: clamp(1.75rem, 5vw, 2.6rem);
}

.events-hero__lede {
    max-width: 40rem;
    margin: 0 0 1.4rem;
    color: var(--ink-soft);
    font-size: 1.1rem;
    line-height: 1.6;
}

.events-hero__art .event-art {
    max-width: 360px;
    margin: 0 auto;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
}

@media (max-width: 859px) {
    .events-hero__art .event-art {
        max-width: 280px;
        margin: 0;
    }
}

.events-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin: 0;
}

.events-actions__note {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* The long text: one comfortable column, headings in Lora. */
.event-body {
    max-width: 46rem;
}

.event-body h2,
.events-section > h2 {
    margin: 2.4rem 0 0.8rem;
    font-size: clamp(1.4rem, 3.4vw, 1.8rem);
}

.event-body h3 {
    margin: 1.6rem 0 0.5rem;
    font-size: 1.2rem;
}

.event-body p,
.event-body li {
    line-height: 1.7;
}

.event-body ul,
.event-body ol {
    padding-left: 1.3rem;
}

.event-body li + li {
    margin-top: 0.4rem;
}

.event-lede {
    font-size: 1.1rem;
}

/* The ideas for what to write: a paper sheet with a gold margin, like a page of the letter. */
.event-prompts {
    margin: 1rem 0;
    padding: 1.1rem 1.2rem 1.1rem 2.6rem !important;
    border: 1px solid var(--hairline);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    background: var(--letter);
}

.event-prompts li::marker {
    color: var(--terracotta-deep);
    font-weight: 700;
}

/* Who the letters go to: one quiet card. */
.event-facts,
.event-body .event-facts {
    display: grid;
    gap: 12px;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .event-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.event-facts li {
    margin: 0 !important;
    padding: 0.9rem 1rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--card);
}

.event-facts strong {
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font-serif);
}

/* Three steps. */
.event-steps {
    display: grid;
    gap: 14px;
    margin: 1rem 0 0;
    padding: 0 !important;
    list-style: none;
}

@media (min-width: 760px) {
    .event-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .event-body .event-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

.event-steps li {
    margin: 0 !important;
    padding: 1.1rem 1.1rem 1.2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

.event-steps h3 {
    margin: 0.5rem 0 0.35rem;
    font-size: 1.1rem;
}

.event-steps p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.55;
}

.event-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--teal);
    color: #ffffff;
    font-family: var(--font-serif);
    font-weight: 700;
}

/* The call to action: a paper card with the button and the price. */
.event-cta {
    box-sizing: border-box;
    max-width: 46rem;
    margin: 2.4rem 0;
    padding: 1.4rem 1.4rem 1.5rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

.event-cta p {
    margin: 0 0 1rem;
}

.event-cta .events-actions {
    margin: 0;
}

/* Questions and answers. */
.event-faq {
    display: grid;
    gap: 10px;
    margin: 1rem 0 0;
}

.event-faq__item {
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--card);
}

.event-faq__item > summary {
    display: block;
    padding: 14px 18px;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}

.event-faq__item p {
    margin: 0;
    padding: 0 18px 14px;
    color: var(--ink-soft);
}

/* Cards of the kinds: a small drawing, the name and one line. The whole card is one link. */
.event-cards {
    display: grid;
    gap: 16px;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 520px) {
    .event-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .event-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .event-cards--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: inherit;
    text-decoration: none;
}

.event-card:hover {
    color: inherit;
    border-color: var(--gold);
}

.event-card .event-art {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.event-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem 1rem 1.1rem;
}

.event-card__name {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.event-card__line {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.45;
}

@media (prefers-reduced-motion: no-preference) {
    .event-card {
        transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    }

    .event-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px -16px rgba(40, 30, 20, 0.45);
    }
}

/* The small drawings: a warm paper ground; the drawing itself is inline SVG in the colours of the site. */
.event-art {
    display: block;
    aspect-ratio: 8 / 5;
    background: linear-gradient(135deg, var(--tint-warm), var(--letter) 60%, var(--tint-cool));
}

.event-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

.events-section {
    margin-top: 1rem;
}

.events-section > p {
    max-width: 46rem;
    color: var(--ink-soft);
}

.events-more {
    margin: 1.2rem 0 0;
}

.events-more a {
    font-weight: 700;
}

/* The home page block: a row of cards that scrolls sideways and stops at each card. It works without a script: the buttons
   only appear when the script is there; the row scrolls by touch, wheel, keyboard and the scroll bar. Nothing moves by itself. */
.home-events {
    margin-top: clamp(56px, 9vw, 88px);
}

.home-events__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 18px;
}

.home-events__head h2 {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 4vw, 2.3rem);
}

.home-events__lede {
    max-width: 44rem;
    margin: 0;
    color: var(--ink-soft);
}

.home-events__buttons {
    display: flex;
    gap: 10px;
}

.home-events__buttons[hidden] {
    display: none;
}

.home-events__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--teal);
    border-radius: 50%;
    background: var(--card);
    color: var(--teal);
    cursor: pointer;
}

.home-events__button:hover {
    background: var(--tint-cool);
}

.home-events__button:disabled {
    border-color: var(--hairline);
    color: var(--hairline);
    cursor: default;
}

.event-carousel {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 4px 2px 14px;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--hairline) transparent;
}

.event-carousel > li {
    flex: 0 0 auto;
    width: clamp(220px, 72vw, 250px);
    scroll-snap-align: start;
}

.home-events__all {
    margin: 10px 0 0;
}

.home-events__all a {
    font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
    .event-carousel {
        scroll-behavior: smooth;
    }
}

.event-links {
    margin: 0.5rem 0 0;
    padding-left: 1.3rem;
}

.event-links li + li {
    margin-top: 0.35rem;
}
