/* ============================================================
   Tom's Restaurant — late-night diner neon
   ============================================================ */

:root {
  --near-black: #0b0b0d;
  --neon-red: #e0332c;
  --neon-red-text: #b8241f; /* darkened for small text on cream — passes WCAG AA (5.4:1) */
  --amber: #f5c453;
  --cream: #f3ede1;
  --ink: #231f1a;
  --charcoal: #3a3632;

  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon-red-text);
  margin: 0 0 0.75rem;
}
.eyebrow-on-dark { color: var(--amber); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--near-black);
  border-bottom: 1px solid var(--charcoal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--cream);
  line-height: 1;
}
.wordmark-script {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--neon-red);
}
.wordmark-block {
  font-family: var(--display);
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--cream);
}

.nav-toggle-input { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--cream);
}
.site-nav a:hover { color: var(--amber); }

.nav-call {
  border: 1px solid var(--amber);
  color: var(--amber) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-call:hover {
  background: var(--amber);
  color: var(--ink) !important;
}

/* mobile nav */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 4rem 0 0 0;
    background: var(--near-black);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.25rem;
    gap: 1.5rem;
    font-size: 1.15rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-toggle-input:checked ~ .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (min-width: 761px) {
  .site-nav { position: static; }
}

/* No-JS fallback: without JS the checkbox still works via :checked (pure CSS),
   so the nav toggle functions with JS disabled. */

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--near-black);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 11, 13, 0.95) 0%,
    rgba(11, 11, 13, 0.65) 38%,
    rgba(11, 11, 13, 0.25) 65%,
    rgba(11, 11, 13, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4rem;
  color: var(--cream);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
  margin: 0 0 1rem;
}

.hero-title {
  margin: 0 0 1rem;
  line-height: 0.92;
}
.hero-title-script {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3rem, 14vw, 5.5rem);
  color: var(--neon-red);
  text-shadow: 0 0 18px rgba(224, 51, 44, 0.65), 0 0 42px rgba(224, 51, 44, 0.35);
}
.hero-title-block {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.05em;
  font-size: clamp(2rem, 8vw, 3.6rem);
  color: var(--cream);
}

.hero-tagline {
  font-size: 1.15rem;
  max-width: 32ch;
  margin: 0 0 2rem;
  color: var(--cream);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--neon-red);
  color: var(--cream);
  border-color: var(--neon-red);
}
.btn-primary:hover {
  background: transparent;
  color: var(--neon-red);
  border-color: var(--neon-red);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
}

/* ============================================================
   Story
   ============================================================ */
.story {
  padding: 5rem 0;
  background: var(--cream);
}

.story-grid {
  display: grid;
  gap: 2.5rem;
}

/* The source photo here is a small archival postcard scan (the only
   daytime shot that exists of the storefront) — framed deliberately as a
   postcard/keepsake rather than stretched to look like a crisp modern
   photo it isn't. Honest about its vintage, low-fi origin. */
.story-photo {
  max-width: 280px;
  margin: 0 auto;
}
.story-photo .postcard-frame {
  display: block;
  background: #fff;
  padding: 0.6rem 0.6rem 1.1rem;
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(35, 31, 26, 0.22);
  transform: rotate(-1.5deg);
}
.story-photo img {
  border-radius: 1px;
  width: 100%;
}
.story-photo figcaption {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--charcoal);
  margin-top: 0.6rem;
}

.story-copy h2 {
  font-family: var(--display);
  letter-spacing: 0.02em;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 0 0 1.1rem;
  color: var(--ink);
}

.story-copy p {
  font-size: 1.05rem;
  margin: 0 0 1.1rem;
  max-width: 56ch;
}

.callout {
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  background: rgba(224, 51, 44, 0.06);
  border-left: 4px solid var(--neon-red);
  border-radius: 2px;
}
.callout-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--neon-red-text);
  margin: 0 0 0.5rem;
}
.callout p:last-child { margin: 0; font-size: 0.98rem; }
.callout cite { font-style: italic; }

@media (min-width: 900px) {
  .story-grid {
    grid-template-columns: 0.7fr 1fr;
    align-items: center;
    gap: 4rem;
  }
  .story-photo { max-width: 320px; margin: 0; }
}

/* ============================================================
   Visit
   ============================================================ */
.visit {
  padding: 5rem 0 5.5rem;
  background: var(--near-black);
  color: var(--cream);
}

.visit-title {
  font-family: var(--display);
  letter-spacing: 0.02em;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 0 0 2.5rem;
  color: var(--cream);
}

.visit-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .visit-grid { grid-template-columns: repeat(3, 1fr); }
}

.visit-card {
  background: rgba(243, 237, 225, 0.04);
  border: 1px solid var(--charcoal);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
}
.visit-card h3 {
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 1.3rem;
  margin: 0 0 0.9rem;
  color: var(--amber);
}
.visit-card p { margin: 0 0 0.5rem; }
.visit-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.visit-link:hover { color: var(--cream); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.footer-texture {
  position: absolute;
  inset: 0;
  opacity: 0.16;
}
.footer-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 1.25rem 2.25rem;
  text-align: center;
}

.footer-wordmark {
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 1rem;
}
.footer-wordmark .wordmark-script { font-size: 1.5rem; }
.footer-wordmark .wordmark-block { font-size: 1.1rem; }

.footer-contact {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}
.footer-contact a { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a:hover { color: var(--amber); }

.footer-copy {
  font-size: 0.82rem;
  color: rgba(243, 237, 225, 0.6);
  margin: 0;
}

/* ============================================================
   Entrance animation (progressive enhancement)
   ============================================================ */
/* Content is visible by default — always, with or without JS, at any
   scroll position. Entrance motion is a pure CSS load-time animation, not
   scroll-triggered: it cannot depend on IntersectionObserver timing, a
   full-page screenshot tool's rendering pass, or JS being enabled at all,
   so a section can never end up stuck invisible. Below-the-fold sections
   simply finish their (very short) entrance before a user scrolls to them
   in practice — a small trade for guaranteed correctness. */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.js .reveal {
  animation: reveal-in 0.7s ease both;
}

.js .hero .reveal:nth-of-type(1) { animation-delay: 0.05s; }
.js .hero .reveal:nth-of-type(2) { animation-delay: 0.18s; }
.js .hero .reveal:nth-of-type(3) { animation-delay: 0.31s; }
.js .hero .reveal:nth-of-type(4) { animation-delay: 0.44s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
