/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4
 * genre: editorial · macrostructure: Catalogue · theme: Newsprint (warmed)
 * tone: warm / homely · anchor hue: 78–82° warm ochre (from the wordmark)
 * nav: N6 Newspaper masthead · footer: Ft4 Dense colophon · enrichment: none
 *      (three supplied photographs, used in place; no generated imagery)
 * axes — paper band: light · display style: roman-serif · accent hue: warm
 * knobs — cards: 3-up uniform, 4:3, photo-led, no micro-action
 *         list: 2-col hairline rows, price right-aligned on the name row
 *
 * slop test 58/58 · contrast: pass (40–41) · slop: pass (42–45)
 * honest: pass (46 — lunch price is a labelled hole, not a guess)
 * chrome: pass (47) · tokens: pass (48) · responsive: pass (49)
 * icons: pass (30) · mobile: pass (34, 49, 50–57 @ 320/375/414/768/1024/1280)
 *
 * Every colour and font below references a token from tokens.css.
 */

/* ── Reset & root ─────────────────────────────────────────────────── */

html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }

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

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  padding-inline: max(0px, env(safe-area-inset-left));
}

h1, h2, h3, h4, p, ul, figure, table { margin: 0; }
ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }

/* All display type is roman — no italic headers anywhere. */
h1, h2, h3, h4 { font-style: normal; overflow-wrap: anywhere; min-width: 0; }

.vh {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--space-xs); top: -4rem;
  background: var(--color-ink); color: var(--color-paper);
  padding: var(--space-xs) var(--space-md);
  z-index: var(--z-sticky); white-space: nowrap;
}
.skip:focus-visible { top: var(--space-xs); }

.tnum { font-variant-numeric: tabular-nums; }

/* ── Shared rules & links ─────────────────────────────────────────── */

.rule {
  border: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
  margin: 0;
}
.rule--double {
  border-bottom: var(--rule-hair) solid var(--color-rule);
  height: 4px;
}

a { color: var(--color-accent-deep); }

a:focus-visible,
.btn:focus-visible,
.mast__markLink:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  /* Never transitioned — the ring is instant. */
}

/* ── N6 · Newspaper masthead ──────────────────────────────────────── */

.mast {
  display: grid;
  justify-items: center;
  gap: var(--space-xs);
  max-width: 68rem;
  margin-inline: auto;
  padding: var(--space-lg) var(--page-gutter) 0;
  text-align: center;
}

.mast__line {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* The supplied JPEG carries its own white margin; pull the rows back
   together so the masthead doesn't read as an accidental gap. */
.mast__markLink { display: block; line-height: 0; margin-block: calc(var(--space-lg) * -1); }

.mast__mark {
  width: clamp(13rem, 34vw, 21rem);
  height: auto;
  /* The supplied logo is a JPEG on white; multiply drops the white box
     onto the cream paper without needing a transparent PNG. */
  mix-blend-mode: multiply;
}

.mast__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
}

.mast__nav a {
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;               /* clickable text never wraps */
  color: var(--color-ink);
  padding-block: var(--space-2xs);
  border-bottom: var(--rule-hair) solid transparent;
  transition: border-color var(--dur-short) var(--ease-out);
}
.mast__nav a:hover { border-bottom-color: var(--color-accent); }
.mast__nav a:active { color: var(--color-accent-deep); }

.mast .rule--double { width: 100%; margin-top: var(--space-md); }

/* ── Status band ──────────────────────────────────────────────────── */

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;               /* the row mixes a 44px chip with text */
  gap: var(--space-xs) var(--space-lg);
  max-width: 68rem;
  margin-inline: auto;
  padding: var(--space-lg) var(--page-gutter) var(--space-xl);
}

.status__today {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.15;
}

.status__dot {
  width: var(--space-xs); height: var(--space-xs);
  border-radius: 50%;
  background: var(--color-neutral);
  translate: 0 -0.15em;
  flex: none;
}
.status__dot[data-open="true"]  { background: var(--color-open); }
.status__dot[data-open="false"] { background: var(--color-closed); }

.status__hours {
  color: var(--color-muted);
  font-size: var(--text-sm);
  flex: 1 1 14rem;
}

