/* Archivist static site */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --paper: #f7f9fc;
  --paper-2: #eef3fb;
  --surface: #ffffff;
  --ink: #0a1533;
  --ink-soft: #25324d;
  --muted: #52607a;
  --line: #dbe3f0;
  --line-strong: #c6d2e6;
  --blue: #0b5cff;
  --blue-deep: #00009f;
  --blue-ink: #0043c7;
  --blue-soft: #e7efff;
  --button: #0b5cff;
  --button-hover: #00009f;
  --violet: #8b1fbf;
  --teal: #0e7490;
  --orange: #c2410c;
  --rose: #a21caf;
  --shadow: 0 24px 60px rgba(10, 21, 51, 0.12);
  --shadow-sm: 0 8px 24px rgba(10, 21, 51, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1180px;
  --gutter: clamp(18px, 4vw, 32px);
  --header-h: 68px;

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #07101f;
    --paper-2: #0b1728;
    --surface: #0d1a2e;
    --ink: #e9effa;
    --ink-soft: #c8d3e6;
    --muted: #9aa9c2;
    --line: #1e2d47;
    --line-strong: #2a3d5c;
    --blue: #5b8cff;
    --blue-deep: #3b5bff;
    --blue-ink: #8fb1ff;
    --blue-soft: #12233f;
    --button: #2f5bff;
    --button-hover: #1f47d6;
    --violet: #6d28d9;
    --teal: #0e7490;
    --orange: #b45309;
    --rose: #86198f;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 5.9rem);
}

h1 em {
  font-style: italic;
}

h2 {
  font-size: clamp(2.15rem, 4.4vw, 3.5rem);
}

h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

p {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

a {
  color: var(--blue-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

strong {
  color: var(--ink);
  font-weight: 600;
}

::selection {
  background: var(--blue);
  color: #ffffff;
}

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

main:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

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

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--button);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.button:hover {
  background: var(--button-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.button-sm {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.875rem;
}

.button-light {
  background: #ffffff;
  color: var(--blue-deep);
}

.button-light:hover {
  background: #f0f4ff;
  color: var(--blue-deep);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 88px) clamp(72px, 10vw, 132px);
}

.hero::before {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(11, 92, 255, 0.14),
    transparent 65%
  );
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

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

.hero h1 {
  margin-bottom: 20px;
}

.lede {
  max-width: 58ch;
  font-size: clamp(1.0625rem, 1.55vw, 1.25rem);
  line-height: 1.6;
}

.hero .lede {
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.875rem;
}

.hero-note a {
  margin-left: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.badge-link {
  display: inline-flex;
  border-radius: 8px;
}

.badge-link img {
  display: block;
  width: auto;
  height: 44px;
}

/* Hero device cluster */

.hero-visual {
  min-width: 0;
}

.device-cluster {
  position: relative;
  padding: 18px;
}

.device-cluster::before {
  position: absolute;
  inset: 8% -4% -8% 4%;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(11, 92, 255, 0.18),
    transparent 68%
  );
  filter: blur(24px);
  content: "";
}

.device-mac,
.device-iphone {
  display: block;
  height: auto;
}

.device-mac {
  width: 100%;
  filter: drop-shadow(0 28px 44px rgba(10, 21, 51, 0.18));
}

.device-iphone {
  position: absolute;
  bottom: -11%;
  left: -5%;
  width: 30%;
  filter: drop-shadow(0 24px 36px rgba(10, 21, 51, 0.24));
}

.scan-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--blue);
  border-style: solid;
  opacity: 0.6;
}

.scan-corner--tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 7px;
}

.scan-corner--tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 7px;
}

.scan-corner--bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 7px;
}

.scan-corner--br {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 7px;
}

/* Sections */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-rule {
  border-top: 1px solid var(--line);
}

