/* Ritual & Roar site styles. Brand source: 02-brand-system/tokens/brand-tokens.json */

@font-face {
  font-family: "Ritual Roar Display";
  src: url("../fonts/RitualRoarDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ritual Roar Display";
  src: url("../fonts/RitualRoarDisplay-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --turf: #24583b;
  --deep: #102a1d;
  --paint: #f7f4ea;
  --leather: #8a4b2b;
  --aged: #5c301f;
  --chalk: #c9c6ba;
  --frame: #e4e0d3;
  --display: "Ritual Roar Display", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5.6vw, 80px);
  --max: 1440px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paint);
  color: var(--deep);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--leather); }
a:hover { color: var(--aged); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--leather); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--paint); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--paint); color: var(--deep); padding: 10px 16px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.kicker {
  margin: 0;
  font-weight: 700; font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--leather);
}
.on-dark .kicker { color: var(--chalk); }

.display { font-family: var(--display); font-weight: 900; line-height: 0.93; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid transparent; border-radius: 0; cursor: pointer;
}
.btn-leather { background: var(--leather); color: #fff; }
.btn-leather:hover { background: var(--aged); color: #fff; }
.btn-line { border-color: var(--chalk); color: var(--paint); background: transparent; }
.btn-line:hover { background: rgba(247, 244, 234, 0.08); color: var(--paint); }
.btn svg { flex-shrink: 0; }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 104px; }
.nav .logo { display: block; line-height: 0; flex-shrink: 0; }
.nav .logo img { width: clamp(184px, 18vw, 260px); height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(8px, 2.5vw, 36px); }
.nav-links a.text {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-decoration: none;
  color: inherit; opacity: 0.72;
}
.nav-links a.text[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--leather); }
.nav-links a.text:hover { opacity: 1; }
.ig-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border: 1.5px solid currentColor; font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  text-decoration: none; color: inherit;
}
.on-dark .ig-pill { border-color: var(--chalk); }
.ig-pill:hover { color: inherit; background: rgba(127, 127, 127, 0.1); }
@media (max-width: 640px) {
  .nav { min-height: 72px; }
  .nav .logo img { width: 180px; }
  .nav-links { gap: 6px; }
  .nav-links a.text:first-child { display: none; }
  .nav-links a.text { padding: 0 8px; font-size: 14px; }
  .ig-pill { width: 44px; padding: 0; justify-content: center; }
  .ig-pill .handle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Hero (Roar mode) ---------- */
.hero { position: relative; background: var(--deep); color: var(--paint); overflow: hidden; }
.hero .rule {
  position: absolute; right: 0; bottom: clamp(44px, 7vw, 96px); height: 10px;
  left: clamp(140px, 41.6vw, 600px); background: var(--leather);
}
.hero-body {
  display: flex; justify-content: space-between; gap: 40px;
  padding-top: clamp(30px, 3.5vw, 50px); padding-bottom: clamp(110px, 14vw, 190px);
}
.hero-copy { max-width: 780px; display: flex; flex-direction: column; gap: clamp(20px, 2vw, 30px); }
.hero h1 { font-size: clamp(60px, 8.9vw, 128px); color: var(--paint); line-height: 0.92; }
.hero p.lede { margin: 0; max-width: 540px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}
.hero-stack { position: relative; width: 500px; height: 590px; flex-shrink: 0; }
.hero-stack .card { position: absolute; font-size: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.hero-stack .card:nth-child(1) { left: 0; top: 70px; }
.hero-stack .card:nth-child(2) { left: 164px; top: 0; }
@media (max-width: 1180px) { .hero-stack { display: none; } }

/* Template-style placeholder card (used in the hero stack and when a post has no image) */
.tcard {
  width: 24em; height: 30em; padding: 1.6em; display: flex; flex-direction: column; gap: 0.8em;
  background: var(--paint); color: var(--deep);
}
.tcard .wm { width: 9.6em; height: auto; }
.tcard .k { font-weight: 700; font-size: 0.75em; letter-spacing: 0.04em; color: var(--leather); }
.tcard .h { font-family: var(--display); font-weight: 900; font-size: 2.6em; line-height: 0.95; }
.tcard .ph { flex-grow: 1; min-height: 0; background: var(--frame); }
.tcard .row3 { flex-grow: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8em; }
.tcard .row3 span { background: var(--frame); }
.tcard .f { font-weight: 700; font-size: 0.6em; letter-spacing: 0.04em; color: var(--aged); }

/* ---------- Ticker (Turf) ---------- */
.ticker { background: var(--turf); color: var(--paint); overflow: hidden; height: clamp(48px, 4.4vw, 64px); display: flex; align-items: center; }
.ticker-track {
  display: flex; gap: clamp(24px, 2.8vw, 40px); white-space: nowrap; padding-left: 24px;
  font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.55vw, 22px); letter-spacing: 0.03em;
  animation: rr-marquee 40s linear infinite;
}
@keyframes rr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Feed (Ritual mode) ---------- */
.feed { padding-block: clamp(60px, 7vw, 100px) clamp(50px, 6.2vw, 90px); }
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.feed-head .titles { display: flex; flex-direction: column; gap: clamp(14px, 1.4vw, 20px); }
.feed-head h2 { font-size: clamp(44px, 5.8vw, 84px); line-height: 0.94; overflow-wrap: anywhere; }
.live {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--chalk); font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
}
.live .dot { width: 10px; height: 10px; background: var(--leather); animation: rr-pulse 1.6s ease-in-out infinite; }
@keyframes rr-pulse { 50% { opacity: 0.25; } }
@media (max-width: 640px) {
  .live { border: 0; padding: 0; min-height: 0; font-size: 12px; }
  .live .dot { width: 8px; height: 8px; }
}

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.chip {
  min-height: 44px; padding: 0 20px; border: 1.5px solid var(--deep); border-radius: 0;
  background: transparent; color: var(--deep); font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--deep); color: var(--paint); }
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; }
  .chip { flex-shrink: 0; font-size: 13px; padding: 0 16px; }
}

