/* PaddleX — paddlex.drawla.app
 *
 * One stylesheet for every page. No web fonts, no CDN, no tracker: the site
 * carries the app's privacy policy, so it has to be the kind of site that
 * policy describes (no cookies, nothing from third parties, no banner).
 * Colours are the menu's own (lib/ui/menu_screen.dart: navy gradient, gold).
 */

:root {
  --navy: #14213d;
  --navy-2: #1b263b;
  --violet: #3a0ca3;
  --gold: #ffd166;
  --gold-ink: #14213d;
  --bg: #f4f2ec;
  --surface: #ffffff;
  --ink: #14181d;
  --ink-muted: #59616c;
  --line: #e1ddd2;
  --link: #3a0ca3;
  --radius: 14px;
  --measure: 70ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151f;
    --surface: #182030;
    --ink: #e8ebf0;
    --ink-muted: #9aa3b0;
    --line: #2a3346;
    --link: #ffd166;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--link);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header and footer sit on the menu's gradient. */
.site-header,
.site-footer {
  background: linear-gradient(120deg, var(--navy), var(--navy-2) 55%, var(--violet));
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

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

.brand__name {
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.brand__x {
  color: #fff;
}

.site-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 15px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

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

main {
  padding: 32px 0 48px;
}

.prose {
  max-width: var(--measure);
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 12px;
}

h2 {
  font-size: 22px;
  margin: 32px 0 8px;
}

h3 {
  font-size: 18px;
  margin: 20px 0 6px;
}

.lede {
  font-size: 19px;
  color: var(--ink-muted);
  margin-top: 0;
}

.updated {
  color: var(--ink-muted);
  font-size: 14px;
}

/* Start page */
.hero {
  background: linear-gradient(120deg, var(--navy), var(--navy-2) 55%, var(--violet));
  color: #fff;
  padding: 40px 0 44px;
}

.hero h1 {
  color: var(--gold);
  letter-spacing: 0.04em;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.85);
}

.stores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--gold-ink);
  text-decoration: none;
  font-weight: 800;
  min-width: 190px;
}

.store small {
  font-weight: 600;
  opacity: 0.75;
}

/* Not in the stores yet: shown, but not a link. */
.store[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(255, 255, 255, 0.35);
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 28px 0 8px;
}

.shots figure {
  margin: 0;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.shots figcaption {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 6px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

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

.card h3 {
  margin-top: 0;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0 16px;
  font-size: 15px;
}

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

th {
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

.note {
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
}

.site-footer {
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 16px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  margin-right: 14px;
}
