@import url("/assets/tokens.9b08211b.css");

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Semantic colours come from /assets/tokens.9b08211b.css (the Sharon build). The dark blocks below
     restate its .dark values for the data-theme selectors; scripts/check.mjs keeps them equal. */
  color-scheme: light;
  --header-height: 72px;
  --container: 1180px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --duration: 180ms;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #050505;
  --foreground: #f6f0df;
  --surface: #101010;
  --surface-foreground: #f6f0df;
  --surface-elevated: #171717;
  --surface-high: #23211c;
  --muted: #23211c;
  --muted-foreground: #bdb39f;
  --border: #343025;
  --primary: #f6f0df;
  --primary-foreground: #090907;
  --accent: #23211c;
  --accent-foreground: #f6f0df;
  --destructive: #ff8a84;
  --success: #6fd5a3;
  --brand-gold: #e8c77a;
  --focus: #f6f0df;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --background: #050505;
    --foreground: #f6f0df;
    --surface: #101010;
    --surface-foreground: #f6f0df;
    --surface-elevated: #171717;
    --surface-high: #23211c;
    --muted: #23211c;
    --muted-foreground: #bdb39f;
    --border: #343025;
    --primary: #f6f0df;
    --primary-foreground: #090907;
    --accent: #23211c;
    --accent-foreground: #f6f0df;
    --destructive: #ff8a84;
    --success: #6fd5a3;
    --brand-gold: #e8c77a;
    --focus: #f6f0df;
  }
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

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

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

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

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

button {
  color: inherit;
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--background);
  border-block-end: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 21px;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.site-navigation {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-links a,
.language-link {
  position: relative;
  padding-block: 8px;
  color: var(--muted-foreground);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.language-link:hover,
.nav-links a[aria-current="page"] {
  color: var(--foreground);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 2px;
  background: var(--foreground);
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-elevated);
}

.menu-button {
  display: none;
  margin-inline-start: auto;
}

/* The menu and theme buttons do nothing without JS; theme-init.js adds `.js`. */
html:not(.js) .menu-button,
html:not(.js) .theme-button {
  display: none !important;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 12px 18px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--duration) ease, color var(--duration) ease, transform var(--duration) ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button-compact {
  min-height: 42px;
  padding: 9px 13px;
  font-size: 14px;
}

.button-light {
  border-color: #f6f0df;
  background: #f6f0df;
  color: #090907;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link-light {
  color: #f6f0df;
}

html[dir="rtl"] .text-link .icon,
html[dir="rtl"] .index-row > .icon,
html[dir="rtl"] .release-meta .icon,
html[dir="rtl"] .article-back .icon {
  transform: rotate(180deg);
}

.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--brand-gold);
  font-size: 14px;
  font-weight: 600;
}

.hero {
  min-height: min(720px, calc(100svh - var(--header-height) - 36px));
  overflow: hidden;
  background: #050505;
  color: #f6f0df;
}

.hero-inner {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: var(--space-16);
  padding-block: var(--space-12) 0;
}

.hero-copy {
  align-self: center;
  padding-block-end: var(--space-12);
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow {
  color: #e8c77a;
}

.hero h1 {
  margin: 0;
  font-size: 88px;
  line-height: 1.02;
  font-weight: 600;
}

.hero-headline {
  max-width: 640px;
  margin: var(--space-5) 0 0;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 600;
}

.hero-lede {
  max-width: 660px;
  margin: var(--space-5) 0 0;
  color: #bdb39f;
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-block-start: var(--space-8);
}

.release-status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  color: #bdb39f;
  font-size: 14px;
}

.release-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4bc68c;
  box-shadow: 0 0 0 4px rgba(75, 198, 140, 0.14);
}

.hero-device {
  align-self: end;
  width: min(100%, 330px);
  height: 620px;
  justify-self: center;
  overflow: hidden;
  border: 8px solid #23211c;
  border-block-end: 0;
  border-radius: 48px 48px 0 0;
  background: #f6f0df;
  box-shadow: 0 0 0 1px #5e5749, 0 32px 80px rgba(0, 0, 0, 0.45);
}

.hero-device img {
  width: 100%;
  height: auto;
}

