:root {
    --ink: #2f4642;
    --teal: #43b59d;
    --teal-dark: #257e70;
    --teal-deep: #195f55;
    --teal-soft: #e5f5f1;
    --gold: #e8b331;
    --gold-soft: #f9e9bd;
    --cream: #fbfaf6;
    --paper: #ffffff;
    --muted: #70817e;
    --line: rgba(37, 126, 112, .16);
    --danger: #80291c;
    --shadow: 0 20px 55px rgba(37, 126, 112, .14);
}

/* Mobile-first foundation */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 280px;
    margin: 0;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

@supports (overflow: clip) {
    html,
    body { overflow-x: clip; }
}

header,
main,
footer,
section {
    width: 100%;
    max-width: 100%;
}

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

a { color: inherit; }
button, input { font: inherit; }
button, a, input, label { -webkit-tap-highlight-color: transparent; }

.container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 16px;
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--cream);
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(67, 181, 157, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 181, 157, .045) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.hero__glow {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

.hero__glow--one {
    width: 250px;
    height: 250px;
    top: -120px;
    right: -100px;
    background: #d9f2ec;
}

.hero__glow--two {
    width: 280px;
    height: 280px;
    bottom: -190px;
    left: -140px;
    background: var(--gold-soft);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-block: 32px 48px;
}

.hero__content {
    min-width: 0;
    text-align: center;
}

.brand-logo {
    width: 160px;
    height: auto;
    margin: 0 auto 18px;
    mix-blend-mode: multiply;
}

.eyebrow,
.kicker {
    width: fit-content;
    margin: 0 auto 14px;
    color: var(--teal-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
}

.eyebrow span {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--gold);
    color: #3f3215;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 680px;
    margin: 0 auto;
    overflow-wrap: anywhere;
    font-size: clamp(2.25rem, 11.5vw, 3.3rem);
    line-height: 1.04;
    letter-spacing: -.05em;
}

.hero__hook {
    max-width: 600px;
    margin: 17px auto 0;
    color: var(--teal-dark);
    font-size: clamp(1.1rem, 5.2vw, 1.4rem);
    font-weight: 650;
    line-height: 1.35;
}

.hero__hook strong {
    position: relative;
    display: inline-block;
    z-index: 0;
    color: var(--teal-deep);
    white-space: nowrap;
}

.hero__hook strong::after {
    content: "";
    position: absolute;
    right: -2px;
    bottom: .02em;
    left: -2px;
    z-index: -1;
    height: .38em;
    background: var(--gold);
    transform: rotate(-1deg);
}

.hero__subline {
    max-width: 540px;
    margin: 14px auto 22px;
    color: var(--muted);
    font-size: .96rem;
}

.event-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
    margin: 0 auto 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    text-align: right;
}

.event-strip > div {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    padding: 12px 13px;
}

.event-strip > div + div { border-top: 1px solid var(--line); }

.event-strip__icon {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    font-weight: 900;
}

.event-strip strong,
.event-strip small { display: block; }
.event-strip strong { font-size: .9rem; }
.event-strip small { color: var(--muted); font-size: .76rem; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:active { transform: translateY(1px); }
.button:focus-visible,
input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button span { flex: 0 0 auto; font-size: 1.2em; }

.button--primary {
    width: 100%;
    background: var(--teal-dark);
    color: white;
    box-shadow: 0 12px 26px rgba(37, 126, 112, .22);
}

.seats-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 13px 4px 0;
    color: var(--muted);
    font-size: .82rem;
}

.seats-note span {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(232, 179, 49, .17);
}

.speakers {
    position: relative;
    display: grid;
    direction: ltr;
    grid-template-columns: minmax(0, 1.25fr) minmax(104px, .75fr);
    align-items: end;
    width: min(100%, 430px);
    min-height: 350px;
    margin-inline: auto;
    padding-inline: 4px;
}

.speakers__accent {
    position: absolute;
    inset: 10% 7% 1% 4%;
    z-index: -1;
    border-radius: 50% 50% 10px 10px / 38% 38% 10px 10px;
    background: var(--teal);
    transform: rotate(1.5deg);
}

.speaker {
    position: relative;
    min-width: 0;
    margin: 0;
    direction: rtl;
}

.speaker img { width: 100%; object-fit: cover; }
.speaker--zada { z-index: 2; }

.speaker--zada img {
    height: 340px;
    border-radius: 160px 160px 10px 10px;
    object-position: 50% 25%;
    box-shadow: var(--shadow);
}

.speaker--nils {
    z-index: 3;
    align-self: end;
    aspect-ratio: 1;
    margin: 0 0 22px -20px;
}

.speaker--nils img {
    height: 100%;
    border: 5px solid var(--cream);
    border-radius: 50%;
    background: white;
    object-fit: cover;
}