.stage { display: flex; gap: clamp(24px, 4.9vw, 70px); align-items: stretch; margin-top: 40px; }
.frame {
  position: relative; flex-shrink: 0; width: min(480px, 100%); aspect-ratio: 4 / 5;
  background: var(--frame); box-shadow: 0 20px 48px rgba(16, 42, 29, 0.18); overflow: hidden;
}
.frame a { display: block; width: 100%; height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .tag {
  position: absolute; right: 14px; top: 14px; padding: 6px 10px;
  background: var(--paint); color: var(--deep); font-weight: 700; font-size: 12px; letter-spacing: 0.1em;
}
.frame .tcard { width: 100%; height: 100%; font-size: clamp(12px, 3.6vw, 20px); }

.panel { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding-block: 8px; min-width: 0; }
.panel-top { display: flex; flex-direction: column; gap: 22px; }
.counter { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 8.3vw, 120px); line-height: 0.85; }
.progress { height: 10px; background: var(--chalk); position: relative; }
.progress span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--leather); transition: width 0.25s ease; }
.ptype { font-weight: 700; font-size: 16px; letter-spacing: 0.14em; color: var(--leather); text-transform: uppercase; }
.caption { margin: 0; max-width: 560px; font-size: clamp(17px, 1.55vw, 22px); line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.pdate { font-weight: 700; font-size: 14px; letter-spacing: 0.06em; color: var(--aged); text-transform: uppercase; }
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sq {
  width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--deep); border-radius: 0; background: transparent; color: var(--deep); cursor: pointer;
}
.sq.solid { background: var(--deep); color: var(--paint); }
.controls .btn { margin-left: 14px; min-height: 56px; }
@media (max-width: 860px) {
  .stage { flex-direction: column; }
  .frame { width: 100%; }
  .controls .btn { margin-left: 0; width: 100%; }
}

