/* Tasting Notes: A Symposium (tastingnotes.events)
 *
 * Minimal, in the line of the pop-up lecture nights: one big serif voice,
 * small tracked labels, lots of space. The symposium shows up in the
 * details: white-ground colours (thin dark line work and one red-brown
 * accent on white), the Greek meander as the only ornament, and a
 * symposiast reclining on a couch with a raised kylix as the mark.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/InterVariable.woff2) format("woff2");
}

:root {
  /* White-ground: the late Athenian vases painted on a white slip, with
     thin dark line work and one red-brown accent. */
  --paper: #faf8f4;
  --paper-2: #f1ede6;
  --ink: #1a1714;
  --ink-soft: #5d554d;
  --clay: #8c3b26;          /* red-brown accent on white, 7.5:1 */
  --rule: #e2dbd0;
  --glaze: #faf8f4;         /* hero / coming-soon ground */
  --glaze-ink: #1a1714;
  --figure: #8c3b26;        /* accent on that ground */
  --on-figure: #faf8f4;     /* text on an accent fill */
  --muted: #3d3731;
  --muted-2: #6b625a;
  --line: #c9bfb2;
  --block: #f1ede6;         /* the join section */
  --backdrop: rgba(26, 23, 20, 0.55);
  --serif: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 40rem;
  color-scheme: only light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "onum";
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 0.8rem; z-index: 10; }

.wrap { width: 100%; max-width: calc(var(--measure) + 2rem); margin: 0 auto; padding: 0 1rem; }

/* ── Labels: the small tracked sans voice ─────────────────────────── */
.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ── The meander (Greek key) rule ────────────────────────────────── */
.meander {
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 15H5V1H21V12H10V5H16V8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'/%3E%3Cpath d='M5 15H32' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x left center / 32px 16px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 15H5V1H21V12H10V5H16V8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'/%3E%3Cpath d='M5 15H32' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x left center / 32px 16px;
  opacity: 0.9;
}

/* ── Header ──────────────────────────────────────────────────────── */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  color: var(--glaze-ink);
}
.top .wrap { max-width: 72rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand svg { width: 40px; height: 24px; color: var(--figure); }
.brand span { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.nav { display: flex; gap: 1.4rem; }
.nav a { text-decoration: none; opacity: 0.85; }
.nav a:hover { color: var(--figure); opacity: 1; }
@media (max-width: 560px) { .nav a:not(.nav-join) { display: none; } }

/* ── Hero: black glaze, terracotta figures ───────────────────────── */
.hero {
  background: var(--glaze);
  color: var(--glaze-ink);
  text-align: center;
  padding: 8.5rem 0 0;
}
.hero .mark { width: 200px; height: 120px; color: var(--figure); margin: 0 auto 1.4rem; display: block; }
.hero .label { color: var(--figure); }
.hero h1 {
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0.9rem 0 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--figure); }
.hero .lede { font-size: clamp(1.25rem, 3.2vw, 1.6rem); line-height: 1.4; max-width: 34rem; margin: 0 auto 2.2rem; color: var(--muted); }
.hero .meander { color: var(--figure); margin-top: 4.5rem; }
.hero .small { margin: 1.1rem 0 0; font-size: 1rem; color: var(--muted-2); font-style: italic; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--figure);
  color: var(--on-figure);
  border: 0;
  border-radius: 999px;
  padding: 1.05rem 2rem;
  cursor: pointer;
}
.btn:hover { color: var(--on-figure); filter: brightness(1.07); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ── Sections ────────────────────────────────────────────────────── */
section { padding: 5.5rem 0; }
section + section { border-top: 1px solid var(--rule); }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head .label { color: var(--clay); }
.section-head h2 { font-weight: 400; font-size: clamp(2.1rem, 6vw, 2.9rem); line-height: 1.08; margin: 0.6rem 0 0; }

.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.greek { font-style: italic; }

/* The order of the evening */
.order {
  list-style: none; margin: 2.8rem 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem;
}
.order li { padding: 1.4rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.order h3 { font-weight: 500; font-size: 1.45rem; margin: 0 0 0.3rem; }
.order p { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) {
  .order { grid-template-columns: 1fr; }
  .order li + li { border-top: 0; }
}

/* Sessions */
.sessions { list-style: none; margin: 0; padding: 0; }
.session { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.session:last-child { border-bottom: 1px solid var(--rule); }
.session .when { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); line-height: 1.6; }
.session h3 { font-weight: 500; font-size: 1.45rem; margin: 0 0 0.25rem; line-height: 1.2; }
.session p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; }
.session .btn { margin-top: 0.9rem; padding: 0.75rem 1.4rem; }
.session .session-no { color: var(--clay); font-size: 0.66rem; margin: 0 0 0.3rem; }

/* Join */
.join { background: var(--block); color: var(--glaze-ink); border-top: 0 !important; }
.join .section-head .label { color: var(--figure); }
.join .section-head p { color: var(--muted-2); margin: 1rem auto 0; max-width: 32rem; }
.form { max-width: 30rem; margin: 0 auto; }
.field { margin: 0 0 1.1rem; }
.field label, .field legend { display: block; font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.45rem; }
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%;
  font: inherit; font-size: 1.15rem;
  color: var(--glaze-ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 0.35rem 0 0.5rem;
  border-radius: 0;
}
.field textarea { min-height: 5.5rem; resize: vertical; border: 1px solid var(--line); padding: 0.6rem 0.7rem; border-radius: 4px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--figure); }
fieldset.field { border: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.checks label {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--glaze-ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.95rem; cursor: pointer; margin: 0;
}
.checks input { accent-color: var(--figure); }
.form .actions { text-align: center; margin-top: 1.8rem; }
.form .status { text-align: center; min-height: 1.6em; margin: 1rem 0 0; color: var(--figure); font-style: italic; }
.form .fine { text-align: center; font-size: 0.95rem; color: var(--muted-2); margin: 0.8rem 0 0; }
.form .fine a:hover { color: var(--figure); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-size: 1.3rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--clay); font-family: var(--sans); font-weight: 300; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0.7rem 0 0; color: var(--ink-soft); }

