:root {
  --red: #b92025;
  --red-dark: #861010;
  --wine: #570104;
  --cream: #f3ede4;
  --cream-deep: #e7ddd0;
  --wood: #843f0f;
  --ink: #140101;
  --gold: #e3a565;
  --line: rgba(20, 1, 1, 0.16);
  --line-soft: rgba(243, 237, 228, 0.28);
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --gutter: clamp(1.15rem, 4.2vw, 3.25rem);
  --max: 72rem;
  --header: 3.6rem;
  --split-start: minmax(22rem, 0.92fr);
  --split-end: minmax(0, 1.08fr);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: clip;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
  margin: 0;
  color: #000;
}

body.dck-brunch h1,
body.dck-brunch h2,
body.dck-brunch h3,
body.dck-brunch .hero h1,
body.dck-brunch .how h2,
body.dck-brunch .steps h3,
body.dck-brunch .authority h2,
body.dck-brunch .rules h2 {
  color: #000 !important;
}

body.dck-brunch .desire-panel h2,
body.dck-brunch .units h2,
body.dck-brunch .unit h3,
body.dck-brunch .close-panel h2 {
  color: var(--cream) !important;
}

.desire-panel h2,
.units h2,
.unit h3,
.close-panel h2 {
  color: var(--cream);
}

section[id] {
  scroll-margin-top: calc(var(--header) + 0.4rem);
}

p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 40;
  padding: 0.5rem 0.8rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.9rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.kicker {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wood);
}

.kicker-on-red {
  color: var(--cream);
  opacity: 0.82;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--red);
  color: var(--cream);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-on-red {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn-on-red:hover {
  background: var(--cream-deep);
  border-color: var(--cream-deep);
  color: var(--ink);
}

.btn-on-red:focus-visible {
  outline-color: var(--cream);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  height: var(--header);
  padding: 0 var(--gutter);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(20, 1, 1, 0.28);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 0.8;
}

.brand-mark {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.brand-sub {
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--wood);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--red);
}

.nav-cta {
  padding: 0.45rem 0.7rem;
  background: var(--red);
  color: var(--cream);
}

.nav-cta:hover {
  background: var(--red-dark);
  color: var(--cream);
}

/* Hero */

.hero {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  height: calc(100svh - var(--header));
  height: calc(100dvh - var(--header));
  max-height: calc(100svh - var(--header));
  max-height: calc(100dvh - var(--header));
  min-height: 0;
  overflow: hidden;
  background: var(--cream);
}

.hero-copy {
  padding: 1.15rem var(--gutter) 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  min-height: 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 11vw, 4.4rem);
  font-weight: 900;
  max-width: 10ch;
}

@media (max-width: 899px) {
  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(3.1rem, 14.5vw, 4.4rem);
  }

  .hero .lede,
  .hero .hero-note {
    margin-inline: auto;
  }

  .hero-actions {
    width: min(100%, 20rem);
  }
}

.lede {
  max-width: 34ch;
  font-size: 1.05rem;
  color: rgba(20, 1, 1, 0.78);
}

.hero-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--wood);
}

.hero-photo {
  margin: 0;
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

@media (min-width: 640px) {
  .hero-actions {
    grid-template-columns: max-content max-content;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: var(--split-start) var(--split-end);
  }

  .hero-copy {
    padding: 3.25rem var(--gutter) 3.5rem;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    border-right: 1px solid var(--line);
  }

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

/* How */

.how {
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.how-grid {
  display: flex;
  flex-direction: column;
}

.how-copy {
  padding: 2.4rem var(--gutter) 0;
  order: 1;
}

.how-photo {
  margin: 0;
  order: 2;
}

.how h2 {
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  margin: 0.45rem 0 1.6rem;
  max-width: 12ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.85rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--red);
  line-height: 1;
  padding-top: 0.15rem;
}

.steps h3 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.steps p {
  color: rgba(20, 1, 1, 0.76);
  max-width: 36ch;
}

.how-photo {
  margin: 0;
  order: 2;
}

.how-photo img {
  width: 100%;
  height: min(70vw, 22rem);
  object-fit: cover;
  object-position: 50% 40%;
}

@media (min-width: 900px) {
  .how-grid {
    display: grid;
    grid-template-columns: var(--split-start) var(--split-end);
    grid-template-areas: "photo copy";
    align-items: stretch;
    width: 100%;
  }

  .how-copy {
    grid-area: copy;
    order: unset;
    padding: 4.5rem var(--gutter) 4rem;
  }

  .how-photo {
    grid-area: photo;
    order: unset;
    position: relative;
    min-height: 0;
    overflow: hidden;
  }

  .how-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
  }
}

/* Desire */

.desire {
  background: var(--red);
  color: var(--cream);
}

.desire-photo {
  margin: 0;
  width: 100%;
}

.desire-photo img {
  width: 100%;
  max-width: none;
  height: min(88vw, 44rem);
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
}

.desire-panel {
  padding: 2.2rem var(--gutter) 2.6rem;
  background: var(--red);
  text-align: center;
}

.desire-panel h2 {
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  margin: 0.45rem auto 0.9rem;
  max-width: 14ch;
}

.desire-panel p {
  margin-inline: auto;
  max-width: 36ch;
  font-size: 1.08rem;
}

@media (min-width: 900px) {
  .desire-photo img {
    height: min(72vh, 46rem);
  }

  .desire-panel {
    padding: 3rem var(--gutter) 3.4rem;
  }
}

/* Authority */

.authority {
  background: var(--cream);
  padding: 3rem 0;
}

.authority-grid {
  display: grid;
  gap: 1.5rem;
}

.authority-photo {
  margin: 0;
}

.authority-photo img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  object-position: 50% 72%;
}

