/*
Theme Name: Universal Soul Food
Author: Universal Soul Food
Description: Pre-opening website for Universal Soul Food, a Detroit takeout restaurant and catering kitchen preparing to open at 20711 Plymouth Road.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: usf
*/

:root {
  --bg: oklch(0.975 0.008 82);
  --bg-deep: oklch(0.22 0.022 48);
  --ink: oklch(0.27 0.028 48);
  --muted: oklch(0.42 0.02 52);
  --accent: oklch(0.48 0.16 30);
  --accent-ink: oklch(0.98 0.008 85);
  --gold: oklch(0.72 0.12 82);
  --line: oklch(0.88 0.012 75);
  --field: oklch(0.995 0.004 85);
  --danger: oklch(0.45 0.15 28);
  --space: 8px;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 560ms;
  --header: 4.6rem;
  --measure: 40rem;
  --page: min(1120px, calc(100% - 10vw));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -8%, oklch(0.92 0.04 55 / 0.7), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
.brand-universal {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 1rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 0.9rem;
  z-index: 40;
}

.skip:focus {
  top: 1rem;
}

.top-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklch, var(--bg) 88%, white);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.status-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 5vw;
  background: var(--bg-deep);
  color: oklch(0.94 0.015 85);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.status-bar p {
  margin: 0;
}

.status-bar a {
  color: var(--gold);
  text-decoration: none;
}

.status-bar a:hover {
  color: oklch(0.9 0.08 90);
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header);
  padding: 0.65rem 5vw;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
}

.brand-universal {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-soul {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.98rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: oklch(0.40 0.15 28);
  color: var(--accent-ink);
}

.btn-line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.btn-line:hover,
.btn-line:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.site-nav .header-cta {
  display: none;
}

.header-cta {
  white-space: nowrap;
  font-size: 0.92rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: calc(100svh - 7.2rem);
  background: var(--bg);
}

.hero-media {
  position: relative;
  min-height: calc(100svh - 7.2rem);
  background: var(--bg-deep);
}

.hero-media video,
.hero-media img,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  background:
    radial-gradient(ellipse at 35% 78%, oklch(0.48 0.15 34 / 0.75), transparent 48%),
    radial-gradient(ellipse at 78% 18%, oklch(0.78 0.12 85 / 0.38), transparent 40%),
    linear-gradient(165deg, oklch(0.30 0.03 46), oklch(0.16 0.015 40) 72%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(38rem, 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem) 5vw;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 34rem;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.hero-wait {
  margin-top: 1.4rem;
  max-width: 28rem;
}

.hero-copy > * {
  animation: usf-rise var(--dur) var(--ease) both;
}

.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 150ms; }
.hero-copy > :nth-child(4) { animation-delay: 220ms; }

@keyframes usf-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-narrow {
  max-width: var(--measure);
  margin-left: 0;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
}

.rule {
  width: 3.25rem;
  height: 2px;
  margin: 1.2rem 0 1.4rem;
  background: var(--gold);
  border: 0;
}

.band {
  background: var(--bg-deep);
  color: oklch(0.95 0.012 85);
}

.band a:hover {
  color: var(--gold);
}

.band .lede,
.band .fine {
  color: oklch(0.82 0.02 80);
}

.band .section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.7fr);
  gap: 2.5rem;
  align-items: end;
}

address {
  font-style: normal;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.phone {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 1.2rem;
  text-decoration: none;
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.55rem;
}

.gallery figure {
  margin: 0;
}

.gallery figure:first-child {
  grid-row: span 2;
}

.frame {
  min-height: 12rem;
  height: 100%;
  overflow: hidden;
}

.gallery figure:first-child .frame {
  min-height: 28rem;
}

.frame img,
.frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slot {
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-height: inherit;
  padding: 1rem;
  background: linear-gradient(180deg, oklch(0.95 0.015 75), oklch(0.90 0.025 62));
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
}

.media-slot p {
  margin: 0;
  font-size: 0.92rem;
}

figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.page-hero {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 0 1rem;
}

.page-hero p {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.split-note {
  max-width: 38rem;
}

.event-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 36rem;
}

.event-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}

.form-panel {
  max-width: 38rem;
  margin-top: 1.5rem;
}

label {
  display: block;
  margin: 1.15rem 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.2rem;
  font-weight: 400;
}

.check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
  accent-color: var(--accent);
  border: 0;
}

.form-panel .btn {
  margin-top: 1.4rem;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  max-width: 38rem;
  padding: 0.2rem 0 0.4rem;
  border-top: 2px solid var(--gold);
}

.notice-bad {
  border-top-color: var(--danger);
}

.errors {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--danger);
}

.fine {
  color: var(--muted);
  font-size: 0.92rem;
}

.draft-flag {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal {
  max-width: 42rem;
}

.legal h2 {
  font-size: 1.55rem;
  margin-top: 2rem;
}

.site-footer {
  background: var(--bg-deep);
  color: oklch(0.82 0.02 80);
  padding: 3rem 5vw 3.2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer strong {
  display: block;
  margin-bottom: 0.6rem;
  color: oklch(0.96 0.012 85);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.site-footer a {
  color: oklch(0.96 0.012 85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-status {
  color: var(--gold);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header .header-cta {
    display: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.4rem 5vw 1.2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .header-cta {
    display: inline-flex;
    margin-top: 0.3rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-media {
    min-height: 52svh;
  }

  .hero-copy {
    padding: 2.2rem 5vw 3rem;
  }

  .status-bar {
    flex-direction: column;
    gap: 0.15rem;
  }

  .band .section,
  .gallery,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .gallery figure:first-child {
    grid-row: auto;
  }

  .gallery figure:first-child .frame {
    min-height: 16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *,
  .js [data-reveal] {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
