:root {
  --ink: #191a17;
  --ink-soft: #393b35;
  --paper: #f4f0e7;
  --paper-strong: #fffdf8;
  --sand: #e5ddcc;
  --line: #b9b09e;
  --accent: #c94f31;
  --accent-dark: #92351f;
  --signal: #d7e26f;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(25, 26, 23, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--accent);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.narrow {
  width: min(calc(100% - 2rem), 780px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 8vw, 8rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.section--dark {
  background: var(--ink);
  color: var(--paper-strong);
}

.section--sand {
  background: var(--sand);
}

.eyebrow {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section--dark .eyebrow {
  color: var(--signal);
}

.eyebrow::before {
  width: 2rem;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
h4 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3.3rem, 9vw, 8.5rem);
}

h2 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}

h4 {
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

.lede {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.section--dark .lede,
.section--dark .muted {
  color: #d9d4c8;
}

.muted {
  color: #56584f;
}

.stack > * + * {
  margin-top: 1.25rem;
}

.stack--large > * + * {
  margin-top: 2rem;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 231, 0.96);
  backdrop-filter: blur(12px);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.brand-logo,
.brand-logo img {
  display: block;
}

.brand-logo img {
  width: auto;
  height: 50px;
  object-fit: contain;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0.85rem;
  bottom: 0.42rem;
  left: 0.85rem;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper-strong);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero .container {
  width: min(calc(100% - 3rem), 1600px);
}

.hero::before {
  position: absolute;
  top: 12%;
  right: -7rem;
  width: clamp(17rem, 33vw, 35rem);
  aspect-ratio: 1;
  border: clamp(2.5rem, 6vw, 6rem) solid var(--sand);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: clamp(680px, 78vh, 900px);
  grid-template-columns: minmax(0, 1.68fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 4vw, 4.5rem);
  padding-block-start: clamp(5rem, 6.5vw, 6.5rem);
  padding-block-end: clamp(6rem, 8vw, 8rem);
}

.hero-copy {
  max-width: 1000px;
}

.hero h1 {
  max-width: 1000px;
  font-size: clamp(3.8rem, 5.6vw, 5.625rem);
  line-height: 0.92;
}

.hero .lede {
  max-width: 58ch;
}

.hero h1 span {
  color: var(--accent);
}

.hero-card {
  --depth-x: 0deg;
  --depth-y: 0deg;
  position: relative;
  align-self: center;
  margin-top: 0;
  border: 1px solid var(--ink);
  background: var(--paper-strong);
  box-shadow: 12px 12px 0 var(--ink);
  transform: perspective(900px) rotateX(var(--depth-x)) rotateY(var(--depth-y));
  transform-style: preserve-3d;
  transition: transform 240ms ease-out, box-shadow 240ms ease-out;
}

.hero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #3d8d58;
}

.principle-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principles;
}

.principle-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.8rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
  counter-increment: principles;
  font-weight: 750;
}

.principle-list li:last-child {
  border-bottom: 0;
}

