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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.1; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection {
  background: oklch(from var(--color-accent) l c h / 0.3);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button { cursor: pointer; background: none; border: none; }

a, button, [role="button"], [role="link"] {
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1),
              background 180ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 180ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}
/* ========================================
   Jeremy Lasman — Personal Site
   Dark, atmospheric, lab-like
   ======================================== */

:root {
  /* Type */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    7rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Colors — dark lab palette */
  --color-bg:          #08080a;
  --color-surface:     #111114;
  --color-surface-2:   #18181c;
  --color-border:      #252528;
  --color-text:        #d4d4d8;
  --color-text-muted:  #71717a;
  --color-text-faint:  #3f3f46;
  --color-accent:      #4f98a3;
  --color-accent-muted: oklch(from #4f98a3 l c h / 0.15);

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;

  /* Layout */
  --content-narrow: 680px;
  --content-default: 1000px;
  --content-wide: 1200px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   Layout helpers
   ======================================== */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ========================================
   Scroll reveal animations
   ======================================== */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center 60%, transparent 0%, var(--color-bg) 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-6);
  max-width: 900px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  max-width: 540px;
  margin-inline: auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hide-mobile { display: none; }
@media (min-width: 640px) {
  .hide-mobile { display: inline; }
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--color-text-faint);
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.scroll-dot {
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ========================================
   Throughline
   ======================================== */

.throughline {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0;
}

.throughline-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 768px) {
  .throughline-layout {
    grid-template-columns: 200px 1fr;
    gap: var(--space-12);
  }
}

.throughline-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-border);
  justify-self: center;
}

@media (min-width: 768px) {
  .throughline-photo {
    width: 200px;
    height: 200px;
    justify-self: start;
    position: sticky;
    top: var(--space-8);
  }
}

.throughline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.throughline-lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: var(--space-6);
  line-height: 1.25;
}

.throughline-body {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.throughline-body:last-child {
  margin-bottom: 0;
  color: var(--color-accent);
  font-weight: 500;
}

/* ========================================
   Section labels
   ======================================== */

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
}

/* ========================================
   Projects
   ======================================== */

.projects {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-4);
  }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: background 200ms var(--ease-out),
              border-color 200ms var(--ease-out),
              transform 200ms var(--ease-out);
}

.project-card:hover {
  background: var(--color-surface-2);
  border-color: #333;
  transform: translateY(-2px);
}

.project-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

.project-arrow {
  align-self: flex-end;
  color: var(--color-text-faint);
  opacity: 0.5;
  transition: opacity 200ms var(--ease-out);
}

.project-card:hover .project-arrow {
  opacity: 1;
  color: var(--color-accent);
}

/* ========================================
   Image break
   ======================================== */

.image-break {
  width: 100%;
  overflow: hidden;
  max-height: 40vh;
}

.image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* ========================================
   Origin
   ======================================== */

.origin {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0;
}

.origin-text p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.origin-text p:last-child {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.bio-short {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.bio-short a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid oklch(from var(--color-accent) l c h / 0.3);
  transition: border-color 200ms var(--ease-out);
}

.bio-short a:hover {
  border-color: var(--color-accent);
}

.bio-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* ========================================
   Connect
   ======================================== */

.connect {
  padding: clamp(var(--space-12), 8vw, var(--space-20)) 0;
  border-top: 1px solid var(--color-border);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.social-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
}

.social-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 200ms var(--ease-out);
}

.social-links a:hover {
  color: var(--color-text);
}

.social-links a:hover::after {
  width: 100%;
}

/* ========================================
   Footer
   ======================================== */

footer {
  padding: var(--space-12) var(--space-6) var(--space-8);
  text-align: center;
}

footer a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}

footer a:hover {
  color: var(--color-text-muted);
}
/* ========================================
   Navigation — Shared across all pages
   ======================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-out),
              background 300ms var(--ease-out);
}

.site-nav.scrolled {
  border-bottom-color: var(--color-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 200ms var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.nav-links a[aria-current="page"]::after {
  width: 100%;
  background: var(--color-accent);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: var(--space-8) var(--space-6);
    gap: var(--space-12);
    background-color: var(--color-bg);
    background-image: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 250ms var(--ease-out), visibility 250ms var(--ease-out);
    z-index: 99;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .nav-links a {
    display: block;
    font-size: var(--text-lg);
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

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

  .nav-links a[aria-current="page"] {
    color: var(--color-accent);
    font-weight: 700;
  }
}

/* Page header spacing — push content below fixed nav */
.page-header {
  padding-top: calc(80px + var(--space-16));
  padding-bottom: var(--space-12);
}

