/* ---------------------------------------------------------------
   Arrival page
   Ink / bone / signal. One radius (4px). Scale: 4 8 16 24 32 48 64 96.
   --------------------------------------------------------------- */

:root {
  --ink:    #12100C;
  --plate:  #1A1712;
  --bone:   #EFEAE0;
  --signal: #E4552B;

  --muted: rgba(239, 234, 224, 0.56);
  --hair:  rgba(239, 234, 224, 0.14);
  --wash:  rgba(239, 234, 224, 0.045);

  --r: 4px;

  --s1: 4px;  --s2: 8px;  --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px;

  --display: "Fraunces", Georgia, serif;
  --ui: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, ol { margin: 0; }
ol { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* --- shell ---------------------------------------------------- */

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--s5) var(--s4) var(--s8);
}

/* --- rail (identity, pin, contact) ---------------------------- */

.label {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s3);
}

.name {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 96;
  font-weight: 500;
  font-size: 33px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s3);
}

.addr {
  font-size: 15px;
  line-height: 1.45;
  color: var(--bone);
}

.unit {
  margin-top: var(--s1);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--signal);
}

.id { padding-bottom: var(--s5); }

.pin { padding-top: var(--s5); border-top: 1px solid var(--hair); }

.lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: var(--s3);
}

.plates { display: flex; flex-direction: column; gap: var(--s2); }

.plate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 60px;
  padding: 0 var(--s4);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--wash);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: background-color 130ms ease-out, border-color 130ms ease-out, color 130ms ease-out;
}

.plate-id { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.mark { display: block; flex: none; width: 27px; height: 27px; }

.plate-go {
  min-height: 68px;
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.005em;
}


.plate .ico { flex: none; width: 20px; height: 20px; color: var(--muted); transition: color 130ms ease-out; }
.plate.plate-go .ico { width: 22px; height: 22px; color: rgba(18, 16, 12, 0.45); }

.ico, .ico-pin {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .plate:hover { border-color: rgba(239, 234, 224, 0.4); background: rgba(239, 234, 224, 0.07); }
  .plate:hover .ico { color: var(--bone); }
  .plate-go:hover { background: #FFFDF7; border-color: #FFFDF7; }
  .plate.plate-go:hover .ico { color: var(--ink); }
}

.plate:active,
.plate-go:active {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}
.plate:active .ico,
.plate.plate-go:active .ico { color: rgba(18, 16, 12, 0.6); }

.coords {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ico-pin { width: 15px; height: 15px; flex: none; }

/* --- walk-up steps -------------------------------------------- */

.walk { padding-top: var(--s7); margin-top: var(--s7); border-top: 1px solid var(--hair); container-type: inline-size; }

.walk-h {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 96;
  font-weight: 500;
  font-size: 38px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: var(--s3);
}

.walk-lede { margin-bottom: var(--s5); }

.lot { margin: 0 0 var(--s6); }

.lot-frame {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--plate);
}

.lot-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.92) saturate(0.94);
}

.lot-draw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lot-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 5px var(--s2);
  border-radius: var(--r);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lot-tag-enter {
  margin-top: -46px;
  background: var(--bone);
  color: var(--ink);
}

.lot-tag-park {
  margin-top: 42px;
  background: var(--signal);
  color: var(--ink);
}

.credit {
  display: block;
  margin-top: var(--s1);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(239, 234, 224, 0.3);
}

.note {
  max-width: 46ch;
  padding: var(--s5);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--wash);
}

.note-h {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--signal);
  margin-bottom: var(--s2);
}

.note-p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.step { padding: var(--s6) 0; border-top: 1px solid var(--hair); }
.step:first-child { border-top: 0; padding-top: 0; }

.num {
  display: block;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--signal);
  font-variant-numeric: tabular-nums lining-nums;
  margin-bottom: var(--s3);
}

.step-h {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin-bottom: var(--s2);
}

.step-p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

.shot { margin-top: var(--s4); }

.shot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--plate);
}

.shot-frame span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, 0.32);
}

.shot-big { aspect-ratio: 4 / 3; }

.shot img { display: block; width: 100%; height: auto; border-radius: var(--r); }

figcaption {
  margin-top: var(--s2);
  font-size: 13px;
  color: var(--muted);
}

.sign-off {
  margin-top: var(--s7);
  padding-top: var(--s6);
  border-top: 1px solid var(--hair);
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  font-weight: 500;
  font-size: clamp(38px, 15vw, 92px);
  font-size: min(19.8cqi, 100px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--bone);
}


/* --- 404 ------------------------------------------------------- */

.lost {
  max-width: 480px;
  margin: 0 auto;
  padding: 22vh var(--s4) var(--s8);
}
.lost .name { font-size: 40px; margin-bottom: var(--s3); }
.lost .lede { margin-bottom: var(--s5); }

/* --- desktop --------------------------------------------------- */

@media (min-width: 900px) {
  .page {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: var(--s8);
    padding: var(--s8) var(--s6) var(--s9);
  }

  .rail {
    position: sticky;
    top: var(--s8);
    align-self: start;
  }

  .walk { padding-top: 0; margin-top: 0; border-top: 0; }
  .name { font-size: 46px; }
  .page { padding-top: var(--s8); }
  .walk-h { font-size: 42px; }

  .step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s4); }
  .num { margin-bottom: 0; font-size: 28px; padding-top: 2px; }
  .shot-big { max-width: 100%; }
  .step:not(.step-key) .shot { max-width: 430px; }
}

@media (min-width: 1200px) {
  .page { grid-template-columns: 400px minmax(0, 1fr); }
  .walk-h { font-size: 46px; }
}

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