/* ==========================================================================
   Prescribed News — site styles
   Brand: black, white, Prescribed News teal #1cabb0
   Premium editorial-tech. Restrained graphics, clear typography.
   ========================================================================== */

:root {
  --bg:        #0A0A0B;
  --bg-soft:   #111114;
  --bg-card:   #131317;
  --line:      rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text:      #F5F5F6;
  --muted:     #9B9BA3;
  --teal:      #1CABB0;
  --teal-soft: rgba(28, 171, 176, 0.13);
  --max:       1140px;
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--teal); color: #04211F; }

/* ---------- Layout primitives ---------- */

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

.section { padding: 104px 0; border-top: 1px solid var(--line-soft); }
.section--tight { padding: 72px 0; }
.section--plain { border-top: 0; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }

.display {
  font-weight: 600;
  letter-spacing: -0.038em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--teal);
  flex: none;
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.h2 { font-size: clamp(1.875rem, 4vw, 2.85rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); }
.measure { max-width: 68ch; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.brand__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.nav { display: flex; align-items: center; gap: 30px; }

.nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(76px, 12vw, 148px) 0 clamp(60px, 8vw, 104px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -240px;
  right: -150px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(28, 171, 176, 0.15), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero > .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.5rem, 7.6vw, 5.25rem);
  max-width: 16ch;
  margin-bottom: 30px;
}

.hero .lede { font-size: clamp(1.0625rem, 1.75vw, 1.375rem); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero__meta span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--teal); }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--teal); color: #041E1F; font-weight: 600; }
.btn--primary:hover { background: #24C2C7; }

.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.04); }

/* ---------- Split section (heading left, body right) ---------- */

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Promise list ---------- */

.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.promises li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}

.promises li:first-child { border-top: 1px solid var(--line-soft); }

.promises .num {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  line-height: 1.2;
}

.promises .txt { font-size: 17px; color: var(--text); }

/* ---------- Lens grid ---------- */

.lenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 56px; }

.lens {
  background: var(--bg);
  padding: 34px 30px 38px;
  transition: background 0.25s var(--ease);
}

.lens:hover { background: var(--bg-card); }

.lens__num {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--teal);
  margin-bottom: 18px;
}

.lens h3 { font-size: 1.1875rem; margin-bottom: 12px; letter-spacing: -0.015em; }
.lens p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Quote ---------- */

.quote {
  border-left: 2px solid var(--teal);
  padding: 6px 0 6px 32px;
  margin: 0;
}

.quote p {
  font-size: clamp(1.375rem, 3.1vw, 2.125rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.032em;
  color: var(--text);
}

.quote footer { margin-top: 20px; font-size: 14px; color: var(--muted); }

.band { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- Two-column lists ---------- */

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 5vw, 64px); margin-top: 48px; }

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

.list li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.55;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 11px;
  height: 1px;
  background: var(--teal);
}

.list--plain li { padding-left: 0; border-bottom: 0; padding-top: 4px; padding-bottom: 4px; }
.list--plain li::before { display: none; }

.sub {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

/* ---------- Fact rows ---------- */

.facts { margin-top: 44px; border-top: 1px solid var(--line-soft); }

.fact {
  display: grid;
  grid-template-columns: minmax(140px, 0.5fr) minmax(0, 1.5fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.fact dt { font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal); }
.fact dd { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- Exclusions ---------- */

.nots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; list-style: none; padding: 0; }

.nots li {
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 20px 22px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.nots li::first-line { color: var(--muted); }

/* ---------- Host ---------- */

.host { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 80px); align-items: start; }

.host__name { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 8px; }
.host__role { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 28px; }

/* ---------- CTA ---------- */

.cta { text-align: center; padding: clamp(64px, 8vw, 96px) 0 clamp(80px, 10vw, 116px); }
.cta h2 { max-width: 20ch; margin: 0 auto 22px; }
.cta .lede { margin: 0 auto; }
.cta .actions { justify-content: center; }
.cta .eyebrow { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 62px 0 44px; }

.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }

.site-footer__tag {
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(1.1875rem, 2.4vw, 1.625rem);
  line-height: 1.3;
  max-width: 30ch;
  margin: 14px 0 0;
}

.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }

.site-footer__links a {
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer__links a:hover { color: var(--teal); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .split, .split--even, .host { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .section { padding: 76px 0; }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .quote { padding-left: 22px; }
}

@media (max-width: 620px) {
  .nots { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { gap: 18px; }
  .brand { font-size: 11.5px; letter-spacing: 0.11em; }
  .actions .btn { width: 100%; justify-content: center; }
  .promises li { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .lens { padding: 28px 24px 32px; }
  .site-footer__top { gap: 34px; }
}

@media (max-width: 400px) {
  .nav a[href="#top"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Newsletter signup ---------- */

.signup {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  max-width: 540px;
  flex-wrap: wrap;
}

.signup input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.signup input[type="email"]::placeholder { color: #6E6E77; }

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28, 171, 176, 0.16);
}

.signup .btn { flex: 0 0 auto; }

.form-note { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 52ch; }

/* ---------- Social links ---------- */

.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.socials a:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: rgba(28, 171, 176, 0.08);
  transform: translateY(-2px);
}

.socials svg { width: 19px; height: 19px; display: block; }

.cta .socials { justify-content: center; }

.site-footer .socials { margin-top: 22px; }
.site-footer .socials a { width: 38px; height: 38px; }
.site-footer .socials svg { width: 16px; height: 16px; }

/* ---------- Contact detail rows ---------- */

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  margin-top: 34px;
  font-size: 14.5px;
  color: var(--muted);
}

.contact-lines span { display: inline-flex; align-items: center; gap: 9px; }
.contact-lines span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--teal); }

@media (max-width: 560px) {
  .nav a[href="#newsletter"] { display: none; }
  .signup { flex-direction: column; }
  .signup input[type="email"] { flex: 0 0 auto; width: 100%; }
  .signup .btn { width: 100%; justify-content: center; }
  .socials { gap: 10px; }
}

/* ---------- Logo mark ---------- */

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: block;
  border-radius: 50%;
}

/* Footer shows the full badge on its own — it already carries the name,
   so the adjacent text wordmark is dropped there. */
.brand--footer { gap: 0; }
.brand--footer .brand__mark { width: 76px; height: 76px; }

@media (max-width: 560px) {
  .brand__mark { width: 34px; height: 34px; }
  .brand--footer .brand__mark { width: 64px; height: 64px; }
}