.section-tint {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.section-head {
  max-width: 64ch;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-head p {
  margin-top: 14px;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-note {
  max-width: 64ch;
  margin-top: 32px;
  font-size: 0.9375rem;
}

.section-note--center {
  margin-inline: auto;
  text-align: center;
}

/* Media sections */

.media-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.media-item {
  margin: 0;
}

.media-item picture,
.media-item img {
  display: block;
}

.media-item img {
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(10, 21, 51, 0.14));
}

.media-item--phone img {
  width: auto;
  max-height: 560px;
}

.media-item--mac img {
  width: 100%;
}

.media-item figcaption {
  max-width: 40ch;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

/* Dark AI band */

.section-dark {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(11, 92, 255, 0.3),
      transparent 60%
    ),
    #07101f;
  color: #e9effa;
}

.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-dark p {
  color: rgba(233, 239, 250, 0.76);
}

.section-dark .media-item img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.45))
    drop-shadow(0 28px 48px rgba(0, 0, 0, 0.55));
}

.section-dark .media-item figcaption {
  color: rgba(233, 239, 250, 0.62);
}

.section-dark .section-note {
  color: rgba(233, 239, 250, 0.62);
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 64px);
}

.feature {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.feature svg {
  width: 24px;
  height: 24px;
  margin-top: 3px;
  color: var(--blue-ink);
}

.feature h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 1.0625rem;
}

.feature p {
  font-size: 0.96875rem;
  line-height: 1.6;
}

.feature a {
  font-weight: 500;
}

/* Tags */

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 2px 7px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
  white-space: nowrap;
}

.tag-violet {
  background: var(--violet);
}

.tag-teal {
  background: var(--teal);
}

.tag-orange {
  background: var(--orange);
}

.tag-rose {
  background: var(--rose);
}

.tag-neutral {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
}

/* No lock-in */

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.split-copy h2 {
  margin-bottom: 18px;
}

.split-copy p + p {
  margin-top: 14px;
}

.split-copy .section-note {
  margin-top: 22px;
}

.finder {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.finder-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.finder-dots {
  display: flex;
  gap: 6px;
  margin-right: 6px;
}

.finder-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.finder-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finder-body {
  padding: 14px 8px 18px;
}

.tree {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 7px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.tree-row svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--blue-ink);
}

.tree-row--file {
  margin: 4px 6px 0;
  background: var(--blue-soft);
  color: var(--ink);
}

.tree-row--file svg {
  color: var(--blue);
}

.tree-indent-1 {
  padding-left: 30px;
}

.tree-indent-2 {
  padding-left: 48px;
}

.tree-indent-3 {
  padding-left: 66px;
}

.tree-indent-4 {
  padding-left: 84px;
}

.tree-indent-5 {
  padding-left: 102px;
}

.tree-indent-6 {
  padding-left: 120px;
}

.tree .tag {
  margin-left: 4px;
  font-family: var(--font-sans);
  font-size: 0.625rem;
}

/* Download band */

.section-download {
  border: 0;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 255, 255, 0.18),
      transparent 58%
    ),
    linear-gradient(135deg, #0066ff, #00009f);
  color: #ffffff;
  text-align: center;
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
}

.download-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.section-download h2 {
  color: #ffffff;
}

.section-download p {
  color: rgba(255, 255, 255, 0.82);
}

.section-download .lede {
  margin-top: 16px;
  margin-bottom: 28px;
}

.section-download .badges {
  justify-content: center;
}

.section-download .badge-link img {
  height: 48px;
}

.download-support {
  margin-top: 26px;
  font-size: 0.875rem;
}

.download-support a {
  color: #ffffff;
  font-weight: 600;
}

.download-support a:hover {
  color: #ffffff;
}

