:root {
  color-scheme: light dark;
  --page: #f4f7fa;
  --surface: #ffffff;
  --surface-tint: #e7edf4;
  --ink: #151c24;
  --muted: #4e5966;
  --line: #8d98a5;
  --line-strong: #202933;
  --accent: #006ebd;
  --accent-hover: #00548f;
  --accent-soft: #d7e9f8;
  --danger: #91252f;
  --focus: #ffbf47;
  --shadow: 0 20px 70px rgb(37 67 92 / 0.13);
  --radius: 3px;
  --max: 1240px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #12171d;
    --surface: #192129;
    --surface-tint: #222e39;
    --ink: #f0f4f7;
    --muted: #b9c3cc;
    --line: #64717d;
    --line-strong: #dce4ea;
    --accent: #68baff;
    --accent-hover: #9bd1ff;
    --accent-soft: #183d5a;
    --danger: #ff9aa3;
    --focus: #ffd070;
    --shadow: 0 20px 70px rgb(0 0 0 / 0.32);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

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

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  border-radius: var(--radius);
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  white-space: nowrap;
}

nav a {
  text-decoration: none;
  font-weight: 650;
}

.release-state {
  padding: 8px 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero {
  min-height: min(820px, calc(100dvh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(540px, 1.24fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 92px);
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 6.6vw, 6.2rem);
}

h2 {
  max-width: 15ch;
  font-size: clamp(2.2rem, 4.2vw, 4.1rem);
}

.hero-summary {
  max-width: 39ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
}

.hero-actions,
.release-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

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

@media (prefers-color-scheme: dark) {
  .button-primary {
    color: #08121a;
  }
}

.button-secondary {
  background: transparent;
}

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

a.button:active {
  transform: translateY(1px);
}

span.button {
  cursor: not-allowed;
  opacity: 0.76;
}

.hero-visual,
.popup-visual,
.privacy-section figure {
  margin: 0;
}

.hero-visual img,
.popup-visual img,
.privacy-section img {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #f6f9fb;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.boundary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.boundary-strip p {
  min-height: 132px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 24px 30px;
}

.boundary-strip p + p {
  border-left: 1px solid var(--line);
}

.boundary-strip strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.boundary-strip span {
  color: var(--muted);
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: clamp(52px, 10vw, 150px);
  align-items: start;
  padding-block: clamp(96px, 13vw, 170px);
}

.workflow-copy > p,
.privacy-copy > p,
.record-section > div:first-child > p,
.release-section > p {
  max-width: 54ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.workflow-list {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow-list li {
  counter-increment: workflow;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-list li::before {
  content: counter(workflow, decimal-leading-zero);
  grid-row: 1 / span 2;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.workflow-list strong {
  font-size: 1.12rem;
}

.workflow-list span {
  color: var(--muted);
}

.popup-visual {
  max-width: 430px;
  justify-self: end;
}

.record-section {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: clamp(50px, 9vw, 130px);
  padding: clamp(64px, 9vw, 110px);
  background: var(--surface-tint);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.record-limits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 20px 32px;
}

.record-limits p {
  margin: 0;
  padding-top: 12px;
  border-top: 2px solid var(--danger);
  font-weight: 750;
}

.privacy-section {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: clamp(54px, 11vw, 150px);
  align-items: center;
  padding-block: clamp(100px, 14vw, 180px);
}

.text-link {
  display: inline-block;
  margin-top: 25px;
  color: var(--accent);
  font-weight: 800;
}

.release-section {
  padding: clamp(70px, 10vw, 120px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.not-found {
  margin-top: 10vh;
}

footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

footer p {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

footer div {
  display: flex;
  gap: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-visual {
    animation: enter 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-visual {
    animation-delay: 90ms;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

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

  .workflow,
  .record-section,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .popup-visual {
    justify-self: start;
  }

  .privacy-section figure {
    max-width: 440px;
  }
}

@media (max-width: 700px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    align-items: flex-start;
    padding-block: 14px;
  }

  nav {
    gap: 14px;
  }

  nav .release-state {
    display: none;
  }

  .hero {
    gap: 42px;
    padding-block: 52px 70px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .boundary-strip {
    grid-template-columns: 1fr;
  }

  .boundary-strip p {
    min-height: 100px;
    padding-inline: 0;
  }

  .boundary-strip p + p {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .record-section,
  .release-section {
    padding: 42px 24px;
  }

  .record-limits {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 28px;
  }
}

@media (max-width: 430px) {
  .brand span {
    display: none;
  }

  nav {
    width: 100%;
    justify-content: flex-end;
  }

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

  .button {
    width: 100%;
  }
}

@media (forced-colors: active) {
  .button,
  .hero-visual img,
  .popup-visual img,
  .privacy-section img,
  .record-section {
    border: 2px solid CanvasText;
  }

  .button-primary {
    background: Highlight;
    color: HighlightText;
  }
}
