@font-face {
  font-family: "Outfit";
  src: url("../engineering-story/fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #eeece7;
  --paper-soft: #f6f4ef;
  --ivory: #e4e1da;
  --sand: #d9d5cc;
  --ink: #191815;
  --ink-60: #56534c;
  --ink-40: #8b877e;
  --line: #cfcbc1;
  --brass: #6b5620;
  --brass-soft: #eee0b1;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 4%, rgba(238, 224, 177, 0.42), transparent 28rem),
    var(--paper);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(107, 86, 32, 0.22);
}

.brand {
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: var(--ink-60);
  font-size: 0.78rem;
  font-weight: 520;
}

.header-links a {
  text-decoration: none;
}

.header-links a:hover,
.header-links a[aria-current="page"] {
  color: var(--brass);
}

.hero,
.legal-layout,
.related-inner {
  width: min(var(--content), calc(100% - 44px));
  margin-inline: auto;
}

.hero {
  padding: clamp(48px, 6.5vw, 92px) 0 clamp(46px, 5vw, 68px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(42px, 5vw, 68px);
  color: var(--ink-60);
  font-size: 0.79rem;
  font-weight: 560;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.back-link::before {
  content: "\2190";
  color: var(--brass);
  font-size: 1.1em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: clamp(38px, 5vw, 78px);
}

.eyebrow,
.section-label,
.summary-label {
  margin: 0;
  color: var(--brass);
  font-size: 0.69rem;
  font-weight: 680;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin: 22px 0 0;
  font-size: clamp(3.3rem, 7.3vw, 7.4rem);
  font-weight: 470;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.summary-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-self: end;
  width: min(100%, 330px);
  height: 220px;
  padding: 28px 30px;
  color: var(--paper-soft);
  border-radius: 24px 24px 5px 24px;
  background: var(--ink);
}

.summary-card::after {
  position: absolute;
  right: -58px;
  bottom: -82px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(238, 224, 177, 0.22);
  border-radius: 50%;
  content: "";
}

.summary-label {
  color: var(--brass-soft);
}

.summary-card p:last-child {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  max-width: 25ch;
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.48;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: clamp(38px, 8vw, 120px);
  height: 184px;
  margin-top: clamp(46px, 5vw, 68px);
  padding-top: clamp(34px, 4vw, 50px);
  border-top: 1px solid var(--line);
}

@media (min-width: 1000px) {
  .intro {
    height: 161px;
  }
}

.lede {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 350;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0;
}

.meta div {
  min-width: 0;
}

.meta dt {
  margin-bottom: 6px;
  color: var(--ink-40);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 540;
}

.legal-section {
  padding: clamp(70px, 9vw, 130px) 0;
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: space-between;
  gap: clamp(50px, 9vw, 150px);
}

.toc {
  position: sticky;
  top: 34px;
  align-self: start;
}

.toc p {
  margin-bottom: 22px;
}

.toc ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  color: var(--ink-60);
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--brass);
}

.policy-content > section {
  scroll-margin-top: 34px;
  padding-bottom: clamp(32px, 3.5vw, 48px);
}

.policy-content > section + section {
  padding-top: clamp(32px, 3.5vw, 48px);
  border-top: 1px solid var(--line);
}

.section-number {
  display: block;
  margin-bottom: 18px;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 640;
  letter-spacing: 0.14em;
}

h2 {
  margin-bottom: 30px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 460;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h3 {
  margin: 34px 0 12px;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.35;
}

.policy-content p,
.policy-content li {
  color: var(--ink-60);
}

.policy-content p {
  margin-bottom: 20px;
}

.policy-content ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 24px;
  padding-left: 1.25em;
}

.policy-content strong {
  color: var(--ink);
  font-weight: 630;
}

.contact-card {
  margin-top: 34px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 4px 22px 22px 22px;
  background: var(--paper);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card a {
  color: var(--brass);
  font-weight: 600;
}

.inline-policy-action {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 4px 0 22px;
  padding: 0 18px;
  color: var(--paper-soft);
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 620;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.inline-policy-action:hover {
  color: var(--ink);
  background: transparent;
}

.related {
  color: var(--paper-soft);
  background: var(--ink);
}

.related-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(52px, 6vw, 76px) 0;
}

.related h2 {
  margin: 0;
  color: var(--paper-soft);
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 6vw, 82px);
  align-content: start;
}

.related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(238, 236, 231, 0.2);
  border-bottom: 1px solid rgba(238, 236, 231, 0.2);
  color: var(--paper-soft);
  font-size: 1rem;
  text-decoration: none;
}

.related-links a::after {
  content: "\2197";
  color: var(--brass-soft);
}

@media (max-width: 620px) {
  .related-links {
    grid-template-columns: 1fr;
  }

  .related-links a + a {
    border-top: 0;
  }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(22px, 4vw, 64px);
  color: var(--ink-40);
  font-size: 0.74rem;
}

.site-footer a,
.site-footer button {
  color: var(--ink-60);
  font: inherit;
  text-decoration: none;
}

.site-footer button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--brass);
}

.site-footer-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 820px) {
  .header-links a:not([aria-current="page"]) {
    display: none;
  }

  .hero-grid,
  .intro,
  .related-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: stretch;
  }

  .summary-card {
    justify-self: stretch;
    width: 100%;
    height: 210px;
    min-height: 0;
    padding: 26px 28px;
  }

  .intro {
    gap: 34px;
    height: 220px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 68px;
  }

  .header-links {
    display: none;
  }

  .hero,
  .legal-layout,
  .related-inner {
    width: min(100% - 32px, var(--content));
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .meta,
  .toc ol {
    grid-template-columns: 1fr;
  }

  .intro {
    height: clamp(300px, calc(430px - 25vw), 350px);
  }

  .summary-card {
    height: 200px;
    padding: 24px;
    border-radius: 22px 22px 4px 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

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