/* Dimension XR memorial. Plain CSS, no build step, no external requests. */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin.woff2") format("woff2");
  font-weight: 200 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Tokens. The night colors are sampled from the sky over the Tukwila arena
   (hero photo) and the purple of the arena walls. */
:root {
  color-scheme: light dark;

  --night: #2b1c4b;
  --night-deep: #1c1233;
  --night-ink: #f4eefe;
  --night-ink-2: #c9bde3;
  --glow: 190 130 255;

  --paper: #f4f1fa;
  --paper-2: #e9e3f4;
  --ink: #1e1638;
  --ink-2: #4b4266;
  --rule: #d3c9e6;
  --violet: #6a2bb5;
  --blue: #1d6b9f;

  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.875rem, 4vw, 2.25rem);
  --step-4: clamp(2.25rem, 6vw, 3rem);
  --step-5: clamp(2.75rem, 9vw, 5rem);

  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #170f2a;
    --paper-2: #21173a;
    --ink: #ece6f7;
    --ink-2: #b7accf;
    --rule: #3a2d58;
    --violet: #c49cff;
    --blue: #7cc4ee;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-4);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: var(--step-2);
  font-weight: 500;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero: the arena at night, lights still on ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--night-ink);
  isolation: isolate;
}

.hero__content {
  padding: clamp(2.5rem, 9vh, 6rem) var(--gutter) 0;
  max-width: 44rem;
}

.hero__logo {
  margin: 0 0 clamp(1.75rem, 5vh, 3rem);
}
.hero__logo img {
  width: clamp(11rem, 30vw, 15rem);
  filter: drop-shadow(0 0 0.6rem rgb(var(--glow) / 0.55));
}

.hero__years {
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--night-ink-2);
  margin: 0 0 0.35rem;
  font-variant-numeric: lining-nums;
}

/* The one loud thing on the page: set like the neon sign on the arena wall. */
.hero__farewell {
  font-family: var(--sans);
  font-size: var(--step-5);
  font-weight: 250;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 1.5rem;
  color: #fbf7ff;
  text-shadow:
    0 0 0.08em rgb(var(--glow) / 0.9),
    0 0 0.35em rgb(var(--glow) / 0.55),
    0 0 1.1em rgb(var(--glow) / 0.35);
}

.hero__lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 32rem;
  margin-bottom: 1rem;
}

.hero__status {
  font-family: var(--sans);
  font-size: var(--step-0);
  color: var(--night-ink-2);
  max-width: 32rem;
}

/* Phones: a square crop keeps the lit building large; the sky fades into the hero. */
.hero__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 72% 100%;
  margin-top: 0.5rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 35%);
}

@media (min-width: 40rem) {
  .hero__photo {
    aspect-ratio: 4 / 3;
  }
}

/* Wide screens: text sits in the night sky above the building. */
@media (min-width: 60rem) and (min-aspect-ratio: 5/4) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero__photo {
    position: absolute;
    inset: 0;
    z-index: -1;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    object-position: 50% 70%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Deepen the sky (and the left end of the building) behind the text. */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgb(28 18 51 / 0.72) 0%, rgb(28 18 51 / 0.45) 35%, transparent 62%);
  }
  .hero__content {
    padding-top: clamp(2rem, 6vh, 4rem);
    padding-bottom: 32vh;
    max-width: 46rem;
  }
  .hero__logo {
    margin-bottom: 2rem;
  }
  .hero__logo img {
    width: 12rem;
  }
  .hero__farewell {
    font-size: clamp(3.5rem, 6vw, 4.5rem);
    margin-bottom: 1.25rem;
  }
  .hero__lede,
  .hero__status {
    max-width: 38rem;
  }
  .hero__lede {
    margin-bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content {
    animation: lights-up 1.2s ease-out both;
  }
  .hero__farewell {
    animation: glow-up 2.2s ease-out both;
  }
}

@keyframes lights-up {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes glow-up {
  from {
    text-shadow: 0 0 0 rgb(var(--glow) / 0);
    color: rgb(244 238 254 / 0.6);
  }
}

/* ---------- Our story: dated chapters on one boundary line ---------- */

.chapters {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chapter {
  display: grid;
  gap: 0.25rem 2.5rem;
  padding-bottom: 2rem;
}

.chapter__when {
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--violet);
  margin: 0;
  font-variant-numeric: lining-nums tabular-nums;
}

.chapter__body > :last-child {
  margin-bottom: 0;
}

.chapter__body p {
  max-width: var(--measure);
}

.story__photo {
  margin: 1.5rem 0 2rem;
  max-width: 44rem;
}
.story__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 70%;
  border-radius: var(--radius);
}

