/* VLC Redesign's website: the design tokens of the app (docs/MASTER-PLAN.md,
   section 6), dark by default and light when the system asks for it */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0E0E0E;          /* Dark/BG/B1 */
  --well: #090909;        /* Dark/BG/B2 */
  --surface: #191919;     /* Dark/BG/A4 */
  --surface-2: #1B1B1B;   /* Dark/BG/A3 */
  --hover: #222222;       /* Dark/BG/A1 */
  --text: #EAEAEA;        /* Dark/FG/1 */
  --text-2: #C6C6C6;      /* Dark/FG/2 */
  --text-muted: #969696;  /* Dark/FG/A1 */
  --border: #373737;      /* Dark/Divider/Bright */
  --divider: #222222;     /* Dark/Divider/Dim */
  --accent: #D37918;      /* Dark/Accent/Main */
  --accent-dim: #AB6314;  /* Dark/Accent/DIm */
  --accent-bg: #371F06;   /* Dark/BG/Accent Bright */
  --accent-ink: #D37918;  /* accent text: 4.8:1 on its background */
  --link: #E08A2E;
  --radius: 14px;
  --radius-small: 6px;
  --shadow: 0 8px 15px rgba(0, 0, 0, 0.46);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #C2C2C1;
    --well: #DEDEDE;
    --surface: #ABABAA;
    --surface-2: #B5B5B4;
    --hover: #9C9C9B;
    --text: #1D1D1D;
    --text-2: #2E2E2E;
    --text-muted: #3D3D3D;
    --border: #8E8E8D;
    --divider: #9C9C9B;
    --accent-bg: #DABB99;
    --accent-ink: #5A3009;  /* the accent darkened: readable on the light tint */
    --link: #6A3A0C;
    --shadow: 0 8px 15px rgba(0, 0, 0, 0.18);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "calt", "kern";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--text); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 14px; border-radius: var(--radius-small);
  background: var(--accent-bg); color: var(--accent-ink); font-weight: 600;
}
.skip:focus { top: 12px; }

/* The top bar */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--divider);
  backdrop-filter: blur(12px);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 7px 12px; border-radius: var(--radius-small);
  color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500;
}
.nav a:hover { background: var(--hover); color: var(--text); }

/* Buttons, as RedesignButton: 6 px corners, SemiBold 14 */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 0 16px; border-radius: var(--radius-small);
  background: var(--surface-2); color: var(--text-muted);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .12s ease, color .12s ease;
}
.button:hover { background: var(--hover); color: var(--text); }
.button.accent { background: var(--accent-bg); color: var(--accent-ink); }
.button.accent:hover { background: color-mix(in srgb, var(--accent-bg) 85%, #fff); color: var(--accent-ink); }
.button.large { min-height: 44px; padding: 0 22px; font-size: 15px; }
.button.small { min-height: 30px; padding: 0 12px; font-size: 13px; }
@media (prefers-color-scheme: light) {
  .button { background: #B8B8B7; color: #2E2E2E; }
  .button:hover { background: var(--hover); color: #1D1D1D; }
  .button.accent { background: var(--accent-bg); color: var(--accent-ink); }
  .button.accent:hover { background: color-mix(in srgb, var(--accent-bg) 85%, #fff); }
}

.pill {
  display: inline-block; padding: 2px 9px; margin-inline-end: 8px; border-radius: 999px;
  background: var(--accent-bg); color: var(--accent-ink);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
}
.accent-text { color: var(--accent); }
@media (prefers-color-scheme: light) { .accent-text { color: var(--accent-ink); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

section { padding-block: clamp(40px, 7vw, 80px); }
.section-lead { color: var(--text-muted); margin-top: 10px; max-width: 62ch; }

/* Hero */
.hero { padding-top: clamp(32px, 6vw, 72px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.eyebrow { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 300; letter-spacing: -0.02em; }
.lead { margin-top: 18px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 46ch; }
.download { margin-top: 30px; }
.download-title { color: var(--text); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.download-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.download-meta { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.download-note { margin-top: 10px; font-size: 14px; color: var(--text-2); max-width: 48ch; }
.download-more { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.hero-shot { margin: 0; }
.hero-shot img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Credit */
.credit { padding-top: 0; }
.credit-card { padding: clamp(20px, 3vw, 32px); background: var(--well); }
.credit-card h2 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 500; }
.credit-card p { margin-top: 12px; max-width: 90ch; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 500; }

/* Screenshots */
.gallery { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { margin-top: 8px; font-size: 14px; color: var(--text-muted); }
.tour { margin-top: 22px; font-weight: 500; }

/* Platforms */
.platform-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.platform { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.platform.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.platform-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.latest { color: var(--text); font-size: 14px; font-weight: 500; }
.requires, .notes { font-size: 14px; color: var(--text-muted); }
.platform .actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.status { display: inline-block; flex: none; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--hover); color: var(--text-2); }
.status-released, .status-beta { background: #0F2E17; color: #5CCB74; }
.status-in-progress { background: var(--accent-bg); color: var(--accent-ink); }
@media (prefers-color-scheme: light) {
  .status { background: #B8B8B7; color: #1D1D1D; }
  .status-released, .status-beta { background: #9CC7A6; color: #0B2E14; }
  .status-in-progress { background: var(--accent-bg); color: var(--accent-ink); }
}

/* Get involved */
.tiles { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; height: 100%; text-decoration: none; color: var(--text-muted); font-size: 14px; transition: background-color .12s ease, border-color .12s ease; }
.tile strong { color: var(--text); font-size: 16px; font-weight: 600; }
.tile:hover { background: var(--hover); border-color: var(--accent); color: var(--text-2); }

/* Footer */
.bottom { border-top: 1px solid var(--divider); padding-block: 32px 48px; font-size: 13px; color: var(--text-muted); }
.bottom p + p { margin-top: 10px; }
.bottom a { color: inherit; }
.bottom a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shot { order: 2; }
}
@media (max-width: 520px) {
  .nav a { padding: 7px 8px; font-size: 13px; }
  .nav li:first-child { display: none; }
  .brand span { font-size: 15px; }
  .download-buttons .button { flex: 1 1 100%; }
}
.status::first-letter { text-transform: uppercase; }
