/* =========================================================
   STARVE THE DOG — stylesheet
   Brand: #1e1e1e (ink) / #ffffff (paper) / #0078ab (accent)
   ========================================================= */

:root {
  --ink: #1e1e1e;
  --ink-2: #141414;
  --ink-3: #2a2a2a;
  --paper: #ffffff;
  --paper-2: #f4f4f4;
  --accent: #0078ab;
  --accent-2: #00a0e0;
  --line: rgba(255, 255, 255, 0.1);
  --muted: rgba(255, 255, 255, 0.55);

  --font-display: "Anton", "Impact", "Bebas Neue", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Subtle film grain on the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.container--narrow { max-width: 760px; }

.section {
  padding: clamp(80px, 11vw, 140px) 0;
  position: relative;
  border-top: 1px solid var(--line);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 24px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 56px;
}
.section__title .accent { color: var(--accent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  opacity: 0.85;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(0, 160, 224, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 9px rgba(0, 160, 224, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.btn--primary {
  background: var(--accent);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}
.btn--block { width: 100%; }
.btn .btn__loading { display: none; }
.btn.is-loading .btn__label { display: none; }
.btn.is-loading .btn__loading { display: inline; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nav__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.nav__brandtext {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__brandtext em {
  color: var(--accent);
  font-style: normal;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__menu a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav__menu a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav__menu a:hover::after { width: 100%; }
.nav__cta {
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 0;
}
.nav__cta:hover { background: var(--paper); color: var(--ink); }

.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 9vw, 120px) 0 0;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(0, 120, 171, 0.18), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(0, 120, 171, 0.10), transparent 60%),
    var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  min-height: clamp(540px, 70vh, 760px);
  padding: 0 var(--gutter) clamp(60px, 9vw, 120px);
}
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 13vw, 180px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 30px;
}
.hero__title .line { display: block; }
.hero__title .line--2 {
  color: var(--accent);
  padding-left: clamp(20px, 4vw, 70px);
}
.hero__title .line--3 {
  -webkit-text-stroke: 2px var(--paper);
  color: transparent;
}
.hero__lede {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 36px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero__verse {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  max-width: 460px;
  margin: 0;
}
.hero__verse span { display: block; margin-top: 4px; opacity: 0.7; }

.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__logo {
  width: 100%;
  max-width: 540px;
  filter: drop-shadow(0 30px 60px rgba(0, 120, 171, 0.35));
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

/* Marquee */
.hero__marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding: 18px 0;
  margin-top: 0;
}
.marquee__track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing: 0.05em;
  color: var(--paper);
  animation: marquee 28s linear infinite;
}
.marquee__track span:nth-child(2n) { color: var(--accent); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- ABOUT ---------- */
.section--about { background: var(--ink); }
.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.about__copy p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
}
.about__copy strong { color: var(--accent-2); font-weight: 700; }
.about__verse {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 36px 32px;
  position: sticky;
  top: 110px;
}
.verse__ref {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 16px;
}
.about__verse blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  margin: 0;
  color: var(--paper);
  font-weight: 400;
}

/* ---------- EXPECT ---------- */
.section--expect { background: var(--ink-2); }
.expect__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 40px 32px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 4px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 160, 224, 0.4);
}
.card:hover::before { width: 100%; }
.card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

/* ---------- WHEN ---------- */
.section--when { background: var(--ink); }
.when__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.when__block {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}
.when__block:last-child { border-right: none; }
.when__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
}
.when__value {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.when__sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* ---------- RSVP ---------- */
.section--rsvp {
  background:
    radial-gradient(700px 400px at 70% 0%, rgba(0, 120, 171, 0.18), transparent 60%),
    var(--ink-2);
}
.rsvp__lede {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  margin: -32px 0 40px;
  max-width: 560px;
}
.rsvp {
  background: var(--ink);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.rsvp__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__label em {
  color: var(--accent-2);
  font-style: normal;
  margin-left: 2px;
}
.field input,
.field select {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--ink-3);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--ink-2);
}
.field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.rsvp__fieldset {
  border: 1px dashed var(--line);
  padding: 22px;
  margin: 6px 0;
}
.rsvp__fieldset legend {
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.waiver { margin-top: 4px; }
.waiver__check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--ink-3);
  border: 1px solid var(--line);
  padding: 18px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.waiver__check input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.waiver__check strong { color: var(--paper); }
.waiver__check em {
  color: var(--accent-2);
  font-style: normal;
}

.rsvp__success {
  margin: 0;
  padding: 18px 22px;
  background: rgba(0, 120, 171, 0.18);
  border-left: 4px solid var(--accent);
  color: var(--paper);
  font-weight: 600;
}
.rsvp__error {
  margin: 0;
  padding: 18px 22px;
  background: rgba(220, 70, 70, 0.18);
  border-left: 4px solid #d44;
  color: var(--paper);
  font-weight: 600;
}
.rsvp__error a { color: var(--paper); text-decoration: underline; }

.rsvp__contact {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}
.rsvp__contact a {
  color: var(--accent-2);
  border-bottom: 1px solid rgba(0, 160, 224, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.rsvp__contact a:hover {
  color: var(--paper);
  border-color: var(--paper);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 50px 0 40px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__logo { width: 32px; height: 32px; object-fit: contain; }
.footer__tag {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.footer__tag em { color: var(--accent); font-style: normal; }
.footer__verse {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}
.footer__contact {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.footer__contact a {
  color: var(--accent-2);
  border-bottom: 1px solid rgba(0, 160, 224, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer__contact a:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.footer__copy {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 60px;
  }
  .hero__art { order: -1; }
  .hero__logo { max-width: 320px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__verse { position: static; }
  .expect__grid { grid-template-columns: 1fr; }
  .when__grid { grid-template-columns: 1fr 1fr; }
  .when__block:nth-child(2) { border-right: none; }
  .when__block:nth-child(1),
  .when__block:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__menu a {
    padding: 16px var(--gutter);
    border-bottom: 1px solid var(--line);
  }
  .nav__menu a:last-child { border-bottom: none; }
  .nav__cta {
    text-align: center;
    background: var(--accent);
  }
  .nav__toggle { display: flex; }

  .rsvp__row { grid-template-columns: 1fr; }
  .when__grid { grid-template-columns: 1fr; }
  .when__block { border-right: none; border-bottom: 1px solid var(--line); }
  .when__block:last-child { border-bottom: none; }

  .hero__title { font-size: 22vw; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo,
  .marquee__track,
  .eyebrow .dot { animation: none !important; }
  html { scroll-behavior: auto; }
}
