:root {
  color-scheme: light;
  --site-hue: 70;
  --site-chroma: 0.012;
  --blokd-seed-hue: var(--site-hue);
  --blokd-seed-chroma: var(--site-chroma);
  --accent: oklch(0.43 var(--site-chroma) var(--site-hue));
  --deep: oklch(0.34 var(--site-chroma) var(--site-hue));
  --highlight: oklch(0.84 var(--site-chroma) var(--site-hue));
  --spectrum: linear-gradient(115deg, var(--muted), var(--pale));
  --ink: oklch(0.24 0.008 var(--site-hue));
  --muted: oklch(0.43 0.008 var(--site-hue));
  --line: oklch(0.77 0.009 var(--site-hue));
  --paper: oklch(0.985 0.004 var(--site-hue));
  --panel: oklch(0.95 0.006 var(--site-hue));
  --pale: oklch(0.92 0.008 var(--site-hue));
  --blokd-radius-control: 0.32rem;
  --blokd-primary: var(--accent);
  --blokd-on-primary: white;
  --blokd-primary-hover: var(--deep);
  --blokd-surface: var(--paper);
  --blokd-on-surface: var(--ink);
  font:
    100%/1.55 "Inter",
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 1rem;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.wrap {
  width: min(76rem, calc(100% - clamp(2rem, 8vw, 8rem)));
  margin-inline: auto;
}
a {
  color: inherit;
  text-underline-offset: 0.23em;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  top: -5rem;
}
.skip:focus {
  top: 0.5rem;
  left: 0.5rem;
  background: white;
  padding: 0.6rem;
  z-index: 3;
}
.mast::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--spectrum);
}
.mast {
  border-bottom: 1px solid var(--line);
}
.mast-inner,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.8rem;
}
.brand {
  font-family: Lexend, system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 680;
  letter-spacing: -0.055em;
}
.mast nav,
.links,
.actions {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  flex-wrap: wrap;
}
.mast nav a {
  font-size: 0.94rem;
  text-decoration: none;
}
.mast nav a:hover,
.mast nav [aria-current] {
  text-decoration: underline;
}
.hero,
.flow-grid {
  display: grid;
  grid-template-columns: 1.07fr 0.93fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.hero {
  padding-block: clamp(3rem, 7vw, 7rem);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: "Lexend", "Segoe UI", system-ui, sans-serif;
  font-weight: 650;
}
h1 {
  font-size: clamp(2.45rem, 14cqi, 5.25rem);
  text-wrap: balance;
  line-height: 1.03;
  letter-spacing: -0.065em;
  max-width: 20ch;
}
h1 em {
  color: var(--accent);
  font-style: normal;
  font-weight: inherit;
}
h2 {
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}
h3 {
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1.16;
}
@media (min-width: 48em) {
  main :where(p:not([class]), .essay > ul, .essay > ol) {
    font-size: 1rem;
    line-height: 1.6;
  }
}
p {
  color: var(--muted);
}
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.53;
  max-width: 53ch;
  margin: 1.4rem 0;
}
.kicker,
.meta,
code {
  font:
    500 0.8rem/1.45 "IBM Plex Mono",
    Consolas,
    monospace;
}
.kicker {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  background: var(--deep);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 2rem;
  text-decoration: none;
}
.cta:hover {
  background: var(--accent);
}
.review {
  border: 1px solid var(--deep);
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: 0 12px 35px color-mix(in srgb, var(--deep) 12%, transparent);
}
.studio-projects {
  display: grid;
  background: var(--surface, var(--paper));
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 0.3rem clamp(1rem, 3vw, 2rem);
}
.studio-projects a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  text-decoration: none;
}
.studio-projects a + a { border-top: 1px solid var(--line); }
.studio-projects img { border-radius: 0.65rem; }
.studio-projects strong { display: block; font: 600 1.45rem var(--family-heading); }
.studio-projects small { color: var(--muted); }
.studio-projects a:is(:hover, :focus-visible) strong { text-decoration: underline; }
.section {
  padding-block: clamp(2.4rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}
.section-head {
  margin-bottom: 2rem;
}
.projects,
.mechanics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.project {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border-radius: 0.35rem;
  display: flex;
  flex-direction: column;
}
.project {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
}
.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(110deg, var(--ink), var(--line));
}
.project:nth-child(2)::before {
  background: linear-gradient(110deg, var(--line), var(--ink));
}
.project:nth-child(2) {
  background: var(--pale);
}
.meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
}
.project h3 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 1rem 0;
}
.project p {
  max-width: 55ch;
  margin-bottom: 1.6rem;
}
.links {
  margin-top: auto;
}
.links a,
.feature a,
.about a,
.section a {
  font-weight: 600;
}
.feature,
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.3rem, 5vw, 5rem);
}
.feature {
  background: var(--panel);
  color: var(--ink);
  padding: clamp(1.5rem, 4vw, 4rem);
  border-radius: 0.45rem;
}
.feature p,
.feature .kicker {
  color: var(--muted);
}
.feature p,
.about p {
  margin-bottom: 1rem;
}
.about p {
  max-width: 62ch;
}
.about h2 {
  margin-bottom: 1rem;
}
footer {
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  padding-block: 1.5rem;
  justify-content: flex-start;
}
footer .brand {
  margin-right: auto;
}
.flow-intro {
  padding-block: clamp(3rem, 6vw, 6rem) 2rem;
}
.flow-intro h1 {
  max-width: 16ch;
}
.flow-intro p.lead {
  max-width: 60ch;
}
.flow-grid {
  padding-block: 1rem 4rem;
}
.flow-grid p,
.mechanics p {
  margin-top: 0.8rem;
}
.review {
  background: var(--panel);
}
.review-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.review-header span {
  font-size: 0.85rem;
  color: var(--muted);
}
.review-body {
  padding: clamp(1rem, 3vw, 2rem);
}
.review-body h2 {
  font-size: 2rem;
}
.journal {
  border-block: 1px solid var(--line);
  padding: 1rem 0 1rem 1.4rem;
}
.journal li {
  padding: 0.3rem 0;
}
.journal code {
  background: var(--pale);
  padding: 0.1rem 0.35rem;
  border-radius: 0.18rem;
}
.actions {
  gap: 0.5rem;
}
.review-body [role="status"] {
  font-size: 0.9rem;
  min-height: 2.8em;
}
.mechanics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mechanics article {
  border-top: 2px solid var(--muted);
  padding: 1.15rem 0;
}
.mechanics h3 {
  font-size: 1.55rem;
}
@media (max-width: 720px) {
  .hero,
  .flow-grid,
  .feature,
  .about,
  .mechanics {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 2.2rem;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .mast-inner {
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-block: 0.7rem;
  }
  .mast nav {
    gap: 1rem;
  }
  .feature,
  .about {
    gap: 1rem;
  }
  .flow-grid {
    gap: 1.5rem;
  }
  .mechanics {
    gap: 0.75rem;
  }
}
@media (max-width: 400px) {
  .mast nav {
    gap: 0.65rem;
  }
  .mast nav a {
    font-size: 0.82rem;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .brand {
    font-size: 1.25rem;
  }
}
.flow-grid > * {
  min-width: 0;
}
.flow-grid pre {
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-x: auto;
  background: var(--deep);
  color: var(--pale);
  border-radius: 0.45rem;
}
.flow-grid pre code {
  font-size: 0.85rem;
  line-height: 1.65;
}
/* The two translucent fields cross behind the page like the planes in the mark. */
body:not(:has(> main:is([data-dinner], [data-bulletin]))) {
  background: var(--paper) url("/brand-waves.svg") center 0 / 100% clamp(92rem, 150vw, 140rem) repeat-y;
}
.mast {
  background: rgb(255 255 255 / 0.64);
}
.mast::before {
  display: none;
}
.mast nav [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}
.hero > *,
.product-list article > div {
  min-width: 0;
}
.hero > :first-child,
.flow-intro,
.page-intro,
.essay {
  container-type: inline-size;
}
.hero-demo {
  min-width: 0;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--deep) 10%, transparent);
}
.hero-demo .review {
  box-shadow: none;
  border: 0;
  border-radius: 0;
}
.review-body {
  background: var(--paper);
}
.source {
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.source summary {
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  color: var(--accent);
  font-weight: 650;
}
.source pre {
  background: var(--deep);
  color: white;
  overflow: auto;
  max-height: 23rem;
  margin: 0;
  padding: 1rem;
}
.page-intro,
.essay {
  padding-block: clamp(3.5rem, 7vw, 7rem);
}
.page-intro h1,
.essay h1 {
  max-width: 16ch;
}
.essay {
  max-width: 48rem;
}
.essay h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  margin: 2.5rem 0 0.8rem;
}
.essay p {
  margin-bottom: 1rem;
}
.product-list {
  display: grid;
  gap: 0.75rem;
}
.product-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.1rem, 2.5vw, 2.15rem);
  background: rgb(255 255 255 / 0.82);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.product-list h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.product-list code {
  display: block;
  color: var(--muted);
  margin: 0.35rem 0 0.6rem;
}
.product-list p {
  max-width: 66ch;
}
.product-list article > a {
  align-self: center;
}
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.story p {
  margin-bottom: 1rem;
}
@media (max-width: 720px) {
  .hero,
  .story {
    grid-template-columns: 1fr;
  }
  .product-list article {
    grid-template-columns: auto 1fr;
  }
  .product-list article > a {
    grid-column: 2;
  }
  .mast-inner {
    row-gap: 0.8rem;
  }
  .mast nav {
    flex-wrap: wrap;
  }
  .hero-demo {
    width: 100%;
  }
}

