:root {
  --sea: #0a1724;
  --sea-2: #10243a;
  --silver: #dfe7ee;
  --silver-dim: #8ea0b1;
  --line: rgba(207, 216, 224, .16);
  --brass: #c9a35a;
  --brass-2: #e0c07e;
  --paper: #f4efe4;
  --paper-2: #e9e2d3;
  --ink: #13212f;
  --ink-dim: #5c6875;
  --danger: #b4452f;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, #1a3552 0%, transparent 60%),
    var(--sea);
  color: var(--silver);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brass-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* ---------- top bar ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 4vw, 40px);
}
.mark { font: 500 13px/1 var(--sans); letter-spacing: .28em; color: var(--silver-dim); }
.lang {
  background: none; border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 12px; cursor: pointer; font-size: 12px; letter-spacing: .12em;
  color: var(--silver-dim); backdrop-filter: blur(8px);
}
.lang .sep { margin: 0 6px; opacity: .4; }
.lang [data-l].on { color: var(--silver); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 96px 16px 64px;
  isolation: isolate;
}
.sea {
  position: absolute; left: 0; right: 0; bottom: 6%; height: 34%; width: 100%; z-index: -1;
  fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke;
}
.sea path { animation: drift 14s ease-in-out infinite alternate; }
.sea path:nth-child(2) { animation-duration: 18s; opacity: .7; }
.sea path:nth-child(3) { animation-duration: 22s; opacity: .45; }
@keyframes drift { to { transform: translateX(-60px); } }

.eyebrow {
  margin: 0 0 18px; font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--brass);
}
.eyebrow.dark { color: #9a7a3c; }
h1 {
  margin: 0; font: 300 clamp(56px, 13vw, 148px)/.95 var(--serif);
  font-variation-settings: "opsz" 144; letter-spacing: -.02em; color: var(--silver);
}
h1 .year {
  display: block; margin-top: 18px;
  font: 400 clamp(14px, 2.2vw, 18px)/1 var(--sans); letter-spacing: .6em; padding-left: .6em;
  color: var(--silver-dim);
}
.herring {
  width: min(260px, 58vw); height: auto; margin: 34px 0 26px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
  animation: swim 6s ease-in-out infinite;
}
.herring .tail { transform-origin: 30px 40px; animation: tail 1.6s ease-in-out infinite; }
@keyframes swim { 50% { transform: translateY(-6px) rotate(-1deg); } }
@keyframes tail { 50% { transform: scaleY(.82); } }

.when { margin: 0 0 34px; font: italic 300 clamp(18px, 2.6vw, 22px)/1.4 var(--serif); color: var(--silver); }
.when .dot { margin: 0 .5em; color: var(--brass); font-style: normal; }
.when .soon { color: var(--silver-dim); }

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--brass); color: #1a1407; font: 600 15px/1 var(--sans); letter-spacing: .02em;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  box-shadow: 0 10px 30px -10px rgba(201, 163, 90, .55);
}
.btn:hover { background: var(--brass-2); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(19, 33, 47, .7); }
.btn-dark:hover { background: #1d3246; }
.btn[disabled] { opacity: .6; cursor: progress; }

.seats { width: 220px; }
.meter { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--silver-dim); transition: width 1.2s var(--ease); }
.seats p { margin: 8px 0 0; font-size: 13px; color: var(--silver-dim); }
.seats.low .meter span { background: var(--brass); }
.seats.low p { color: var(--brass-2); }

/* ---------- details ---------- */
.details { max-width: 760px; margin: 0 auto; padding: 8px 16px 72px; }
.intro {
  margin: 0 auto 56px; max-width: 34em; text-align: center;
  font: 300 clamp(19px, 2.5vw, 23px)/1.55 var(--serif); color: var(--silver);
}
.facts {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); column-gap: 20px;
  border-top: 1px solid var(--line);
}
.facts div { padding: 20px 4px 22px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--silver-dim); margin-bottom: 6px; }
.facts dd { margin: 0; font: 400 18px/1.35 var(--serif); color: var(--silver); }
.facts dd small { display: block; font: 13px/1.4 var(--sans); color: var(--silver-dim); margin-top: 2px; }

.programme { list-style: none; margin: 56px auto 0; padding: 0; max-width: 420px; }
.programme:empty { display: none; }
.programme li { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; }
.programme time { font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--brass); min-width: 46px; }
.programme li::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.programme span { order: 2; font: 400 17px/1.3 var(--serif); }

/* ---------- ticket ---------- */
.register { padding: 24px 16px 96px; scroll-margin-top: 24px; }
.ticket {
  --notch: 14px;
  position: relative; max-width: 560px; margin: 0 auto;
  background: var(--paper); color: var(--ink);
  border-radius: 18px; padding: clamp(24px, 5vw, 40px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04);
  background-image: radial-gradient(rgba(19, 33, 47, .035) 1px, transparent 1px);
  background-size: 4px 4px;
}
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.ticket h2 { margin: 0; font: 400 30px/1.1 var(--serif); }
.deadline { font-size: 12px; color: var(--ink-dim); letter-spacing: .02em; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; gap: 0; } }