.page-header .container-narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.page-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 540px;
}

/* Interior page body */
.page-body {
  padding-bottom: clamp(var(--space-16), 10vw, var(--space-32));
}

.page-body .container-narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
/* ========================================
   Interior Pages + Email Capture + Footer
   ======================================== */

/* Email capture section */
.email-capture {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}

.capture-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  text-align: center;
}

.capture-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.capture-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto var(--space-6);
}

.capture-form {
  display: flex;
  gap: var(--space-3);
  max-width: 420px;
  margin: 0 auto;
}

.capture-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color 200ms var(--ease-out);
}

.capture-input::placeholder {
  color: var(--color-text-faint);
}

.capture-input:focus {
  border-color: var(--color-accent);
}

.capture-btn {
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.capture-btn:hover {
  background: oklch(from var(--color-accent) calc(l + 0.05) c h);
  transform: translateY(-1px);
}

.capture-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

@media (max-width: 480px) {
  .capture-form {
    flex-direction: column;
  }
}

/* Footer upgrade */
.footer-inner {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding: var(--space-12) var(--space-6) var(--space-8);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-attr {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}

/* ========================================
   Writing Page
   ======================================== */

/* -- Intro -- */
.wrt-intro-lead {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: #fff;
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.wrt-intro-body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* -- Start here -- */
.wrt-start {
  margin-bottom: var(--space-10);
}

.wrt-start-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.wrt-start-sub {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.wrt-start-card {
  display: block;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: background 200ms var(--ease-out),
              border-color 200ms var(--ease-out),
              transform 200ms var(--ease-out);
}

.wrt-start-card:hover {
  background: var(--color-surface-2);
  border-color: #333;
  transform: translateY(-1px);
}

.wrt-start-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.wrt-start-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* -- The Framework (3-col, permanent architecture) -- */
.wrt-framework {
  margin-bottom: var(--space-10);
  padding: var(--space-6);
  border-left: 2px solid var(--color-accent);
  border-radius: 0;
}

.wrt-framework-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.wrt-framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

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

.wrt-framework-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: background 200ms var(--ease-out),
              border-color 200ms var(--ease-out),
              transform 200ms var(--ease-out);
}

.wrt-framework-card:hover {
  background: var(--color-surface-2);
  border-color: #333;
  transform: translateY(-2px);
}

.wrt-framework-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.01em;
}

.wrt-framework-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* -- Divider -- */
.wrt-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 0 var(--space-10);
}

/* -- Arena feed -- */
.wrt-feed {
  margin-bottom: var(--space-4);
}

.wrt-feed-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.wrt-feed-aside {
  font-weight: 400;
  color: var(--color-text-faint);
  text-transform: none;
  letter-spacing: 0;
}

/* ========================================
   Now Page
   ======================================== */

.now-updated {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-10);
}

.now-section {
  margin-bottom: var(--space-10);
}

.now-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.now-section p,
.now-section li {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-3);
}

.now-section ul {
  list-style: none;
  padding: 0;
}

.now-section li::before {
  content: '—';
  color: var(--color-accent);
  margin-right: var(--space-3);
}

.now-section a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid oklch(from var(--color-accent) l c h / 0.3);
  transition: border-color 200ms var(--ease-out);
}

.now-section a:hover {
  border-color: var(--color-accent);
}

.now-cta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.now-cta a {
  color: var(--color-accent);
  text-decoration: none;
}

/* ========================================
   Writing Page
   ======================================== */

.writing-intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-12);
  max-width: 540px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.article-card {
  display: block;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: background 200ms var(--ease-out),
              border-color 200ms var(--ease-out),
              transform 200ms var(--ease-out);
}

.article-card:hover {
  background: var(--color-surface-2);
  border-color: #333;
  transform: translateY(-1px);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.article-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

.article-tag {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.article-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Single article page */
.article-body {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.article-body p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.article-body blockquote {
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.article-body strong {
  color: #fff;
  font-weight: 600;
}

.article-body a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid oklch(from var(--color-accent) l c h / 0.3);
}

.article-body a:hover {
  border-color: var(--color-accent);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-8);
  transition: color 200ms var(--ease-out);
}

.article-back:hover {
  color: var(--color-accent);
}

/* ========================================
   Press Page
   ======================================== */

.press-intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-12);
  max-width: 540px;
}