.story__strip {
  margin: 1.5rem 0 2rem;
  max-width: 44rem;
}

.story__strip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.story__strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

figcaption {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-2);
  margin-top: 0.6rem;
}

.quote {
  margin: 1.75rem 0;
  padding: 0;
  max-width: 32rem;
}
.quote p {
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.quote footer {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-2);
}

@media (min-width: 48rem) {
  .chapter {
    grid-template-columns: 9rem minmax(0, 1fr);
    padding-bottom: 0;
  }
  .chapter__when {
    text-align: right;
    padding-top: 0.15rem;
  }
  .chapter__body {
    position: relative;
    border-left: 1px solid var(--rule);
    padding: 0 0 2.75rem 2.5rem;
  }
  .chapter__body::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0.7rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--violet);
  }
  .chapter:last-child .chapter__body {
    padding-bottom: 0;
  }
}

/* ---------- What we built ---------- */

.band {
  background: var(--paper-2);
}

.feature {
  display: grid;
  gap: 1.25rem 3rem;
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.feature img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.feature h3 {
  margin-bottom: 0.75rem;
}

.feature p {
  max-width: var(--measure);
}

.feature p:last-child {
  margin-bottom: 0;
}

@media (min-width: 48rem) {
  .feature {
    grid-template-columns: 5fr 6fr;
  }
}

.also {
  display: grid;
  gap: 1.75rem 3rem;
  margin: clamp(3rem, 7vw, 4.5rem) 0 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.also dt {
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.also dd {
  margin: 0;
  color: var(--ink-2);
  max-width: 30rem;
}

@media (min-width: 40rem) {
  .also {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Locations ---------- */

.places__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 48rem) {
  .places__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.place img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.place h3 {
  font-size: var(--step-3);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.place address {
  font-family: var(--sans);
  font-style: normal;
  color: var(--ink-2);
  margin-bottom: 1rem;
}

.place__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin: 0 0 1.25rem;
  font-family: var(--sans);
}

.place__dates dt {
  font-size: var(--step--1);
  color: var(--ink-2);
}

.place__dates dd {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 500;
}

.place p {
  max-width: var(--measure);
}

/* ---------- Photos ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(8rem, 30vw, 11rem);
  grid-auto-flow: dense;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery li {
  margin: 0;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery .is-tall {
  grid-row: span 2;
}

.gallery .is-wide {
  grid-column: span 2;
}

.gallery .focus-low img {
  object-position: 50% 85%;
}

@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 13rem;
    gap: 0.75rem;
  }
}

/* ---------- Thank you ---------- */

/* --night is darker than the light paper and lighter than the dark paper,
   so this band stands apart in both color schemes. */
.thanks {
  background: var(--night);
  color: var(--night-ink);
}

.thanks h2 {
  font-size: var(--step-5);
  font-weight: 250;
  color: #fbf7ff;
}

.thanks__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
}

.thanks__list li {
  font-size: var(--step-1);
  line-height: 1.55;
}

.thanks__list strong {
  font-family: var(--sans);
  font-weight: 500;
}

.thanks a {
  color: var(--night-ink);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night-deep);
  color: var(--night-ink-2);
  font-family: var(--sans);
  font-size: var(--step--1);
  padding-block: 2.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.site-footer img {
  width: 2.5rem;
  opacity: 0.85;
}

.site-footer p {
  margin: 0;
}

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

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  gap: 1.25rem;
  padding: 2rem var(--gutter);
  background: var(--night);
  color: var(--night-ink);
  text-align: center;
}

.lost img {
  width: 6rem;
  margin-inline: auto;
  filter: drop-shadow(0 0 0.5rem rgb(var(--glow) / 0.5));
}

.lost h1 {
  font-size: var(--step-4);
  font-weight: 300;
}

.lost p {
  margin: 0;
  max-width: 28rem;
}

.lost a {
  color: var(--night-ink);
  font-family: var(--sans);
  font-size: var(--step-1);
}