.speaker figcaption {
    position: absolute;
    right: 8px;
    bottom: 9px;
    max-width: calc(100% - 16px);
    padding: 7px 9px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 7px 20px rgba(0, 0, 0, .11);
    text-align: right;
}

.speaker figcaption strong,
.speaker figcaption span { display: block; }
.speaker figcaption strong { color: var(--teal-dark); font-size: .79rem; }
.speaker figcaption span { color: var(--muted); font-size: .62rem; }

.speaker--nils figcaption {
    right: -5px;
    bottom: -8px;
    width: 120px;
}

/* Registration is one column by default */
.registration {
    padding-block: 56px;
    background: var(--teal-dark);
    color: white;
}

.registration__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

.registration__intro {
    min-width: 0;
    text-align: center;
}

.kicker--light { color: var(--gold); }

.registration h2 {
    max-width: 540px;
    margin: 0 auto;
    overflow-wrap: anywhere;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.registration__intro > p:not(.kicker) {
    max-width: 470px;
    margin: 15px auto 0;
    color: rgba(255, 255, 255, .78);
}

.form-card {
    width: 100%;
    min-width: 0;
    max-width: 620px;
    margin-inline: auto;
    padding: 20px 16px;
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}

.form-card form,
.login-card form {
    display: grid;
    min-width: 0;
    gap: 9px;
}

.form-card label,
.login-card label {
    margin-top: 4px;
    font-size: .86rem;
    font-weight: 750;
}

.form-card label small { color: var(--muted); font-weight: 400; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"] {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 11px 12px;
    border: 1px solid #cbd6d2;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    font-size: 16px;
}

fieldset {
    min-width: 0;
    margin: 8px 0 4px;
    padding: 0;
    border: 0;
}

legend { margin-bottom: 8px; font-size: .86rem; font-weight: 750; }

.radio-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.radio-card {
    display: flex;
    align-items: center;
    min-height: 64px;
    gap: 9px;
    margin: 0 !important;
    padding: 10px 12px;
    border: 1px solid #cbd6d2;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
}

.radio-card:has(input:checked) {
    border-color: var(--teal-dark);
    background: var(--teal-soft);
    box-shadow: inset 0 0 0 1px var(--teal-dark);
}

.radio-card input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    accent-color: var(--teal-dark);
}

.radio-card span { display: grid; min-width: 0; }
.radio-card small { color: var(--muted); font-weight: 400; }

.button--submit {
    width: 100%;
    margin-top: 7px;
    background: var(--gold);
    color: #473712;
}

.privacy-note {
    margin: 3px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: .74rem;
}

.honeypot {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

.honeypot > * {
    position: absolute !important;
    inset: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.alert {
    margin-bottom: 13px;
    padding: 12px 13px;
    border-radius: 8px;
    font-size: .88rem;
}

.alert--success { border: 1px solid #a9d679; background: #edf9e2; color: #28560e; }
.alert--error { border: 1px solid #e8aaa0; background: #fff0ed; color: var(--danger); }

.sold-out,
.empty-state { padding: 34px 16px; text-align: center; }

.sold-out > span,
.empty-state > span {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 13px;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 1.15rem;
    font-weight: 900;
}

.sold-out h3,
.empty-state h3 { margin: 0; font-size: 1.4rem; }
.sold-out p,
.empty-state p { color: var(--muted); }

footer {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    text-align: center;
    font-size: .8rem;
}

footer strong { color: var(--teal-dark); }

/* Admin: mobile cards and horizontally scrollable data table */
.admin-page { min-height: 100vh; background: #f2f5f3; }

.login-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 16px;
    background: var(--teal-dark);
}

.login-card {
    width: min(100%, 440px);
    min-width: 0;
    padding: 25px 18px;
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .22);
}

.login-card .eyebrow { margin-inline: 0; }
.login-card h1 { margin: 0; font-size: 1.9rem; }
.login-card > p:not(.eyebrow) { margin-bottom: 22px; color: var(--muted); }

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: .82rem;
    text-decoration: none;
}

.admin-header {
    padding: 26px 0;
    background: var(--teal-dark);
    color: white;
}

.admin-header__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}

.admin-header .kicker { margin: 0 0 3px; color: var(--gold); }
.admin-header h1 { margin: 0; font-size: 1.8rem; }

.admin-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.admin-actions form,
.admin-actions .button { width: 100%; margin: 0; }

.button--outline {
    min-height: 48px;
    padding: 9px 12px;
    border-color: var(--gold);
    color: var(--gold);
}

.button--ghost {
    min-height: 48px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, .1);
    color: white;
}

.admin-main { padding-block: 22px 50px; }

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.stats article {
    min-width: 0;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
}

.stats span,
.stats small {
    display: block;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: .71rem;
}

