/* AR Appen — the site. One look on purpose: the app's own dark ground, timber and
   blueprint, and its three typefaces, self-hosted so nothing is fetched from anyone else. */

@font-face { font-family: "Archivo"; src: url("/fonts/Archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Architects Daughter"; src: url("/fonts/ArchitectsDaughter.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono.woff2") format("woff2"); font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #11151C;
  --panel: #1B2129;
  --panel-2: #232B37;
  --line: #333D4D;
  --ink: #F2F5F9;
  --dim: #A3AEBF;
  --timber: #FFB020;
  --timber-body: #854D08;
  --on-timber: #1A1400;
  --blueprint: #6F9BE0;
  --ok: #5FC27E;

  --display: "Archivo", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Architects Daughter", "Comic Neue", "Segoe Print", cursive;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

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

html { background: var(--ground); }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

/* ------------------------------------------------------------------ identity */

.identity { text-align: center; }

.mark { width: 88px; height: auto; display: block; margin: 0 auto 14px; }
.mark .timber { fill: var(--timber); }
.mark .blueprint { fill: var(--blueprint); }

.wordmark {
  margin: 0;
  font-weight: 800;
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.wordmark span { display: block; }
.wm-architecture { color: var(--ink); }
.wm-reality { color: var(--timber); }

/* The dimension rule with "AR" in it, which is the whole joke. */
.rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(220px, 60%);
  margin: 14px auto 6px;
  color: var(--blueprint);
  font-family: var(--mono);
  font-size: 11px;
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 9px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}

.nick {
  margin: 0;
  font-family: var(--hand);
  font-size: 26px;
  color: var(--dim);
}

.lead {
  margin: 18px auto 0;
  max-width: 34ch;
  color: var(--dim);
  font-size: 17px;
  text-wrap: balance;
}

/* ------------------------------------------------------------------ frame */

.frame { margin: 36px 0 8px; }
.frame svg { width: 100%; height: auto; display: block; }
.frame .piece rect { fill: var(--timber-body); stroke: var(--timber); stroke-width: 1.5; }
.frame .glass { fill: rgba(111, 155, 224, 0.14); stroke: var(--blueprint); stroke-width: 1; }
.frame .dim line { stroke: var(--blueprint); stroke-width: 1; }
.frame .dim text { fill: var(--blueprint); font-family: var(--mono); font-size: 9px; text-anchor: middle; }

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

.eyebrow {
  margin: 44px 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ------------------------------------------------------------------ download */

.buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 480px) { .buttons { grid-template-columns: 1fr; } }

.btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 6px;
  text-decoration: none;
}
.btn-title { font-size: 19px; font-weight: 700; }
.btn-meta { font-family: var(--mono); font-size: 12px; }

.btn-primary { background: var(--timber); color: var(--on-timber); }
.btn-primary .btn-meta { color: rgba(26, 20, 0, 0.72); }
.btn-primary:hover { background: #FFC04D; }
.btn-primary:focus-visible { outline: 3px solid var(--blueprint); outline-offset: 3px; }

.btn-waiting { border: 1px solid var(--line); color: var(--dim); cursor: default; }
.btn-waiting .btn-meta { color: var(--dim); opacity: 0.8; }

.note { margin: 12px 2px 0; font-size: 13px; color: var(--dim); }

/* ------------------------------------------------------------------ changelog */

.day { position: relative; padding: 0 0 8px 20px; border-left: 1px solid var(--line); }
.day + .day { margin-top: 18px; }
.day::before {
  content: "";
  position: absolute;
  left: -5px; top: 7px;
  width: 9px; height: 1px;
  background: var(--blueprint);
}

.day h3 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--blueprint);
}

.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.day li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline; font-size: 15px; }

.tag {
  justify-self: start;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--dim);
}
.tag-new { border-color: var(--timber); color: var(--timber); }
.tag-fix { border-color: var(--blueprint); color: var(--blueprint); }

/* ------------------------------------------------------------------ foot */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}
.mono { font-family: var(--mono); }

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