:root {
  --ink: #151718;
  --paper: #f6f1e8;
  --paper-deep: #ebe1d0;
  --night: #202728;
  --moss: #607469;
  --brass: #bd8d4a;
  --clay: #9e5d4e;
  --blue: #345c72;
  --white: #fffaf1;
  --line: rgba(21, 23, 24, 0.16);
  --shadow: 0 24px 70px rgba(20, 24, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(12, 14, 15, 0.62), rgba(12, 14, 15, 0));
}

.brand {
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.9;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  min-height: 86svh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 6vw, 76px) 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 18, 18, 0.84) 0%, rgba(16, 18, 18, 0.62) 38%, rgba(16, 18, 18, 0.18) 74%),
    linear-gradient(0deg, rgba(16, 18, 18, 0.65) 0%, rgba(16, 18, 18, 0) 40%),
    url("assets/hero-workbench.png") center / cover no-repeat;
}

.hero-copy {
  width: min(760px, 100%);
}

.kicker,
.eyebrow,
.card-type,
.signal-label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.kicker {
  color: #f1d7a9;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(4.8rem, 10vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 700px;
  margin: 28px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: rgba(255, 250, 241, 0.88);
}

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

.button,
.signal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--ink);
  background: var(--white);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 250, 241, 0.45);
  background: rgba(255, 250, 241, 0.09);
  backdrop-filter: blur(12px);
}

.button:hover,
.button:focus-visible,
.signal-button:hover,
.signal-button:focus-visible {
  transform: translateY(-1px);
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band {
  background: var(--night);
  color: var(--white);
  padding: 52px 0;
}

.intro-grid,
.now-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.now-grid h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-grid p:last-child,
.split-heading > p,
.now-copy p {
  margin: 4px 0 0;
  max-width: 620px;
  font-size: 1.08rem;
  color: rgba(255, 250, 241, 0.78);
}

.content-section {
  padding: clamp(70px, 10vw, 128px) 0;
}

.content-section.muted {
  background: var(--paper-deep);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading .eyebrow,
.intro-band .eyebrow,
.now-band .eyebrow {
  color: var(--brass);
}

.section-heading h2 {
  max-width: 820px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
}

.split-heading > p {
  color: rgba(21, 23, 24, 0.68);
}

.principle-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 20px;
}

.signal-panel,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.signal-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: clamp(24px, 4vw, 34px);
}

.signal-panel h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3.3vw, 3.1rem);
  line-height: 1;
}

.signal-panel p:not(.signal-label) {
  margin: 18px 0 0;
  color: rgba(21, 23, 24, 0.72);
}

.signal-button {
  margin-top: 26px;
  color: var(--white);
  background: var(--ink);
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.principle-list article {
  min-height: 210px;
  border-top: 5px solid var(--moss);
  padding: 22px;
  background: rgba(255, 250, 241, 0.74);
}

.principle-list article:nth-child(2) {
  border-color: var(--brass);
}

.principle-list article:nth-child(3) {
  border-color: var(--blue);
}

.principle-list article:nth-child(4) {
  border-color: var(--clay);
}

.principle-list h3,
.project-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.08;
}

.principle-list p,
.project-card p:last-child {
  margin: 12px 0 0;
  color: rgba(21, 23, 24, 0.7);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  min-height: 310px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card.accent {
  color: var(--white);
  background: var(--night);
}

.project-card.accent p:last-child {
  color: rgba(255, 250, 241, 0.74);
}

.card-type {
  color: var(--blue);
}

.project-card.accent .card-type {
  color: #f1d7a9;
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 72px);
}

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

.note-row {
  display: grid;
  grid-template-columns: 76px minmax(160px, 0.82fr) minmax(220px, 1.18fr);
  gap: 18px;
  align-items: center;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.note-row span {
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.note-row strong {
  font-size: 1.12rem;
}

.note-row em {
  color: rgba(21, 23, 24, 0.66);
  font-style: normal;
}

.note-row:hover strong,
.note-row:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.now-band {
  padding: 62px 0;
  color: var(--white);
  background: var(--blue);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  border-bottom: 2px solid rgba(255, 250, 241, 0.7);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: rgba(255, 250, 241, 0.72);
  background: var(--night);
  font-size: 0.92rem;
}

.article-page {
  background:
    linear-gradient(180deg, rgba(32, 39, 40, 0.96) 0, rgba(32, 39, 40, 0.96) 330px, var(--paper) 330px);
}

.article-header {
  position: static;
  color: var(--white);
  background: var(--night);
}

.article-shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0 96px;
}

.article-hero {
  color: var(--white);
  padding-bottom: 56px;
}

.article-hero h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
}

.article-hero p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 250, 241, 0.78);
  font-size: 1.16rem;
}

.article-body {
  border-radius: 8px;
  padding: clamp(26px, 5vw, 58px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-body h2 {
  margin: 32px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.04;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 18px;
  color: rgba(21, 23, 24, 0.74);
  font-size: 1.05rem;
}

.article-back {
  display: inline-flex;
  margin-top: 28px;
  font-weight: 800;
  color: var(--blue);
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .article-header {
    position: static;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    max-width: 260px;
  }

  .hero {
    min-height: 82svh;
    padding-top: 118px;
    background-position: 62% center;
  }

  .intro-grid,
  .now-grid,
  .split-heading,
  .principle-layout,
  .notes-layout {
    grid-template-columns: 1fr;
  }

  .signal-panel {
    position: static;
  }

  .card-grid,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .note-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 16px 18px;
  }

  .brand {
    max-width: 88px;
  }

  .nav-links {
    font-size: 0.84rem;
    max-width: 210px;
  }

  h1 {
    font-size: clamp(4.2rem, 26vw, 5.6rem);
  }

  .hero {
    padding: 116px 18px 50px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
