@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

:root {
  --bg: #000000;
  --bg-2: #1a1512;
  --raised: #282521;
  --text: #F2ECDD;
  --dim: #A69787;
  --gold: #FFB627;
  --ember: #E8542E;
  --teal: #2EC4B6;
  --rule: #453F35;
  --display: "Anton", "Oswald", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--sans);
  /* faint film grain, matching the app's texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold); }

/* ---- header ---- */
header.site { border-bottom: 1px solid var(--rule); background: var(--bg-2); }
header.site .inner {
  max-width: 760px; margin: 0 auto; padding: 16px 22px;
  display: flex; align-items: center; gap: 14px;
}
header.site a.wordmark {
  font-family: var(--display);
  color: var(--gold);
  letter-spacing: 3px;
  text-decoration: none;
  font-size: 18px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.6);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
header.site a.wordmark .mark { width: 22px; height: 22px; display: block; }
header.site nav { margin-left: auto; display: flex; gap: 18px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
header.site nav a { color: var(--dim); text-decoration: none; }
header.site nav a:hover { color: var(--text); }

/* ---- main ---- */
main { max-width: 760px; margin: 0 auto; padding: 54px 22px 90px; }

.eyebrow {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.55);
}

/* gold letterbox rule under the title, like the app's celebration bars */
.titleblock { padding-bottom: 20px; border-bottom: 2px solid var(--gold); margin-bottom: 8px; }
.titleblock .updated { color: var(--dim); font-size: 13px; margin: 10px 0 0; }

h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin: 40px 0 8px;
}
h2 + p { margin-top: 4px; }

.lede { font-size: 18px; color: var(--text); margin: 26px 0; }

p { margin: 12px 0; }

.card {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ember);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--dim);
}
.card strong { color: var(--text); }

/* ---- landing hero ---- */
.hero { text-align: center; padding: 40px 0 8px; }
.hero .wm {
  width: min(520px, 92%);
  height: auto;
  display: block;
  margin: 0 auto;
}
.hero .tag {
  color: var(--gold); font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; margin: 14px 0 0;
}
.hero p.blurb { color: var(--dim); max-width: 480px; margin: 22px auto 0; }
.links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.links a {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 18px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.links a:hover { border-color: var(--gold); color: var(--gold); }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--rule);
  color: var(--dim);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  padding: 28px 22px 44px;
}
footer a { color: var(--dim); }

@media (max-width: 520px) {
  h1 { font-size: 32px; }
  .hero .wm { width: 88%; }
  header.site nav { gap: 12px; }
}

/* ---- App Store badge ----
   Apple's own artwork, unmodified and self-hosted, per their identity
   guidelines: the white variant because the page is near black, at 60px tall
   (their floor is 40) with clear space around it of more than the 10% of
   badge height they ask for. Only the wrapper is styled - never the badge. */
.appstore {
  display: inline-block;
  margin: 26px 0 6px;
  line-height: 0;                 /* no descender gap under the artwork */
  border-radius: 10px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
/* height:auto keeps Apple's exact 119.664:40 proportions - the integer
   attributes on the img are only there to reserve space and avoid a
   layout shift while the SVG loads. */
.appstore img { width: 180px; height: auto; display: block; }
.appstore:hover { transform: translateY(-1px); opacity: 0.9; }
.appstore:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
