/* Sister Soul Food — tokens through start.mjs brand (the trade's own
   colours: kitchen stone, cast-iron ink, oxblood from the painted sign).
   Pairing dealt newsreader class — a calm text serif, plain sans text —
   carried in system faces; no webfonts, no external requests. */
:root {
  --bg: #e8e5de;
  --surface: #dbd6cb;
  --ink: #221812;
  --muted: #615851;
  --accent: #7d0c14;
  --accent-dark: #630a10;
  --band: #221812;
  --band-surface: #2e241e;
  --band-ink: #e8e5de;
  --band-muted: #a39a90;
  --line: rgba(34, 24, 18, 0.16);
  --line-band: rgba(232, 229, 222, 0.22);
  --font-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.band a:focus-visible,
.band .button:focus-visible {
  outline-color: var(--band-ink);
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 40;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-words {
  display: grid;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}

/* ---------- Buttons: one style, soft corners ---------- */

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, transform 120ms var(--ease-out);
}

.button:active {
  transform: scale(0.98);
}

.button-inv {
  background: var(--band-ink);
  color: var(--band);
}

.header-row .button {
  min-height: 48px;
  padding: 0 18px;
  font-size: 0.95rem;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: var(--accent-dark);
  }

  .button-inv:hover {
    background: #ffffff;
  }

  .site-nav a:hover::after {
    transform: scaleX(1);
  }

  .arrow-link:hover .arrow {
    transform: translateX(3px);
  }
}

.arrow {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}

.arrow-link {
  text-underline-offset: 4px;
}

/* ---------- Hero: statement on the light ground, sign stripe under ---------- */

.hero-inner {
  min-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 0 96px;
}

.hero h1 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-sub {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.hero-action {
  margin: 40px 0 0;
}

.sign-stripe {
  height: 10px;
  background: var(--accent);
}

/* The one entrance: hero content rises once on load. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner [data-enter] {
  animation: rise 560ms var(--ease-out) backwards;
}

.hero-inner [data-enter]:nth-child(2) {
  animation-delay: 70ms;
}

.hero-inner [data-enter]:nth-child(3) {
  animation-delay: 140ms;
}

/* ---------- Sections ---------- */

.section {
  padding: 104px 0;
}

.section h2,
.close h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}

/* ---------- Visit ---------- */

.visit-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
  align-items: stretch;
}

.visit-panel {
  padding: 48px;
  border-radius: 14px;
  background: var(--surface);
}

.visit-panel p {
  margin: 0;
}

.visit-address {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 500;
}

.visit-address a {
  text-decoration: none;
}

.visit-phone {
  margin-top: 20px;
  font-size: 1.25rem;
  line-height: 1.5;
}

.visit-phone a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
  text-underline-offset: 4px;
}

.visit-directions {
  margin-top: 12px;
  font-size: 1rem;
}

.visit-directions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 500;
}

.visit-proof {
  margin: 0;
  align-self: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
}

/* ---------- The bowl: the price set large ---------- */

.bowl-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px;
  align-items: center;
}

.bowl-price {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(6.5rem, 15vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.bowl-text p {
  margin: 0;
}

.bowl-statement {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

.bowl-lines {
  margin-top: 20px;
  font-size: 1.25rem;
  line-height: 1.5;
}

.bowl-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- The counter: the dealt moment (word-highlight) ---------- */

.statement {
  max-width: 24ch;
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  text-wrap: balance;
}

.statement .accent-word {
  color: var(--accent);
  font-style: normal;
}

.counter-text {
  max-width: 620px;
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.5;
}

/* The statement turns from half ink to full ink as it crosses the
   screen. Without scroll-timeline support it simply rests at full ink. */
@supports (animation-timeline: view()) {
  .statement {
    animation: ink-in linear both;
    animation-timeline: view();
    animation-range: entry 15% entry 85%;
  }

  @keyframes ink-in {
    from {
      opacity: 0.55;
    }
    to {
      opacity: 1;
    }
  }
}

/* ---------- Close: name set wide on the iron band ---------- */

.band {
  background: var(--band);
  color: var(--band-ink);
}

.close {
  padding: 104px 0 0;
  overflow: hidden;
}

.close-line {
  margin: 24px 0 0;
  color: var(--band-muted);
  font-size: 1.15rem;
}

.close-action {
  margin: 36px 0 0;
}

.close-name {
  margin: 72px 0 -0.12em;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9.2vw, 8.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  white-space: nowrap;
}

/* ---------- Footer: columns ---------- */

.site-footer {
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-col p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.5;
}

.footer-col a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 4px;
}

.legal-row {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Phone bar ---------- */

.phone-bar {
  display: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  body {
    font-size: 16px;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .wrap {
    width: min(var(--wrap), calc(100% - 36px));
  }

  .header-row {
    min-height: 74px;
    gap: 16px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 1.28rem;
  }

  .site-nav {
    display: none;
  }

  .header-row .button {
    margin-left: auto;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .hero-inner {
    min-height: 0;
    padding: 64px 0 72px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13.5vw, 4.2rem);
  }

  .hero-action .button {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .visit-grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .visit-panel {
    padding: 24px;
  }

  .visit-address,
  .visit-phone {
    font-size: 1.125rem;
  }

  .bowl-grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
    gap: 28px;
  }

  .bowl-price {
    font-size: clamp(6rem, 34vw, 9rem);
  }

  .statement {
    margin-top: 36px;
  }

  .close {
    padding-top: 72px;
  }

  .close-action .button {
    width: 100%;
  }

  .close-name {
    margin-top: 52px;
    font-size: clamp(2.2rem, 11.5vw, 4rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .phone-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }

  .phone-bar .button {
    min-height: 52px;
    padding: 0 12px;
    font-size: 0.95rem;
  }

  .phone-call {
    flex: 1.35;
  }

  .phone-directions {
    flex: 1;
    background: var(--surface);
    color: var(--ink);
  }
}

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

  .hero-inner [data-enter] {
    animation: none;
  }

  .statement {
    animation: none;
    opacity: 1;
  }

  .button,
  .site-nav a::after,
  .arrow {
    transition: none;
  }

  .button:active {
    transform: none;
  }
}
