@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #777777;
  --line: #e8e8e8;
  --sans: 'DM Sans', 'Avenir Next', sans-serif;
}

* { box-sizing: border-box; }

html, body { width: 100%; min-width: 320px; height: 100%; margin: 0; }

body {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid #333333; outline-offset: 5px; }

.page-shell {
  width: 100%;
  height: 100vh;
  height: 100svh;
  padding: 0 clamp(24px, 6.1vw, 96px);
  display: flex;
  flex-direction: column;
}

.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; }
.site-header { height: 88px; flex: 0 0 88px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 700 15px var(--sans); letter-spacing: -.045em; }
.wordmark-light { font-weight: 500; color: #626262; }
.wordmark-symbol { position: relative; overflow: hidden; display: inline-block; width: 27px; height: 29px; }
.wordmark-symbol img { position: absolute; width: 85px; max-width: none; left: -32px; top: -8px; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 38px); }
.site-nav a { color: #444444; font-size: 13px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav a[aria-current="page"] { font-weight: 600; }

.hero { flex: 1; min-height: 0; display: grid; place-items: center; text-align: center; }
.hero-copy { width: min(100%, 860px); padding: 25px 0 35px; }
.eyebrow { margin: 0 0 clamp(20px, 3.2vh, 34px); color: #666666; font: 500 11px var(--sans); letter-spacing: .055em; text-transform: uppercase; }
h1 { margin: 0; font: 600 clamp(46px, 5vw, 70px)/1.06 var(--sans); letter-spacing: -.07em; }
h1 em { color: #555555; font-style: normal; font-weight: 500; }
.intro { max-width: 650px; margin: clamp(18px, 2.8vh, 28px) auto 0; color: #454545; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.65; letter-spacing: -.015em; }
.primary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; margin-top: clamp(24px, 4vh, 42px); padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: 500 14px var(--sans); text-decoration: none; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.primary-button:hover { background: #3b3b3b; border-color: #3b3b3b; transform: translateY(-2px); }
.principles { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 68px); margin: clamp(34px, 6vh, 58px) 0 0; padding: 0; list-style: none; }
.principles li { color: var(--ink); font: 500 clamp(12px, 1.1vw, 14px) var(--sans); letter-spacing: -.015em; }

.site-footer { height: 58px; flex: 0 0 58px; border-top: 1px solid var(--line); color: #777777; font: 10px var(--sans); }

.not-found { flex: 1; min-height: 0; display: grid; place-items: center; text-align: center; }
.not-found-copy { width: min(100%, 700px); padding: 25px 0 35px; }
.not-found-code { margin: 0 0 18px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.not-found h1 { font-size: clamp(42px, 5vw, 64px); }
.not-found-description { max-width: 440px; margin: 20px auto 0; color: #454545; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.65; }
.not-found .primary-button { margin-top: 32px; }

.subpage-copy { max-width: 760px; }
.page-note { margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.stack-page { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 25px 0 34px; }
.stack-heading { text-align: center; }
.stack-heading .eyebrow { margin-bottom: 16px; }
.stack-heading h1 { font-size: clamp(40px, 4.5vw, 62px); }
.stack-heading .intro { margin-top: 13px; font-size: 15px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(100%, 760px); margin: clamp(28px, 5vh, 46px) auto 0; }
.product-card { min-height: 152px; padding: 18px 20px; border: 1px solid var(--line); background: #ffffff; }
.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.product-index { font-weight: 600; }
.product-status { color: #555555; }
.product-card h2 { margin: 25px 0 5px; font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.product-card p { margin: 0; color: #555555; font-size: 13px; line-height: 1.5; }
.product-card-next { background: #fafafa; }

@media (max-width: 760px) {
  .page-shell { padding-inline: clamp(20px, 6vw, 38px); }
  .site-header { height: 64px; flex-basis: 64px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; }
  .hero-copy { padding: 15px 0 20px; }
  .eyebrow { margin-bottom: 19px; font-size: 9px; }
  h1 { font-size: clamp(42px, 9.2vw, 64px); }
  .intro { margin-top: 17px; max-width: 530px; font-size: 15px; line-height: 1.6; }
  .primary-button { min-height: 48px; margin-top: 23px; }
  .principles { flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
  .principles li { font-size: 12px; }
  .site-footer { height: 49px; flex-basis: 49px; font-size: 8px; }
  .not-found-copy { padding: 16px 0 20px; }
  .not-found h1 { font-size: clamp(38px, 9vw, 54px); }
  .not-found-description { margin-top: 15px; font-size: 14px; }
  .not-found .primary-button { margin-top: 23px; }
  .stack-page { padding-block: 18px; }
  .product-grid { gap: 10px; margin-top: 24px; }
  .product-card { min-height: 132px; padding: 14px; }
  .product-card h2 { margin-top: 19px; font-size: 16px; }
  .product-card p { font-size: 12px; }
}

@media (max-width: 390px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 11px; }
  .wordmark { gap: 7px; font-size: 13px; }
  .wordmark-symbol { transform: scale(.88); transform-origin: left center; width: 24px; }
  .eyebrow { font-size: 8px; }
  h1 { font-size: clamp(44px, 11vw, 52px); }
  .principles { column-gap: 15px; }
  .principles li { font-size: 10px; }
}

@media (max-height: 620px) and (min-width: 761px) {
  .site-header { height: 62px; flex-basis: 62px; }
  .site-footer { height: 42px; flex-basis: 42px; }
  .hero-copy { padding-block: 12px; }
  .eyebrow { margin-bottom: 17px; }
  h1 { font-size: clamp(42px, 4.6vw, 62px); }
  .intro { margin-top: 14px; line-height: 1.5; }
  .primary-button { margin-top: 22px; }
  .principles { margin-top: 28px; }
}

@media (max-height: 500px) {
  .site-header { height: 56px; flex-basis: 56px; }
  .site-footer { height: 40px; flex-basis: 40px; }
  .hero-copy { padding-block: 8px; }
  .eyebrow { margin-bottom: 12px; }
  h1 { font-size: clamp(38px, 7vh, 52px); }
  .intro { margin-top: 10px; font-size: 14px; line-height: 1.4; }
  .primary-button { min-height: 42px; margin-top: 14px; }
  .principles { margin-top: 19px; gap: 12px 24px; }
  .principles li { font-size: 12px; }
  .stack-page { padding-block: 10px; }
  .product-grid { margin-top: 16px; gap: 8px; }
  .product-card { min-height: 112px; padding: 11px; }
  .product-card h2 { margin-top: 14px; }
}

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