:root {
    color-scheme: light;
    --ink: #201a13;
    --paper: #fff9eb;
    --green: #154e34;
    --line: #dbccb6;
    --orange: #bd481f;
    font-family: system-ui, sans-serif;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--green); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #174589; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top { border-bottom: 1px solid var(--line); }
.top .bar { min-height: 67px; }
.brand { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 950; letter-spacing: .08em; }
.brand span { color: var(--orange); }
nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
nav a { font-size: .92rem; font-weight: 700; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.nav-register { padding: .35rem .7rem; border: 1px solid var(--green); border-radius: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); padding: .6rem; background: white; z-index: 1; }
.skip:focus { transform: none; }
.hero { padding-block: clamp(1rem, 4vw, 2.8rem); background: linear-gradient(110deg, #ffe480, #ffab73); border-bottom: 1px solid #e4b57c; }
.poster { overflow: hidden; border: 2px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0; }
.poster img, .event-summary img { width: 100%; height: auto; display: block; }
.event-strip { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--ink); color: var(--paper); padding: clamp(.9rem, 2.8vw, 1.55rem); border-radius: 0 0 12px 12px; }
.event-strip p { margin: 0; }
.date { font-weight: 800; color: #ffdc68; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 1rem; background: var(--green); border: 1px solid transparent; border-radius: 5px; color: white; font: inherit; font-weight: 800; padding: .72rem 1.15rem; text-decoration: none; cursor: pointer; }
.button:hover { background: #0a3823; }
.event-strip .button { background: #ffdc68; color: var(--ink); flex-shrink: 0; }
.event-strip .button:hover { background: #ffe99c; }
.event-details { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 7vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5rem); align-items: start; }
h1, h2 { line-height: 1.08; margin: 0 0 .8em; font-weight: 900; letter-spacing: -.035em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; }
.practical { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1.75rem; }
.practical p:last-child { margin-bottom: 0; }
.programme { padding: clamp(1.15rem, 3vw, 2rem); background: #f5e9cf; border-top: 5px solid var(--orange); border-radius: 0 0 8px 8px; }
.programme ol { list-style: none; padding: 0; margin: 0; }
.programme li { display: grid; grid-template-columns: 3.7rem 1fr; gap: .65rem; border-top: 1px solid var(--line); padding-block: .8rem; }
.programme time { color: var(--green); font-weight: 850; font-variant-numeric: tabular-nums; }
.footer { border-top: 1px solid var(--line); padding-block: 1.2rem; font-size: .9rem; }
.form-layout { padding-block: clamp(2rem, 6vw, 5rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 4vw, 3rem); align-items: start; }
.event-summary { background: var(--ink); color: var(--paper); overflow: hidden; border-radius: 8px; }
.event-summary p { margin: 1.1rem; }
.panel { padding: clamp(1rem, 4vw, 2.2rem); background: #fffdf7; border: 1px solid var(--line); border-radius: 8px; }
.panel h1, .admin h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: .4em; }
label { display: block; font-weight: 720; margin-bottom: .3rem; }
input[type=text], input[type=email] { display: block; width: 100%; border: 1px solid #877963; border-radius: 4px; margin-bottom: 1.1rem; padding: .65rem; font: inherit; color: var(--ink); background: white; }
.consent {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 36ch);
    align-items: start;
    gap: .6rem;
    margin: 0 0 1.2rem;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.45;
}
.consent input[type=checkbox] {
    width: 1.15rem;
    height: 1.15rem;
    margin: .12rem 0 0;
    accent-color: var(--green);
}
.consent input, .consent label, label.consent { cursor: pointer; }
.consent label { font-weight: inherit; }
.error { color: #8a2813; font-weight: 650; }
.admin { padding-block: 3rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { vertical-align: top; padding: .7rem; border-bottom: 1px solid var(--line); }
th { background: #f5e9cf; }
summary, .delete { cursor: pointer; color: #8a2813; }
.delete { padding: .3rem .4rem; margin-top: .35rem; font: inherit; background: white; border: 1px solid currentColor; border-radius: 4px; }
@media (max-width: 680px) {
    .wrap { width: calc(100% - 2rem); }
    .event-strip { align-items: stretch; flex-direction: column; }
    .event-details, .form-layout { grid-template-columns: 1fr; }
    .event-summary { order: 1; }
}
.privacy { max-width: 760px; padding-block: clamp(2rem, 5vw, 4rem); }
.privacy > a { display: inline-block; margin-bottom: 1rem; }
.privacy h2 { margin-top: 1.5rem; }
