@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-Italic-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --surface: #131315;
  --surface-container-lowest: #0e0e10;
  --surface-container-low: #1b1b1d;
  --surface-container-high: #2a2a2c;
  --surface-bright: #39393b;
  --on-surface: #e5e1e4;
  --on-surface-variant: #c0c9c0;
  --outline: #8a938b;
  --hairline: rgba(255, 255, 255, 0.07);
  --primary: #9cd3af;
  --on-primary: #003920;

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-section: 5rem;

  --container: 1200px;
  --gutter: 1.5rem;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, figure {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(19, 19, 21, 0.85);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.header-link {
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.header-link:hover {
  color: var(--on-surface);
}

/* Hero */

.hero {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-lg) var(--space-section);
}

.dictionary-entry {
  padding: var(--space-lg);
  border-radius: 12px;
  background: var(--surface-container-low);
}

h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 48px;
}

.pronunciation {
  margin: var(--space-xs) 0 var(--space-lg);
  color: var(--outline);
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 26px;
}

.definitions {
  display: grid;
  gap: var(--space-md);
  padding-left: 1.5rem;
  margin-bottom: var(--space-xl);
  color: var(--outline);
  font-size: 14px;
  line-height: 22px;
}

.definitions li {
  padding-left: var(--space-xs);
}

.definitions li::marker {
  color: var(--outline);
}

.definitions li:last-child {
  color: var(--on-surface);
  font-weight: 500;
}

.definitions li:last-child::marker {
  color: var(--primary);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: opacity 150ms ease, background-color 150ms ease;
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button-primary:hover {
  opacity: 0.9;
}

.button-secondary {
  background: var(--surface-container-high);
  color: var(--on-surface);
}

.button-secondary:hover {
  background: var(--surface-bright);
}

.shot {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.shot img {
  width: 100%;
}

.shot-dialog {
  width: fit-content;
  margin-inline: auto;
}

.shot-dialog img {
  width: auto;
}

/* Enlarged screenshots: a lightbox that opens when its address is the page's target, so it needs no script. */

.zoom {
  display: block;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(14, 14, 16, 0.94);
  cursor: zoom-out;
}

.lightbox:target {
  display: flex;
}

.lightbox::after {
  content: "\00d7";
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  color: var(--on-surface-variant);
  font-size: 32px;
  line-height: 1;
}

.shot .lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

body:has(.lightbox:target) {
  overflow: hidden;
}

/* Why Scion */

.why {
  padding-block: var(--space-section);
  background: var(--surface-container-lowest);
  text-align: center;
}

.why-text {
  max-width: 42rem;
  margin: 0 auto;
}

h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 38px;
}

.why h2 {
  margin-bottom: var(--space-md);
}

.why p {
  color: var(--on-surface-variant);
  font-size: 18px;
  line-height: 30px;
}

/* Features */

.features {
  display: grid;
  gap: 4rem;
  padding-block: var(--space-section);
}

.feature {
  display: grid;
  gap: var(--space-lg);
}

.feature-number {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

h3 {
  margin-bottom: var(--space-sm);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 30px;
}

.feature p {
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 22px;
}

/* Safe by default and what Adapt sends */

.panel-section {
  padding-bottom: var(--space-section);
}

.panel {
  max-width: 48rem;
  margin: 0 auto;
}

.panel > h2 {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.panel-card h2 {
  margin-bottom: var(--space-md);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 30px;
}

.panel-card {
  padding: var(--space-lg);
  border-radius: 12px;
  background: var(--surface-container-low);
}

.promises {
  display: grid;
  gap: var(--space-md);
  padding: 0;
  list-style: none;
  counter-reset: promise;
}

.promises li {
  display: flex;
  gap: var(--space-md);
  font-size: 14px;
  line-height: 22px;
}

.promises li::before {
  counter-increment: promise;
  content: counter(promise, decimal-leading-zero);
  flex: none;
  padding-top: 2px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.sends {
  display: grid;
  gap: var(--space-sm);
  padding-left: 1.25rem;
  margin-bottom: var(--space-lg);
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 22px;
}

.sends code {
  color: var(--on-surface);
}

code {
  font-family: var(--font-mono);
  font-size: 0.93em;
}

.sends-closing {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

/* Footer */

.site-footer {
  padding-block: var(--space-xl);
  color: var(--outline);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  color: var(--on-surface-variant);
  font-size: 13px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--on-surface);
  text-decoration: underline;
}

.trademarks {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 12px;
  line-height: 18px;
}

/* Wide screens */

@media (min-width: 1024px) {
  :root {
    --gutter: 2.5rem;
  }

  .hero {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    padding-block: var(--space-xl) var(--space-section);
  }

  .dictionary-entry {
    padding: 0;
    background: none;
  }

  /* Four buttons: one column, all as wide as the widest, so they line up. */
  .actions {
    width: fit-content;
    max-width: 100%;
    gap: var(--space-md);
  }

  .button {
    padding: 8px 24px;
  }

  .why {
    background: none;
  }

  .features {
    gap: 6rem;
  }

  .feature {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: var(--space-xl);
  }

  .feature:nth-child(even) {
    grid-template-columns: 7fr 5fr;
  }

  .feature:nth-child(even) .feature-media {
    order: -1;
  }

  .feature-number {
    display: none;
  }

  h3 {
    font-size: 28px;
    letter-spacing: -0.015em;
    line-height: 38px;
  }

  .feature p {
    color: var(--outline);
  }

  .panel-card {
    padding: var(--space-xl);
  }
}

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

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
