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

@font-face {
  font-family: "Alegreya Sans";
  src: url("assets/AlegreyaSans-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("assets/AlegreyaSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Knyaz Display";
  src: url("assets/ST-Nizhegorodsky.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #0b0c0e;
  --black-soft: #111216;
  --surface: #15171a;
  --surface-raised: #1b1e22;
  --ink: #f2f4f6;
  --ink-soft: #c4c9cf;
  --ink-muted: #969ca4;
  --silver: #a6adb4;
  --silver-bright: #dbe1e7;
  --line: rgba(196, 201, 207, 0.18);
  --line-strong: rgba(196, 201, 207, 0.45);
  --gold: #bd8429;
  --gold-bright: #f0c86b;
  --gold-wash: rgba(189, 132, 41, 0.08);
  --brand-ink: #f2f4f6;
  --display-start: #ffffff;
  --display-end: #aab1b8;
  --primary-start: #f5f7f8;
  --primary-end: #aeb5bc;
  --primary-ink: #14191e;
  --header-height: 92px;
  --header-top: #121519;
  --header-middle: #0e1013;
  --header-bottom: #0b0c0e;
  --header-sheen: rgba(255, 255, 255, 0.045);
  --header-ink: #f2f4f6;
  --header-ink-soft: rgba(226, 230, 234, 0.76);
  --header-border: rgba(196, 201, 207, 0.18);
  --header-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  --card-bg: rgba(17, 20, 23, 0.38);
  --card-bg-hover: rgba(28, 32, 36, 0.76);
  --body-background:
    radial-gradient(circle at 74% 7%, rgba(203, 210, 217, 0.065), transparent 34rem),
    linear-gradient(155deg, #0d0f11 0%, #0b0c0e 62%, #090b0d 100%);
  --grid-line: rgba(255, 255, 255, 0.014);
  --hero-glow: rgba(219, 225, 232, 0.14);
  --header-mark-filter: grayscale(1) brightness(1.72) contrast(1.06)
    drop-shadow(0 3px 7px rgba(0, 0, 0, 0.3));
  --panel-filter: grayscale(1) brightness(1.05) contrast(1.08)
    drop-shadow(0 22px 42px rgba(0, 0, 0, 0.48));
  --content: min(1180px, calc(100vw - 48px));
  --sans: "Alegreya Sans", "Segoe UI", sans-serif;
  --brand-font: "Knyaz Display", Georgia, serif;
}

:root[data-ui-theme="light"] {
  color-scheme: light;
  --black: #eceae4;
  --black-soft: #d8d5cd;
  --surface: #d6d4ce;
  --surface-raised: #f4f1e9;
  --ink: #20272d;
  --ink-soft: #35414a;
  --ink-muted: #56616a;
  --silver: #626970;
  --silver-bright: #c7cbce;
  --line: rgba(43, 51, 58, 0.2);
  --line-strong: rgba(31, 38, 44, 0.52);
  --gold: #916524;
  --gold-bright: #684718;
  --gold-wash: rgba(145, 101, 36, 0.07);
  --brand-ink: #20272d;
  --display-start: #11171c;
  --display-end: #4b545b;
  --primary-start: #68747d;
  --primary-end: #303941;
  --primary-ink: #f7f4ec;
  --header-top: #fffdf8;
  --header-middle: #f7f4ed;
  --header-bottom: #efebe2;
  --header-sheen: rgba(255, 255, 255, 0.62);
  --header-ink: #20272d;
  --header-ink-soft: rgba(32, 39, 45, 0.72);
  --header-border: rgba(43, 51, 58, 0.18);
  --header-shadow: 0 8px 24px rgba(43, 38, 28, 0.065);
  --card-bg: rgba(255, 253, 248, 0.38);
  --card-bg-hover: rgba(255, 253, 248, 0.72);
  --body-background:
    radial-gradient(circle at 12% -8%, rgba(255, 255, 255, 0.84), transparent 31%),
    radial-gradient(circle at 76% 12%, rgba(83, 94, 103, 0.065), transparent 32rem),
    linear-gradient(145deg, #f7f5ef 0%, #eceae4 57%, #dfe2e3 100%);
  --grid-line: rgba(32, 39, 45, 0.025);
  --hero-glow: rgba(69, 79, 88, 0.1);
  --header-mark-filter: grayscale(1) brightness(0.58) contrast(1.2)
    drop-shadow(0 2px 4px rgba(29, 36, 42, 0.12));
  --panel-filter: grayscale(1) brightness(0.64) contrast(1.2)
    drop-shadow(0 18px 32px rgba(29, 35, 40, 0.16));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--body-background);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--black);
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-icon-fill {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
}

.page-grid {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.82;
  mask-image: linear-gradient(to bottom, black 0, rgba(0, 0, 0, 0.72) 38rem, transparent 78rem);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: var(--content);
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  border-bottom: 1px solid var(--header-border);
  background:
    radial-gradient(circle at 20% -140%, var(--header-sheen), transparent 48%),
    linear-gradient(105deg, var(--header-top), var(--header-middle) 52%, var(--header-bottom));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    var(--header-shadow);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: var(--brand-font);
  font-size: 1.46rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1;
}

.brand-wordmark {
  font-family: var(--brand-font);
  font-weight: 400;
  text-rendering: geometricPrecision;
}

.product-wordmark {
  letter-spacing: 0.035em;
}

.brand {
  color: var(--header-ink);
}

.brand img,
.footer-brand img {
  display: block;
  object-fit: contain;
}

.brand img {
  width: 34px;
  height: 34px;
}

.footer-brand img {
  width: 30px;
  height: 37px;
}

.brand img,
.footer-brand img {
  filter: var(--header-mark-filter);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  color: var(--header-ink-soft);
  font-size: 0.94rem;
}

.main-nav a {
  position: relative;
  padding: 29px 0 27px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 18px;
  width: 20px;
  height: 1px;
  background: var(--header-ink);
  opacity: 0;
  transform: translateX(50%) scaleX(0.35);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="location"]::after {
  opacity: 1;
  transform: translateX(50%) scaleX(1);
}

.main-nav a,
.footer-links a,
.text-link {
  transition: color 160ms ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a[aria-current="location"],
.site-header .theme-toggle:hover,
.site-header .language-switch button[aria-pressed="true"] {
  color: var(--header-ink);
}

.footer-links a:hover,
.text-link:hover {
  color: var(--ink);
}

.header-controls {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.theme-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 5px 0;
  background: transparent;
  color: var(--header-ink-soft);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--header-ink);
}

.theme-toggle-symbol {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--header-ink-soft);
}

.theme-icon {
  display: none;
}

:root[data-ui-theme="dark"] .theme-icon-sun,
:root[data-ui-theme="light"] .theme-icon-moon {
  display: block;
}

.theme-toggle-label {
  font-size: 0.83rem;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--header-ink-soft);
  font-size: 0.83rem;
  letter-spacing: 0.12em;
}

.language-switch button {
  border: 0;
  padding: 8px 3px;
  background: transparent;
  color: var(--header-ink-soft);
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--header-ink);
}

