:root {
  color-scheme: dark;
  --bg: #101612;
  --panel: #1a2420;
  --line: #314038;
  --text: #f4efe4;
  --muted: #a8b5a4;
  --accent: #e0a15c;
  --ink: #1a140c;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

.bar {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem 2.4rem;
  background: linear-gradient(to bottom, rgba(16, 22, 18, 0.62), transparent);
}

.brand { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.brand-tools { display: flex; align-items: center; gap: 0.55rem; }
.home-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(16, 22, 18, 0.78);
}

.logo {
  display: block;
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.menu {
  width: 2.5rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(16, 22, 18, 0.78);
  display: grid;
  gap: 0.28rem;
  place-content: center;
  cursor: pointer;
}

.menu span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--text);
}

.nav {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 13rem;
  margin: 0;
  padding: 0.7rem;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.nav.open { display: grid; gap: 0.3rem; }

.nav a {
  display: block;
  padding: 0.5rem 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  border-radius: 10px;
}

.nav a:hover,
.nav a:focus-visible { background: rgba(224, 161, 92, 0.12); }

.band {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 1.25rem 3.5rem;
  background-position: center;
  background-size: cover;
  text-align: center;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(16, 22, 18, 0.78), rgba(16, 22, 18, 0.42) 46%, rgba(16, 22, 18, 0.28));
}

.band.bulls {
  min-height: 100vh;
  background-position: center 24%;
}

.fit {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 3.2rem;
  text-align: center;
}

.fit img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.fit h2 {
  margin-top: 1.15rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.fit .credit,
.panel .credit {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}
.fit .credit a,
.panel .credit a { color: var(--accent); }

.band > * { position: relative; z-index: 1; max-width: 40rem; }

.band > h1,
.band > h2,
.band > div,
.band > blockquote {
  background: rgba(16, 22, 18, 0.72);
  border-radius: 18px;
  padding: 1.15rem 1.35rem 1.35rem;
}

.band.low {
  align-items: flex-end;
  padding-bottom: 0;
}

.band.low > div {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.quote-band {
  display: block;
  height: 92vh;
  min-height: 32rem;
  padding: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.quote-band::before {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 14, 12, 0.88) 0%, rgba(10, 14, 12, 0.28) 46%, rgba(10, 14, 12, 0.12) 100%);
}

.quote-band blockquote p {
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-transform: none;
}

.quote-band cite {
  display: block;
  margin-top: 0.7rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.01em;
}

h1, h2 { margin: 0; font-weight: 700; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); text-transform: uppercase; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 5vw, 3.1rem); text-transform: uppercase; line-height: 1.08; }

.band p,
.copy p { line-height: 1.55; }

.band p { font-size: 1.28rem; font-weight: 600; }

.lead { margin: 0.9rem 0 0; }

a.go {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.62rem 1.05rem;
  text-decoration: none;
  font-weight: 700;
  text-shadow: none;
}

.nav a.go { text-align: center; margin-top: 0.2rem; }
.lead a.go { margin-top: 0.35rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.actions a.go { margin: 0; }

a.go:hover,
a.go:focus-visible { filter: brightness(1.08); }

.sheet {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 4.5rem;
}

.sheet h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }

