:root {
  --ink: #0f172a;
  --muted: #5f6b7a;
  --line: #dfe3e8;
  --paper: #ffffff;
  --red: #c1121f;
  --sans: "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow,
.article-meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--red);
}

.ideas-main {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 120px;
}

.ideas-hero {
  display: flex;
  padding: 48px 0;
  align-items: flex-end;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.hero-rule {
  width: 1px;
  height: 64px;
  margin-bottom: 48px;
  background: var(--red);
}

.ideas-hero h1 {
  max-width: none;
  margin: 16px 0;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.ideas-hero > p:last-child {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
}

.article-header h1 {
  margin: 18px 0 24px;
  font-size: clamp(2.65rem, 6.5vw, 5.6rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.featured-idea {
  display: grid;
  grid-template-columns: minmax(170px, 0.65fr) minmax(0, 1.75fr);
  gap: 56px;
  padding: 40px 0 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.featured-idea + .featured-idea {
  border-top: 0;
}

.feature-number {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 280px;
}

.feature-number strong {
  color: var(--red);
  font-size: clamp(4.5rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.feature-content h2 {
  max-width: 780px;
  margin: 14px 0 20px;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.feature-content h2 a {
  text-decoration: none;
}

.feature-content h2 a:hover {
  color: var(--red);
}

.feature-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 350;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--red);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--red);
}

.article-main {
  padding: 40px 24px 120px;
}

.article-header {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.article-hero {
  position: relative;
  min-height: clamp(540px, 49vw, 620px);
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.article-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.34) 0%, rgba(15, 23, 42, 0.05) 72%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.02) 28%, rgba(15, 23, 42, 0.9) 100%);
}

.article-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-hero-copy {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 56px;
  text-align: left;
}

.article-hero-copy .eyebrow {
  margin: 0;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(15, 23, 42, 0.5);
}

.reading-progress {
  position: fixed;
  z-index: 21;
  height: 3px;
  margin: 0;
  border: 0;
  appearance: none;
  color: var(--ink);
  background: transparent;
  pointer-events: none;
}

.reading-progress::-webkit-progress-bar {
  background: transparent;
}

.reading-progress::-webkit-progress-value {
  background: currentColor;
}

.reading-progress::-moz-progress-bar {
  background: currentColor;
}

.article-header h1 {
  max-width: 880px;
  margin: 18px 0 0;
  color: var(--paper);
  font-size: clamp(2.8rem, 6.2vw, 5.65rem);
  text-shadow: 0 2px 18px rgba(15, 23, 42, 0.42);
}

.article-header h1.article-hero-title--compact {
  max-width: 980px;
  font-size: clamp(2.55rem, 5.15vw, 4.75rem);
}

.article-deck {
  max-width: 820px;
  margin: 0 0 0 auto;
  padding-top: 32px;
  color: var(--muted);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 350;
  line-height: 1.5;
}

.article-layout {
  width: min(100%, 980px);
  margin: 0 auto;
  padding-top: 68px;
  display: grid;
  grid-template-columns: 170px minmax(0, 720px);
  gap: 64px;
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 96px;
}

.article-aside dl {
  margin: 0;
}

.article-aside div {
  margin-bottom: 24px;
}

.article-aside dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-aside dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.article-body {
  min-width: 0;
}

.article-body p {
  margin: 0 0 1.5em;
  color: #202938;
  font-size: 18px;
  font-weight: 380;
  line-height: 1.82;
}

.article-body p:first-child {
  color: var(--ink);
  font-size: 22px;
  font-weight: 450;
  line-height: 1.65;
}

.article-body h2 {
  margin: 2.6em 0 0.7em;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.article-body h3 {
  margin: 2.2em 0 0.65em;
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.article-body blockquote {
  margin: 2.4em 0;
  padding: 10px 0 10px 28px;
  border-left: 3px solid var(--red);
  color: var(--ink);
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.article-sources {
  margin-top: 72px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.article-sources h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.article-sources ol {
  margin: 0;
  padding-left: 20px;
}

.article-sources li {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.article-sources a {
  color: var(--ink);
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.article-cta {
  width: min(100%, 980px);
  margin: 96px auto 0;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  color: var(--paper);
  background: var(--red);
}

.article-cta h2 {
  max-width: 620px;
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.article-cta .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.cta-link:hover {
  color: var(--red);
  background: var(--paper);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}

.modal-overlay.modal-hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.modal-header button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

#contact-form {
  display: grid;
  gap: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 14px;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.modal-card button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.form-field-hidden {
  display: none;
}

.contact-privacy,
#contact-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

#contact-status[data-state="error"] {
  color: #9f1239;
}

#contact-status[data-state="success"] {
  color: #166534;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

.modal-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}

.button-primary {
  border: 1px solid var(--red);
  color: var(--paper);
  background: var(--red);
}

.button-primary:hover {
  border-color: #a30f1a;
  background: #a30f1a;
}

.modal-actions button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .ideas-main {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .ideas-main {
    padding-right: 3.5rem;
    padding-left: 3.5rem;
  }
}

@media (max-width: 760px) {
  .ideas-main {
    padding-bottom: 88px;
  }

  .ideas-hero {
    padding: 48px 0;
  }

  .featured-idea {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 0 36px;
  }

  .feature-number {
    min-height: 0;
    flex-direction: row;
    align-items: baseline;
  }

  .feature-number strong {
    font-size: 4rem;
  }

  .article-main {
    padding: 24px 16px 88px;
  }

  .article-header {
    padding-bottom: 44px;
  }

  .article-hero {
    min-height: 520px;
  }

  .article-hero::after {
    background:
      linear-gradient(90deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.02) 100%),
      linear-gradient(180deg, rgba(15, 23, 42, 0.04) 18%, rgba(15, 23, 42, 0.94) 100%);
  }

  .article-hero-image {
    object-position: 66% center;
  }

  .article-hero-copy {
    padding: 28px;
  }

  .article-header h1,
  .article-header h1.article-hero-title--compact {
    max-width: none;
    font-size: clamp(2.4rem, 11.3vw, 4.2rem);
  }

  .article-deck {
    padding-top: 24px;
    text-align: left;
  }

  .article-layout {
    padding-top: 38px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-aside {
    position: static;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .article-aside dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .article-aside div {
    margin: 0;
  }

  .article-body p {
    font-size: 17px;
    line-height: 1.75;
  }

  .article-body p:first-child {
    font-size: 20px;
  }

  .article-cta {
    margin-top: 68px;
    padding: 34px 28px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .modal-overlay {
    padding: 16px;
  }

  .modal-card {
    max-height: calc(100dvh - 32px);
    padding: 22px;
  }
}

@media (min-width: 768px) {
  .ideas-hero {
    padding: 64px 0;
  }

  .ideas-hero h1 {
    font-size: 3rem;
    line-height: 1;
  }

  .ideas-hero > p:last-child {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .ideas-hero {
    padding: 80px 0;
  }

  .ideas-hero h1 {
    font-size: 3.75rem;
  }
}

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