.strip { display: flex; gap: 20px; overflow-x: auto; padding: 10px 6px 14px; margin-top: 40px; scrollbar-width: thin; }
.thumb {
  flex-shrink: 0; width: 154px; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 0;
  background: var(--frame); cursor: pointer; opacity: 0.72; outline: 3px solid transparent; outline-offset: 5px;
  transition: transform 0.18s ease, opacity 0.18s ease; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-4px); opacity: 1; }
.thumb[aria-current="true"] { opacity: 1; outline-color: var(--leather); }
@media (max-width: 640px) {
  .strip { gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .thumb { width: 110px; }
}

.empty {
  margin-top: 40px; padding: clamp(28px, 4vw, 48px); border: 1.5px solid var(--chalk);
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.empty p { margin: 0; font-size: 18px; max-width: 560px; }

/* ---------- About ---------- */
.nav-light { border-bottom: 1px solid var(--chalk); }
.intro { position: relative; padding-block: clamp(56px, 7vw, 100px) clamp(110px, 12vw, 160px); }
.intro-grid { display: flex; justify-content: space-between; gap: clamp(32px, 5.6vw, 80px); }
.intro h1 { font-size: clamp(52px, 7.8vw, 112px); max-width: 780px; margin-top: 24px; }
.intro .copy { max-width: 470px; padding-top: 48px; display: flex; flex-direction: column; gap: 18px; }
.intro .copy p { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.intro .rule { position: absolute; left: 0; bottom: clamp(40px, 4.2vw, 60px); height: 10px; width: min(840px, 70%); background: var(--leather); }
@media (max-width: 900px) {
  .intro-grid { flex-direction: column; }
  .intro .copy { padding-top: 0; }
}

.lanes { background: var(--deep); color: var(--paint); padding-block: clamp(60px, 7vw, 100px); }
.lanes h2 { font-size: clamp(44px, 5.8vw, 84px); margin-top: 20px; }
.lane-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 4.2vw, 60px); }
.lane { background: var(--turf); padding: 30px 26px; display: flex; flex-direction: column; gap: 16px; }
.lane .n { font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: var(--chalk); }
.lane h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.1vw, 30px); line-height: 0.98; }
.lane p { margin: 0; font-size: 16px; line-height: 1.45; }
@media (max-width: 1100px) { .lane-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lane-grid { grid-template-columns: minmax(0, 1fr); } }

.standard { padding-block: clamp(60px, 7vw, 100px); }
.standard h2 { font-size: clamp(44px, 5.8vw, 84px); margin-top: 20px; }

/* ---------- Footer ---------- */
.foot { background: var(--deep); color: var(--paint); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(44px, 5vw, 64px); }
.foot .brand { display: flex; flex-direction: column; gap: 16px; }
.foot .brand img { width: clamp(220px, 21vw, 300px); height: auto; }
.foot .brand p { margin: 0; color: var(--chalk); font-size: clamp(15px, 1.1vw, 16px); }
.foot .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.foot .links { display: flex; gap: clamp(18px, 2vw, 28px); flex-wrap: wrap; }
.foot .links a { color: var(--paint); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; }
.foot .links a:hover { text-decoration: underline; }
.foot small { color: var(--chalk); font-size: 13px; }
.foot-cta { display: flex; justify-content: flex-end; padding-top: clamp(44px, 5vw, 70px); }
.foot-cta + .foot-inner {
  margin-top: clamp(36px, 4vw, 50px);
  background: linear-gradient(var(--turf), var(--turf)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
@media (max-width: 640px) {
  .foot .meta { align-items: flex-start; }
  .foot-cta { justify-content: flex-start; }
  .foot-cta .btn { width: 100%; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .live .dot { animation: none; }
  .thumb, .progress span { transition: none; }
}
