/* components.css — Styles scoped to UI components */

/* -- card -- */
/* One week. A phone-shaped frame with a signpost label underneath. */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
}

.card-frame {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.card-cover,
.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The video sits over the cover and fades in once it is actually playing, so */
/* there is never a black frame between the two. */
.card-video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card.is-active .card-video {
  opacity: 1;
}

.card-label {
  flex: none;
  font-size: var(--card-label-size);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--quiet);
  transition: color 0.3s ease;
}

.card.is-active .card-label {
  color: var(--ink);
}

/* -- room -- */
/* The not today space itself: the door, the empty room, the measured plan. */
.room {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

.room.is-active {
  opacity: 1;
}

.room-frame {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--paper);
}

.room-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.room-label {
  flex: none;
  font-family: var(--font-not-today), sans-serif;
  font-size: var(--card-label-size);
  font-weight: 700;
  color: var(--quiet);
  transition: color 0.3s ease;
}

.room.is-active .room-label {
  color: var(--accent-ntt);
}

/* -- client -- */
/* Landscape, because these are websites and they were made for a laptop. */
.client {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.client.is-active {
  opacity: 1;
}

.client-frame {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.client-cover,
.client-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.client-video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.client.is-active .client-video {
  opacity: 1;
}

.client-label {
  flex: none;
  font-size: var(--card-label-size);
  font-weight: 628;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--quiet);
}

.client.is-active .client-label {
  color: var(--ink);
}

/* -- sign-links -- */
.sign-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  font-size: var(--sign-kicker-size);
  font-weight: 628;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sign-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.sign-links a:hover {
  color: var(--accent);
}

/* -- photo -- */
/* One Not Today event. Dimmed until its era is being talked about, so the */
/* wall reads as a timeline rather than fifteen equal pictures. */
.photo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

.photo.is-active {
  opacity: 1;
}

.photo-frame {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--paper);
}

.photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-label {
  flex: none;
  font-size: var(--card-label-size);
  font-weight: 628;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--quiet);
}

.photo.is-active .photo-label {
  color: var(--ink);
}

/* The three sessions before the room existed. */
.photo-live .photo-label {
  font-family: var(--font-not-today), sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

/* -- sign -- */
/* Entrance, gate, bandstand, closing. Text standing in the world. */
.sign {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
}

.sign-kicker {
  font-size: var(--sign-kicker-size);
  font-weight: 628;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--quiet);
}

.sign-title {
  font-size: var(--sign-title-size);
  font-weight: 674;
  line-height: var(--sign-title-leading);
  letter-spacing: -0.03em;
  white-space: pre-line;
}

.sign-body {
  max-width: 30ch;
  font-size: var(--sign-body-size);
  font-weight: 400;
  line-height: 1.45;
  white-space: pre-line;
  color: #4a4a4a;
}

/* -- parc-word -- */
/* The word "parc", anywhere it appears, in the parc wordmark face. */
/* Applied by App.dom.setText — never hand-written into markup. */
/* The whole rule, everywhere the word appears: the wordmark face, lowercase,
   and nothing inherited from the surrounding block. Several places set
   uppercase, a weight, or tracking on their text — the HUD, sign kickers, the
   closing links, card labels — and each of those would deform the wordmark.
   Declarations on the element itself beat inherited ones, so this holds
   without exceptions. */
.parc-word {
  font-family: var(--font-parc), sans-serif;
  font-weight: normal;
  letter-spacing: normal;
  text-transform: lowercase;
}

.sign-notToday .sign-title {
  font-family: var(--font-not-today), sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent-ntt);
}

.sign-notToday .sign-kicker {
  color: var(--accent-ntt);
}

/* -- panel -- */
.panel-title {
  font-size: var(--panel-title-size);
  font-weight: 628;
  line-height: 1.2;
  letter-spacing: -0.15px;
  margin-bottom: 10px;
  text-transform: none;
}

.panel-body {
  font-size: var(--panel-body-size);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.12px;
  white-space: pre-line;
  text-transform: none;
  color: #4a4a4a;
}

.panel-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: var(--ui-size);
  font-weight: var(--ui-weight);
  letter-spacing: var(--ui-tracking);
  color: var(--ink);
}

/* -- hud-item -- */
.hud-item {
  color: var(--quiet);
}

.hud-item strong {
  font-weight: var(--ui-weight);
  color: var(--ink);
}

/* -- btn -- */
.btn {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--quiet);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn:hover {
  color: var(--ink);
}

/* -- off-path -- */
/* Only shown once someone has actually wandered. */
.return-nudge {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  color: var(--ink);
}

.hud.is-off-path .return-nudge {
  opacity: 1;
  pointer-events: auto;
}

/* -- entrance -- */
.entrance-mark {
  font-size: 34px;
  font-weight: 628;
  letter-spacing: -0.02em;
}


.entrance-hint {
  font-size: var(--ui-size);
  font-weight: var(--ui-weight);
  letter-spacing: var(--ui-tracking);
  text-transform: uppercase;
  color: var(--quiet);
}

.entrance-rule {
  width: 60px;
  height: 2px;
  background: var(--accent);
}