/* Footer */
.foot { padding: 3rem 0 3.5rem; text-align: center; color: var(--ink-soft); }
.foot .meander { color: var(--clay); opacity: 0.55; margin-bottom: 2.4rem; }
.foot svg { width: 52px; height: 31px; color: var(--clay); }
.foot p { margin: 0.6rem 0 0; font-size: 1rem; }
.foot .label { color: var(--ink); }
.foot nav { margin-top: 1rem; display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }

/* Simple interior pages (thanks, privacy, 404) */
.page { padding: 7.5rem 0 4rem; }
.page-top { color: var(--ink); }
.page-top .brand svg { color: var(--clay); }
.page-top .nav a:hover { color: var(--clay); }
.page h1 { font-weight: 400; font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1.05; margin: 0.6rem 0 1.4rem; }
.page .label { color: var(--clay); }
.page h2 { font-weight: 500; font-size: 1.4rem; margin: 2rem 0 0.4rem; }
.page .btn { margin-top: 1.5rem; }

/* ── Coming-soon front page (index.html) ─────────────────────────── */
.soon-body { background: var(--glaze); color: var(--glaze-ink); }
.soon {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  padding: 3rem 1rem 0;
}
.soon-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.soon .mark { width: 200px; height: 120px; color: var(--figure); margin-bottom: 1.4rem; }
.soon .label { color: var(--figure); margin: 0; }
.soon h1 { font-weight: 400; font-size: clamp(3.2rem, 12vw, 7rem); line-height: 0.95; margin: 0.9rem 0 1.2rem; }
.soon h1 em { color: var(--figure); }
.soon .lede { font-size: clamp(1.25rem, 3.4vw, 1.6rem); color: var(--muted); margin: 0 0 1.6rem; }
.soon .soon-tag { color: var(--muted-2); margin-bottom: 2.2rem; }
.soon .meander { color: var(--figure); margin: 3rem -1rem 0; }

/* The "Learn more" popup */
.popup {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0; border-radius: 6px;
  padding: 2.4rem 1.8rem 2rem;
  background: var(--glaze); color: var(--glaze-ink);
  box-shadow: 0 0 0 1px var(--rule), 0 24px 60px rgba(0, 0, 0, 0.25);
  text-align: left;
}
.popup::backdrop { background: var(--backdrop); }
.popup .label { color: var(--figure); margin: 0; }
.popup h2 { font-weight: 400; font-size: clamp(1.8rem, 6vw, 2.3rem); line-height: 1.1; margin: 0.5rem 0 1rem; }
.popup p { margin: 0 0 1rem; color: var(--muted); font-size: 1.15rem; }
.popup .popup-when { color: var(--figure); font-style: italic; margin-bottom: 1.8rem; }
.popup .form { max-width: none; }
.popup .actions { text-align: left; margin-top: 1.4rem; }
.popup .status, .popup .fine { text-align: left; }
.popup-close {
  position: absolute; top: 0.6rem; right: 0.8rem;
  background: none; border: 0; color: var(--muted-2); font-size: 2rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem;
}
.popup-close:hover { color: var(--figure); }
.popup p.label { font-size: 0.68rem; color: var(--figure); margin: 0; }
@media (max-width: 560px) {
  .popup { padding: 2.2rem 1.25rem 1.6rem; }
  .popup p { font-size: 1.05rem; }
  .popup .field { margin-bottom: 0.8rem; }
}
.soon h1 { margin-bottom: 2rem; }

/* ── Sessions with tickets (js/sessions.js) ──────────────────────── */
.session-note { margin: 0.35rem 0 0; font-size: 1rem; color: var(--ink-soft); font-style: italic; }
.session-buy { display: flex; align-items: center; gap: 1rem; margin-top: 0.8rem; flex-wrap: wrap; }
.session-price { font-size: 1.15rem; }
.session-price .was { color: var(--ink-soft); font-size: 0.95rem; margin-left: 0.3rem; }
.session .btn-small, .btn.btn-small { padding: 0.7rem 1.4rem; margin: 0; }
.sold-out { color: var(--ink-soft); }
.reserve .reserve-where { color: var(--clay); font-style: italic; margin-top: -0.4rem; }
.reserve .reserve-total { font-size: 1.15rem; margin: 0.4rem 0 0; color: var(--ink); }
.reserve .reserve-perk { font-size: 1rem; color: var(--clay); margin: 0.2rem 0 0; }
.reserve select { width: 100%; font: inherit; font-size: 1.1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 0.35rem 0 0.5rem; }
.checkout { min-height: 380px; margin-top: 0.5rem; }
.popup.reserve { width: min(36rem, calc(100vw - 2rem)); }
.ticket h1 { margin-bottom: 1rem; }
