/* Coffeetime — opening soon.
   One idea: the round café table seen from above IS the 25-minute timer. Everything else stays
   quiet so the table can be the memorable thing. Dark roast, foam text, crema means "act". */

@font-face { font-family: "Fraunces"; src: url("assets/fonts/Fraunces-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/Fraunces-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("assets/fonts/Lato-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("assets/fonts/Lato-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --roast: #1E140E;        /* the page: a cup of espresso seen from above */
  --roast-raised: #2A1C14; /* the menu card */
  --crema: #D9A96A;        /* the ring, the one action colour */
  --foam: #F3E9DC;         /* text */
  --grounds: #B39A87;      /* secondary text */
  --sage: #9DB497;         /* "kept" — used once */
  --line: rgba(243, 233, 220, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Lato", "Segoe UI", system-ui, sans-serif;

  /* Type scale on a 1.333 ratio from a 1.0625rem body. */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.4rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--foam);
  background-color: var(--roast);
  /* The only gradient on the page: window light falling across the table from the upper left. */
  background-image: radial-gradient(60rem 42rem at 78% 18%, rgba(217, 169, 106, 0.10), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--crema); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  padding: .6rem 1rem; background: var(--crema); color: var(--roast); font-weight: 700; text-decoration: none;
  border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* Fraunces has no Greek letters. In Greek the browser falls back per glyph, so the fallback is
   chosen on purpose: serif faces with full Greek (Noto Serif on Android, Georgia/Palatino on desktops). */
:lang(el) { --font-display: "Fraunces", "Noto Serif", "Georgia", "Palatino Linotype", serif; }

/* ── Masthead ─────────────────────────────────────────────────────────── */

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--gutter) 0;
  max-width: 82rem; margin: 0 auto;
}

.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em;
  text-decoration: none; color: var(--foam);
}
.wordmark-cup { width: 1.6rem; height: 1.6rem; color: var(--foam); }

.lang { display: inline-flex; gap: .25rem; }
.lang button {
  min-width: 44px; min-height: 44px; padding: 0 .6rem;
  font: inherit; font-size: var(--step--1); letter-spacing: .04em;
  color: var(--grounds); background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--foam); border-color: var(--line); }
.lang button:hover { color: var(--foam); }

/* ── Hero: the table ──────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 82rem; margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(4rem, 9vw, 8rem);
}

.hero-copy { order: 2; max-width: 40rem; }

h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-3); line-height: 1.04; letter-spacing: -0.025em;
  text-wrap: pretty;
}

.lede {
  margin: 1.5rem 0 0; max-width: 30rem;
  font-size: 1.15rem; line-height: 1.65; color: var(--grounds);
}

.status {
  display: flex; align-items: center; gap: .6rem;
  margin: 2rem 0 1.5rem; color: var(--foam);
}
[hidden] { display: none !important; }
.status-dot {
  width: .55rem; height: .55rem; border-radius: 50%; background: var(--crema);
  box-shadow: 0 0 0 0 rgba(217, 169, 106, .5);
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.6rem;
  font: inherit; font-weight: 700; letter-spacing: .01em; text-decoration: none;
  color: var(--roast); background: var(--crema);
  border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .2s ease, transform .2s var(--ease-out);
}
.button:hover { background: #E5B77B; }
.button:active { transform: scale(.98); }

/* The table: a round video framed by the 25-minute ring. */
.table {
  order: 1; position: relative; margin: 0 auto;
  width: min(84vw, 34rem); aspect-ratio: 1;
}
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--line); stroke-width: .8; }
.ring-time {
  fill: none; stroke: var(--crema); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 1500; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.ticks line { stroke: var(--grounds); stroke-width: .7; stroke-linecap: round; opacity: .55; }
.ticks line.tick--five { stroke: var(--foam); opacity: .8; stroke-width: .9; }

.tabletop {
  position: absolute; inset: 7.5%;
  border-radius: 50%; overflow: hidden;
  background: #3A2A1F url("assets/media/meeting.jpg") center / cover;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(243, 233, 220, .08);
}
.tabletop-video { width: 100%; height: 100%; object-fit: cover; }

.clock {
  position: absolute; left: 50%; bottom: -0.3rem; transform: translateX(-50%);
  display: flex; align-items: baseline;
  padding: .2rem 1.1rem .35rem;
  font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
  color: var(--foam); background: var(--roast);
  border: 1px solid var(--line); border-radius: 999px;
}
.clock-colon { padding: 0 .05em; opacity: .7; }

@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .hero-copy { order: 1; }
  .table { order: 2; width: min(44vw, 36rem); margin-right: 0; }
}

