@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --heading: #1c1b18;
  --body: #4d4a44;
  --body-subtle: #6b675f;
  --white: #ffffff;
  --neutral-primary-soft: #ffffff;
  --neutral-primary-medium: #fcf9f5;
  --neutral-secondary-soft: #f6f2ee;
  --neutral-secondary: #f9f9f9;
  --neutral-secondary-medium: #efeae3;
  --neutral-tertiary: #e5ded5;
  --brand-softer: #eaf4fe;
  --brand-soft: #cfe6fc;
  --brand: #0277dd;
  --brand-strong: #025fac;
  --brand-border: #0268be;
  --brand-hover-strong: #02568f;
  --border: #c7c7c7;
  --radius-sm: 4px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
  --radius-full: 9999px;
  --focus-ring: 0 0 0 3px #80b9ee;
  --max: 1280px;
  --read: 768px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--neutral-secondary);
  color: var(--body);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

a {
  color: var(--brand-strong);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(4.5rem, 7.8vw, 6.5rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
}

.skip {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  background: var(--brand-strong);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.masthead {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: 32px;
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  text-decoration: none;
}

.brand img {
  width: 70px;
  height: 60px;
  object-fit: contain;
}

.brand span {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.masthead nav a,
footer nav a {
  padding: 0;
  background: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.ticker {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 64px);
  overflow: hidden;
  padding: 8px;
  background: var(--brand-strong);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticker span::before {
  content: "●";
  margin-right: 12px;
  color: var(--brand-soft);
}

.scoreboard {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 660px;
  width: min(calc(100% - 40px), var(--max));
  margin: 64px auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  background: var(--neutral-primary-medium);
}

.scoreboard > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vw, 96px);
  background: var(--neutral-primary-medium);
}

.kicker {
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scoreboard h1 {
  max-width: 1024px;
}

.scoreboard > div > p:not(.kicker) {
  max-width: 54ch;
  margin: 36px 0;
  font-size: 1.25rem;
}

.scoreboard > div > a,
.playbook > a {
  align-self: flex-start;
  padding: 12px 20px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-full);
  background: var(--brand-strong);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.scoreboard > div > a:hover,
.playbook > a:hover {
  background: var(--brand-hover-strong);
  color: var(--white);
}

.scoreboard figure {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: var(--brand-soft);
}

.scoreboard figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scoreboard figcaption {
  position: absolute;
  inset: auto 24px 24px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  background: var(--neutral-primary-soft);
  color: var(--heading);
  font-size: 1rem;
  font-weight: 600;
}

.scoreboard figcaption span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-strong);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desk {
  width: min(calc(100% - 40px), var(--max));
  margin: 96px auto;
}

.desk-mail {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
  padding: 96px 0;
}

.desk > header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  max-width: 768px;
  margin-bottom: 64px;
}

.desk > header > p {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  background: var(--neutral-primary-medium);
}

.story-card > span {
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

.story-card > div > p:first-child {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-card h3 {
  margin: 8px 0 16px;
}

.story-card h3 a {
  color: var(--heading);
  text-decoration: none;
}

.story-card > div > p:last-child {
  margin: 0;
  color: var(--body);
}

.playbook {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding: 80px max(20px, calc((100% - var(--max)) / 2));
  background: var(--neutral-secondary-soft);
  color: var(--body);
  border-block: 1px solid var(--border);
}

.playbook h2 {
  max-width: 768px;
}

.playbook p:not(.kicker) {
  max-width: 65ch;
}

.crumb {
  display: flex;
  gap: 10px;
  width: min(calc(100% - 40px), var(--max));
  margin: 32px auto;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.article {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--read));
  gap: clamp(40px, 8vw, 120px);
  width: min(calc(100% - 40px), var(--max));
  margin: 64px auto 96px;
}

.article aside {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  background: var(--neutral-primary-medium);
}

.article aside p,
.article aside strong {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.article aside a {
  font-size: 0.875rem;
}

.reading header {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.reading header h1,
.archive-head h1,
.guide-head h1 {
  font-size: clamp(2.75rem, 6.2vw, 6rem);
}

.reading header p {
  margin-top: 32px;
  color: var(--body);
  font-size: 1.125rem;
}

.prose {
  padding-top: 48px;
  font-size: 1rem;
  line-height: 1.65;
}

.prose h2,
.prose h3 {
  margin: 2.2em 0 0.7em;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose table {
  margin: 0 0 1.35em;
}

.prose img {
  width: 100%;
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
}

.prose table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
}

.prose th,
.prose td {
  padding: 10px;
  border: 1px solid var(--border);
}

.guide-link {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.related {
  display: grid;
  grid-template-columns: 150px repeat(3, 1fr);
  gap: 16px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 96px;
}

.related > p {
  padding: 24px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.archive-head,
.guide-head {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
  padding: 96px 0;
}

.archive-head > p:last-child,
.guide-head > p {
  max-width: 70ch;
  margin-top: 32px;
  font-size: 1.125rem;
}

.guide-head > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  max-width: 768px;
  margin-top: 64px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  background: var(--neutral-primary-medium);
}

.guide-steps {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 96px;
}

.guide-steps article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  margin-bottom: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  background: var(--neutral-primary-medium);
}

.guide-steps article > span {
  color: var(--brand-strong);
  font-size: 2rem;
  font-weight: 700;
}

.guide-steps article > div > p:first-child {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.guide-steps h2 {
  margin: 10px 0 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.guide-steps h2 a {
  color: var(--heading);
  text-decoration: none;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding: 64px max(20px, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--border);
  background: var(--neutral-secondary-soft);
  color: var(--body);
}

footer strong {
  color: var(--heading);
  font-size: 2rem;
  font-weight: 600;
}

footer p {
  max-width: 45ch;
}

footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

footer a {
  color: var(--brand-strong);
}

@media (max-width: 900px) {
  .masthead {
    grid-template-columns: 1fr;
  }

  .masthead nav {
    justify-content: flex-start;
    overflow: visible;
    flex-wrap: wrap;
  }

  .scoreboard,
  .article,
  .playbook,
  .related {
    grid-template-columns: 1fr;
  }

  .scoreboard figure {
    min-height: 450px;
  }

  .article aside {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.75rem, 15vw, 4.5rem);
  }

  .masthead,
  .scoreboard,
  .desk,
  .desk-mail,
  .crumb,
  .article,
  .related,
  .archive-head,
  .guide-head,
  .guide-steps {
    width: calc(100% - 28px);
  }

  .masthead nav {
    gap: 16px 24px;
  }

  .masthead nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .ticker {
    justify-content: flex-start;
  }

  .scoreboard {
    min-height: 0;
    margin-block: 32px;
  }

  .scoreboard > div {
    padding: 48px 24px;
  }

  .scoreboard > div > p:not(.kicker) {
    margin: 24px 0;
    font-size: 1rem;
  }

  .scoreboard figure {
    min-height: 380px;
  }

  .desk {
    margin-block: 64px;
  }

  .desk > header,
  .article aside,
  .guide-head > div {
    grid-template-columns: 1fr;
  }

  .story-card {
    grid-template-columns: 35px 1fr;
    padding: 24px 16px;
  }

  .playbook {
    padding-inline: 14px;
  }

  .guide-steps article {
    grid-template-columns: 55px 1fr;
    padding: 24px 16px;
  }

  .guide-steps article > span {
    font-size: 1.25rem;
  }

  footer {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 0.15s ease, background-color 0.15s ease;
  }
}

/* VibeCurb hero: typographic poster architecture within TypeUI Cream. */
:root {
  --hero-spring: linear(
    0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%,
    0.938 16.7%, 1.017 19.4%, 1.067 22.5%, 1.089 26%,
    1.079 30.3%, 1.049 36%, 1.024 42.6%, 1.011 50.3%,
    1.004 59.2%, 1.001 69.3%, 1
  );
  --hero-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

.scoreboard--vibecurb {
  position: relative;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 350px);
  min-height: calc(100dvh - 176px);
  margin-block: 34px 64px;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 18%, var(--brand-softer), transparent 32%),
    var(--neutral-primary-medium);
}

.scoreboard--vibecurb::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(90deg, transparent 49.9%, rgba(28, 27, 24, 0.035) 50%, transparent 50.1%);
  background-size: 12.5% 100%;
  pointer-events: none;
}

.scoreboard--vibecurb .scoreboard__copy {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  padding: clamp(40px, 4vw, 56px);
  background: transparent;
}

.scoreboard--vibecurb .kicker {
  margin-bottom: auto;
}

.scoreboard--vibecurb h1 {
  margin-block: clamp(44px, 6vh, 64px) clamp(30px, 4vh, 44px);
  font-size: clamp(4.2rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.scoreboard--vibecurb h1 span {
  color: var(--brand-strong);
}

.scoreboard--vibecurb .scoreboard__copy > p:not(.kicker) {
  max-width: 48ch;
  margin: 0 0 24px;
  color: var(--body-subtle);
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
}

.scoreboard--vibecurb .scoreboard__copy > a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  transition:
    transform 0.4s var(--hero-snap),
    box-shadow 0.4s var(--hero-snap),
    background-color 0.3s var(--hero-snap);
}

.scoreboard--vibecurb .scoreboard__copy > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2, 95, 172, 0.18);
}

.scoreboard--vibecurb .scoreboard__copy > a:active {
  transform: translateY(0) scale(0.98);
}

.scoreboard--vibecurb figure {
  min-height: 0;
  margin: clamp(20px, 2vw, 28px);
  margin-left: 0;
  border-radius: calc(var(--radius-xxl) - 6px);
}

.scoreboard--vibecurb figure img {
  transform: scale(1.015);
  transition: transform 0.7s var(--hero-snap);
}

.scoreboard--vibecurb figure:hover img {
  transform: scale(1.045);
}

.scoreboard--vibecurb figcaption {
  inset: auto 16px 16px;
  border-radius: var(--radius-xl);
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scoreboard--vibecurb .hero-enter {
    animation: hero-enter 0.55s var(--hero-spring) both;
  }

  .scoreboard--vibecurb .hero-enter--1 { animation-delay: 40ms; }
  .scoreboard--vibecurb .hero-enter--2 { animation-delay: 120ms; }
  .scoreboard--vibecurb .hero-enter--3 { animation-delay: 220ms; }
  .scoreboard--vibecurb .hero-enter--4 { animation-delay: 320ms; }
}

@media (max-width: 900px) {
  .scoreboard--vibecurb {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 178px);
  }

  .scoreboard--vibecurb .scoreboard__copy {
    min-height: 68dvh;
  }

  .scoreboard--vibecurb figure {
    min-height: 360px;
    margin: 0 20px 20px;
  }
}

@media (max-width: 560px) {
  .scoreboard--vibecurb {
    width: calc(100% - 28px);
    margin-block: 20px 52px;
    min-height: 0;
  }

  .scoreboard--vibecurb .scoreboard__copy {
    min-height: 72dvh;
    padding: 32px 20px 28px;
  }

  .scoreboard--vibecurb h1 {
    margin-block: 52px 40px;
    font-size: clamp(3.35rem, 17.5vw, 5.2rem);
    line-height: 0.86;
  }

  .scoreboard--vibecurb figure {
    min-height: 300px;
    margin: 0 12px 12px;
  }
}

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

  .scoreboard--vibecurb .hero-enter {
    animation: none;
  }

  .scoreboard--vibecurb .scoreboard__copy > a,
  .scoreboard--vibecurb figure img {
    transition: none;
  }

  .scoreboard--vibecurb .scoreboard__copy > a:hover,
  .scoreboard--vibecurb .scoreboard__copy > a:active,
  .scoreboard--vibecurb figure:hover img {
    transform: none;
  }
}