.field { position: relative; margin-bottom: 14px; }
.field input, .field select, .field textarea {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: rgba(255, 255, 255, .55); border: 1px solid #d8cfbd; border-radius: 10px;
  padding: 24px 14px 8px; font: 16px/1.3 var(--sans); color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
  resize: none;
}
.field textarea { min-height: 64px; }
.field select { cursor: pointer; padding-right: 40px; }
.field.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.5px solid var(--ink-dim); border-bottom: 1.5px solid var(--ink-dim); transform: rotate(45deg);
  pointer-events: none;
}
.field label {
  position: absolute; left: 15px; top: 16px; font-size: 15px; color: var(--ink-dim);
  pointer-events: none; transform-origin: left top; transition: transform .2s var(--ease), color .2s;
}
.field label em { font-style: normal; font-size: .85em; opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(19, 33, 47, .08);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select.filled + label {
  transform: translateY(-9px) scale(.76); color: var(--ink);
}
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.err { display: block; min-height: 0; font-size: 12.5px; color: var(--danger); margin: 4px 2px 0; }
.err:empty { display: none; }

.count {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 2px 18px;
}
.count-label { display: block; font-size: 15px; }
.count-sub { display: block; font-size: 12.5px; color: var(--ink-dim); }
.stepper { display: flex; align-items: center; border: 1px solid #d8cfbd; border-radius: 99px; background: rgba(255, 255, 255, .55); }
.stepper button {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1;
  color: var(--ink); border-radius: 99px; transition: background .2s;
}
.stepper button:hover:not(:disabled) { background: var(--paper-2); }
.stepper button:disabled { opacity: .25; cursor: default; }
.stepper output { min-width: 28px; text-align: center; font: 500 18px/1 var(--serif); font-variant-numeric: tabular-nums; }
.stepper output.bump { animation: bump .3s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.perforation {
  position: relative; height: 1px; margin: 12px calc(-1 * clamp(24px, 5vw, 40px)) 22px;
  background-image: linear-gradient(90deg, #cfc5b1 50%, transparent 50%); background-size: 10px 1px;
}
.perforation::before, .perforation::after {
  content: ""; position: absolute; top: calc(-1 * var(--notch)); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  border-radius: 50%; background: var(--sea);
}
.perforation::before { left: calc(-1 * var(--notch)); }
.perforation::after { right: calc(-1 * var(--notch)); }

.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.total span { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); }
.total strong { font: 400 26px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.total[hidden] + .btn { margin-left: auto; }
@media (max-width: 420px) { .submit-row .btn { width: 100%; } }

.btn .spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-error { margin: 14px 0 0; font-size: 14px; color: var(--danger); }
.form-error:empty { display: none; }
.privacy { margin: 18px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-dim); }

/* ---------- confirmation stub ---------- */
.stub { position: relative; text-align: left; outline: none; }
.stub h2 { font-size: clamp(28px, 6vw, 36px); margin-bottom: 26px; max-width: 12em; }
.stub-facts { margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; border-top: 1px dashed #cfc5b1; }
.stub-facts div { padding: 14px 0; border-bottom: 1px dashed #cfc5b1; }
.stub-facts dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
.stub-facts dd { margin: 4px 0 0; font: 400 18px/1.3 var(--serif); }
.stub-facts .code { font: 600 17px/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }
.stub-note { font-size: 14px; color: var(--ink-dim); margin: 0 0 24px; }
.stub-note:empty { display: none; }
.stub-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.link { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link:hover { color: var(--ink); }

.stamp {
  position: absolute; top: -6px; right: -4px; width: 96px; height: 96px; border-radius: 50%;
  border: 2px solid rgba(154, 122, 60, .75); display: grid; place-items: center;
  transform: rotate(-14deg); color: rgba(154, 122, 60, .9);
  font: 600 13px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
}
.stamp::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid rgba(154, 122, 60, .5); }
.stamp span { padding-left: .28em; }

.closed { text-align: center; padding: 12px 0; }
.closed h2 { margin-bottom: 10px; }
.closed p { margin: 0; color: var(--ink-dim); }

/* ---------- transitions ---------- */
.ticket.swap #form { animation: out .35s var(--ease) forwards; }
.stub.in { animation: in .6s var(--ease) both; }
.stub.in .stamp { animation: stamp .55s .35s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes in { from { opacity: 0; transform: translateY(12px); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-30deg) scale(1.8); } }

.reveal { animation: rise 1s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: .05s; }
.hero .reveal:nth-child(3) { animation-delay: .15s; }
.hero .reveal:nth-child(4) { animation-delay: .3s; }
.hero .reveal:nth-child(5) { animation-delay: .45s; }
.hero .reveal:nth-child(6) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 0 16px 48px; color: var(--silver-dim); font-size: 14px; }
.foot p { margin: 4px 0; }
.foot .small { font-size: 12px; letter-spacing: .12em; opacity: .6; }

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

/* facts: columns size to their content so long Icelandic names never overlap */
.details { max-width: 880px; }
.facts { display: flex; flex-wrap: wrap; column-gap: 32px; }
.facts div { flex: 1 1 auto; min-width: 110px; }