.authority h2 {
  font-size: clamp(1.85rem, 6vw, 3.1rem);
  max-width: 16ch;
  margin: 0.45rem 0 0.85rem;
}

.authority-copy p:last-child {
  max-width: 42ch;
  color: rgba(20, 1, 1, 0.78);
}

@media (min-width: 800px) {
  .authority {
    padding: 0;
  }

  .authority-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 0;
    width: 100%;
    max-width: none;
    align-items: stretch;
  }

  .authority-photo img {
    height: 100%;
    min-height: 22rem;
  }

  .authority-copy {
    padding: 3.5rem var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--line);
  }
}

/* Units */

.units {
  background: var(--red);
  color: var(--cream);
}

.units-visual {
  height: 16.5rem;
  overflow: hidden;
}

.units-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.units-copy {
  padding: 2.1rem var(--gutter) 2.6rem;
}

.units h2 {
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  margin: 0.4rem 0 0.7rem;
}

.units-lede {
  max-width: 34ch;
  margin-bottom: 1.6rem;
  color: rgba(243, 237, 228, 0.88);
}

.unit {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line-soft);
}

.unit:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.unit h3 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.unit p {
  margin-bottom: 0.9rem;
  color: rgba(243, 237, 228, 0.86);
}

@media (min-width: 900px) {
  .units {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 40rem;
  }

  .units-visual {
    height: auto;
  }

  .units-copy {
    padding: 3.5rem var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Rules */

.rules {
  background: var(--cream);
  padding: 3.2rem 0 3.5rem;
}

.rules h2 {
  font-size: clamp(2rem, 7vw, 3.6rem);
  max-width: 14ch;
  margin: 0.4rem 0 1.6rem;
}

.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rules-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.rules-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.rules-list span {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.rules-list p {
  max-width: 42ch;
  color: rgba(20, 1, 1, 0.78);
}

@media (min-width: 760px) {
  .rules-list li {
    grid-template-columns: 9.5rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

/* Close */

.close {
  position: relative;
  background: var(--wine);
  color: var(--cream);
}

.close-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  height: min(100vw, 38rem);
}

.close-photo img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -38%);
}

.close-panel {
  padding: 2rem var(--gutter) 2.4rem;
  background: var(--wine);
}

.close-panel h2 {
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  max-width: 12ch;
  margin: 0.4rem 0 1.2rem;
}

@media (min-width: 900px) {
  .close {
    min-height: 48rem;
  }

  .close-photo {
    height: min(88dvh, 52rem);
  }

  .close-photo img {
    width: 100%;
    transform: translate(-50%, -38%);
  }

  .close-panel {
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(34rem, 46%);
    background: var(--wine);
    padding: 2.4rem var(--gutter) 2.2rem;
  }
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 1.6rem 0 1.8rem;
}

.footer-grid {
  display: grid;
  gap: 0.55rem;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-meta {
  font-size: 0.92rem;
  color: rgba(243, 237, 228, 0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  text-decoration: none;
  color: var(--cream);
}

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

.footer-links a:focus-visible {
  outline-color: var(--cream);
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 900px) {
  .step-num {
    font-size: 2.2rem;
  }
}

/* WordPress admin bar: keep sticky header below it */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