.section {
  padding-block: 112px;
}

.section-intro {
  padding-block-start: 48px;
  background: var(--surface);
}

.split-intro {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-20);
  align-items: start;
  margin-block-end: var(--space-20);
}

.split-intro h2,
.section-heading h2,
.ipad-copy h2,
.docs-callout h2,
.final-cta h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.25;
  font-weight: 600;
}

.split-intro p,
.section-heading > p,
.ipad-copy > p,
.docs-callout p,
.final-cta p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 20px;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--space-10);
}

.feature-item {
  min-width: 0;
  padding-block: var(--space-8) var(--space-10);
  border-block-start: 1px solid var(--border);
}

.feature-icon {
  width: 26px;
  height: 26px;
  margin-block-end: var(--space-6);
  color: var(--brand-gold);
}

.feature-item h3 {
  margin: 0 0 var(--space-3);
  font-size: 21px;
  line-height: 1.4;
}

.feature-item p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 16px;
}

.section-ink {
  background: #050505;
  color: #f6f0df;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-20);
  align-items: end;
  margin-block-end: var(--space-12);
}

.section-ink .section-heading > p {
  color: #bdb39f;
}

.section-ink .eyebrow {
  color: #e8c77a;
}

.screenshot-rail {
  display: flex;
  gap: var(--space-6);
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 0 max(20px, calc((100vw - var(--container)) / 2)) var(--space-6);
  scrollbar-color: #5e5749 transparent;
}

.screenshot-item {
  flex: 0 0 340px;
  margin: 0;
  scroll-snap-align: start;
}

.screenshot-item img {
  width: 100%;
  height: 738px;
  object-fit: cover;
  border: 1px solid #343025;
  border-radius: var(--radius-md);
  background: #101010;
}

.screenshot-item figcaption {
  display: grid;
  gap: var(--space-1);
  padding-block-start: var(--space-4);
}

.screenshot-item figcaption strong {
  font-size: 16px;
}

.screenshot-item figcaption span {
  color: #bdb39f;
  font-size: 14px;
}

.ipad-section {
  overflow: hidden;
}

.ipad-composition {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: var(--space-20);
  align-items: center;
}

.ipad-copy > p {
  margin-block-start: var(--space-5);
}

.ipad-copy .eyebrow {
  margin-block-start: 0;
  font-size: 14px;
}

.ipad-frame {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  border: 8px solid var(--foreground);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 26px 60px rgba(9, 9, 7, 0.18);
}

.ipad-frame img {
  width: 100%;
  height: auto;
}

.docs-callout {
  padding-block: 0 112px;
}

.docs-callout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  padding-block: var(--space-12);
  border-block: 1px solid var(--border);
}

.docs-callout-inner > div {
  max-width: 720px;
}

.callout-icon {
  width: 34px;
  height: 34px;
  margin-block-end: var(--space-5);
  color: var(--brand-gold);
}

.docs-callout h2 {
  font-size: 36px;
}

.docs-callout p {
  margin-block-start: var(--space-3);
  font-size: 17px;
}

.final-cta {
  background: #050505;
  color: #f6f0df;
  text-align: center;
}

.final-cta .container {
  max-width: 760px;
}

.final-cta img {
  margin: 0 auto var(--space-6);
  border-radius: 22px;
}

.final-cta p {
  margin-block: var(--space-4) var(--space-8);
  color: #bdb39f;
}

.index-hero,
.article-hero {
  padding-block: 96px 72px;
  border-block-end: 1px solid var(--border);
}

.index-hero .container {
  max-width: 900px;
  margin-inline-start: max(20px, calc((100vw - var(--container)) / 2));
}

.index-hero h1,
.article-hero h1,
.not-found h1 {
  margin: 0;
  max-width: 850px;
  font-size: 58px;
  line-height: 1.2;
  font-weight: 600;
}

.index-hero .container > p:last-child,
.article-lede,
.not-found p {
  max-width: 760px;
  margin: var(--space-5) 0 0;
  color: var(--muted-foreground);
  font-size: 20px;
}

.index-section {
  padding-block-start: var(--space-16);
}

.index-list {
  border-block-start: 1px solid var(--border);
}

