/* Copyright (c) Meridion Systems. All rights reserved. */
/* The app's colors and type (docs/design/DESIGN.md). Phone width first. */

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/Barlow_400Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/Barlow_600SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/Barlow_700Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/BarlowCondensed_700Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/BarlowCondensed_800ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0b;
  --surface: #161616;
  --raised: #1c1c1c;
  --divider: #222222;
  --border: #333333;
  --text: #ffffff;
  --text-secondary: #d4d4d4;
  --text-muted: #a3a3a3;
  --accent: #c6ff3d;
  --on-accent: #0b0b0b;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --gutter: 16px;
  --measure: 44rem;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 12px;
  font-weight: 700;
  z-index: 10;
}

.skip:focus {
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-wide {
  max-width: calc(64rem + 2 * var(--gutter));
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--divider);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-height: 44px;
}

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

.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.site-nav .lang a {
  color: var(--text);
}

/* Content */

main {
  padding: 32px 0 56px;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--display);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 9vw, 3.75rem);
  line-height: 0.95;
  margin-bottom: 16px;
}

h2 {
  font-weight: 800;
  font-size: 1.9rem;
  margin: 40px 0 12px;
}

h3 {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.1;
  margin: 28px 0 8px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin-bottom: 6px;
}

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

.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 34rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.label {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contents {
  background: var(--surface);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 24px 0 8px;
}

.contents ol {
  margin: 0;
}

.contents li {
  margin-bottom: 2px;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.97rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--divider);
}

th {
  color: var(--text);
  font-weight: 600;
}

/* Landing */

.hero {
  padding: 24px 0 8px;
}

.hero .tagline {
  display: block;
  color: var(--accent);
}

.status {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.features {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  background: var(--surface);
  border-radius: 6px;
  padding: 16px;
  margin: 0;
}

.features h3 {
  margin: 0 0 6px;
}

.features p {
  margin: 0;
}

/* Room for screenshots later: an empty row today. */
.shots {
  margin-top: 32px;
}

.faq h3 {
  margin-top: 24px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 24px 0 40px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text-muted);
  display: inline-block;
  padding: 6px 0;
}

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

.site-footer p {
  margin: 0;
}

@media (min-width: 720px) {
  main {
    padding-top: 48px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero {
    padding-top: 40px;
  }
}

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