.tools {
  width: min(1100px, calc(100% - 2rem));
  max-width: 100%;
  padding-top: 3.2rem;
  padding-bottom: 1.5rem;
}
.tools h2 { max-width: 100%; }
.tools .deck {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.5;
}
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 19rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
}
.tool img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.tool img.ridge { object-position: center 68%; }
.tool img.bar { object-position: center 38%; }
.tool:hover img,
.tool:focus-visible img { transform: scale(1.06); }
.tool-body {
  position: relative;
  z-index: 1;
  padding: 5.2rem 1.15rem 1.15rem;
  background: linear-gradient(to top, rgba(10, 14, 12, 0.94) 18%, rgba(10, 14, 12, 0));
}
.tool:has(img.bar) .tool-body {
  background: linear-gradient(to top, rgba(10, 14, 12, 0.96) 8.6rem, rgba(10, 14, 12, 0) 13rem);
}
.tool:has(img.bar) h3,
.tool:has(img.bar) .num {
  color: #f4efe4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.tool:has(img.bar) .num { color: #ff4d2e; }
.tool .num {
  color: #ff4d2e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.tool h3 {
  margin: 0.12rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.tool p { margin: 0.35rem 0 0; color: var(--text); line-height: 1.4; max-width: 28rem; }
.tool:hover,
.tool:focus-visible { border-color: #ff4d2e; }

.about-card {
  margin-top: 0.9rem;
  min-width: 0;
  max-width: 100%;
  padding: 1.35rem 1.3rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.about-card .wordmark {
  margin: 0;
  min-width: 0;
  max-width: 36rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0;
  text-transform: none;
}
.about-card .wordmark svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.about-copy p {
  margin: 0.85rem 0 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
}
.band.short { min-height: 28rem; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 1.4rem 0 1.2rem;
}

.tabs button,
.tabs a {
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
}

.tabs button[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.panel img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.panel div { padding: 1.1rem 1.2rem 1.3rem; }
.panel h3 { margin: 0 0 0.55rem; font-size: 1.35rem; }
.panel p { margin: 0.55rem 0 0; color: var(--text); }

.copy p { margin: 0.9rem 0 0; }
.copy p:first-of-type { margin-top: 1.2rem; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  padding: 0 0 3rem;
  color: var(--muted);
}

.foot a.go { color: var(--ink); }

.quote-band > .reel-track {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  transition: transform 0.55s ease;
}
.quote-band .reel-track figure {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  margin: 0;
}
.quote-band .reel-track img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quote-band .reel-track figcaption {
  position: absolute;
  left: 1rem;
  top: 6.4rem;
  z-index: 2;
  max-width: min(24rem, 70%);
  color: var(--text);
  font-size: 0.78rem;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}
.quote-band .reel-track figcaption a { color: var(--accent); }
.quote-band > .reel-arrow {
  position: absolute;
  top: 46%;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  max-width: none;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 22, 18, 0.62);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.quote-band > .reel-prev { left: 0.7rem; }
.quote-band > .reel-next { right: 0.7rem; }
.quote-band > .quote-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
}
.quote-band .reel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}
.quote-band .reel-dots button {
  width: 0.58rem;
  height: 0.58rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 239, 228, 0.55);
  cursor: pointer;
}
.quote-band .reel-dots button[aria-current="true"] { background: var(--accent); }
.quote-band .hero-line {
  margin: 0.35rem 0 0;
  color: var(--accent);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}
.quote-band blockquote {
  width: min(26rem, calc(100% - 1.5rem));
  margin: 0;
  background: rgba(22, 48, 36, 0.46);
  border-radius: 18px 18px 0 0;
  padding: 0.9rem 1.05rem 1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.page {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8rem 0 4rem;
}

.page h1 {
  text-transform: none;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.12;
}

.page .lead { font-size: 1.15rem; line-height: 1.5; }

.cards { display: grid; gap: 0.9rem; margin-top: 1.5rem; }

.card {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.card img { width: 100%; height: 100%; object-fit: cover; min-height: 9rem; }
.card div { padding: 0.95rem 1.05rem 1.1rem; }
.card h2 { font-size: 1.25rem; text-transform: none; letter-spacing: 0; }
.card p { margin: 0.4rem 0 0; color: var(--muted); line-height: 1.4; }

.post-hero {
  display: block;
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: 16px;
}

.page p { line-height: 1.55; margin: 0.9rem 0 0; }
.page h2 { margin-top: 1.8rem; font-size: 1.35rem; text-transform: none; letter-spacing: 0; }

.sources { margin-top: 1.6rem; color: var(--muted); font-size: 0.92rem; }
.sources a { color: var(--accent); }
.sources li { margin-top: 0.4rem; }

button.beta-open,
button.beta-send {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font-weight: 700;
}
.beta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(24rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}
button.beta-open {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
button.beta-open:hover { color: var(--ink); background: #efb56d; }
.beta-panel {
  width: 100%;
  max-height: min(70vh, 34rem);
  overflow: auto;
  background: var(--panel);
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 0.95rem 1rem 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.beta-panel h2 { font-size: 1.15rem; text-transform: none; letter-spacing: 0; }
.beta-panel label { display: block; margin-top: 0.7rem; }
.beta-panel textarea,
.beta-panel input {
  width: 100%;
  margin-top: 0.35rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
.beta-panel textarea { min-height: 6.5rem; resize: vertical; }
.beta-actions { margin: 0.7rem 0 0; }
button.beta-send { background: var(--accent); color: var(--ink); }
button.beta-send:hover { color: var(--ink); background: #efb56d; }
.beta-note { border-top: 1px solid var(--line); margin-top: 0.75rem; padding-top: 0.65rem; }
.beta-note p { margin: 0.25rem 0 0; white-space: pre-wrap; }
.beta-ref { color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }
.beta .quiet { color: var(--muted); }
.beta .status { color: var(--text); }

@media (max-width: 720px) {
  .panel { grid-template-columns: 1fr; }
  .panel img { max-height: 16rem; }
  .card { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .card img { max-height: 12rem; }
  .sheet { padding: 2.2rem 0 2.4rem; }
  .tools { padding-top: 1.6rem; }
  .tools h2 { font-size: 1.45rem; }
  .tool { min-height: 15.5rem; }
  .tool h3 { font-size: 1.65rem; }
  .about-card { padding: 1rem 0.9rem 1.15rem; }
  .about-card .wordmark { max-width: 100%; }
  .about-copy p { font-size: 1rem; }
  .quote-band .reel-track figcaption { max-width: calc(100% - 2rem); }
  .foot { gap: 0.7rem; }
}