.index-row {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: var(--space-5);
  align-items: center;
  min-height: 112px;
  padding-block: var(--space-5);
  border-block-end: 1px solid var(--border);
  text-decoration: none;
}

.index-row:hover strong {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.index-row > span:first-child {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  color: var(--brand-gold);
}

.index-icon {
  width: 22px;
  height: 22px;
}

.index-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}

.index-row strong {
  font-size: 20px;
}

.index-row small {
  color: var(--muted-foreground);
  font-size: 15px;
}

.release-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-12);
  padding-block: var(--space-10);
  border-block: 1px solid var(--border);
  text-decoration: none;
}

.release-row + .release-row {
  border-block-start: 0;
}

.release-row:hover h2 {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.release-kicker {
  margin: 0 0 var(--space-3);
  color: var(--brand-gold);
  font-size: 14px;
  font-weight: 600;
}

.release-row h2 {
  margin: 0;
  font-size: 32px;
}

.release-row > div:first-child > p:last-child {
  max-width: 720px;
  margin: var(--space-3) 0 0;
  color: var(--muted-foreground);
}

.release-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
}

.article-hero-inner {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-8);
  align-items: start;
}

.article-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--brand-gold);
}

.article-mark-icon {
  width: 30px;
  height: 30px;
}

.article-date {
  margin: var(--space-4) 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: var(--space-20);
  justify-content: start;
  padding-block: 72px 112px;
}

.article-toc {
  align-self: start;
  position: sticky;
  inset-block-start: calc(var(--header-height) + 24px);
}

.article-toc > p {
  margin: 0 0 var(--space-4);
  font-size: 13px;
  font-weight: 600;
}

.article-toc nav {
  display: grid;
  border-inline-start: 1px solid var(--border);
}

.article-toc a {
  padding: 7px 14px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--foreground);
}

.prose {
  min-width: 0;
}

.prose section + section {
  margin-block-start: var(--space-16);
  padding-block-start: var(--space-16);
  border-block-start: 1px solid var(--border);
}

.prose h2 {
  margin: 0 0 var(--space-5);
  font-size: 30px;
  line-height: 1.4;
}

.prose p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 18px;
  line-height: 1.95;
}

.prose p + p {
  margin-block-start: var(--space-5);
}

.prose a:not(.article-back) {
  color: var(--foreground);
  font-weight: 600;
}

.article-back {
  margin-block-start: var(--space-16);
}

.support-hero .article-mark {
  margin-block-end: var(--space-6);
}

.support-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: var(--space-20);
  align-items: start;
}

.support-grid h2 {
  margin: 0 0 var(--space-4);
  font-size: 30px;
}

.support-grid > div:first-child p {
  margin: 0 0 var(--space-6);
  color: var(--muted-foreground);
}

.faq-list {
  border-block-start: 1px solid var(--border);
}

.faq-list details {
  border-block-end: 1px solid var(--border);
}

.faq-list summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding-block: 0 var(--space-5);
  color: var(--muted-foreground);
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding-block: var(--space-20);
  text-align: center;
}

.open-fallback {
  min-height: 100svh;
}

.not-found .container {
  max-width: 680px;
}

.not-found img {
  margin: 0 auto var(--space-6);
  border-radius: 24px;
}

.not-found h1 {
  margin-inline: auto;
}

.not-found p {
  margin-inline: auto;
  margin-block-end: var(--space-8);
}

.site-footer {
  padding-block: var(--space-12);
  border-block-start: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8) var(--space-12);
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-brand img {
  border-radius: 10px;
}

.footer-brand strong {
  font-size: 18px;
}

