/* Chess Pizza — brand tokens (easy to extend) */
:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --yellow: #f5d400;
  --yellow-hot: #ffe44d;
  --white: #f7f7f5;
  --muted: #a8a8a0;
  --check-a: #111;
  --check-b: #f0f0ea;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --max: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--white);
  background: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* Checkerboard utility strip */
.check-strip {
  position: relative;
  z-index: 1;
  height: 0.7rem;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(17, 17, 17, 0.75) 0 0.7rem,
    rgba(240, 240, 234, 0.75) 0.7rem 1.4rem
  );
  background-size: 1.4rem 100%;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: 0.75rem;
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.wordmark svg {
  width: 1rem;
  height: 1.55rem;
  color: var(--white);
}

.nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
  color: var(--yellow);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: visible;
  background: transparent;
  isolation: isolate;
}

.hero__void {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, #121820 0%, #05070c 42%, #000 78%),
    #000;
}

.hero__nebula {
  position: absolute;
  inset: -10% -5% auto;
  height: 55%;
  background:
    radial-gradient(ellipse 45% 55% at 18% 35%, rgba(42, 78, 58, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 35% 40% at 78% 20%, rgba(36, 52, 72, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 52% 8%, rgba(28, 40, 48, 0.18) 0%, transparent 70%);
  filter: blur(2px);
  opacity: 0.9;
}

.hero__stars {
  position: absolute;
  inset: 0;
}

.hero__stars--far,
.hero__stars--near {
  background-repeat: no-repeat;
}

.hero__stars--far {
  opacity: 0.65;
}

.hero__stars--near {
  opacity: 0.9;
  animation: star-twinkle 7s ease-in-out infinite alternate;
}

.hero__scene {
  position: absolute;
  inset: 0;
}

.hero__canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* Let the board dissolve into the starfield instead of ending on a hard line */
  -webkit-mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.7) 78%,
    transparent 96%
  );
  mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.7) 78%,
    transparent 96%
  );
}

.hero__depth {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 50% 48%, transparent 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 28%, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 7.5rem var(--gutter) 3.25rem;
}

.hero__kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-style: italic;
  color: var(--white);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 16vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--yellow);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.55),
    0 12px 40px rgba(0, 0, 0, 0.75);
  opacity: 0;
  animation: rise 0.95s var(--ease) 0.28s forwards;
}

/* Stands in for the "I", the way the printed menu does. The artwork is 445:829,
   so the box matches that ratio and `contain` fills it exactly. */
.hero__brand .queen {
  display: inline-block;
  width: 0.41em;
  height: 0.76em;
  margin: 0 0.05em 0 0.01em;
  vertical-align: -0.02em;
  background: var(--white);
  mask: url("../assets/queen.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/queen.svg") center / contain no-repeat;
}

.hero__tag {
  margin: 1rem 0 0;
  max-width: 22rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: rise 0.95s var(--ease) 0.42s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
  opacity: 0;
  animation: rise 0.95s var(--ease) 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--yellow);
  color: var(--black);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--yellow-hot);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(247, 247, 245, 0.45);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* —— Sections —— */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter);
}

.section__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section__label {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--yellow);
}

.section__lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section__subhead {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--yellow);
}

.section--menu {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(2px);
}

.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.section--contact {
  background: linear-gradient(
    0deg,
    rgba(10, 10, 10, 0.97) 0%,
    rgba(10, 10, 10, 0.85) 38%,
    rgba(10, 10, 10, 0.58) 100%
  );
  backdrop-filter: blur(2px);
}

.contact-grid {
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-list dt {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}

.contact-list dd {
  margin: 0;
  font-size: 1.15rem;
}

.contact-list a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.hours {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 1.05rem;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(247, 247, 245, 0.12);
}

.hours span:last-child {
  color: var(--muted);
  text-align: right;
}

.note {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem var(--gutter) 2rem;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(2px);
}

.site-footer__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--yellow);
}

/* —— Motion —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes star-twinkle {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 0.95;
  }
}

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

  .hero__kicker,
  .hero__brand,
  .hero__tag,
  .hero__actions {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__stars--near {
    animation: none;
  }
}
