@font-face {
  font-family: Fraunces;
  src: url("/fonts/fraunces-500.6aa3ceef.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-400.809405ce.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-600.3f05b0ce.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-500.5c5341fe.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0a08;
  --bg-2: #15130f;
  --ink: #f4efe6;
  --muted: #a9a293;
  --line: rgba(244, 239, 230, .12);
  --accent: #e8a45c;
  --signal: #7fd1c7;
  --bar: 4.25rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: clip;
}
img, video { max-width: 100%; }
h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--accent);
  color: var(--bg);
  padding: .6rem 1rem;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bar);
  background: rgba(11, 10, 8, .9);
}
.bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: -.03em;
}
.primary { display: none; gap: 1.35rem; margin-left: 1.25rem; }
.primary a, .mobile-nav a { color: var(--muted); text-decoration: none; }
.primary a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.05rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .3); }
.btn-small { min-height: 44px; margin-left: auto; padding: 0 .8rem; font-size: .92rem; }
.mobile-nav { position: relative; }
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 .35rem;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + .35rem);
  min-width: 12.5rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: .3rem 0;
}
.mobile-nav nav a { padding: .75rem 1rem; }

@media (min-width: 860px) {
  .primary { display: flex; }
  .mobile-nav { display: none; }
}

/* The hero's height comes from min-height alone. The poster and video are absolute, so
   nothing that loads later can push the page down after paint. */
.hero {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: calc(var(--bar) * -1);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--bg);
}
.hero.short { min-height: 70vh; min-height: 70svh; }
.hero-poster, .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.hero-video { z-index: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 10, 8, .78) 0%, rgba(11, 10, 8, .28) 55%, rgba(11, 10, 8, .35) 100%),
    linear-gradient(180deg, rgba(11, 10, 8, .55) 0%, rgba(11, 10, 8, .1) 36%, rgba(11, 10, 8, .9) 100%);
}
.hero-copy { position: relative; z-index: 3; padding: 0 0 4.75rem; }
.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker.signal { color: var(--signal); }
.hero-title {
  max-width: 12em;
  margin: .45rem 0 .7rem;
  font-size: clamp(2.45rem, 5.6vw, 5rem);
  line-height: .96;
}
.hero-title .w { display: inline-block; }
.deck { max-width: 36rem; color: var(--ink); font-size: 1.2rem; }
.answer-block { padding: clamp(2.25rem, 5vw, 3.5rem) 0 0; }
.answer { max-width: 40rem; margin: 0; color: var(--ink); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.page-head { padding: clamp(3rem, 9vw, 6rem) 0 0; }
.page-head .hero-title { max-width: 14em; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section h2 { font-size: clamp(2rem, 4vw, 3.15rem); max-width: 16ch; margin-bottom: 1.25rem; }
.num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--accent);
  font-size: .85rem;
  letter-spacing: .08em;
}
.num.signal { color: var(--signal); }

.offer {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: .35rem 1rem;
  align-items: start;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.offer:last-child { border-bottom: 1px solid var(--line); }
.offer h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.offer h3 a { text-decoration: none; }
.offer h3 a:hover { color: var(--accent); }
.offer p { color: var(--muted); max-width: 38rem; }
/* The SVG still is the card's art until the canvas has drawn, and stays when WebGL is off.
   The box has a fixed ratio, so swapping one for the other cannot move anything. */
.art {
  position: relative;
  grid-column: 1 / -1;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-2);
}
.art img, .art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art canvas { opacity: 0; transition: opacity .6s ease; }
.art.on canvas { opacity: 1; }
@media (min-width: 860px) {
  .offer { grid-template-columns: 4.5rem 1fr minmax(12rem, 18rem); align-items: center; gap: 1.5rem; }
  .art { grid-column: auto; }
}
.process { margin-top: 1.4rem; max-width: 40rem; color: var(--muted); }

.story-text { display: grid; gap: 1.1rem; max-width: 40rem; }
.story-text p { font-size: 1.15rem; color: var(--muted); }
.story-text p:first-child {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--ink);
}

