/* The apex. One page, one column, one action, no navigation.
 *
 * Same token table as the room, deliberately duplicated rather than shared: this deploys
 * on its own worker at the apex, it must be unable to touch a Mark and untouchable by a
 * Mark deploy, and there is no build step to hold a shared file. Two small copies beat a
 * pipeline.
 */

:root {
  --bg: #fbfaf7;
  --fg: #1b1a17;
  --muted: #6d6a62;
  --line: #e4e0d7;
  --accent: #7a5c3e;

  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --h1: 2.5rem;
  --lead: 1.125rem;
  --padT: 2.5rem;
  --padX: 2rem;
  --secGap: 2.5rem;
  --gap3: 1.25rem;
  --cols3: repeat(3, 1fr);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --fg: #ece8e0;
    --muted: #9a958a;
    --line: #2c2a26;
    --accent: #c99a6b;
  }
}

@media (max-width: 480px) {
  :root {
    --h1: 1.9rem;
    --lead: 1rem;
    --padT: 1.5rem;
    --padX: 1.25rem;
    --secGap: 1.9rem;
    --gap3: 1.1rem;
    --cols3: 1fr;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 var(--serif);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--padT) var(--padX) 3rem;
  display: flex;
  flex-direction: column;
  gap: var(--secGap);
}

.wordmark { margin: 0; font-size: 1.05rem; letter-spacing: 0.06em; }

h1 {
  margin: 0;
  font-weight: 400;
  font-size: var(--h1);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.lead {
  margin: 0.9rem 0 0;
  font-size: var(--lead);
  color: var(--muted);
  max-width: 34rem;
  text-wrap: pretty;
}

.evening { margin: 0; max-width: 36rem; text-wrap: pretty; }

/* Three facts, three hairlines. Never boxes, never shadows. */
.three { display: grid; grid-template-columns: var(--cols3); gap: var(--gap3) 2rem; }
.three section {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.three h2 { margin: 0; font-size: 1.05rem; font-weight: 400; }
.three p { margin: 0; color: var(--muted); font-size: 0.95rem; text-wrap: pretty; }

.action { display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start; }

#create {
  font: inherit;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.6rem;
  min-height: 44px;
  cursor: pointer;
}
#create:hover { background: var(--line); }

.quiet { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* The caption pattern, applied to the page's own instructions: Italian carries the
   sentence, English sits beneath it in the sans, smaller and muted. */
.en-line {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 36rem;
  text-wrap: pretty;
}
.en-inline { font-family: var(--sans); font-size: 0.85rem; }

footer {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 38rem;
}
footer p { margin: 0; font-size: 0.9rem; }
footer .quiet { font-size: 0.8rem; text-wrap: pretty; }
