/*
  unity.shaanpawa.com: an invite card and a way-finder for one evening.
  Plain paper and bold type all the way through: nothing is set lighter than 600.
  The event's own Luma card sits on top, then the time, the room and one button.
  Two colours do the talking: blue for the button, red for the walk.
*/
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f3ec;
  --card: #fffefa;
  --ink: #111111;
  --soft: #55514a;
  --blue: #3255a4;
  --red: #e5533d;
  --on: #fffefa;
  --tint: rgba(50, 85, 164, 0.08);
  --road: rgba(50, 85, 164, 0.18);
  --edge: 3px;
  --pad: 16px;
  --col: min(100vw - 32px, 460px);
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}
@media (min-width: 420px) { :root { --pad: 20px; } }
@media (min-width: 600px) { :root { --pad: 24px; --col: 540px; } }
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0c18;
    --card: #11152b;
    --ink: #f2eee6;
    --soft: #b4b9cb;
    --blue: #9db0ff;
    --red: #ff7a62;
    --on: #0a0c18;
    --tint: rgba(150, 170, 255, 0.1);
    --road: rgba(150, 170, 255, 0.22);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
p, h1, h2, h3, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: var(--edge) solid var(--blue); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.page {
  width: var(--col);
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 0 calc(56px + env(safe-area-inset-bottom, 0px));
}

/* 1. the invitation: the Luma card, then when, where, and the one button */
.luma { display: block; width: 100%; height: auto; background: #070510; }
.time { margin-top: 20px; font-weight: 800; font-size: min(88px, 21vw); line-height: 0.95; letter-spacing: -0.045em; }
.date { margin-top: 10px; font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; }
.place { margin-top: 24px; font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; }
.addr { margin-top: 6px; }
.go {
  display: flex; align-items: center;
  margin-top: 24px;
  min-height: 64px;
  padding: 0 var(--pad);
  background: var(--blue);
  color: var(--on);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.go:hover { background: color-mix(in srgb, var(--blue) 88%, #000); }
.go:active { background: color-mix(in srgb, var(--blue) 78%, #000); }

/* 2. the way in: one plan with the walk drawn on it */
.way { margin-top: 44px; }
h2 { font-weight: 800; font-size: 32px; line-height: 1.05; letter-spacing: -0.03em; }
.lead { margin-top: 10px; }
.box { margin-top: 20px; background: var(--card); border: var(--edge) solid var(--ink); }

.plan { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.plan text { font-family: var(--sans); font-size: 13.5px; font-weight: 700; fill: var(--ink); }
.plan .dim { fill: var(--soft); }
.plan .inkb { fill: var(--blue); }
.plan .on { fill: var(--on); }
.plan .big { font-size: 28px; font-weight: 800; }
.plan .mass { fill: var(--tint); }
.plan .road { fill: var(--road); }
.plan .yard { fill: var(--road); }
.plan .floor { fill: var(--card); }
.plan .dest { fill: var(--blue); }
.plan .desk { fill: var(--tint); stroke: var(--blue); stroke-width: 1.5; }
.plan .tread { fill: none; stroke: var(--blue); stroke-width: 1.2; }
.plan .wall { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: square; }
.plan .glass { fill: none; stroke: var(--blue); stroke-width: 3.6; }
.plan .glass-in { fill: none; stroke: var(--card); stroke-width: 1.4; }
.plan .bluewall { fill: none; stroke: var(--blue); stroke-width: 7; }
.plan .route { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.plan .head-a { fill: var(--red); }
.plan .mk { fill: var(--red); }
.plan .mk-n { fill: var(--on); font-size: 13px; font-weight: 800; text-anchor: middle; }
.plan .arr { fill: none; stroke: var(--soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 3. the four pictures, one for each number on the plan.
   On a phone they sit in one row that swipes sideways, so the page stays short. The row runs to both
   screen edges and the next picture peeks in from the right, which is the hint that there is more. */
.steps {
  --gut: calc((100vw - var(--col)) / 2);
  display: flex;
  gap: 12px;
  width: 100vw;
  margin: 32px 0 0 calc(var(--gut) * -1);
  padding: 0 var(--gut);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.steps::-webkit-scrollbar { display: none; }
.step { flex: 0 0 calc(var(--col) - 40px); scroll-snap-align: start; }
.step h3 { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; }
.n {
  flex: none;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--on);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}
.frame { position: relative; margin-top: 14px; aspect-ratio: 1; background: var(--tint); border: var(--edge) solid var(--ink); overflow: hidden; }
.frame .wait { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: var(--soft); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* The pictures are stills. A clear sheet covers the whole of each one, so a finger on it moves the page or
   the row and never the picture. The frames are also refused motion sensors and fullscreen (see index.html
   and _headers), so tilting the phone cannot turn the view either. */
.frame::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.step figcaption { margin-top: 12px; }

/* 4. the way back to the home page: the same size as the map button, but only an outline */
.home {
  display: flex; align-items: center;
  min-height: 64px;
  margin-top: 40px;
  padding: 0 var(--pad);
  border: var(--edge) solid var(--ink);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.home:hover { background: var(--tint); }

/* the page for a wrong address */
.lost { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; font-weight: 800; font-size: 22px; line-height: 1.25; }
.lost a { color: var(--blue); }

/* a big phone on its side or a tablet: a wider column, type one size up, pictures a little flatter */
@media (min-width: 600px) {
  body { font-size: 20px; }
  .date, .place { font-size: 28px; }
  h2 { font-size: 38px; }
  .step h3 { font-size: 28px; }
  .go, .home { font-size: 22px; min-height: 72px; }
  .frame { aspect-ratio: 4 / 3; }
}

/* a laptop: the invitation on the left, the plan on the right, and the four pictures in a grid underneath */
@media (min-width: 900px) {
  :root { --col: min(100vw - 96px, 1040px); }
  .page {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    column-gap: 64px;
    align-items: start;
    padding-top: 48px;
    padding-bottom: 80px;
  }
  .way { margin-top: 0; }
  .steps {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 32px;
    width: auto;
    margin: 64px 0 0;
    padding: 0;
    overflow: visible;
  }
  .home { grid-column: 1; margin-top: 56px; }
}