.follow { background: var(--bg-2); }
.follow-note { color: var(--muted); margin: -.4rem 0 1.6rem; }
.nets { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nets li { display: grid; }
.nets a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  min-height: 5.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
}
.nets a:hover { border-color: var(--accent); }
.net { font-family: Fraunces, Georgia, serif; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.1; }
.handle { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.nets-big a { min-height: 8.5rem; background: var(--bg-2); }
.nets-big .net { font-size: clamp(1.7rem, 3vw, 2.3rem); }
@media (min-width: 860px) { .nets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.book { display: grid; gap: 2rem; max-width: 46rem; }
/* Reserved at the loaded height for a visitor outside Prague's zone: the zone note (two lines on
   a phone), two rows of days, and one day's times. Then nothing jumps when /api/slots answers.
   Loading and unavailable fill the same box. */
.slots { display: grid; align-content: start; gap: 1.25rem; min-height: 37.5rem; }
.slots.wait, .slots.closed {
  align-content: center;
  justify-items: center;
  padding: 1.5rem;
  border: 1px dashed rgba(244, 239, 230, .22);
  text-align: center;
  color: var(--muted);
}
.slots.closed p { max-width: 26rem; color: var(--ink); font-size: 1.1rem; }
.slots.closed a { color: var(--accent); }
.slots fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.slots legend { padding: 0; margin-bottom: .6rem; font-weight: 600; font-size: .95rem; }
.chips { display: grid; gap: .5rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.times .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 3.6rem;
  padding: .4rem .25rem;
  border: 1px solid rgba(244, 239, 230, .28);
  background: var(--bg-2);
  text-align: center;
  line-height: 1.25;
  cursor: pointer;
}
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-top { font-weight: 600; font-variant-numeric: tabular-nums; }
.chip-sub { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--accent); }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.chip:has(input:checked) .chip-sub { color: var(--bg); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.taken, .chip.full { border-style: dashed; color: var(--muted); cursor: default; }
.chip.taken:hover, .chip.full:hover { border-color: rgba(244, 239, 230, .28); }
.chip.taken input, .chip.full input { cursor: default; }
.chip.taken .chip-top, .chip.full .chip-top { text-decoration: line-through; }
@media (min-width: 700px) {
  .slots { min-height: 28rem; }
  .days .chips { grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); }
  .times .chips { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
}
.details { display: grid; gap: 1.1rem; max-width: 34rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.details:disabled { opacity: .5; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid rgba(244, 239, 230, .28);
  border-radius: 0;
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
.tz-note, .form-note, .alt { color: var(--muted); font-size: .95rem; }
.picked { min-height: 1.55em; font-weight: 600; }
.book .btn, .booked .btn { justify-self: start; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.book .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.book-page .how-title { margin: 3.5rem 0 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.how { max-width: 40rem; margin: 1rem 0 0; padding: 0; list-style: none; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.how li { padding: .7rem 0; border-top: 1px solid var(--line); }
.how li:last-child { border-bottom: 1px solid var(--line); }
.alt { margin-top: 1.75rem; }
.alt a { color: var(--ink); }
.booked { display: grid; gap: 1.25rem; max-width: 40rem; }
.booked .hero-actions { margin-top: 0; }

.why p { max-width: 36rem; font-size: 1.25rem; }
.points { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
.points li { padding: 1rem 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }

.faq { border-top: 1px solid var(--line); padding: .95rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: .55rem; color: var(--muted); max-width: 40rem; }
.faqs .faq:last-child { border-bottom: 1px solid var(--line); }

.close { background: var(--bg-2); }
.close h2 { max-width: 18ch; }
.close .btn { margin: 1.2rem 0 .8rem; }
.close a { color: var(--ink); }

.foot { padding: 2.5rem 0 3.5rem; color: var(--muted); font-size: .95rem; }
.foot a { color: var(--ink); }
.foot .wrap { display: grid; gap: .9rem; }
.langs {
  display: flex;
  gap: .55rem;
  align-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .78rem;
  letter-spacing: .08em;
}
.langs a { color: var(--muted); text-decoration: none; }
.langs a[aria-current="page"] { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: .35rem 1rem; list-style: none; margin: 0; padding: 0; }
.socials a { text-decoration: none; }
.socials a:hover { color: var(--accent); }
.foot address { font-style: normal; max-width: 46rem; }
.updated { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero-title .w { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-title .w:nth-child(1) { animation-delay: .02s; }
  .hero-title .w:nth-child(2) { animation-delay: .05s; }
  .hero-title .w:nth-child(3) { animation-delay: .08s; }
  .hero-title .w:nth-child(4) { animation-delay: .11s; }
  .hero-title .w:nth-child(5) { animation-delay: .14s; }
  .hero-title .w:nth-child(6) { animation-delay: .17s; }
  .hero-title .w:nth-child(7) { animation-delay: .2s; }
  .hero-title .w:nth-child(8) { animation-delay: .23s; }
  .hero-title .w:nth-child(9) { animation-delay: .26s; }
  .hero-title .w:nth-child(10) { animation-delay: .29s; }
  .hero-title .w:nth-child(11) { animation-delay: .32s; }
  .hero-title .w:nth-child(12) { animation-delay: .35s; }
  .hero-title .w:nth-child(13) { animation-delay: .38s; }
  .hero-title .w:nth-child(14) { animation-delay: .41s; }
  .js .reveal { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal:not(.in) { opacity: 0; transform: translateY(1.1rem); }
  .js .reveal[data-d="1"] { transition-delay: 80ms; }
  .js .reveal[data-d="2"] { transition-delay: 160ms; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(.35em); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 859px) {
  /* Copy is full-bleed here, so the desktop left-fade leaves the headline on his face.
     A darker wash keeps the type readable. Short heroes grow to a full screen so the
     kicker stays clear of the sticky bar. */
  .hero,
  .hero.short { min-height: 100vh; min-height: 100svh; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(11, 10, 8, .88) 0%, rgba(11, 10, 8, .82) 46%, rgba(11, 10, 8, .94) 100%);
  }
}
@media (max-width: 700px) {
  /* First screen is the kicker, this headline, the one-line subhead, and the three buttons:
     Write to me on its own row, the other two sharing one when they fit. */
  .hero-copy { padding-bottom: 2.75rem; }
  .hero-title { max-width: 12em; font-size: 2.05rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-actions .btn:first-child { flex-basis: 100%; }
}