main,
.site-footer {
  width: var(--content);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  padding: 78px 0 100px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

.not-found-title {
  display: block;
  max-width: 720px;
  padding: 0;
  color: var(--ink);
  background: none;
  font-family: var(--sans);
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
  -webkit-text-fill-color: currentColor;
}

.not-found .hero-description {
  max-width: 520px;
  margin-top: 30px;
  font-size: 1.1rem;
}

.not-found .hero-emblem img {
  width: min(86%, 500px);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--ink-muted);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold-bright);
}

h1,
h2,
h3,
.hero-lead,
.manifesto-lead {
  text-wrap: balance;
}

h1 {
  display: inline-block;
  margin: 0;
  padding-right: 0.06em;
  font-family: var(--brand-font);
  font-size: clamp(6.4rem, 13.2vw, 11.8rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.86;
  color: var(--brand-ink);
  background: linear-gradient(165deg, var(--display-start) 18%, var(--display-end) 92%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 560px;
  margin: 40px 0 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.35vw, 2.12rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.14;
}

.hero-description {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button.is-unavailable {
  cursor: not-allowed;
  opacity: 0.66;
}

.button.is-unavailable:hover {
  transform: none;
}

a.button.is-unavailable {
  pointer-events: none;
}

.button-primary {
  border-color: var(--primary-end);
  background: linear-gradient(145deg, var(--primary-start), var(--primary-end));
  color: var(--primary-ink);
}

.button-primary:not(.is-unavailable):hover {
  border-color: var(--primary-start);
  background: linear-gradient(145deg, var(--primary-start), var(--primary-end));
}

.button-quiet:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
}

.button-mark {
  display: grid;
  place-items: center;
  transition: transform 180ms ease;
}

.button-mark-play .ui-icon {
  width: 1rem;
  height: 1rem;
}

.availability-note {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.87rem;
}

.hero-emblem {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  --orbit-x: 0px;
  --orbit-y: 0px;
  --orbit-inner-x: 0px;
  --orbit-inner-y: 0px;
  --glow-x: 0px;
  --glow-y: 0px;
}

.hero-emblem::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow), transparent 66%);
  filter: blur(18px);
  transform: translate3d(var(--glow-x), var(--glow-y), 0);
  transition: transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-emblem img {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  height: auto;
  opacity: 0.96;
  filter: var(--panel-filter);
}

