/* Nexus Adv Newsletter. Hallmark theme: Dusk, light variant (hour: fog, signal: periwinkle, product surface: light glass). Bone paper replaces slate. */

@font-face { font-family: "Wix Madefor Display"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/wix-madefor-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Wix Madefor Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/wix-madefor-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Wix Madefor Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/wix-madefor-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Wix Madefor Text"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/wix-madefor-text-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Wix Madefor Text"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/wix-madefor-text-latin-600-normal.woff2") format("woff2"); }

:root {
  --color-paper: oklch(17.5% 0.014 268); --color-paper-2: oklch(21% 0.016 268); --color-paper-3: oklch(25% 0.017 268);
  --color-ink: oklch(96% 0.006 75); --color-ink-2: oklch(85% 0.010 262); --color-muted: oklch(70% 0.016 262);
  --color-rule: oklch(30% 0.016 266); --color-light: oklch(100% 0 0); --color-shade: oklch(10% 0.022 268);
  --color-accent: #00ADD8; --color-accent-ink: #010046; --color-accent-hi: #0098BF;
  --color-accent-deep: #0079AC; --color-accent-soft: oklch(91% 0.038 274); --color-focus: oklch(80% 0.10 274);
  --color-accent-2: oklch(83% 0.095 62); --color-dusk: oklch(70% 0.12 330);
  --color-day-ink: oklch(22% 0.022 268); --color-day-muted: oklch(38% 0.022 266); --color-fog: oklch(94% 0.012 70);
  --color-well: oklch(95.5% 0.008 75); --color-well-2: oklch(92% 0.010 75); --color-well-ink: oklch(21% 0.016 268); --color-well-muted: oklch(47% 0.016 265); --color-well-rule: oklch(87.5% 0.009 75); --color-card: oklch(99.5% 0.003 75);
  --glass: oklch(22% 0.018 268 / 0.58); --glass-blur: 22px;
  --glass-hi: inset 0 1px 0 oklch(100% 0 0 / 0.10), inset 0 0 0 1px oklch(100% 0 0 / 0.06);
  --shadow-card: 0 1px 0 oklch(100% 0 0 / 0.06) inset, 0 40px 80px -32px oklch(8% 0.02 268 / 0.7);
  --font-display: "Wix Madefor Display", ui-sans-serif, system-ui, sans-serif; --font-body: "Wix Madefor Text", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 18px; --radius-inner: 10px; --radius-pill: 999px; --rule-hair: 1px;
  --tracking-display: -0.022em; --display-weight: 500;

  /* Light variant: bone paper, day ink */
  --color-paper: oklch(98.6% 0.004 75); --color-paper-2: var(--color-well); --color-paper-3: var(--color-well-2);
  --color-ink: var(--color-day-ink); --color-ink-2: oklch(32% 0.020 266); --color-muted: var(--color-well-muted);
  --color-rule: var(--color-well-rule); --color-focus: #010046;
  --glass: oklch(99% 0.004 75 / 0.62);
  --glass-hi: inset 0 1px 0 oklch(100% 0 0 / 0.9), inset 0 0 0 1px oklch(22% 0.02 268 / 0.08);
  --shadow-card: 0 1px 0 oklch(100% 0 0 / 0.6) inset, 0 40px 80px -36px oklch(30% 0.03 268 / 0.35);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--color-paper); }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--color-accent-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-day-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 20; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* Nav: smoked glass over the photograph */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.nav__logo {
  display: inline-flex; padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--glass); box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35); backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
}
.lockup { width: 132px; height: auto; display: block; }
.nav__note {
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--glass); box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  font-size: 14px; font-weight: 500; color: var(--color-ink-2);
}

/* Hero: the hour */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); }

.hero__grid {
  display: grid; gap: 40px; align-items: center;
  padding-top: 132px; padding-bottom: 96px;
}
.hero__kicker { font-size: 15px; font-weight: 500; color: var(--color-day-muted); margin-bottom: 18px; }
.hero h1 { color: var(--color-day-ink); font-size: clamp(42px, 6.4vw, 78px); line-height: 1.03; max-width: 12ch; }
.hero__lead { margin-top: 22px; max-width: 34ch; font-size: clamp(18px, 1.7vw, 20px); color: var(--color-day-ink); }

/* Glass: the product surface */
.glass {
  background: var(--glass); border-radius: var(--radius-card);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35); backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  box-shadow: var(--glass-hi), var(--shadow-card);
}
.pane { width: 100%; max-width: 500px; padding: 18px; display: grid; gap: 16px; }

/* Substack embed: their white card, sized to the pane */
.pane__form { border-radius: var(--radius-inner); overflow: hidden; }