.press-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.press-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.press-item:first-child {
  border-top: 1px solid var(--color-border);
}

.press-outlet {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 100px;
  flex-shrink: 0;
}

.press-title {
  flex: 1;
}

.press-title a {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

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

.press-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  flex-shrink: 0;
}

.press-empty {
  padding: var(--space-10);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.press-empty p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.press-empty a {
  color: var(--color-accent);
  text-decoration: none;
}

/* Featured video embed */
.featured-video {
  margin-bottom: var(--space-4);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.featured-caption {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

/* Interview grid */
.interview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

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

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

.interview-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 200ms var(--ease-out),
              transform 200ms var(--ease-out);
}

.interview-card:hover {
  border-color: #333;
  transform: translateY(-2px);
}

.interview-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.interview-show {
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  padding: var(--space-3) var(--space-4) 0;
}

.interview-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.45;
  padding: var(--space-2) var(--space-4) var(--space-4);
}

/* Playlist link */
.playlist-link {
  margin-top: var(--space-8);
  text-align: center;
}

.playlist-link a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.playlist-link a:hover {
  background: oklch(from var(--color-accent) l c h / 0.1);
  transform: translateY(-1px);
}

.press-contact {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.press-contact h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}

.press-contact p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.press-contact a {
  color: var(--color-accent);
  text-decoration: none;
}

@media (max-width: 640px) {
  .press-item {
    flex-direction: column;
    gap: var(--space-1);
  }
  .press-outlet {
    min-width: unset;
  }
}

/* ========================================
   Speaking Page
   ======================================== */

.speaking-intro {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-12);
}

.topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

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

.topic-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.topic-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-2);
}

.topic-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.speaking-cta {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
  text-align: center;
}

.speaking-cta h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}

.speaking-cta p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.speaking-cta a {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.speaking-cta a:hover {
  background: oklch(from var(--color-accent) calc(l + 0.05) c h);
  transform: translateY(-1px);
}

/* ========================================
   Work With Me Page
   ======================================== */

.work-intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  font-style: italic;
}

.work-section {
  margin-bottom: var(--space-10);
}

.work-section p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.work-list {
  list-style: none;
  padding: 0;
}

.work-list li {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  position: relative;
}

.work-list li::before {
  content: '—';
  color: var(--color-accent);
  position: absolute;
  left: 0;
}

/* Application form */
.apply-box {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

.apply-form {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 520px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-field label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.apply-input,
.apply-textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  outline: none;
  transition: border-color 200ms var(--ease-out);
  resize: vertical;
}

.apply-input:focus,
.apply-textarea:focus {
  border-color: var(--color-accent);
}

.apply-btn {
  align-self: flex-start;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-8);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.apply-btn:hover {
  background: oklch(from var(--color-accent) calc(l + 0.05) c h);
  transform: translateY(-1px);
}

.apply-btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.apply-note {
  font-size: var(--text-sm);
  color: var(--color-accent);
  min-height: 1.5em;
}

/* ========================================
   Offer Blocks (Greatness Experiment + Main Event)
   ======================================== */

.offer-block {
  margin-bottom: var(--space-8);
}

.offer-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.offer-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: italic;
  letter-spacing: 0.01em;
}

.offer-divider {
  width: 48px;
  height: 1px;
  background: var(--color-accent);
  margin: var(--space-16) 0;
  opacity: 0.6;
}

.offer-coda {
  font-style: italic;
  color: var(--color-text-muted) !important;
  font-size: var(--text-sm) !important;
  line-height: 1.75;
}

/* Main Event outcome cards */
.main-event-outcomes {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (min-width: 640px) {
  .main-event-outcomes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.outcome-item {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.outcome-item p {
  font-size: var(--text-sm) !important;
  color: var(--color-text-muted) !important;
  line-height: 1.65;
  margin-bottom: 0 !important;
}

.outcome-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

/* Select dropdown styling */
select.apply-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234f98a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

select.apply-input option {
  background: var(--color-surface);
  color: var(--color-text);
}
