/* REPLAYD website.
 *
 * The accent is the app's own: Palette.cs paints rgb(224,138,30) on dark and
 * rgb(150,82,0) on light, chosen there for contrast on each background. The
 * site uses the same two so the page and the window agree.
 */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --fg: #1b1b1e;
  --fg-dim: #5c5c66;
  --accent: #965200;
  --edge: rgba(128, 128, 128, 0.28);
  --radius: 10px;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;
    --bg-soft: #1a1a1f;
    --fg: #ebebeb;
    --fg-dim: #96969b;
    --accent: #e08a1e;
    --edge: rgba(128, 128, 128, 0.30);
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, "Segoe UI", -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* --- header --- */

header {
  border-bottom: 1px solid var(--edge);
  position: sticky; top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}
header .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }

/* The mark is the whole brand -- there is no wordmark beside it, so the logo
   carries the name and its alt text has to say it. */
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 46px; height: 46px; }

nav { margin-left: auto; display: flex; gap: 22px; }
nav a {
  color: var(--fg-dim); text-decoration: none; font-size: 14.5px;
}
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }

/* --- hero --- */

.hero { padding: 92px 0 72px; }
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.02em;
}
.hero p.lede {
  font-size: 1.18rem; color: var(--fg-dim);
  max-width: var(--measure); margin: 0 0 34px;
}

.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; font-size: 15.5px;
  border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary {
  background: transparent; color: var(--fg); border-color: var(--edge);
}

.meta { color: var(--fg-dim); font-size: 14px; }

/* --- features --- */

section { padding: 56px 0; border-top: 1px solid var(--edge); }
section h2 { font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-dim); margin: 0 0 30px; font-weight: 600; }

.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid h3 { margin: 0 0 8px; font-size: 1.02rem; }
.grid p { margin: 0; color: var(--fg-dim); font-size: 15px; }

/* --- panels, tables --- */

.panel {
  background: var(--bg-soft); border: 1px solid var(--edge);
  border-radius: var(--radius); padding: 24px 26px;
}

dl.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; }
dl.specs dt { color: var(--fg-dim); font-size: 14.5px; }
dl.specs dd { margin: 0; font-size: 14.5px; }

code, .mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
}

.release { margin-bottom: 40px; }
.release h3 { margin: 0 0 4px; font-size: 1.15rem; }
.release .when { color: var(--fg-dim); font-size: 14px; margin: 0 0 12px; }
.release ul { margin: 0; padding-left: 20px; color: var(--fg-dim); }
.release li { margin-bottom: 6px; }

footer {
  border-top: 1px solid var(--edge); padding: 34px 0 56px;
  color: var(--fg-dim); font-size: 14px;
}
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--fg-dim); }
