:root {
    --bg: #f8f6f3;
    --ink: #1d1d1b;
    --ink-soft: #55534f;
    --rule: #8a8782;
    --wrap: 72rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #181816;
        --ink: #eeebe6;
        --ink-soft: #aaa69f;
        --rule: #5c5a56;
    }
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

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

/* The max() keeps content clear of the notch on phones held in landscape. */
.wrap {
    --gutter: 1.25rem;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* Header */

/* Wraps rather than overflowing on very narrow screens or with enlarged text. */
.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.wordmark {
    font-size: clamp(1.25rem, 5.5vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tagline {
    display: none;
    padding-inline-start: 0.75rem;
    border-inline-start: 1px solid var(--ink);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Links get a 44px tap area; the negative margins keep the link text aligned
   with the content edge, on the right or, once wrapped below the wordmark, the left. */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.75rem;
    margin-inline: -0.5rem;
    font-size: 0.875rem;
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-inline: 0.5rem;
    text-decoration: none;
    text-underline-offset: 4px;
}

nav a:active {
    text-decoration: underline;
}

/* Intro */

.intro {
    padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

h1,
h2 {
    font-weight: 300;
    letter-spacing: -0.01em;
    margin: 0;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2.25rem, 6.5vw, 4rem);
    line-height: 1.1;
}

.note {
    font-style: italic;
    color: var(--ink-soft);
    margin: 1.25rem 0 0;
}

/* Sessions */

.session {
    border-top: 1px solid var(--rule);
    padding: 1.5rem 0 clamp(3rem, 8vw, 6rem);
    scroll-margin-top: 1rem;
}

h2 {
    font-size: clamp(1.625rem, 3.5vw, 2.25rem);
    line-height: 1.2;
}

.meta {
    margin: 0.75rem 0 0;
}

.session-body {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.session-body > p {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 1.625rem);
    line-height: 1.35;
}

.photo {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
}

/* Placeholders until real photos arrive: warm candlelit tones. */
.photo-a {
    background: radial-gradient(circle at 60% 45%, #e9b77f 0%, #a8633a 35%, #3a2216 80%);
}

.photo-b {
    background: linear-gradient(160deg, #d9c6b0 0%, #b89878 50%, #6e5440 100%);
}

/* Booking */

.booking {
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.booking-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

.booking-row .note {
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 1.5rem;
    text-align: center;
    overflow-wrap: anywhere;
    border: 1px solid var(--ink);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.15s ease, color 0.15s ease;
}

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

/* Hover effects only where a real pointer can hover, so they don't stick after a tap. */
@media (hover: hover) {
    nav a:hover {
        text-decoration: underline;
    }

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

a:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 4px;
}

/* Footer */

.footer {
    margin: 0;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--rule);
    font-size: 0.8rem;
    color: var(--ink-soft);
}

@media (min-width: 48rem) {
    .wrap {
        --gutter: 2rem;
    }

    .tagline {
        display: block;
    }

    nav {
        gap: 1.5rem;
    }

    .session-body {
        grid-template-columns: 1.8fr 1fr;
        gap: 4rem;
        align-items: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn {
        transition: none;
    }
}