.review-body > p { margin-top: .65rem; }

.flow-mark { display:block; margin-bottom:1rem; }

.notes-heading{display:flex;align-items:baseline;justify-content:space-between;gap:.8rem 2rem;flex-wrap:wrap;margin-bottom:2rem}
.notes-heading>a{font-weight:600}
.home-notes-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,4rem);align-items:start}
.home-note{min-width:0;overflow-wrap:anywhere}
.home-note h3{font:600 clamp(1.4rem,2.3vw,2rem)/1.14 Lexend,sans-serif;letter-spacing:-.045em;margin:.5rem 0}
.home-note h3 a{text-decoration-thickness:1px;text-underline-offset:.15em}
.home-note p{margin:.7rem 0 0}
.home-note .kicker{margin:0}
.home-note-feature{background:var(--paper);border:1px solid var(--line);border-top:4px solid var(--accent);border-radius:.7rem;padding:clamp(1.3rem,3vw,2.4rem)}
.home-note-feature h3{font-size:clamp(1.8rem,3vw,3rem)}
.home-note-side{padding:1rem 0;border-top:1px solid var(--line)}
.home-note-meta{font-size:.86rem;color:var(--muted)}
@media(max-width:720px){.home-notes-grid{grid-template-columns:1fr}}
main :is(.essay, .page-intro) h1 { font-size: clamp(2rem, 3vw, 2.25rem); line-height: 1.2; }

