/* Afterlight — gig poster modernism.
   True black, FAC blue, Swiss type, grain. */

:root {
  --bg: #000000;
  --surface: #0a0a0c;
  --border: #232328;
  --text: #e8e8ed;
  --text-2: #87878d;
  --text-3: #58585e;
  --accent: #5872c0;
  --accent-light: #7b93db;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

img { max-width: 100%; height: auto; }

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain overlay — analog texture over everything, never in the way */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 999;
}

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

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--accent); color: #fff; }

/* ---- header ---- */

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

header.site .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand { display: inline-flex; align-items: baseline; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
}
.wordmark:hover { text-decoration: none; color: var(--accent-light); }

.mark { display: block; flex: none; }

.catno {
  margin-left: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-3);
}

nav.site { display: flex; gap: 24px; }
nav.site a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
nav.site a:hover { color: var(--text); text-decoration: none; }

/* ---- type ---- */

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 17ch;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.lede {
  margin-top: 24px;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 52ch;
}
.lede strong { color: var(--text); font-weight: 500; }

/* ---- sections ---- */

section { padding: 96px 0; border-bottom: 1px solid var(--border); }

section.hero {
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}
section.hero .wrap { position: relative; }

/* Factory-style catalogue numbers — every artifact gets one */
.eyebrow .cat {
  color: var(--text-3);
  font-weight: 400;
  margin-right: 10px;
}

/* ---- app store button ---- */

.store-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 10px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-btn:hover { text-decoration: none; background: #fff; }
.store-btn:active { transform: scale(0.98); }
.store-btn svg { display: block; }

.store-note {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

/* ---- screenshots ---- */

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.shot { min-width: 0; }

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.shot figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

/* ---- features ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 56px;
}

.cell {
  background: var(--bg);
  padding: 32px 28px;
}

.cell .num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
}

.cell h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cell p { font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* ---- manifesto / privacy block ---- */

.manifesto p.big {
  margin-top: 24px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--text);
  max-width: 38ch;
  letter-spacing: -0.01em;
}
.manifesto p.big em {
  font-style: normal;
  color: var(--accent-light);
}

.facts {
  margin-top: 48px;
  border-top: 1px solid var(--border);
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.facts dt { color: var(--text-2); }
.facts dd { color: var(--text); text-align: right; }

/* ---- footer ---- */

footer.site { padding: 48px 0 64px; }

.colophon {
  width: 100%;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.colophon em { font-style: italic; color: var(--text-2); }

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a, footer.site span {
  font-size: 13px;
  color: var(--text-3);
}
footer.site a:hover { color: var(--text-2); text-decoration: none; }

/* ---- document pages (privacy / terms / support / press) ---- */

main.doc { padding: 72px 0 96px; }
main.doc h1 { font-size: clamp(32px, 5vw, 48px); }
main.doc .updated {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-3);
}
main.doc section.block {
  border: none;
  padding: 40px 0 0;
  max-width: 640px;
}
main.doc section.block h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
main.doc section.block p,
main.doc section.block li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}
main.doc section.block strong { color: var(--text); font-weight: 500; }
main.doc section.block ul {
  list-style: none;
  margin-top: 8px;
}
main.doc section.block li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}
main.doc section.block li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

/* press kit asset list */
.assets {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 640px;
}
.assets a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}
.assets a:hover { color: var(--accent-light); text-decoration: none; }
.assets a span { color: var(--text-3); font-size: 13px; }

/* ---- responsive ---- */

@media (max-width: 880px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  section { padding: 64px 0; }
  section.hero { padding: 72px 0 64px; }
  header.site .wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .grid { grid-template-columns: 1fr; }
  nav.site { gap: 16px; flex-wrap: wrap; }
  .catno { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
