@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader.woff2") format("woff2");
}

:root {
  --paper: #f3f0e8;
  --paper-2: #e6e0d2;
  --card: #fbfaf6;
  --ink: #1c2430;
  --muted: #5c6570;
  --blue: #3d5c80;
  --blue-deep: #24384f;
  --line: #d4cec1;
  --rule: #1c2430;
  --red: #c42736;
  --silver: #c5ced6;
  --shadow: 0 18px 40px rgba(36, 56, 79, 0.08);
  --serif: "Newsreader", "Iowan Old Style", Palatino, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1.1rem, 3vw, 2.4rem);
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body { overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(61, 92, 128, 0.08), transparent 60%),
    linear-gradient(180deg, #f7f4ed 0%, var(--paper) 220px);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  font-synthesis: none;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 12px;
  border: 1px solid rgba(28, 36, 48, 0.18);
  z-index: 20;
}

@media (max-width: 720px) {
  body::before { inset: 6px; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 40;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(243, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--blue-deep);
}

.brand svg { width: 36px; height: 36px; flex: none; }

.brand-name {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 1rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 0.28rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 400;
}

.nav-toggle {
  display: none;
  flex: none;
  border: 1px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 0.85rem;
}

.nav a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue-deep);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--red);
  color: var(--ink);
}

.proof {
  display: flex;
  justify-content: space-between;
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0.85rem auto 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

main { padding-bottom: 4.5rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3.2rem) 0 2.2rem;
}

.hero > * { min-width: 0; }

.kicker {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; }

h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2rem, 4.5vw, 4.05rem);
  line-height: 1.08;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.7rem, 2.55vw, 2.7rem);
  line-height: 1.12;
}

h1 span { display: block; }

h1 .line-2,
h1 .line-3 {
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  font-size: 1.28rem;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.actions a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 0.15rem;
}

.actions a:hover { border-bottom-color: var(--red); color: var(--red); }

.frame {
  background: var(--card);
  border: 1px solid #c9d0d8;
  box-shadow: var(--shadow);
  position: relative;
}

.frame img { width: 100%; }

.frame figcaption,
figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.7rem 0.15rem 0;
}

.marks {
  position: relative;
}

.marks::before,
.marks::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--red);
  border-style: solid;
  opacity: 0.85;
}

.marks::before { top: -7px; left: -7px; border-width: 1px 0 0 1px; }
.marks::after { right: -7px; bottom: -7px; border-width: 0 1px 1px 0; }

.dim {
  margin: 0.65rem 0 0;
  text-align: right;
  font-family: var(--mono);
  color: var(--red);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.specs article {
  padding: 1.15rem 1rem 1.25rem;
  border-right: 1px solid var(--line);
}

.specs article:last-child { border-right: 0; }

.specs strong {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.03em;
  color: var(--blue-deep);
  line-height: 1.15;
}

.specs strong.fit {
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  letter-spacing: -0.04em;
}

.specs span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.block { padding: clamp(2.4rem, 6vw, 4.5rem) 0 0; }

.block h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--blue-deep);
  line-height: 1.15;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: center;
}

p { margin: 0.7rem 0; }

.note {
  font-size: 1.02rem;
  color: var(--muted);
}

.sheet {
  margin: 0;
  background: white;
  border: 1px solid #c9d0d8;
  padding: 0.6rem;
}

.sheet img { width: 100%; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  font-size: 1.02rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

td:first-child {
  font-family: var(--sans);
  font-weight: 600;
  width: 34%;
  color: var(--blue-deep);
}

.rules {
  display: grid;
  gap: 0;
  margin-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

.rule {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.rule .idx {
  margin: 0;
  font-family: var(--mono);
  color: var(--red);
  letter-spacing: 0.12em;
}

.rule h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.nowrap { white-space: nowrap; }

.rule p { margin: 0.35rem 0 0; }

.address {
  margin-top: 2rem;
  padding: 1.4rem 1.3rem;
  border: 1px dashed var(--blue);
  background: rgba(255, 255, 255, 0.45);
  max-width: 36rem;
}

.address .label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.address p {
  margin: 0.45rem 0 0;
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  color: var(--blue-deep);
  line-height: 1.15;
}

.catalog {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.catalog a {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100%;
  padding: 1.25rem 1.15rem 1.45rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.catalog li:nth-child(3n) a { border-right: 0; }

.catalog .idx {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--red);
}

.catalog strong {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--blue-deep);
}

.catalog .blurb {
  color: var(--muted);
  font-size: 1.02rem;
}

.page-title { padding-top: clamp(2rem, 5vw, 3.4rem); }

.page-title h1 { font-size: clamp(2.8rem, 6vw, 5rem); }

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.6rem 0 2.4rem;
}

.footer-inner {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.site-footer strong {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

@media (max-width: 860px) {
  .hero,
  .split,
  .specs,
  .catalog,
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .catalog a,
  .catalog li:nth-child(3n) a { border-right: 0; }
  .specs article { border-right: 0; border-bottom: 1px solid var(--line); }
  .specs article:last-child { border-bottom: 0; }
  .footer-meta { text-align: left; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem var(--pad) 0.8rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .rule { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .rule h2 { font-size: 1.35rem; }
  .page-title h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero h1 { font-size: clamp(1.65rem, 7.4vw, 2.05rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 span {
    animation: rise 0.7s ease both;
  }
  .hero h1 span:nth-child(2) { animation-delay: 0.08s; }
  .hero h1 span:nth-child(3) { animation-delay: 0.16s; }
  .frame img { animation: rise 0.8s ease 0.12s both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
