/* Standalone HalfKey Greatest Hits page (/eat) — the team's 43 favourite
   restaurants as a flat numbered tracklist. Hand-written (no Tailwind), same
   brand tokens + card grammar as stay-yotsuya.css, but a deliberately
   different shape: typographic navy masthead (album sleeve), ONE flat grid,
   no category sections, screen-only (no print/PDF block).
   DM Sans is OFL, self-hosted; font URLs are relative so they resolve against
   this file's /static location. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/DMSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/DMSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #172c49;
  --gold: #c1a158;
  --gold-ink: #8a6d2c; /* gold that clears WCAG as text on a light bg */
  --gold-light: #d4b872;
  --cream: #f8f7f4;
  --beige: #f3eee3;
  --white: #ffffff;
  --ink: #172c49;
  --note: #38445a;
  --muted: #5b6473;
  --border: #e7e3da;
  --shadow-card: 0 1px 2px rgba(23, 44, 73, 0.04), 0 12px 30px -14px rgba(23, 44, 73, 0.16);
  --shadow-lift: 0 3px 8px rgba(23, 44, 73, 0.07), 0 22px 46px -18px rgba(23, 44, 73, 0.28);
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --sans: "DM Sans", var(--jp), system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Header (slim white bar, mirrors the stay page) ─────────────────── */
.gh-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.gh-header .gh-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
}
.gh-header img {
  height: 32px;
  width: auto;
  display: block;
}
.gh-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ── Masthead (typographic album sleeve — navy, no photo) ───────────── */
.gh-masthead {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  text-align: center;
  padding: 76px 28px 72px;
}
.gh-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold); /* bright gold passes WCAG on navy */
}
.gh-masthead h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--cream);
}
.gh-rule {
  display: block;
  width: 44px;
  height: 2px;
  margin: 26px auto;
  background: var(--gold);
}
.gh-standfirst {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(248, 247, 244, 0.82);
}

/* ── Main ───────────────────────────────────────────────────────────── */
.gh-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 72px;
}

/* ── Tracklist grid (one flat grid — no sections) ───────────────────── */
.gh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 24px;
  margin-top: 44px;
}
.gh-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gh-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.gh-card:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}
.gh-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--beige);
  overflow: hidden;
}
.gh-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Track number — the album conceit. A frosted pill, like stay's walk-min chip. */
.gh-num {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(23, 44, 73, 0.14);
}
/* Persistent exact-location action, opposite the track number. */
.gh-maptag {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(23, 44, 73, 0.14);
  transition: background 0.25s ease;
  white-space: nowrap;
}
.gh-maptag svg {
  display: block;
}
.gh-maptag::after {
  content: "↗";
  margin-left: 1px;
  font-size: 13px;
  line-height: 1;
}
.gh-card:hover .gh-maptag,
.gh-card:focus-visible .gh-maptag {
  background: var(--gold);
}
.gh-credit {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 100%;
  padding: 10px 10px 4px;
  font-size: 9.5px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gh-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px 17px 17px;
}
.gh-name {
  display: block;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.gh-meta {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.gh-description {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--note);
}
/* Price tier on its own line under the meta (standardised with the stay page). */
.gh-price {
  margin: auto 0 0;
  padding-top: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-ink);
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.gh-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 26px 28px;
  font-size: 13px;
}
.gh-footer strong {
  color: #fff;
  font-weight: 700;
}
.gh-footer .gold {
  color: var(--gold);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .gh-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .gh-masthead {
    padding: 48px 20px 46px;
  }
  .gh-masthead h1 {
    font-size: 42px;
  }
  .gh-standfirst {
    font-size: 15px;
  }
  /* Stay 2-up on phones: 43 one-up cards is a fatiguing scroll, and the dish
     thumbnails stay legible at half width. Body type sizes down to match. */
  .gh-grid {
    gap: 14px 12px;
    margin-top: 32px;
  }
  .gh-num {
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 10.5px;
  }
  .gh-maptag {
    top: 8px;
    right: 8px;
    gap: 3px;
    padding: 3px 7px 3px 6px;
    font-size: 10.5px;
  }
  .gh-maptag::after {
    font-size: 11.5px;
  }
  .gh-body {
    padding: 11px 12px 13px;
  }
  .gh-name {
    font-size: 14px;
  }
  .gh-meta {
    font-size: 11.5px;
    margin-top: 3px;
  }
  .gh-description {
    margin-top: 7px;
    font-size: 11.25px;
    line-height: 1.45;
  }
  .gh-price {
    padding-top: 8px;
  }
  .gh-header .gh-inner,
  .gh-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}
