:root {
  color-scheme: dark;
  --navy: #0c142b;
  --navy-deep: #070c1c;
  --navy-soft: #111d39;
  --paper: #fff8ef;
  --ink: #fffaf4;
  --muted: #bac3d8;
  --line: rgba(255, 250, 244, 0.16);
  --line-strong: rgba(255, 250, 244, 0.28);
  --red: #ff2b15;
  --orange: #ff7135;
  --max-width: 1120px;
  --page-pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(60px, 8vw, 104px);
  font-family:
    Montserrat, "Avenir Next", "Helvetica Neue", Arial, ui-sans-serif,
    system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 43, 21, 0.1), transparent 22rem),
    var(--navy);
  color: var(--ink);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: url("assets/frontier-contours.svg");
  background-position: right top;
  background-repeat: no-repeat;
  background-size: min(1200px, 120vw) auto;
  opacity: 0.42;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

p,
h1,
h2,
h3,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  color: var(--navy);
  background: var(--paper);
  transform: translateY(-160%);
}

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

.site-header,
.site-footer,
.section-shell {
  width: min(100%, calc(var(--max-width) + (var(--page-pad) * 2)));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 20, 43, 0.78);
  backdrop-filter: blur(18px);
}

.wordmark {
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  min-height: calc(100svh - 72px);
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(56px, 8vw, 92px);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.section-kicker,
.item-label {
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-top: 16px;
  color: var(--paper);
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  font-weight: 900;
  line-height: 0.93;
}

.lede {
  max-width: 720px;
  margin-top: clamp(24px, 4vw, 40px);
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-panel {
  border-top: 2px solid var(--red);
  background: rgba(7, 12, 28, 0.48);
}

.hero-panel dl {
  display: grid;
}

.hero-panel div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.hero-panel dt {
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-panel dd {
  color: var(--muted);
  font-size: 0.96rem;
}

.brand-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(255, 43, 21, 0.18), rgba(255, 113, 53, 0.04)),
    rgba(7, 12, 28, 0.56);
}

.brand-strip p,
.brand-strip span {
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  font-weight: 850;
  text-transform: uppercase;
}

.brand-strip span {
  color: var(--orange);
}

.about,
.work,
.fit,
.writing,
.contact {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin-bottom: 18px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

h2 {
  color: var(--paper);
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
}

h3 {
  color: var(--paper);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  font-weight: 850;
  line-height: 1.22;
}

.copy-stack {
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.15rem);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: clamp(32px, 6vw, 64px);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.work-item {
  display: flex;
  min-width: 0;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 3.4vw, 34px);
  background: rgba(17, 29, 57, 0.88);
}

.work-item h3 {
  margin-top: 10px;
}

.work-item p:not(.item-label),
.substack-panel p {
  color: var(--muted);
  font-size: 1rem;
}

.text-link {
  color: var(--paper);
  font-size: 0.94rem;
  font-weight: 850;
}

.capability-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.capability-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
}

.writing-heading {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.quiet-button,
.primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.quiet-button {
  color: var(--paper);
  background: rgba(255, 250, 244, 0.03);
}

.primary-button {
  border-color: var(--red);
  color: var(--paper);
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.quiet-button:hover,
.primary-button:hover {
  color: var(--paper);
  border-color: var(--orange);
}

.substack-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 6vw, 72px);
  align-items: end;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.substack-panel p {
  max-width: 760px;
  font-size: clamp(1rem, 1.55vw, 1.15rem);
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}

.contact-row h2 {
  max-width: 800px;
}

.contact-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .hero,
  .two-column,
  .contact-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-panel {
    max-width: 560px;
  }

  .brand-strip,
  .work-list,
  .substack-panel {
    grid-template-columns: 1fr;
  }

  .work-item {
    min-height: auto;
  }

  .writing-heading {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 540px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 18vw, 5rem);
  }

  .quiet-button,
  .primary-button {
    width: 100%;
  }

  .contact-actions {
    width: 100%;
  }
}
