/* GenSDLC site: shared styles.
 *
 * The design system is documented in ARCHITECTURE.md.
 * Layout breakpoints: desktop >= 1200, tablet 810-1199, phone < 810.
 * Text-size breakpoints are separate: desktop >= 1200, tablet 600-1199, phone < 600.
 * Borders are drawn with inset box-shadows so they never change a box's size.
 */

@font-face { font-family: "Switzer"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/switzer-400.woff2") format("woff2"); }
@font-face { font-family: "Switzer"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/switzer-500.woff2") format("woff2"); }
@font-face { font-family: "Switzer"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/switzer-600.woff2") format("woff2"); }
/* bold inside running text renders in Inter 700 */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #181818;
  --ink-hover: #353535;
  --muted: #555555;
  --line: #d0d0d0;
  --wash-hover: #e7e7e7;
  --paper: #f4f4f4;
  --white: #ffffff;
  --content: 1328px;
  --pad-x: 56px;
  --pad-y: 80px;
  --header-h: 88px;
}
@media (max-width: 1199.98px) { :root { --pad-x: 32px; --pad-y: 64px; } }
@media (max-width: 809.98px) { :root { --pad-x: 24px; --pad-y: 48px; --header-h: 72px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Switzer", sans-serif; font-weight: 400; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11"; }
h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video, iframe { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- type scale ----------
 * Line heights are lengths (em): WebKit rounds a unitless line height on every line
 * (27.2 px becomes 27.1875), so text of several lines would come out a fraction of a pixel shorter and the
 * page below would drift. */
.t-display  { font-weight: 600; font-size: 84px; line-height: 1.04em; letter-spacing: -0.055em; }
.t-hero     { font-weight: 600; font-size: 68px; line-height: 1.04em; letter-spacing: -0.055em; }
.t-h2       { font-weight: 600; font-size: 48px; line-height: 1.1em;  letter-spacing: -0.04em; }
.t-stat     { font-weight: 600; font-size: 48px; line-height: 1.1em;  letter-spacing: -0.04em; }
.t-h3       { font-weight: 500; font-size: 24px; line-height: 1.2em;  letter-spacing: -0.025em; }
.t-body     { font-weight: 400; font-size: 17px; line-height: 1.6em;  letter-spacing: -0.01em; }
.t-small    { font-weight: 400; font-size: 14px; line-height: 1.5em;  letter-spacing: -0.01em; }
.t-label    { font-weight: 500; font-size: 15px; line-height: 1.3em;  letter-spacing: -0.01em; }
.t-eyebrow  { font-weight: 600; font-size: 12px; line-height: 1.4em;  letter-spacing: 0.12em; }
.t-wordmark { font-weight: 600; font-size: 27px; line-height: 1em;    letter-spacing: -0.055em; }
.t-body strong, .t-small strong { font-family: "Inter", sans-serif; font-weight: 700; }
/* line breaking: titles balanced, running text "pretty", labels never wrap */
.t-display, .t-hero, .t-h2 { text-wrap: balance; }
.t-h3, .t-body, .t-small, .t-eyebrow, .t-stat { text-wrap: pretty; }
.t-label, .t-wordmark, .btn { white-space: nowrap; }
.c-muted { color: var(--muted); }
.c-white { color: var(--white); }
@media (max-width: 1199px) {
  .t-display { font-size: 62px; }
  .t-hero    { font-size: 50px; }
  .t-h2, .t-stat { font-size: 40px; }
  .t-body    { font-size: 16px; }
}
@media (max-width: 599px) {
  .t-display { font-size: 48px; }
  .t-hero    { font-size: 40px; }
  .t-h2, .t-stat { font-size: 32px; }
  .t-body    { line-height: 1.55em; }
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--pad-x)); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--pad-y); background: var(--paper); }
.section--rule { box-shadow: inset 0 1px 0 var(--ink); }
.section--dark { background: var(--ink); color: var(--white); }

/* ---------- icons ---------- */
.i-arrow { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; height: 52px; padding: 12px 20px; border-radius: 4px;
  font-weight: 500; font-size: 15px; line-height: 1.25em; letter-spacing: -0.01em; white-space: nowrap; transition: background-color 0.2s ease; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--ink-hover); }
.btn--secondary { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--secondary:hover { background: var(--wash-hover); }

/* ---------- header and menu ---------- */
.site-header { position: relative; z-index: 10; background: var(--paper); }
.site-header--rule { box-shadow: inset 0 -1px 0 var(--ink); }
.nav { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.nav__bar { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__logo { width: 48px; height: 38px; }
.brand__name { display: block; height: 27px; }
.nav__toggle { display: none; width: 44px; height: 44px; padding: 10px; align-items: center; justify-content: center; color: var(--ink); }
.nav__toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav__toggle .i-close { display: none; }
.nav__menu { display: flex; align-items: center; gap: 32px; }
.nav__link { display: block; color: var(--ink); transition: color 0.2s ease; }
.nav__link:hover { color: var(--muted); text-decoration-line: underline; }
.nav__toggle svg { transition: opacity 0.2s ease; }
.nav__toggle:hover svg { opacity: 0.7; }
.nav__link[aria-current="page"] { text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.34em; text-decoration-color: currentColor; }
@media (max-width: 809.98px) {
  .nav { flex-direction: column; align-items: stretch; gap: 0; height: auto; }
  .nav__bar { flex: none; height: var(--header-h); }
  .nav__toggle { display: flex; }
  .nav__menu { display: none; flex-direction: column; align-items: flex-start; gap: 24px; padding: 24px 0 32px; }
  .site-header.is-open .nav__menu { display: flex; }
  .site-header.is-open .nav__toggle .i-menu { display: none; }
  .site-header.is-open .nav__toggle .i-close { display: block; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--paper); box-shadow: inset 0 1px 0 var(--ink); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 24px; padding-block: 32px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; }
.footer__nav { display: flex; align-items: center; gap: 24px; }
.footer__bottom { display: flex; align-items: center; gap: 24px; }
.footer__copy { flex: 1 1 auto; }
.footer__link { transition: color 0.2s ease; }
.footer__link:hover { color: var(--muted); text-decoration-line: underline; }
/* the ink focus ring would vanish on a dark section */
.section--dark :focus-visible { outline-color: var(--white); }
@media (max-width: 809.98px) {
  .footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__nav { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}