.footer-brand p,
.copyright {
  margin: var(--space-1) 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.site-footer nav a {
  color: var(--muted-foreground);
  font-size: 14px;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.copyright {
  grid-column: 1 / -1;
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--border);
}

@media (max-width: 980px) {
  :root {
    --header-height: 64px;
  }

  .menu-button {
    display: inline-grid;
  }

  .js .site-navigation {
    position: absolute;
    inset-block-start: var(--header-height);
    inset-inline: 0;
    display: none;
    padding: var(--space-5) max(20px, calc((100vw - var(--container)) / 2)) var(--space-6);
    border-block-end: 1px solid var(--border);
    background: var(--background);
  }

  .js .site-navigation[data-open="true"] {
    display: grid;
    gap: var(--space-5);
  }

  /* No JS: the menu cannot open, so the navigation stays in the page flow. */
  html:not(.js) .site-header {
    position: static;
    height: auto;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-block: var(--space-3);
  }

  html:not(.js) .site-navigation {
    flex-basis: 100%;
    display: grid;
    gap: var(--space-5);
    padding-block-end: var(--space-4);
  }

  .nav-links,
  .nav-actions {
    align-items: stretch;
  }

  .nav-links {
    display: grid;
    gap: 0;
  }

  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-block-end: 1px solid var(--border);
  }

  .nav-actions {
    flex-wrap: wrap;
  }

  .nav-actions .button {
    flex: 1 1 220px;
  }

  .hero h1 {
    font-size: 68px;
  }

  .hero-headline {
    font-size: 28px;
  }

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

  .screenshot-item {
    flex-basis: 300px;
  }

  .screenshot-item img {
    height: 652px;
  }

  .article-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: var(--space-12);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .brand {
    font-size: 19px;
  }

  .hero {
    min-height: 790px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 340px;
    gap: var(--space-4);
    padding-block-start: var(--space-10);
  }

  .hero-copy {
    padding-block-end: 0;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-headline {
    font-size: 25px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .release-status {
    align-items: flex-start;
  }

  .release-status span {
    margin-block-start: 7px;
  }

  .hero-device {
    width: 210px;
    height: 340px;
    border-width: 6px;
    border-radius: 34px 34px 0 0;
  }

  .section {
    padding-block: 80px;
  }

  .section-intro {
    padding-block-start: 40px;
  }

  .split-intro,
  .section-heading,
  .ipad-composition,
  .support-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .split-intro {
    margin-block-end: var(--space-12);
  }

  .split-intro h2,
  .section-heading h2,
  .ipad-copy h2,
  .final-cta h2 {
    font-size: 34px;
  }

  .split-intro p,
  .section-heading > p,
  .ipad-copy > p,
  .final-cta p {
    font-size: 17px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding-block-end: var(--space-8);
  }

  .screenshot-rail {
    gap: var(--space-4);
    padding-inline: 16px;
  }

  .screenshot-item {
    flex-basis: min(82vw, 310px);
  }

  .screenshot-item img {
    height: auto;
    aspect-ratio: 1320 / 2868;
  }

  .ipad-composition {
    direction: inherit;
  }

  .ipad-frame {
    max-height: 430px;
    border-width: 5px;
    border-radius: 18px;
  }

  .docs-callout {
    padding-block: 0 80px;
  }

  .docs-callout-inner {
    align-items: stretch;
    flex-direction: column;
    padding-block: var(--space-10);
  }

  .docs-callout h2 {
    font-size: 30px;
  }

  .index-hero,
  .article-hero {
    padding-block: 64px 48px;
  }

  .index-hero .container {
    margin-inline: auto;
  }

  .index-hero h1,
  .article-hero h1,
  .not-found h1 {
    font-size: 40px;
  }

  .index-hero .container > p:last-child,
  .article-lede,
  .not-found p {
    font-size: 17px;
  }

  .release-row {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-6);
  }

  .release-row h2 {
    font-size: 28px;
  }

  .article-hero-inner {
    grid-template-columns: 1fr;
  }

  .article-mark {
    width: 56px;
    height: 56px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding-block: var(--space-10) 80px;
  }

  .article-toc {
    position: static;
    padding-block-end: var(--space-6);
    border-block-end: 1px solid var(--border);
  }

  .article-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--space-4);
  }

  .article-toc a {
    padding-inline: var(--space-3);
  }

  .prose h2 {
    font-size: 26px;
  }

  .prose p {
    font-size: 17px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 820px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-headline {
    font-size: 23px;
  }

  .article-toc nav {
    grid-template-columns: 1fr;
  }

  .index-row {
    grid-template-columns: 40px 1fr 20px;
    gap: var(--space-3);
  }

  .index-row > span:first-child {
    width: 40px;
    height: 40px;
  }
}

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

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