/* Footer */

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand p {
  max-width: 30ch;
  margin-top: 12px;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a,
.footer-meta a {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

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

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-meta p {
  font-size: 0.8125rem;
}

/* Page header */

.page-head {
  padding-block: clamp(48px, 7vw, 80px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.page-head .lede {
  margin-top: 16px;
}

/* Documentation */

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-block: 44px 100px;
}

.docs-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.docs-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.docs-nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.docs-content {
  min-width: 0;
}

.doc-section {
  padding-top: 44px;
  border-top: 1px solid var(--line);
  margin-top: 44px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.doc-section:first-child {
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}

.doc-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.doc-section h3 {
  margin-top: 34px;
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.doc-section p,
.doc-section li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.doc-section p {
  margin: 0 0 16px;
}

.doc-section ul,
.doc-section ol {
  margin: 0 0 20px;
  padding-left: 1.2em;
}

.doc-section li {
  margin-bottom: 6px;
}

.doc-section strong {
  color: var(--ink);
}

.doc-shot {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 10px auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.docs-help {
  margin-top: 52px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.docs-help h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.docs-help p {
  font-size: 0.9375rem;
}

.back-to-top {
  display: inline-block;
  margin-top: 32px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Legal */

.legal-layout {
  max-width: 780px;
  margin-inline: auto;
  padding-block: 44px 100px;
}

.legal-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.legal-nav a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.legal-nav a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.legal-section {
  scroll-margin-top: calc(var(--header-h) + 72px);
}

.legal-section + .legal-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.legal-section h1,
.legal-section h2 {
  margin-bottom: 20px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.legal-section h3 {
  margin-top: 34px;
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.96875rem;
  line-height: 1.7;
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 20px;
  padding-left: 1.2em;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section a {
  color: var(--blue-ink);
}

.legal-section .button {
  color: #ffffff;
}

/* Contact */

.contact-page {
  max-width: 680px;
  padding-block: clamp(56px, 8vw, 96px) clamp(80px, 10vw, 128px);
}

.contact-page h1 {
  margin-bottom: 20px;
}

.contact-page .lede {
  margin-bottom: 28px;
}

.contact-note {
  margin-top: 16px;
  font-size: 0.875rem;
}

.contact-rule {
  margin: 40px 0 24px;
  border: 0;
  border-top: 1px solid var(--line);
}

.contact-page p:last-child {
  font-size: 0.9375rem;
}

/* Responsive */

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

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

  .hero-visual {
    max-width: 620px;
    margin-inline: auto;
  }

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

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

  .docs-content {
    max-width: 760px;
  }

  .docs-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 10;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    scrollbar-width: none;
  }

  .docs-nav::-webkit-scrollbar {
    display: none;
  }

  .docs-nav a {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    white-space: nowrap;
  }

  .doc-section {
    scroll-margin-top: calc(var(--header-h) + 72px);
  }

  .doc-section:first-child {
    padding-top: 24px;
  }
}

@media (max-width: 820px) {
  .media-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .media-item--phone img {
    max-height: 480px;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

  .nav-right {
    gap: 14px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a[data-mobile="hide"] {
    display: none;
  }

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

  .device-iphone {
    width: 36%;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 40px;
  }

  .hero .lede {
    font-size: 1rem;
  }

  .badge-link img {
    height: 40px;
  }

  .device-mac {
    display: none;
  }

  .device-cluster {
    max-width: 320px;
    margin-inline: auto;
    padding: 12px;
  }

  .device-iphone {
    position: static;
    width: 72%;
    margin-inline: auto;
  }

  .media-item--phone img {
    max-height: 420px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .legal-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .legal-nav::-webkit-scrollbar {
    display: none;
  }

  .legal-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .tree {
    font-size: 0.75rem;
  }

  .tree-row {
    padding-block: 6px;
  }

  .tree-indent-1 {
    padding-left: 24px;
  }

  .tree-indent-2 {
    padding-left: 38px;
  }

  .tree-indent-3 {
    padding-left: 52px;
  }

  .tree-indent-4 {
    padding-left: 66px;
  }

  .tree-indent-5 {
    padding-left: 80px;
  }

  .tree-indent-6 {
    padding-left: 94px;
  }
}

@media (max-width: 380px) {
  .tree {
    font-size: 0.6875rem;
  }

  .tree-indent-1 {
    padding-left: 20px;
  }

  .tree-indent-2 {
    padding-left: 32px;
  }

  .tree-indent-3 {
    padding-left: 44px;
  }

  .tree-indent-4 {
    padding-left: 56px;
  }

  .tree-indent-5 {
    padding-left: 68px;
  }

  .tree-indent-6 {
    padding-left: 80px;
  }

  .tree .tag {
    padding-inline: 5px;
    font-size: 0.5625rem;
  }
}

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