.hex-orbit {
  position: absolute;
  z-index: 1;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
}

.hex-orbit-outer {
  width: 92%;
  transform: translate3d(var(--orbit-x), var(--orbit-y), 0);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hex-orbit-inner {
  width: 72%;
  border-color: color-mix(in srgb, var(--ink-soft) 28%, transparent);
  transform: translate3d(var(--orbit-inner-x), var(--orbit-inner-y), 0) rotate(30deg);
  transition: transform 680ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

section:not(.hero) {
  scroll-margin-top: calc(var(--header-height) + 22px);
  padding: 126px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-left: 92px;
  margin-bottom: 66px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.75rem, 5.6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 0.96;
}

h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(40px, 8vw, 110px);
  margin-left: 92px;
}

.manifesto-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.manifesto-grid .manifesto-lead {
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 94px 0 0 92px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  min-height: 280px;
  padding: 28px 34px 34px 0;
}

.principle + .principle {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.principle-marker {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 54px;
  background: var(--line-strong);
}

.principle p,
.mode-row p,
.journal-entry p,
.download-card p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.mode-list {
  margin-left: 92px;
  border-top: 1px solid var(--line);
}

.mode-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 142px;
  border-bottom: 1px solid var(--line);
}

.mode-symbol {
  color: var(--ink-muted);
}

.mode-symbol .ui-icon {
  width: 1.65rem;
  height: 1.65rem;
}

.status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-ready {
  color: var(--gold-bright);
}

.section-heading-with-link {
  grid-template-columns: minmax(0, 1fr) auto;
}

.text-link {
  align-self: end;
  display: inline-flex;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.journal-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  margin-left: 92px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journal-entry {
  position: relative;
  min-height: 340px;
  padding: 30px;
  transition: background-color 180ms ease;
}

.journal-entry + .journal-entry {
  border-left: 1px solid var(--line);
}

.journal-entry:hover {
  background: var(--card-bg-hover);
}

.journal-entry-featured {
  background: var(--card-bg);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--gold) 72%, transparent);
}