.stats strong {
    display: block;
    margin: 4px 0;
    color: var(--teal-dark);
    font-size: 1.8rem;
    line-height: 1;
}

.table-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    box-shadow: 0 14px 40px rgba(25, 95, 85, .07);
}

.table-card__heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 17px 14px;
    border-bottom: 1px solid var(--line);
}

.table-card__heading .kicker {
    margin: 0 0 2px;
    color: var(--muted);
    letter-spacing: 0;
    text-transform: none;
}

.table-card__heading h2 { margin: 0; font-size: 1.25rem; }
.table-card__heading > a { color: var(--teal-dark); font-size: .82rem; font-weight: 700; }

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    text-align: right;
    white-space: nowrap;
}

th,
td { padding: 13px 14px; border-bottom: 1px solid var(--line); }
th { background: #f6f8f5; color: var(--muted); font-size: .74rem; }
td { font-size: .82rem; }
tbody tr:last-child td { border-bottom: 0; }
td a { color: var(--teal-dark); text-underline-offset: 3px; }
.muted { color: #a3ada9; }

.mode {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 750;
}

.mode--zoom { background: #e6efff; color: #2550a2; }
.mode--in_person { background: var(--teal-soft); color: var(--teal-deep); }

/* Larger phones */
@media (min-width: 480px) {
    .container { padding-inline: 22px; }
    .hero__grid { padding-block: 40px 56px; }
    .brand-logo { width: 175px; }
    .hero h1 { font-size: clamp(3rem, 10vw, 3.8rem); }
    .speakers { width: min(100%, 500px); min-height: 420px; }
    .speaker--zada img { height: 410px; }
    .speaker--nils figcaption { width: 145px; }
    .form-card { padding: 26px 24px; }
    .login-card { padding: 32px; }
}

/* Tablets */
@media (min-width: 700px) {
    .container { padding-inline: 28px; }
    .hero__grid { gap: 44px; padding-block: 50px 70px; }
    .brand-logo { width: 190px; }
    .hero h1 { font-size: 4rem; }
    .hero__hook { font-size: 1.55rem; }
    .hero__subline { font-size: 1.02rem; }

    .event-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-strip > div + div { border-top: 0; border-right: 1px solid var(--line); }
    .event-strip > div { padding: 14px 16px; }

    .button--primary { width: auto; }
    .speakers { width: min(100%, 610px); min-height: 500px; }
    .speaker--zada img { height: 490px; }
    .speaker--nils { margin-left: -28px; }
    .speaker--nils img { border-width: 7px; }
    .speaker figcaption { padding: 9px 12px; }
    .speaker figcaption strong { font-size: .9rem; }
    .speaker figcaption span { font-size: .68rem; }
    .speaker--nils figcaption { width: 170px; }

    .registration { padding-block: 76px; }
    .registration__grid { gap: 38px; }
    .registration h2 { font-size: 3.4rem; }
    .radio-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    footer .container { flex-direction: row; justify-content: space-between; }
    .admin-header__inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .admin-actions { display: flex; width: auto; }
    .admin-actions .button { width: auto; }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .stats article { padding: 18px; }
    .stats strong { font-size: 2.1rem; }
    .table-card__heading { flex-direction: row; align-items: center; justify-content: space-between; padding: 20px; }
}

/* Desktop enhancement */
@media (min-width: 960px) {
    .container { padding-inline: 32px; }
    .hero__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
        align-items: center;
        gap: 62px;
        min-height: 690px;
        padding-block: 54px;
    }

    .hero__content { text-align: right; }
    .brand-logo { margin-inline: 0; }
    .eyebrow { margin-inline: 0; }
    .hero h1,
    .hero__hook,
    .hero__subline,
    .event-strip { margin-inline: 0; }
    .hero h1 { font-size: clamp(3.8rem, 5vw, 4.7rem); }
    .hero__hook { font-size: 1.7rem; }
    .seats-note { justify-content: flex-start; }

    .speakers { width: 100%; min-height: 550px; }
    .speaker--zada img { height: 520px; }

    .registration__grid {
        grid-template-columns: minmax(0, .82fr) minmax(480px, 1.18fr);
        align-items: start;
        gap: 70px;
    }

    .registration__intro { padding-top: 22px; text-align: right; }
    .registration__intro .kicker,
    .registration h2,
    .registration__intro > p:not(.kicker) { margin-inline: 0; }
    .form-card { margin-inline: 0; }

    .button:hover { transform: translateY(-2px); }
    .button--primary:hover { background: var(--teal-deep); }
    .button--submit:hover { background: #f0c451; box-shadow: 0 10px 25px rgba(37, 126, 112, .14); }
    tbody tr:hover { background: #fbfcf8; }
}

@media (min-width: 1200px) {
    .hero__grid { gap: 78px; }
    .hero h1 { font-size: 4.9rem; }
}

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