/* One orchestrated moment on load: the table settles, the ring is poured, then the copy appears. */
@media (prefers-reduced-motion: no-preference) {
  .js .tabletop { animation: settle 1.4s var(--ease-out) both; }
  .js .ring-time { animation: pour 1.8s .35s var(--ease-out) both; }
  .js .ticks { animation: fade 1s .2s ease both; }
  .js .clock { animation: rise .9s 1.6s var(--ease-out) both; }
  .js .hero-copy > * { animation: rise-copy .9s var(--ease-out) both; }
  .js .hero-copy > :nth-child(1) { animation-delay: .5s; }
  .js .hero-copy > :nth-child(2) { animation-delay: .7s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .9s; }
  .js .hero-copy > :nth-child(4) { animation-delay: 1.05s; }
  .status-dot { animation: breathe 3.2s 2.4s ease-in-out infinite; }
}
@keyframes settle { from { opacity: 0; transform: scale(.94) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes pour { from { stroke-dashoffset: 1500; } }
@keyframes fade { from { opacity: 0; } }
/* The clock is centred with translateX(-50%), so it rises with that offset kept. */
@keyframes rise { from { opacity: 0; transform: translate(-50%, .6rem); } }
@keyframes rise-copy { from { opacity: 0; transform: translateY(.6rem); } }
@keyframes breathe { 50% { box-shadow: 0 0 0 .45rem rgba(217, 169, 106, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 169, 106, .45); } }
/* ── The menu card ────────────────────────────────────────────────────── */

.menu { padding: 0 var(--gutter) clamp(5rem, 10vw, 9rem); }

.menu-card {
  max-width: 40rem; margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  background: var(--roast-raised);
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(243, 233, 220, .05) inset;
}

.menu h2 {
  margin: 0; text-align: center;
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: var(--step-2); letter-spacing: -0.01em;
}
.menu-note { margin: .4rem 0 2.25rem; text-align: center; color: var(--grounds); font-size: var(--step--1); }

.menu-list { margin: 0; }
.menu-item + .menu-item { margin-top: 1.6rem; }
.menu-item dt {
  display: flex; align-items: baseline; gap: .6rem;
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25;
}
.leader {
  flex: 1 1 2rem; min-width: 1.5rem;
  border-bottom: 2px dotted rgba(179, 154, 135, .45);
  transform: translateY(-.3rem);
}
.price { flex: none; font-style: italic; color: var(--crema); }
.price--kept { color: var(--sage); }
.menu-item dd { margin: .35rem 0 0; max-width: 30rem; color: var(--grounds); }

@media (max-width: 30rem) {
  .menu-item dt { flex-wrap: wrap; }
  .leader { display: none; }
  .price { width: 100%; font-size: var(--step-0); }
}

/* ── Quiet: no feed, no streaks ───────────────────────────────────────── */

.quiet {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  max-width: 72rem; margin: 0 auto;
  padding: 0 var(--gutter) clamp(5rem, 10vw, 9rem);
}
.window {
  border-radius: 999px 999px 6px 6px; /* an arched café window */
  overflow: hidden; aspect-ratio: 3 / 4; max-width: min(16rem, 70vw); width: 100%; margin: 0 auto;
  background: #3A2A1F url("assets/media/mug.jpg") center / cover;
  border: 1px solid var(--line);
}
.window-video { width: 100%; height: 100%; object-fit: cover; }

.quiet-line {
  margin: 0; max-width: 24ch;
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-2); line-height: 1.22; letter-spacing: -0.015em;
  text-wrap: balance;
}
.quiet-aside { margin: 1.5rem 0 0; max-width: 34rem; color: var(--grounds); }

@media (min-width: 52rem) {
  .quiet { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
  .window { max-width: 20rem; }
}

/* ── Save a seat ──────────────────────────────────────────────────────── */

.seat {
  max-width: 40rem; margin: 0 auto; text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}
.seat h2 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-2); letter-spacing: -0.01em;
}
.seat-lede, .seat-closed { margin: .75rem auto 0; max-width: 32rem; color: var(--grounds); }

.seat-form {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin: 2rem auto 0; max-width: 32rem;
}
.seat-form input {
  flex: 1 1 15rem; min-height: 48px; padding: 0 1.2rem;
  font: inherit; color: var(--foam); background: rgba(243, 233, 220, .06);
  border: 1px solid rgba(243, 233, 220, .38); border-radius: 999px;
}
.seat-form input::placeholder { color: rgba(179, 154, 135, .85); }
.seat-form input:focus-visible { outline-offset: 2px; }
.seat-form input[aria-invalid="true"] { border-color: #E39A8A; }
.seat-privacy { margin: 1rem auto 0; max-width: 30rem; font-size: var(--step--1); color: var(--grounds); }
.seat-status { min-height: 1.6em; margin: 1rem 0 0; }
.seat-status--ok { color: var(--sage); }
.seat-status--error { color: #E8A797; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center;
  max-width: 82rem; margin: 0 auto; padding: 2rem var(--gutter) 2.5rem;
  font-size: var(--step--1); color: var(--grounds);
}
.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { text-underline-offset: .2em; }
.footer a:hover { color: var(--foam); }

/* ── Legal pages ──────────────────────────────────────────────────────── */

.legal { max-width: 42rem; margin: 0 auto; padding: 3rem var(--gutter) 5rem; }
.legal h1 { font-size: var(--step-2); }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); margin: 2rem 0 .5rem; }
.legal p { max-width: 38rem; }
.legal-address { font-style: normal; font-size: var(--step-1); font-family: var(--font-display); line-height: 1.4; margin: 1rem 0 2rem; }
.legal-updated { color: var(--grounds); font-size: var(--step--1); }
.legal a { color: var(--crema); text-underline-offset: .2em; }
.legal-back { margin-top: 3rem; }
/* On the legal pages the language switch is a pair of links, not buttons. */
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 .6rem;
  font-size: var(--step--1); letter-spacing: .04em; text-decoration: none;
  color: var(--grounds); border: 1px solid transparent; border-radius: 999px;
}
.lang a[aria-current="page"] { color: var(--foam); border-color: var(--line); }
.lang a:hover { color: var(--foam); }
