@font-face {
  font-family: "Basic";
  src: url("fonts/Basic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brygada 1918";
  src: url("fonts/Brygada1918-Bold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  --font-ui: "Basic", "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Brygada 1918", Georgia, "Times New Roman", serif;

  --page: #f7f7f5;
  --surface: #fdfdfc;
  --surface-alt: #efefec;
  --ink: #1d1d1f;
  --ink-muted: #656469;
  --ink-faint: #6f6e73;
  --line: #d9d8d4;
  --line-strong: #bcbab5;
  --accent: #74506e;
  --accent-soft: #eee5eb;
  --positive: #4f753b;
  --action-bg: #1d1d1f;
  --action-text: #fdfdfc;
  --nav-bg: #f7f7f5;
  --header-logo-image: url("images/figs_light_mode.svg");
  --focus-ring: #74506e;

  --nav-height: 68px;
  --page-padding: clamp(20px, 4vw, 48px);
  --content-width: 1240px;
  --radius: 8px;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

[data-theme="dark"] {
  --page: #171719;
  --surface: #202023;
  --surface-alt: #252528;
  --ink: #f3f2ef;
  --ink-muted: #b3b1b5;
  --ink-faint: #858389;
  --line: #3e3d41;
  --line-strong: #5c5a60;
  --accent: #e2bddb;
  --accent-soft: #3a2e38;
  --positive: #80b662;
  --action-bg: #f3f2ef;
  --action-text: #171719;
  --nav-bg: #171719;
  --header-logo-image: url("images/figs_dark_mode.svg");
  --focus-ring: #e2bddb;
}

html {
  background: var(--page);
  color-scheme: light;
  font-family: var(--font-ui);
  font-size: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: inherit;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out),
    border-color 150ms var(--ease-out);
}

a:hover {
  color: var(--ink);
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--action-bg);
  color: var(--action-text);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 150ms var(--ease-out);
}

.skip-link:focus {
  color: var(--action-text);
  transform: translateY(0);
}

.page-width {
  width: min(100%, calc(var(--content-width) + (var(--page-padding) * 2)));
  margin: 0 auto;
  padding-right: var(--page-padding);
  padding-left: var(--page-padding);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
}

.site-nav-inner {
  width: min(100%, calc(var(--content-width) + (var(--page-padding) * 2)));
  min-height: var(--nav-height);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-nav-logo {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-logo:hover {
  color: var(--ink);
}

.site-nav-logo-mark {
  width: 46px;
  height: 34px;
  flex: 0 0 auto;
  background-image: var(--header-logo-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.site-nav-logo-text {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav-link {
  min-height: 44px;
  padding: 0 0.7rem;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--ink-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.site-nav-link:hover {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.site-nav-theme-toggle {
  width: 44px;
  height: 44px;
  margin: 0 0 0 0.25rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.site-nav-theme-toggle:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.theme-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.hero {
  padding-top: clamp(56px, 7vw, 92px);
  padding-bottom: clamp(72px, 8vw, 108px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
}

.release-line {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.hero h1 {
  max-width: 8.5ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 5.4vw, 4.9rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 36rem;
  margin: 1.75rem 0 0;
  color: var(--ink-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.primary-action {
  min-height: 48px;
  margin-top: 2rem;
  padding: 0 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--action-bg);
  border-radius: 6px;
  background: var(--action-bg);
  color: var(--action-text);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.primary-action:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

[data-theme="dark"] .primary-action:hover {
  color: #171719;
}

.product-figure {
  min-width: 0;
  margin: 0;
}

.calendar-figure {
  margin-top: 76px;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.screenshot-window {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 656;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-screenshot {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 109.7561%;
  display: block;
  transform: translateX(-50%);
}

.theme-image-dark {
  display: none;
}

[data-theme="dark"] .theme-image-light {
  display: none;
}

[data-theme="dark"] .theme-image-dark {
  display: block;
}

.product-figure figcaption {
  margin-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.product-figure figcaption span:first-child {
  color: var(--ink);
}

.storage-section {
  padding-top: clamp(72px, 8vw, 104px);
  padding-bottom: clamp(72px, 8vw, 104px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
  scroll-margin-top: var(--nav-height);
}

.storage-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
}

.storage-copy-block h2,
.android-copy-block h2,
.hosting-block h2,
.status-block h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.storage-copy-block > p,
.android-copy-block > p,
.hosting-block > p {
  max-width: 34rem;
  margin: 1.35rem 0 0;
  color: var(--ink-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.storage-boundary,
.deployment-list {
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.storage-boundary li,
.deployment-list li {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.storage-boundary .row-label,
.storage-boundary .row-copy,
.deployment-list .row-label,
.deployment-list .row-copy {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.storage-boundary .row-label,
.deployment-list .row-label {
  color: var(--ink);
  font-weight: 700;
}

.storage-boundary .row-copy,
.deployment-list .row-copy {
  color: var(--ink-muted);
}

.android-section {
  padding-top: clamp(72px, 8vw, 104px);
  padding-bottom: clamp(72px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--nav-height);
}

.android-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
}

.android-flow {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.android-flow li {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.android-flow .row-label,
.android-flow .row-copy {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.android-flow .row-label {
  color: var(--ink);
  font-weight: 700;
}

.android-flow .row-copy {
  color: var(--ink-muted);
}

.release-section {
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(56px, 9vw, 112px);
}

.status-block {
  padding-left: clamp(56px, 7vw, 96px);
  border-left: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.status-list {
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.status-list li {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.status-list li > span {
  color: var(--ink-faint);
  font-size: 0.9375rem;
  font-weight: 700;
}

.status-list li > p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.status-list .is-complete > span {
  color: var(--positive);
}

.status-list .is-current {
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.status-list .is-current > span,
.status-list .is-current > p {
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  min-height: 82px;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--ink-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

@media (max-width: 980px) {
  .hero-layout,
  .storage-layout,
  .android-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy-block {
    max-width: 44rem;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .calendar-figure,
  .storage-figure {
    max-width: 52rem;
  }

  .calendar-figure {
    margin-top: 0;
  }

  .storage-copy-block,
  .android-copy-block {
    max-width: 38rem;
  }

  .android-layout {
    gap: 36px;
  }

  .release-layout {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .status-block {
    padding-top: 64px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --page-padding: 20px;
  }

  .site-nav-link-optional {
    display: none;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 68px;
  }

  .hero-layout {
    gap: 44px;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(2.8rem, 12.5vw, 4rem);
  }

  .hero-copy {
    font-size: 1.0625rem;
  }

  .screenshot-window {
    aspect-ratio: 4 / 3;
  }

  .calendar-window .product-screenshot {
    left: 0;
    transform: none;
  }

  .product-figure figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .storage-layout {
    gap: 36px;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .site-nav-inner {
    gap: 0.75rem;
  }

  .site-nav-logo-mark {
    width: 40px;
    height: 30px;
  }

  .site-nav-logo-text {
    font-size: 1.6rem;
  }

  .site-nav-link {
    padding-right: 0.45rem;
    padding-left: 0.45rem;
    font-size: 0.8125rem;
  }

  .site-nav-theme-toggle {
    margin-left: 0;
  }

  .storage-boundary li,
  .deployment-list li,
  .android-flow li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .status-list li {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 360px) {
  .site-nav-status-link {
    display: none;
  }
}

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

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