html[data-site-theme] {
  --panel: var(--surface);
  --pale: var(--tint);
  --blokd-surface-muted: var(--tint);
  --blokd-on-surface-muted: var(--muted);
  --blokd-border: var(--line);
  --blokd-on-primary: light-dark(white, #181716);
}
html[data-site-theme="dark"] {
  --deep: var(--accent);
  --family-waves: linear-gradient(color-mix(in srgb, var(--paper) 48%, transparent) 0 0), url("/brand-waves.svg");
}
body > .mast, .product-list article { background: var(--surface); }
.mast-inner > nav { margin-inline-start: auto; }
.hero h1 { font-size: clamp(2.65rem, 5vw, 4.5rem); line-height: 1.03; }
.hero .lead { font-size: clamp(1rem, 1.45vw, 1.25rem); }
html[data-site-theme="dark"] :is(.cta, .source pre) { color: var(--paper); }
@media (min-width: 761px) {
  #software .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #software article { grid-template-columns: auto 1fr; gap: 1rem; }
  #software article > a { grid-column: 2; }
}

/* Match the Blokd homepage grid so container-relative type scales with its column. */
.hero {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(2rem, 5vw, 6rem);
}
.hero > :first-child { container-type: inline-size; }
:root body .hero h1 {
  font: 650 clamp(2.45rem, 14cqi, 5.25rem)/1.03 Inter, "Segoe UI", sans-serif;
  letter-spacing: -.065em;
  text-wrap: balance;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-inline: 0; }
}
main .section-head h2, main .about h2 { font-size: clamp(2.2rem, 3.4vw, 3.15rem); font-weight: 590; line-height: 1.15; letter-spacing: -.035em; }
