/* ─────────────────────────────────────────────────────────────────────────────
   meo.hub — the public front door.

   Same neubrutalism as meo.local, and deliberately the same file structure, so
   a change made there is easy to carry over: flat fills, one dark outline
   colour, hard offset shadows, square corners, zero blur, no gradients.

   Palette, one job each:
     yellow green #e4f995  page + group label strip
     magenta      #ff0bac  the hard shadow, and the dot in the wordmark
     neon green   #65fc6a  :active and ::selection — the action colour
     ink          #1c2a1e  outlines and text

   Light only, and no dark scheme, matching meo.local. Magenta is 3.6:1 on
   white, so it never carries small text; the quiet text colour is olive
   darkened to #4a5f4e, which clears 4.5:1.

   Layout: one column, centred. There is no photo here to make the page — the
   card IS the page — so instead of meo.local's two-column split this one just
   sits in the middle of whatever screen it lands on. Which means no
   orientation-specific breakpoints either: two rows fit anywhere.
   ───────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Roboto Slab";
  src: url("assets/Roboto_Slab/RobotoSlab-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --yellow-green: #e4f995;
  --magenta: #ff0bac;
  --neon: #65fc6a;

  --outline: #1c2a1e;  /* the one dark colour, for borders and text */
  --text: #1c2a1e;
  --base: var(--yellow-green);
  --surface: #ffffff;
  --mute: #4a5f4e;     /* olive, darkened to clear 4.5:1 on white */
  --hover: var(--yellow-green);

  --border: 3px;
  --drop: 6px;
  --shadow-color: var(--magenta);

  --slab: "Roboto Slab", ui-serif, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --pad: clamp(1rem, 3vw, 2rem);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
}

@supports (height: 100svh) {
  body { min-height: 100svh; }
}

::selection {
  background: var(--neon);
  color: #1c2a1e;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── The column ────────────────────────────────────────────────────────────── */

/* Centred both ways. place-content rather than margin: auto, because the hard
   magenta shadow hangs off the bottom-right of the card and auto margins would
   centre the card's border box, leaving the shadow to push the whole thing
   visually off-axis. */
.page {
  max-width: 27rem;
  min-height: 100vh;
  margin-inline: auto;
  /* The extra --drop on the right and bottom is the shadow's room. Without it
     the offset block touches the viewport edge on a narrow phone. */
  padding: var(--pad) calc(var(--pad) + var(--drop)) calc(var(--pad) + var(--drop)) var(--pad);
  padding-left: max(var(--pad), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--pad);
}

@supports (height: 100svh) {
  .page { min-height: 100svh; }
}

.masthead h1 {
  margin: 0;
  font-family: var(--slab);
  font-size: clamp(2.1rem, 8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: inherit;
}

.masthead .dot {
  color: var(--magenta);
}

.tagline {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

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

.card {
  padding: 0;
  background: var(--surface);
  border: var(--border) solid var(--outline);
  border-radius: 0;
  box-shadow: var(--drop) var(--drop) 0 var(--shadow-color);
  overflow: hidden;
}

/* Group labels are full-width blocks, not floating text. */
.eyebrow {
  margin: 0;
  padding: 0.4rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--yellow-green);
  border-bottom: var(--border) solid var(--outline);
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li + li {
  border-top: 2px solid var(--outline);
}

.row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  /* Roomier than meo.local's rows: that page has to fit nine of them on a
     phone, this one has two. */
  padding: 0.7rem 0.85rem;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  transition: background-color 0.1s ease;
}

.chip {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.95rem;
  line-height: 1;
}

.chip img {
  max-width: 100%;
  max-height: 1.25rem;
  object-fit: contain;
}

.label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.label strong {
  font-family: var(--slab);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.label small {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.go {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

@media (hover: hover) {
  .row:hover {
    background-color: var(--hover);
  }
}

.row:active {
  background-color: var(--neon);
}

a:focus-visible {
  outline: var(--border) solid var(--magenta);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ── Very short viewport ───────────────────────────────────────────────────── */

/* Vertical centring in a flex column cannot be scrolled back into: if the
   content ever outgrows the viewport, the overflow above the centre line is
   unreachable. It never should here — a heading and two rows — but a phone in
   landscape with a large accessibility font size is exactly the case that
   proves "never" wrong, so hand the top edge back below that height. */
@media (max-height: 420px) {
  .page {
    justify-content: flex-start;
  }
}
