/* streets.viewfromthelou.com — brand v0.8: ink ground, marigold accent, cream on ink,
   violet secondary. Archivo Black displays, Public Sans sets text; both self-hosted, so
   the page makes no third-party requests. */

@font-face {
  font-family: "Archivo Black";
  src: url("/assets/fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  /* Variable font. Its default instance is Thin, so every rule below sets a weight. */
  font-family: "Public Sans";
  src: url("/assets/fonts/PublicSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #211633;
  --marigold: #EAB744;
  --cream: #F3ECDD;
  --violet: #5A2A86;
  --muted: #C6B7DC;
  --display: "Archivo Black", system-ui, sans-serif;
  --text: "Public Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--cream);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--marigold); text-underline-offset: 3px; }
a:hover { color: var(--cream); }

/* ---- The splash: one screen, nothing below the fold ---------------------- */

.splash {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
}
.stage {
  align-self: center;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 24px;
}
.stage svg { width: min(46vw, 230px); height: auto; overflow: visible; }
.stage h1 {
  font: 400 clamp(30px, 6vw, 44px)/1.05 var(--display);
  letter-spacing: -0.01em;
  margin: 26px 0 8px;
}
.stage .tag { font-weight: 500; opacity: 0.74; margin: 0; }
.soon {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 18px;
  border: 1.5px solid var(--marigold);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
}
a.soon { background: var(--marigold); color: #3A2A05; }
.splash footer {
  padding: 18px 20px 24px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.7;
}
.splash footer a { color: var(--cream); margin: 0 10px; }

/* The arch draws itself: two legs rise from their feet and meet at the apex, the
   field fills, the streets draw in, the words settle. Same timetable as the app's
   SplashView. stroke-dashoffset running to zero is drawing along the curve. */
.leg { fill: none; stroke: var(--cream); stroke-linecap: round; stroke-linejoin: round; }
.field { fill: #3C1C59; opacity: 0; }
.street { fill: none; stroke-linecap: round; }
.tip { fill: var(--cream); opacity: 0; filter: drop-shadow(0 0 2.5px var(--cream)); }
.leg, .street { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.stage h1, .stage .tag, .soon { opacity: 0; transform: translateY(6px); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes tip { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 1; } }
@keyframes tipOff { to { opacity: 0; } }

.leg { animation: draw 1.1s cubic-bezier(.45,0,.2,1) forwards; }
.field { animation: show .4s ease-out .9s forwards; }
.tip { animation: tip 1.1s linear forwards, tipOff .25s ease-out 1.1s forwards,
                  travel 1.1s cubic-bezier(.45,0,.2,1) forwards; }
.stage h1 { animation: rise .45s ease-out 1.70s forwards; }
.stage .tag { animation: rise .45s ease-out 1.85s forwards; }
.soon { animation: rise .45s ease-out 2.05s forwards; }

@media (prefers-reduced-motion: reduce) {
  .leg, .street { stroke-dashoffset: 0; animation: none; }
  .field, .stage h1, .stage .tag, .soon { opacity: 1; transform: none; animation: none; }
  .tip { display: none; }
}

/* ---- The legal pages: cream paper for reading, ink header ----------------- */

.doc-head { padding: 22px 24px; }
.doc-head a { display: inline-flex; align-items: center; gap: 10px; color: var(--cream);
              text-decoration: none; font: 400 17px/1 var(--display); }
.doc-head img { width: 30px; height: 30px; border-radius: 7px; }
.doc {
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  padding: 48px 24px 72px;
}
.doc article { max-width: 680px; margin: 0 auto; }
.doc h1 { font: 400 clamp(30px, 5vw, 40px)/1.1 var(--display); margin: 0 0 6px; }
.doc .meta { color: #5C5170; font-weight: 500; margin: 0 0 32px; }
.doc h2 { font: 400 20px/1.3 var(--display); color: var(--violet); margin: 36px 0 10px; }
.doc p, .doc li { font-weight: 400; }
.doc strong { font-weight: 700; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--violet); }
.doc a:hover { color: var(--ink); }
.doc .fine { margin-top: 44px; padding-top: 18px; border-top: 1px solid #D6C4D2;
             font-size: 14px; color: #5C5170; }
