/* tokens, type, and the room the pages sit in.
   the palette is a 1958 diner: Formica cream, persimmon vinyl, turquoise trim,
   harvest gold, and the near-black of a felt menu board. */

:root {
  --cream: #f6eedc;
  --cream-2: #efe4cd;
  --ink: #221b18;
  --ink-2: #3a2e28;
  --tomato: #c8402f;
  --aqua: #2e9c9b;
  --mustard: #e2a32b;
  --steel: #cdc7bb;
  --paper: #fffdf6;

  --shadow: 0 2px 0 rgba(34, 27, 24, 0.18);
  --lift: 0 10px 24px -14px rgba(34, 27, 24, 0.55);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Jost", "Futura", "Century Gothic", sans-serif;
  --script: "Grand Hotel", cursive;
  --mono: "Courier Prime", "Courier New", monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1180px;
}

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

/* a class with display: grid beats the ua sheet's [hidden], which is how a
   hidden fieldset ends up on screen anyway */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--cream);
  /* Formica: atomic boomerangs and starbursts, faint enough to be texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340' viewBox='0 0 340 340'%3E%3Cg fill='%23221b18' opacity='.05'%3E%3Cpath d='M24 78C34 40 74 18 116 28l-6 18c-32-6-60 10-70 38z'/%3E%3Cpath d='M210 250c10-38 50-60 92-50l-6 18c-32-6-60 10-70 38z'/%3E%3C/g%3E%3Cg fill='%23c8402f' opacity='.07'%3E%3Cpath d='M150 120c10-32 46-50 82-42l-5 16c-28-6-52 8-61 32z'/%3E%3C/g%3E%3Cg fill='%232e9c9b' opacity='.07'%3E%3Cpath d='M40 200c10-32 46-50 82-42l-5 16c-28-6-52 8-61 32z'/%3E%3C/g%3E%3Cg stroke='%23221b18' stroke-width='1.4' opacity='.08'%3E%3Cpath d='M262 60v22M251 71h22'/%3E%3Cpath d='M96 160v16M88 168h16'/%3E%3Cpath d='M186 300v18M177 309h18'/%3E%3C/g%3E%3Cg fill='%23e2a32b' opacity='.16'%3E%3Ccircle cx='300' cy='128' r='3'/%3E%3Ccircle cx='68' cy='276' r='2.6'/%3E%3Ccircle cx='140' cy='40' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem); font-stretch: 108%; }
h4 { font-size: 0.95rem; font-stretch: 100%; letter-spacing: 0.06em; }

p { margin: 0 0 1em; }
a { color: inherit; }

/* --- chrome rail ---------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--ink); color: var(--cream); padding: 0.6rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.rail {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0.55rem var(--gutter);
  background: linear-gradient(180deg, #fdfaf2 0%, #e6e0d4 46%, #cfc8ba 52%, #f2ece1 100%);
  border-bottom: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.mark { display: flex; align-items: baseline; gap: 0.4rem; text-decoration: none; }
.mark-script {
  font-family: var(--script);
  font-size: 1.85rem;
  color: var(--tomato);
  line-height: 1;
  text-shadow: 0 0 0.6rem rgba(200, 64, 47, 0.35);
}
.mark-dept {
  font-family: var(--display);
  font-weight: 800; font-stretch: 120%;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.nav { display: flex; gap: clamp(0.6rem, 2vw, 1.6rem); margin-right: auto; flex-wrap: wrap; }
.nav a {
  font-family: var(--display);
  font-size: 0.78rem; font-weight: 600; font-stretch: 96%;
  text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none; padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--tomato); }
.nav a[aria-current="page"] { border-bottom-color: var(--aqua); }

.rail-hours {
  margin: 0; font-family: var(--script); font-size: 1.15rem; color: var(--aqua);
}

@media (max-width: 720px) {
  .rail { flex-wrap: wrap; gap: 0.4rem 1rem; padding: 0.45rem var(--gutter); }
  .rail-hours { display: none; }
  /* one row that scrolls beats two rows of sticky header eating the screen */
  .nav {
    order: 3; width: 100%; gap: 1rem; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .nav a { font-size: 0.72rem; letter-spacing: 0.08em; padding: 0.75rem 0; }
  .mark { padding: 0.4rem 0; }
  .mark-script { font-size: 1.6rem; }
  .mark-dept { font-size: 0.92rem; }
}
@media (max-width: 380px) {
  .nav { gap: 0.6rem; }
  .nav a { font-size: 0.66rem; }
}

main { display: block; }

/* --- shared furniture ----------------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.head { margin-bottom: 1.6rem; }
.kicker {
  font-family: var(--display);
  font-size: 0.72rem; font-weight: 700; font-stretch: 92%;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--tomato); margin: 0 0 0.4rem;
}

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.btn {
  min-height: 44px;
  font-family: var(--display);
  font-size: 0.78rem; font-weight: 700; font-stretch: 104%;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.62rem 1.1rem;
  line-height: 1.5;
  background: var(--tomato); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow); cursor: pointer; text-decoration: none;
  display: inline-block; transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); background: #b9382a; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-quiet { background: var(--paper); color: var(--ink); }
.btn-quiet:hover { background: var(--mustard); }

:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
}

/* --- footer --------------------------------------------------------------- */
.foot {
  margin-top: 4rem;
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}
.foot-inner {
  max-width: var(--max); margin: 0 auto; padding: 2.2rem var(--gutter) 2.6rem;
  display: grid; gap: 0.7rem;
}
.foot p { margin: 0; font-size: 0.9rem; opacity: 0.82; }
.foot-mark { font-size: 1rem; opacity: 1; }
.foot-mark .mark-dept { color: var(--cream); }
.foot-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.4rem; }
.foot-nav a { color: var(--mustard); font-size: 0.78rem; padding: 0.5rem 0; display: inline-block; }