/* ── C1 · Outlined chip ───────────────────────────────────────────── */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-ink);
  background: transparent;
  border: var(--rule-hair) solid var(--color-ink);
  border-radius: var(--radius-0);
  padding: var(--space-sm) var(--space-lg);
  min-height: 44px;
  transition: background-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out),
              transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-ink); color: var(--color-paper); }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

@media (pointer: coarse) { .btn { min-height: 48px; } }

/* ── Sections & the category band ─────────────────────────────────── */

.section {
  max-width: 68rem;
  margin-inline: auto;
  padding: var(--space-2xl) var(--page-gutter) var(--space-3xl);
}
/* Rhythm is deliberately uneven — this one closes tighter. */
.section--tight { padding-block: var(--space-xl) var(--space-2xl); }

/* Band = the Catalogue divider language. Label stacked ABOVE its rule,
   single column at every width — never a tag-left / heading-right split. */
.band { display: grid; gap: var(--space-sm); margin-bottom: var(--space-xl); }

.band__label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede {
  max-width: var(--measure);
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-muted);
  margin-bottom: var(--space-xl);
}

.cat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: var(--space-2xl);
  padding-bottom: var(--space-xs);
  border-bottom: var(--rule-thick) solid var(--color-ink);
}
.cat--flush { margin-top: 0; }

.cat__note {
  max-width: var(--measure);
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.fineprint {
  max-width: var(--measure);
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* An honest hole, not an invented number. */
.tbd {
  font-weight: 500;
  color: var(--color-ink);
  background: var(--color-paper-3);
  padding: var(--space-3xs) var(--space-xs);
  box-decoration-break: clone;
}

/* ── Lounas · uniform catalogue cards ─────────────────────────────── */

.grid--cards {
  display: grid;
  gap: var(--space-xl) var(--space-lg);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 40rem) {
  .grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60rem) {
  .grid--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card { display: grid; gap: var(--space-sm); min-width: 0; }

.card__figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
}
.card__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-long) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__figure img { transform: scale(1.02); }
}

.card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1.2;
}
.card__note { font-size: var(--text-sm); color: var(--color-muted); }

/* ── Pizza size table ─────────────────────────────────────────────── */

.sizes {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
}
.sizes th, .sizes td {
  text-align: start;
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.sizes thead th {
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  color: var(--color-muted);
}
.sizes tbody th { font-weight: 500; }

/* ── Menu list ────────────────────────────────────────────────────── */

.list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--space-2xl);
  margin-top: var(--space-lg);
}
@media (min-width: 52rem) {
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: var(--space-md);
  padding-block: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.item__name {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
}
.item__desc {
  grid-column: 1 / -1;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-muted);
  margin-top: var(--space-3xs);
}
/* Price rides the name's row, hard right — not pushed below the description
   by the full-width desc row. */
.item__price {
  grid-column: 2;
  grid-row: 1;
  text-align: end;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
  white-space: nowrap;
}

/* ── Aukiolo ──────────────────────────────────────────────────────── */

.cols {
  display: grid;
  gap: var(--space-2xl) var(--space-3xl);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 52rem) {
  /* Deliberately unequal — the timetable carries more weight. */
  .cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td {
  text-align: start;
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-weight: 400;
}
.hours th { color: var(--color-muted); }
.hours tr[data-current="true"] th,
.hours tr[data-current="true"] td {
  color: var(--color-ink);
  font-weight: 600;
  border-bottom-color: var(--color-accent);
}

.aside { display: grid; gap: var(--space-md); align-content: start; }
.addr { font-size: var(--text-md); line-height: 1.45; }
.addr--note { font-size: var(--text-sm); color: var(--color-muted); }

.links { line-height: 2; }
.links a {
  text-decoration: none;
  white-space: nowrap;
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
  padding-bottom: var(--space-3xs);
  transition: border-color var(--dur-short) var(--ease-out);
}
.links a:hover { border-bottom-color: var(--color-accent-deep); }
.links a:active { color: var(--color-ink); }

/* ── Ft4 · Dense colophon ─────────────────────────────────────────── */

.colophon {
  max-width: 68rem;
  margin-inline: auto;
  padding: 0 var(--page-gutter) max(var(--space-2xl), env(safe-area-inset-bottom));
}
.colophon p {
  max-width: 58ch;
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-muted);
}
.colophon strong { color: var(--color-ink); font-weight: 600; }

/* ── Reduced motion ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .card__figure img { transition: none; }
  .card:hover .card__figure img { transform: none; }
}
