/* New Priors landing — same broadsheet theme as the app:
   off-white ground, black ink, one red accent, serif display type,
   dotted rules. Fonts are the app's open-licensed set, served locally. */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-serif-4.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-serif-4-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'STIX Two Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/stix-two-text.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/work-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('/fonts/oswald.woff2') format('woff2');
}

:root {
  --bg: #f7f6f2;
  --bg-inset: #efe9dc;
  --border: #ddd7c9;
  --border-strong: #222;
  --rule-dash: #a9a294;
  --text: #222;
  --text-dim: #666;
  --text-faint: #999;
  --accent: #dd3418;
  --red-deep: #8f1f0c;
  --green: #2e6f4e;
  --amber: #97773b;
  --purple: #6b4a8c;
  --blue: #10387b;
  --serif: 'Source Serif 4', Georgia, serif;
  --body-serif: 'STIX Two Text', Georgia, serif;
  --sans: 'Work Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --condensed: 'Oswald', 'Arial Narrow', sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin: 0 0 8px;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  background-image: linear-gradient(to right, var(--border-strong) 24%, rgba(255, 255, 255, 0) 0);
  background-position: bottom;
  background-size: 4px 1px;
  background-repeat: repeat-x;
}

h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0 8px;
}

/* ---- dateline ---- */

.dateline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 32px;
  border-bottom: 1px solid var(--border);
  font-family: var(--condensed);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.dateline-mid {
  color: var(--accent);
}

.dateline-link:hover {
  color: var(--accent);
}

/* On phones the three masthead items are too wide to share a line, so each
   was wrapping to two lines. Tighten spacing/size/padding and keep every item
   on a single line so the dateline stays one clean row. */
@media (max-width: 640px) {
  .dateline {
    gap: 10px;
    padding: 6px 16px;
    font-size: 9.5px;
    letter-spacing: 0.06em;
  }
  .dateline > * {
    white-space: nowrap;
  }
}

/* ---- nav ---- */

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topnav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-right: 10px;
  line-height: 1;
}

.topnav .brand:hover {
  color: var(--text);
}

.topnav .navlink {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.topnav .navlink:hover {
  color: var(--accent);
}

.spacer {
  flex: 1;
}

@media (max-width: 720px) {
  .topnav .navlink {
    display: none;
  }
}

/* ---- hero ---- */

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 76px 32px 64px;
  text-align: center;
}

.hero-kicker {
  font-family: var(--condensed);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.hero-sub {
  font-family: var(--body-serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  max-width: 680px;
  margin: 22px auto 0;
}

.hero-cta {
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 720px) {
  .hero {
    padding: 48px 24px 40px;
  }
  .hero h1 {
    font-size: 40px;
    letter-spacing: -0.8px;
  }
  .hero-sub {
    font-size: 17px;
  }
}

/* ---- layout ---- */

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 32px 96px;
}

section {
  margin-bottom: 72px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section-sub {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 20px;
}

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 40px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--border-strong);
  color: var(--bg);
}

.btn-go {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 15px;
  padding: 10px 24px;
}

.btn-go:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

.btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---- badges ---- */

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: 1px solid var(--text-faint);
  color: var(--text-dim);
  white-space: nowrap;
  background: transparent;
}

.badge.tone-blue {
  color: var(--blue);
  border-color: rgba(16, 56, 123, 0.45);
  background: rgba(16, 56, 123, 0.06);
}

.badge.tone-amber {
  color: var(--amber);
  border-color: rgba(151, 119, 59, 0.5);
  background: rgba(151, 119, 59, 0.07);
}

.badge.tone-purple {
  color: var(--purple);
  border-color: rgba(107, 74, 140, 0.45);
  background: rgba(107, 74, 140, 0.06);
}

.badge.tone-green {
  color: #2e6f4e;
  border-color: rgba(46, 111, 78, 0.45);
  background: rgba(46, 111, 78, 0.06);
}

/* ---- cards ---- */

.card {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 20px 24px;
}

.card-title {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  padding-bottom: 8px;
  background-image: linear-gradient(to right, var(--border-strong) 24%, rgba(255, 255, 255, 0) 0);
  background-position: bottom;
  background-size: 4px 1px;
  background-repeat: repeat-x;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---- featured carousel ---- */

.carousel-nav {
  display: flex;
  gap: 8px;
}

.car-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.car-btn:hover {
  background: var(--border-strong);
  color: var(--bg);
}

.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-dash) transparent;
}

.fcard {
  scroll-snap-align: start;
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 18px 20px 16px;
  transition: border-color 0.15s;
}

.fcard:hover {
  border-color: var(--accent);
  color: inherit;
}

.fcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.fcard-date {
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.fcard-q {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 70px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fcard-headline {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  margin-top: 14px;
  color: var(--accent);
}

.fcard-headline-mc {
  font-size: 38px;
}

.fcard-band {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fcard-link {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.fcard:hover .fcard-link {
  color: var(--accent);
}

@media (max-width: 720px) {
  .fcard {
    flex-basis: 290px;
  }
}

.empty {
  color: var(--text-faint);
  padding: 40px 0;
  text-align: center;
  width: 100%;
}

.empty a {
  color: var(--accent);
}

/* ---- steps ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

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

.step {
  border-top: 1px solid var(--border-strong);
  padding-top: 14px;
}

.step-num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.step p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

/* ---- question kinds ---- */

.kind-head {
  margin-bottom: 10px;
}

.kind-example {
  font-family: var(--body-serif);
  font-style: italic;
  font-size: 21px;
  margin-bottom: 8px;
}

.kind-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

.principle-text {
  font-family: var(--body-serif);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ---- closer ---- */

.closer {
  text-align: center;
  padding: 40px 24px 8px;
  border-top: 1px solid var(--border-strong);
}

.closer-line {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.closer-cta {
  justify-content: center;
  margin-top: 24px;
}

/* ---- footer ---- */

.footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 32px 28px;
  border-top: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.footer .brand-foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
}

.footer a {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.footer .foot-disclaimer {
  flex-basis: 100%;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  max-width: 720px;
}

/* The shifted-distribution logo mark, next to the wordmark. */
.brand-mark {
  height: 26px;
  width: auto;
  display: block;
}

.brand-mark-foot {
  height: 18px;
}
