:root {
  --bg: #000000;
  --bone: #f5efe0;
  --bone-60: rgba(245, 239, 224, 0.6);
  --bone-40: rgba(245, 239, 224, 0.4);
  --bone-20: rgba(245, 239, 224, 0.2);
  --red: #e63946;

  --gutter: clamp(20px, 5vw, 64px);
  --rail-max: 980px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--bone);
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; }

.hairline {
  height: 1px;
  background: var(--bone-20);
  margin: 24px 0 12px;
}

.section-label {
  display: block;
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-60);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bone-20);
  margin-bottom: 32px;
}

.meta-row {
  display: flex;
  gap: 12px;
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--bone-40);
  text-transform: uppercase;
  font-weight: 500;
}

/* TOPBAR */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 20px var(--gutter);
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: 0.32em;
  color: var(--bone-60);
  text-transform: uppercase;
  font-weight: 500;
  z-index: 10;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__anchor {
  max-width: var(--rail-max);
  width: 100%;
  margin-bottom: 14vh;
}

.hero__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(34px, 9.5vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  color: var(--bone);
}

.hero__line { display: block; }
.hero__line--red { color: var(--red); }

.hero__sub {
  margin: 24px 0 0;
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--bone-60);
  max-width: 32ch;
}

.hero__sub em {
  color: var(--bone);
  font-weight: 600;
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: 0.28em;
  color: var(--bone-40);
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 28px;
}

.hero__foot-label { color: var(--bone-60); }
.hero__foot-cue { color: var(--bone-60); }

/* The SCROLL hint clips off the right edge on narrow viewports. Hide on phones. */
@media (max-width: 600px) {
  .hero__foot-cue { display: none; }
}

/* SHARED. every non-hero section. */

.faces,
.decrees-section,
.closing {
  padding: clamp(72px, 12vw, 160px) var(--gutter);
  max-width: calc(var(--rail-max) + (2 * var(--gutter)));
  margin: 0 auto;
  width: 100%;
}

/* TWO FACES */

.faces__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 720px) {
  .faces__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.face {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.face__numeral {
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
}

.face__title {
  margin: 0;
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--bone);
}

.face__copy {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--bone-60);
  max-width: 38ch;
}

/* DECREES OF STATE */

.decrees {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.decree {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--bone-20);
}

.decree:first-child { padding-top: 0; }
.decree:last-child { border-bottom: 0; padding-bottom: 0; }

@media (min-width: 720px) {
  .decree {
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 32px;
    align-items: baseline;
  }
}

.decree__name {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.decree__copy {
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.5;
  color: var(--bone-60);
}

/* CLOSING — mobile-tight by default; desktop gets a little breathing room. */

.closing {
  display: flex;
  flex-direction: column;
  padding-top: clamp(56px, 10vw, 120px);
  padding-bottom: clamp(40px, 8vw, 80px);
}

.closing__punchline {
  font-size: clamp(28px, 7vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0;
  max-width: 18ch;
}

.closing__punchline em { color: var(--red); }

.closing__manifesto {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 28px 0 28px;
}

.closing__manifesto-line {
  font-size: clamp(18px, 3.5vw, 28px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
}

.closing__manifesto-red {
  font-size: clamp(13px, 2.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

/* PRIMARY CTA. install path, mirrors the in-app Welcome button voice. */

.primary-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--red);
  color: var(--bg);
  padding: clamp(20px, 2.6vw, 28px) 16px;
  margin: 0;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 120ms;
}

.primary-cta:hover { opacity: 0.92; }
.primary-cta:active { opacity: 0.78; }

/* Pending state — outlined, not clickable. Used while TestFlight isn't live. */
.primary-cta--pending {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  cursor: default;
}
.primary-cta--pending:hover { opacity: 1; }
.primary-cta--pending .primary-cta__sub { opacity: 0.7; }

.primary-cta__label {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.primary-cta__sub {
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: clamp(10px, 1vw, 11px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.78;
}
