:root {
  --hero-gutter: clamp(1.5rem, 5vw, 5rem);
  font-family: var(--font);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-underline-offset: .25rem; }
.hero { min-height: 72vh; overflow: hidden; padding: 1.5rem var(--hero-gutter) 5rem; background: radial-gradient(circle at 75% 15%, var(--hero-glow) 0, transparent 35%); }
nav { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
nav div { display: flex; align-items: center; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: flex-start; gap: .65rem; font-size: 1.25rem; line-height: 1; font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
/* Optical alignment of Inter's capitals with the logo's upper bulge. */
.wordmark-text { padding-top: .0625rem; }
.wordmark-logo, .hero-logo::before { background: var(--signal); mask: url("logo.svg") center / contain no-repeat; aspect-ratio: 4 / 3; }
.wordmark-logo { display: block; width: 2.25rem; margin-top: .125rem; flex-shrink: 0; }
/* Masking follows filtering, so the blur sits on the parent of the masked shape. */
.hero-logo::before { content: ""; display: block; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; margin: clamp(4rem, 10vh, 8rem) auto 0; }
.hero-logo { display: block; width: calc(100% + var(--hero-gutter)); opacity: .45; filter: blur(clamp(.75rem, 2vw, 1.75rem)); margin-top: 2.5rem; margin-left: calc(-1 * var(--hero-gutter) - 1.5rem); }
.eyebrow, .number { color: var(--signal); font: 700 .75rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 16ch; margin: .5rem 0 1.5rem; font-size: clamp(3rem, 6.5vw, 7.5rem); line-height: .92; letter-spacing: -.065em; }
.intro { max-width: 48rem; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.actions a { padding: .9rem 1.15rem; border: 1px solid var(--line); text-decoration: none; }
.actions .primary { color: var(--signal-ink); border-color: var(--signal); background: var(--signal); font-weight: 750; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.proof article { min-height: 18rem; padding: 2rem clamp(1.5rem, 4vw, 4rem); border-right: 1px solid var(--line); }
.proof article:last-child { border-right: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.proof article > p:not(.number), .integration-copy p { color: var(--muted); line-height: 1.65; }
.integration { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; padding: clamp(4rem, 10vw, 9rem) clamp(1.5rem, 5vw, 5rem); background: var(--panel); }
.integration-copy a { color: var(--signal); font-weight: 700; }
footer { display: flex; gap: 1.5rem; padding: 2rem clamp(1.5rem, 5vw, 5rem); color: var(--muted); border-top: 1px solid var(--line); }
footer span { margin-right: auto; }
/* Same behavior and icons as Furo's toggle on docs.postproject.org, at twice its size; shown by theme.js. */
.theme-toggle:not([hidden]) { display: flex; padding: 0; color: var(--ink); background: transparent; border: none; cursor: pointer; }
.theme-toggle svg { display: none; width: 2.5rem; height: 2.5rem; }
[data-theme="auto"] .theme-toggle .theme-icon-when-auto-light,
[data-theme="dark"] .theme-toggle .theme-icon-when-dark,
[data-theme="light"] .theme-toggle .theme-icon-when-light { display: block; }
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .theme-toggle .theme-icon-when-auto-light { display: none; }
  [data-theme="auto"] .theme-toggle .theme-icon-when-auto-dark { display: block; }
}

@media (max-width: 720px) {
  nav { align-items: flex-start; }
  nav div { flex-direction: column; align-items: flex-end; gap: .5rem; text-align: right; }
  .hero-layout { grid-template-columns: 1fr; margin-top: 3rem; }
  /* The logo is decoration: on small screens it sits behind the copy instead of above it. */
  .hero-logo, .hero-copy { grid-area: 1 / 1; }
  .hero-logo { justify-self: end; width: min(95vw, 26rem); margin: 0 calc(-1 * var(--hero-gutter) - 30%) 0 0; opacity: .22; }
  .hero-copy { position: relative; }
  .proof, .integration { grid-template-columns: 1fr; }
  .proof article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof article:last-child { border-bottom: 0; }
  footer { flex-wrap: wrap; }
  footer span { width: 100%; }
}

.catalog { padding: clamp(4rem, 8vw, 7rem) var(--hero-gutter); }
.catalog-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.catalog-head h2 { max-width: 18ch; margin: .5rem 0 0; }
.catalog-head > p { max-width: 48ch; margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.catalog code { padding: .1em .35em; background: var(--code); border: 1px solid var(--line); font-size: .9em; }
/* Hairline frames: the grid's background shows through 1px gaps between cards. */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { display: flex; flex-direction: column; gap: .75rem; padding: clamp(1.5rem, 2.5vw, 2.25rem); background: var(--paper); }
.card-feature { grid-column: span 2; grid-row: span 2; background: radial-gradient(circle at 85% 10%, var(--hero-glow) 0, transparent 55%), var(--paper); }
.card-wide { grid-column: span 2; }
.card-accent { background: var(--highlight); }
.card-note { background: var(--panel); }
.card h3 { margin: 0; font-size: 1.5rem; letter-spacing: -.03em; }
.card-feature h3 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.06em; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }
.card .tag { color: var(--signal); font: 700 .7rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.card ul { margin: .5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.card li { padding: .7rem 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.card a { margin-top: auto; padding-top: .75rem; color: var(--signal); font-weight: 700; }
.card .links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: auto; }
.card .links a { margin-top: 0; }
.card-accent .tag, .card-accent a { color: var(--ink); }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-feature { grid-row: auto; }
}

@media (max-width: 720px) {
  .catalog-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card-feature, .card-wide { grid-column: auto; }
}
.proof article > a { color: var(--signal); font-weight: 700; }
:target { scroll-margin-top: 2rem; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