.journal-meta,
.download-platform {
  display: block;
  margin-bottom: 78px;
  color: var(--ink-muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journal-entry p {
  max-width: 290px;
}

.journal-arrow {
  position: absolute;
  right: 30px;
  bottom: 26px;
  color: var(--ink-muted);
  transition: transform 180ms ease;
}

.journal-arrow .ui-icon,
.text-link .ui-icon {
  width: 1rem;
  height: 1rem;
}

.journal-entry:hover .journal-arrow,
.button-quiet:hover .button-mark {
  transform: translate(3px, -3px);
}

.button-primary:hover .button-mark {
  transform: translateX(3px);
}

.section-intro {
  max-width: 650px;
  margin: -22px 0 54px 92px;
  color: var(--ink-soft);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-left: 92px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.download-card {
  min-height: 285px;
  padding: 30px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card-bg);
  transition: background-color 180ms ease;
}

.download-card:hover {
  background: var(--card-bg-hover);
}

.download-card p {
  max-width: 380px;
}

.download-card .status {
  margin-top: 42px;
}

.download-platform {
  margin-bottom: 54px;
}

section.support-section {
  padding: 92px 0;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(44px, 8vw, 108px);
  align-items: start;
  margin-left: 92px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support-grid .eyebrow {
  margin-bottom: 16px;
}

.support-grid h2 {
  max-width: 500px;
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
}

.support-copy > p {
  max-width: 620px;
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.support-email {
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
}

.site-footer {
  min-height: 230px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 36px;
  align-items: start;
  padding: 52px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.footer-brand {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--ink-soft);
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
}

.footer-separator {
  margin: 0 7px;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 520ms ease var(--reveal-delay, 0ms),
    transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  :root {
    --content: min(100% - 32px, 720px);
  }

  .site-header {
    position: relative;
    grid-template-columns: 1fr auto;
    min-height: 78px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    width: 100%;
    padding: 0 0 16px;
    overflow-x: auto;
  }

  .main-nav a {
    padding: 8px 0 14px;
  }

  .main-nav a::after {
    bottom: 4px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 94px 0 110px;
  }

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

  .hero-emblem {
    min-height: 520px;
  }

  .hero-emblem img {
    width: min(88%, 520px);
  }

  section:not(.hero) {
    scroll-margin-top: 24px;
    padding: 96px 0;
  }

  .section-heading,
  .manifesto-grid,
  .principles,
  .mode-list,
  .journal-grid,
  .section-intro,
  .download-grid,
  .support-grid {
    margin-left: 0;
  }

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

  .principles,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: auto;
    padding: 28px 0 38px;
  }

  .principle + .principle,
  .journal-entry + .journal-entry {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .principle-marker {
    margin-bottom: 26px;
  }

  .journal-entry {
    min-height: 290px;
  }
}

@media (max-width: 620px) {
  :root {
    --content: calc(100% - 32px);
  }

  .page-grid {
    background-size: 54px 54px;
  }

  .site-header {
    position: relative;
    align-items: center;
  }

  .brand {
    font-size: 1.24rem;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .main-nav {
    gap: 24px;
    justify-content: start;
    font-size: 0.88rem;
  }

  .hero {
    padding-top: 76px;
  }

  h1 {
    font-size: clamp(5.1rem, 28vw, 7rem);
  }

  .hero-lead {
    margin-top: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-emblem {
    min-height: 390px;
  }

  .section-heading,
  .section-heading-with-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 48px;
  }

  .section-heading-with-link .text-link {
    grid-column: 1;
    justify-self: start;
    margin-top: 8px;
  }

  h2 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }

  .mode-row {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 24px 0;
  }

  .mode-row .status {
    grid-column: 2;
  }

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

  .download-card {
    min-height: 260px;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-links {
    gap: 20px;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-soft: #e2e6ea;
    --ink-muted: #c7cdd3;
    --line: rgba(226, 230, 234, 0.4);
    --line-strong: rgba(242, 244, 246, 0.78);
    --header-border: rgba(226, 230, 234, 0.46);
  }

  :root[data-ui-theme="light"] {
    --ink-soft: #263039;
    --ink-muted: #35414a;
    --line: rgba(31, 38, 44, 0.42);
    --line-strong: rgba(31, 38, 44, 0.78);
    --header-border: rgba(31, 38, 44, 0.48);
  }

  .page-grid {
    opacity: 0.52;
  }
}

@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;
  }
}

@media (forced-colors: active) {
  h1 {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}