.pane__form.has-embed { background: #FFFFFF; }
.sub-card { display: grid; gap: 8px; padding: clamp(24px, 4vw, 36px); }
.sub-card__title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; color: var(--color-ink); }
.sub-card__text { color: var(--color-muted); font-size: 16px; }
.sub-card .btn { margin-top: 16px; }
.btn--wide { width: 100%; }
.pane__alt[hidden] { display: none; }
.substack { display: block; width: 100%; max-width: 100%; height: 320px; border: 1px solid #EEE; border-radius: var(--radius-inner); background: white; }
.pane__alt { padding-bottom: 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; font-size: 14px; color: var(--color-muted); text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 8px;
  background: #010046; color: #FFFFFF;
  font: 600 0.9375rem/1 var(--font-body); text-decoration: none;
  box-shadow: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.btn:hover { background: #1A1A58; color: #FFFFFF; box-shadow: 0 0 0 4px rgba(0, 173, 216, 0.35); }

/* Topics: a ruled list on slate */
.topics { padding: clamp(72px, 9vw, 128px) 0; }
.topics__grid { display: grid; gap: 32px; }
.topics h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; color: var(--color-ink); }
.topics__intro p { margin-top: 12px; color: var(--color-muted); }
.ruled { border-top: var(--rule-hair) solid var(--color-rule); }
.ruled__row { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 24px 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.dot { width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--color-accent); }
.ruled h3 { font-size: 22px; line-height: 1.25; color: var(--color-ink); }
.ruled p { margin-top: 6px; color: var(--color-ink-2); max-width: 52ch; }

/* About: a bone well holding one card */
.about { padding-bottom: clamp(72px, 9vw, 128px); }
.well { background: var(--color-well); border-radius: var(--radius-card); padding: clamp(20px, 5vw, 64px); }
.card {
  background: var(--color-card); color: var(--color-well-ink);
  border-radius: var(--radius-inner); padding: clamp(24px, 4vw, 44px);
  outline: 1px solid var(--color-well-rule); outline-offset: -1px;
  max-width: 760px; margin: 0 auto;
}
.card__label { font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--color-well-muted); }
.card__text { margin-top: 14px; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.012em; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.35; color: var(--color-well-ink); }
.card__links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.card__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-accent-deep); font-weight: 600; }
.card__links a:hover { color: var(--color-well-ink); }
.card :focus-visible { outline-color: var(--color-accent-deep); }

/* Footer */
.foot { border-top: var(--rule-hair) solid var(--color-rule); }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; padding-top: 28px; padding-bottom: 32px; font-size: 14px; color: var(--color-muted); }
.foot a { color: var(--color-ink-2); }
.foot { background: var(--color-paper-2); }

@media (min-width: 760px) {
  .topics__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 64px; padding-top: 168px; padding-bottom: 136px; }
  .hero .pane { justify-self: end; }
}
/* Tablet portrait: stacked hero, wider panel, card laid out side by side */
@media (min-width: 641px) and (max-width: 979px) {
  .hero__grid { gap: 40px; padding-top: 120px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(52px, 7.4vw, 68px); max-width: 13ch; }
  .hero__lead { max-width: 42ch; }
  .pane { max-width: 640px; }
  .topics__grid { gap: 40px; }
  .card__text { font-size: 24px; }
}
/* Phone: tighter rhythm, full-width subscribe, thumb-sized targets */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__bar { min-height: 64px; }
  .nav__logo { padding: 8px 12px; }
  .lockup { width: 112px; }
  .nav__note { font-size: 13px; padding: 7px 12px; }
  .hero__grid { gap: 28px; padding-top: 96px; padding-bottom: 48px; }
  .hero__kicker { font-size: 14px; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 44px); line-height: 1.05; max-width: none; }
  .hero__lead { margin-top: 16px; font-size: 17px; max-width: none; }
  .pane { max-width: none; padding: 8px; gap: 12px; border-radius: 16px; }
  .substack { height: 320px; }
  .pane__alt { padding: 0 8px 10px; gap: 8px; }
  .topics { padding: 56px 0 48px; }
  .topics__grid { gap: 20px; }
  .topics h2 { font-size: 28px; }
  .ruled__row { padding: 18px 0; gap: 10px; }
  .ruled h3 { font-size: 19px; }
  .ruled p { font-size: 16px; }
  .about { padding-bottom: 56px; }
  .well { padding: 10px; border-radius: 16px; }
  .card { padding: 22px 20px; }
  .card__text { font-size: 20px; }
  .foot__inner { flex-direction: column; gap: 6px; padding-top: 22px; padding-bottom: 28px; font-size: 13px; }
}
@media (max-width: 360px) {
  .nav__note { display: none; }
}

@media (max-width: 560px) { .nav__long { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