.principle-list li::before {
  color: var(--accent-dark);
  content: "0" counter(principles);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button::after {
  content: "↗";
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.button::after {
  transition: transform 180ms ease;
}

.button:hover::after {
  transform: translate(3px, -3px);
}

.button:active {
  transform: translateY(0) scale(0.975);
}

.button--secondary {
  background: transparent;
  color: var(--ink);
}

.button--secondary:hover {
  background: var(--ink);
  color: #fff;
}

.button[aria-disabled="true"] {
  border-color: var(--line);
  background: transparent;
  color: #6b6c65;
  cursor: not-allowed;
  transform: none;
}

.button[aria-disabled="true"]::after {
  content: "—";
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.card--dark {
  border-color: #4b4d46;
  background: #22231f;
  color: #fff;
}

.card--accent {
  border-color: var(--accent-dark);
  background: var(--accent);
  color: #fff;
}

.card__index,
.stat {
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card--dark .card__index,
.card--accent .card__index {
  color: var(--signal);
}

.card h3 + p,
.card h4 + p {
  margin-top: 0.9rem;
}

.featured-theme {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: calc(var(--radius) + 6px);
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.theme-poster {
  position: relative;
  display: flex;
  min-height: 460px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  background: #521713;
  color: #fff8e8;
}

.theme-poster::before,
.theme-poster::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.theme-poster::before {
  top: -4rem;
  right: -4rem;
  width: 18rem;
  aspect-ratio: 1;
  border: 4rem solid #dcae35;
}

.theme-poster::after {
  bottom: -8rem;
  left: -6rem;
  width: 22rem;
  aspect-ratio: 1;
  border: 1px solid #f0cc72;
  box-shadow: 0 0 0 3rem rgba(240, 204, 114, 0.08), 0 0 0 6rem rgba(240, 204, 114, 0.06);
}

.theme-poster > * {
  position: relative;
  z-index: 1;
}

.theme-poster__name {
  width: 100%;
  max-width: none;
  font-size: clamp(3.75rem, 6.5vw, 5.5rem);
  text-align: center;
  white-space: nowrap;
}

.theme-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.tag-list,
.check-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  padding: 0.42rem 0.72rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
}

.check-list {
  display: grid;
  gap: 0.6rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.65rem;
}

.check-list li::before {
  color: var(--accent-dark);
  content: "◆";
  font-size: 0.65rem;
  transform: translateY(0.35rem);
}

.metrics {
  display: grid;
  border-block: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.metric {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric span {
  display: block;
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  padding-block: clamp(5rem, 11vw, 10rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 12ch;
}

.page-hero .lede {
  margin-top: 2rem;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.preset {
  min-height: 500px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius);
}

.preset--smash {
  background: #581914;
  color: #fff5dc;
}

.preset--ember {
  background: #2a2822;
  color: #f1e6d0;
}

.preset__letter {
  display: block;
  margin-block: clamp(4rem, 12vw, 9rem);
  color: var(--signal);
  font-size: clamp(7rem, 20vw, 15rem);
  font-weight: 900;
  line-height: 0.6;
  letter-spacing: -0.1em;
}

.preset--ember .preset__letter {
  color: #c35d32;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
}

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

.feature-table th {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 0.72fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

.docs-nav {
  position: sticky;
  top: 6.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.docs-nav ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.docs-nav a {
  display: block;
  padding: 0.35rem 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.prose {
  min-width: 0;
}

.prose section + section {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.prose h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.prose h3 {
  margin-top: 2.4rem;
}

.prose p,
.prose ul,
.prose ol {
  max-width: 72ch;
  margin-top: 1rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.callout {
  margin-top: 1.5rem;
  padding: 1.2rem 1.35rem;
  border-left: 5px solid var(--accent);
  background: var(--sand);
}

code {
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: #e1d9c9;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 1.2rem 0;
  cursor: pointer;
  font-weight: 800;
}

details p {
  padding: 0 0 1.2rem;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.support-form {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.84rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.85rem;
  border: 1px solid #77786f;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-dark);
  outline: 3px solid rgba(201, 79, 49, 0.25);
}

.form-note,
.form-error,
.form-success {
  padding: 1rem;
  border-radius: 8px;
}

.form-note {
  background: var(--sand);
}

.form-error {
  border: 1px solid #922b21;
  background: #fff0ec;
  color: #6f1c13;
}

.form-success {
  border: 1px solid #39734d;
  background: #edf8f0;
  color: #245237;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.scope-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-card + .scope-card {
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid #494b45;
  background: var(--ink);
  color: var(--paper-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 0.35fr));
  gap: 3rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.footer-grid .brand-logo img {
  width: auto;
  height: clamp(84px, 7vw, 104px);
  max-width: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer-grid h2 {
  margin-top: 1.5rem;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.footer-nav h3 {
  margin-bottom: 1rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li + li {
  margin-top: 0.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid #494b45;
  color: #c4c0b7;
  font-size: 0.85rem;
}

.legal h2 {
  margin-top: 3rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.legal h3 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.legal p,
.legal ul {
  max-width: 72ch;
  margin-top: 1rem;
}

.error-code {
  color: var(--accent);
  font-size: clamp(7rem, 26vw, 18rem);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.1em;
}

.motion-ready .home .site-header {
  animation: header-enter 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-ready .home .hero-copy > .eyebrow,
.motion-ready .home .hero-copy > .lede {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  animation: hero-item-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.motion-ready .home .hero-copy > .eyebrow {
  transform: translate3d(0, 16px, 0);
  animation-delay: 80ms;
}

.motion-ready .home .hero-copy > h1 {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, 42px, 0);
  animation: headline-enter 900ms cubic-bezier(0.16, 1, 0.3, 1) 190ms forwards;
}

.motion-ready .home .hero-copy > .lede {
  animation-delay: 380ms;
}

.motion-ready .home .hero-copy > .button-row .button {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  animation: button-enter 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.motion-ready .home .hero-copy > .button-row .button:first-child {
  animation-delay: 540ms;
}

.motion-ready .home .hero-copy > .button-row .button:nth-child(2) {
  animation-delay: 660ms;
}

.motion-ready .home .hero-card {
  opacity: 0;
  animation: hero-card-enter 900ms cubic-bezier(0.16, 1, 0.3, 1) 360ms forwards;
}

.motion-ready .home .hero::before {
  animation: ring-float 14s ease-in-out infinite alternate;
}

.motion-ready .home .reveal-block {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 760ms cubic-bezier(0.22, 1, 0.36, 1), transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .home .reveal-block.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes header-enter {
  from {
    opacity: 0;
    transform: translate3d(0, -16px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-item-enter {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes headline-enter {
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes button-enter {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-card-enter {
  from {
    opacity: 0;
    transform: perspective(900px) translate3d(48px, 22px, 0) rotate(1.75deg) scale(0.975);
  }

  to {
    opacity: 1;
    transform: perspective(900px) translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@keyframes ring-float {
  from {
    opacity: 0.72;
    transform: translate3d(0, -5px, 0) scale(0.99);
  }

  to {
    opacity: 0.9;
    transform: translate3d(-12px, 10px, 0) scale(1.015);
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .hero-grid {
    min-height: clamp(620px, 72vh, 760px);
    padding-block-start: clamp(4.5rem, 7vw, 5.25rem);
    padding-block-end: clamp(5rem, 8vw, 6rem);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .featured-theme,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 3.5rem;
    padding-block: clamp(5rem, 12vw, 7rem);
  }

  .hero .container {
    width: min(calc(100% - 2rem), var(--max));
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(3.5rem, 12.5vw, 6rem);
  }

  .hero-card {
    width: min(100%, 520px);
    align-self: auto;
    margin: 0;
  }

  .featured-theme {
    max-width: 720px;
    margin-inline: auto;
  }

  .theme-poster__name {
    font-size: clamp(3rem, 16vw, 8.25rem);
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: -1rem;
    left: -1rem;
    display: none;
    max-height: calc(100vh - 67px);
    padding: 1rem;
    overflow-y: auto;
    border-bottom: 1px solid var(--ink);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav ul {
    display: grid;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }

  .section-heading,
  .preset-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .preset {
    min-height: 420px;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container,
  .narrow {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .hero .container {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .hero-grid {
    gap: 3rem;
    padding-block: 4.25rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(3rem, 15vw, 4.25rem);
  }

  .site-header .brand-logo img {
    height: 42px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .button-row .button {
    width: 100%;
  }

  .theme-poster {
    min-height: 390px;
  }

  .feature-table,
  .feature-table tbody,
  .feature-table tr,
  .feature-table th,
  .feature-table td {
    display: block;
  }

  .feature-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .feature-table tr {
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .feature-table td {
    padding: 0.25rem 0;
    border: 0;
  }

  .feature-table td:first-child {
    font-weight: 850;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .motion-ready .home .hero-copy > *,
  .motion-ready .home .hero-card,
  .motion-ready .home .reveal-block {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .home .hero-card,
  .home .hero::before {
    transform: none !important;
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .button-row,
  .docs-nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section,
  .page-hero {
    padding-block: 2rem;
  }
}
