/* BALTSAR, a work.
   On the front page each work is a window on the desktop. This is that window
   opened: the name as loud as the page allows, the picture in its frame, and
   the reading set against the ground of whichever skin is on. */

body {
  position: relative;
  overflow-x: hidden;
}

/* the desktop's dots, fading out before the reading starts */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44rem;
  background-image: radial-gradient(var(--dots) 1px, transparent 1.3px);
  background-size: 12px 12px;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.item {
  --text: var(--on-ground);
  --soft: color-mix(in srgb, var(--on-ground) 72%, var(--ground));
  --hair: color-mix(in srgb, var(--on-ground) 30%, transparent);
  --rule: 2px solid var(--on-ground);
  --mark: var(--accent);
  --lift: var(--accent);
  /* where the reading column starts on a wide screen, beside the headings */
  --aside: calc((100% - 2rem) / 3 + 2rem);

  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  padding: 6.5rem var(--gutter) clamp(4rem, 9vw, 7rem);
  color: var(--text);
}

.item ::selection {
  background: var(--accent);
  color: #000;
}

/* the way back */
.item-back {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.8rem;
  border: var(--edge);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1;
  text-decoration: none;
}

.item-back::before {
  content: "←";
  margin-right: 0.5rem;
}

.item-back:hover {
  background: var(--accent);
}

.item-back:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* the name */
.item-head {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.item-title {
  font-family: var(--loud);
  font-weight: var(--loud-weight);
  font-size: calc(clamp(3.4rem, 15.5vw, 12.5rem) * var(--loud-scale));
  line-height: 0.85;
  letter-spacing: var(--loud-track);
}

.item-line {
  max-width: 24rem;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

@media (min-width: 60rem) {
  .item-head {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
  }

  .item-line {
    padding-bottom: 0.5rem;
    text-align: right;
  }
}

/* the picture, in the window it was opened from */
.file {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border: var(--edge);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  color: var(--ink);
}

.file .win-box {
  position: relative;
  display: block;
}

/* the close box is small; this gives the finger something to land on */
.file .win-box::after {
  content: "";
  position: absolute;
  inset: -0.75rem;
}

.file .win-box:hover {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

.item-hero {
  position: relative;
  aspect-ratio: 3 / 2;
  max-height: 72vh;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.item-hero.is-unbuilt {
  background: var(--paper);
}

.item-hero img,
.item-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-hero[data-dither] img {
  opacity: 0;
}

.dither {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* not built yet: the number says how far, over the sketch */
.item-hero-badge {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.item-hero-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 30% 30% at 50% 50%, var(--paper) 30%, transparent 100%);
}

.item-hero-pct {
  font-family: var(--loud);
  font-weight: var(--loud-weight);
  font-size: calc(clamp(3.5rem, 12vw, 8rem) * var(--loud-scale));
  line-height: 0.9;
  letter-spacing: var(--loud-track);
}

.item-hero-note {
  padding: 0.3rem 0.6rem;
  border: var(--edge);
  background: var(--paper);
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1;
}

/* the facts sit in the window's status bar */
.facts {
  display: grid;
  border-top: var(--edge);
  background: var(--chrome);
}

.fact {
  padding: 0.7rem 0.9rem 0.8rem;
}

.fact + .fact {
  border-top: var(--edge);
}

.fact-label {
  font-family: var(--machine);
  font-size: 0.95rem;
  line-height: 1.1;
  color: #454545;
}

.fact-value {
  margin-top: 0.3rem;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

@media (min-width: 40rem) {
  .facts {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }

  .fact + .fact {
    border-top: 0;
    border-left: var(--edge);
  }
}

/* a section: its heading stays beside the reading on a wide screen */
.block {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: 1.25rem;
  border-top: var(--rule);
}

.block > * + * {
  margin-top: 1.75rem;
}

.block-heading {
  font-family: var(--loud);
  font-weight: var(--loud-weight);
  font-size: calc(clamp(1.8rem, 3.3vw, 2.75rem) * var(--loud-scale));
  line-height: 1;
  letter-spacing: var(--loud-track);
}

@media (min-width: 60rem) {
  .block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 2rem;
  }

  .block > * {
    grid-column: 2;
  }

  /* The span is longer than any section, so the heading's cell runs the
     whole height and the heading can ride down it. */
  .block > .block-heading {
    grid-column: 1;
    grid-row: 1 / span 40;
    align-self: start;
    position: sticky;
    top: 4.75rem;
  }

  .block > .block-heading + * {
    margin-top: 0;
  }
}

.block-note {
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--soft);
}

.story {
  max-width: 38rem;
}

.story p {
  font-size: 1.15rem;
  line-height: 1.6;
}

.story p + p {
  margin-top: 1.1rem;
}

.story a,
.block-note a {
  text-decoration-color: var(--mark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* pictures */
.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.shot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--hair);
  cursor: zoom-in;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.shot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot:hover,
.shot:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--lift);
}

.shot:active {
  transform: none;
  box-shadow: none;
}

.shot--square { aspect-ratio: 1 / 1; }
.shot--portrait { aspect-ratio: 3 / 4; }
.shot--wide { aspect-ratio: 16 / 9; }

@media (min-width: 40rem) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
  }

  .shots--story {
    grid-template-columns: 1fr 0.85fr 1.15fr;
    align-items: start;
  }
}

/* a picture inside the reading, not after it */
.inset {
  max-width: 38rem;
}

.inset img {
  width: 100%;
}

.inset-cap,
.film-caption {
  margin-top: 0.6rem;
  font-family: var(--machine);
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--soft);
}

/* LINJEN: the weekend's film is square, made for feeds */
.film {
  max-width: 30rem;
}

.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--text);
  background: #000;
}

.film-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* the call log */
.exchanges {
  list-style: none;
  max-width: 38rem;
}

.exchange {
  padding: 1.15rem 0 1.25rem;
  border-top: 1px solid var(--hair);
}

.exchange-when {
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1.1;
}

.exchange-what {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--soft);
}

.exchange-line {
  margin-top: 0.55rem;
  font-size: 1.3rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.exchange-en {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--soft);
}

/* lists of who and what */
.credits {
  list-style: none;
  max-width: 38rem;
}

.credit {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--hair);
}

.credit:last-child {
  border-bottom: 1px solid var(--hair);
}

.credit-label {
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1.15;
}

.credit-value {
  font-size: 1.05rem;
  text-align: right;
}

/* things said, in Swedish first */
.says {
  list-style: none;
  display: grid;
  gap: 2.5rem;
  max-width: 40rem;
}

.say {
  position: relative;
  padding-left: 2.75rem;
}

.say::before {
  content: "\201D";
  position: absolute;
  left: 0;
  top: -0.12em;
  font-family: var(--plain);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--mark);
  pointer-events: none;
}

.say-sv {
  font-size: 1.4rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.say-en {
  margin-top: 0.6rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--soft);
}

.say-source {
  margin-top: 0.9rem;
  font-family: var(--machine);
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--soft);
}

.say-who {
  display: block;
  color: var(--text);
}

.say-note {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--soft);
}

/* a film from somewhere else: nothing loads until it is asked for */
.embed {
  position: relative;
  max-width: 46rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--text);
  background: #000;
}

.embed iframe,
.embed-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-play {
  display: block;
  padding: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.embed-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.embed-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.05));
}

.embed-copy {
  position: absolute;
  z-index: 1;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.1rem;
  display: grid;
  gap: 0.3rem;
  color: #fff;
}

.embed-title {
  font-size: 1.15rem;
  line-height: 1.3;
}

.embed-note {
  font-family: var(--machine);
  font-size: 0.95rem;
  line-height: 1.25;
}

/* a play triangle, drawn rather than fetched */
.embed-glyph {
  position: absolute;
  z-index: 1;
  top: 1.1rem;
  left: 1.25rem;
  width: 3rem;
  height: 3rem;
  border: var(--edge);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}

.embed-glyph::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--ink);
}

.embed-play:hover .embed-glyph,
.embed-play:focus-visible .embed-glyph {
  background: var(--accent);
}

.embed-play:focus-visible {
  outline-offset: -6px;
}

/* the background, for whoever wants it */
.fold {
  max-width: 40rem;
  border-top: 1px solid var(--hair);
}

.fold + .fold {
  margin-top: 0;
}

.fold:last-of-type {
  border-bottom: 1px solid var(--hair);
}

.fold-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.6rem 0;
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1.15;
  cursor: pointer;
}

.fold-summary::-webkit-details-marker {
  display: none;
}

.fold-summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid var(--text);
  font-size: 1.375rem;
  line-height: 1;
}

.fold[open] .fold-summary::after {
  content: "\2212";
  background: var(--text);
  color: var(--ground);
}

.fold-summary:hover::after {
  background: var(--text);
  color: var(--ground);
}

.fold-body {
  padding: 0.5rem 0 1.75rem;
}

.fold-body > * + * {
  margin-top: 1.75rem;
}

/* ── The recorded call ─────────────────────────────────────── */
/* One button that becomes a voice. The box floods with the yellow of the
   phone when the line opens (1.2s) and drains back slower (2.5s). */
.call {
  --call-bg: var(--paper);
  --call-ink: var(--ink);
  --call-faint: #555;
  --call-progress: 1;

  position: relative;
  overflow: hidden;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: 1.75rem 1.5rem 1.75rem 3.25rem;
  border: var(--edge);
  background: var(--call-bg);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--call-ink);
  transition: background 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* the yellow of the phone itself, off the body in images/linjen-05.jpg.
   Inks stay dark here: nothing light clears 4.5:1 against this. */
.call[data-state="connecting"],
.call[data-state="open"] {
  --call-bg: #edb200;
  --call-faint: #3a3a3a;
  transition: background 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* One height for every state, so nothing jumps under the reader. */
.call-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 12rem;
}

/* The countdown is a line, because the work is called LINJEN. */
.call-rail {
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: 1.9rem;
  width: 2px;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.call[data-state="connecting"] .call-rail,
.call[data-state="open"] .call-rail {
  opacity: 1;
}

.call-rail-fill {
  position: absolute;
  inset: 0;
  background: var(--call-ink);
  transform: scaleY(var(--call-progress));
  transform-origin: top;
  transition: transform 0.15s linear;
}

.call-rail-fill.is-speaking {
  animation: call-breathe 2.8s ease infinite;
}

@keyframes call-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.call-count {
  position: absolute;
  right: 0.5rem;
  top: calc(var(--call-progress) * 100%);
  transform: translateY(-100%);
  font-family: var(--machine);
  font-size: 0.6875rem;
  line-height: 1;
  color: var(--call-faint);
}

.call-panel { display: none; }

.call[data-state="idle"] .call-panel--idle,
.call[data-state="connecting"] .call-panel--connecting,
.call[data-state="open"] .call-panel--open,
.call[data-state="ended"] .call-panel--ended {
  display: block;
  animation: call-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* The full text stays one click away, never in the way. */
.call[data-state="ended"] .call-panel--open { display: none; }

@keyframes call-in {
  from { opacity: 0; transform: translateY(0.4rem); }
  to { opacity: 1; transform: none; }
}

.call-note {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--call-faint);
}

.call-status {
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1.1;
}

.call-panel--connecting .call-status::after {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-left: 0.5rem;
  background: var(--call-ink);
  animation: call-blink 1.1s steps(1) infinite;
}

@keyframes call-blink {
  50% { opacity: 0; }
}

.call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.1rem;
  border: 2px solid var(--call-ink);
  background: var(--call-ink);
  box-shadow: 4px 4px 0 var(--accent);
  color: var(--paper);
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.call-button svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
}

.call-button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--accent);
}

.call-button--quiet {
  margin-top: 1.1rem;
  background: none;
  box-shadow: none;
  color: var(--call-ink);
}

.call-button--quiet:hover {
  background: var(--call-ink);
  color: var(--paper);
}

/* Quiet text controls: never compete with the voice. */
.call-hang {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--call-ink);
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.call-button:focus-visible,
.call-hang:focus-visible {
  outline-color: var(--call-ink);
}

/* During the call the lines share one spot: one thing is said at a time,
   and the block keeps its height so nothing shifts. */
.call-script {
  position: relative;
  list-style: none;
  max-width: 32rem;
  min-height: 8.5rem;
}

.call-line {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.call-line.is-now { opacity: 1; transform: none; }

.call-line-sv {
  display: block;
  font-size: 1.3rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.call-line-en {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--call-faint);
}

.call-after-text {
  margin-top: 0.6rem;
  max-width: 26rem;
  font-size: 1.15rem;
  line-height: 1.45;
}

.call-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 40rem) {
  .call { padding: 2.25rem 2.5rem 2.25rem 4rem; }
  .call-rail { left: 2.25rem; top: 2.25rem; bottom: 2.25rem; }
  .call-script { min-height: 6.5rem; }
  .call-inner { min-height: 10rem; }
}

/* ── Pass it on, get in touch ──────────────────────────────── */
.support {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: 1.5rem 1.25rem 1.5rem;
  border: var(--edge);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
}

@media (min-width: 60rem) {
  .call,
  .support {
    margin-left: var(--aside);
  }
}

.support-heading {
  font-family: var(--loud);
  font-weight: var(--loud-weight);
  font-size: calc(clamp(1.8rem, 3.3vw, 2.75rem) * var(--loud-scale));
  line-height: 1;
  letter-spacing: var(--loud-track);
}

.support-text {
  margin-top: 0.75rem;
  max-width: 30rem;
  font-size: 1.15rem;
  line-height: 1.5;
}

.support-ways {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: var(--edge);
}

@media (min-width: 45rem) {
  .support {
    padding: 1.75rem 1.75rem 2rem;
  }

  .support-ways:not(.support-ways--solo) {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .support-ways:not(.support-ways--solo) .support-way:first-child {
    padding-right: 1.75rem;
    border-right: var(--edge);
  }

  .support-ways:not(.support-ways--solo) .support-way:last-child {
    padding-left: 1.75rem;
  }
}

.support-way-label {
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1.1;
}

.support-way-note {
  margin-top: 0.5rem;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

/* the one ask that costs something, kept apart from the two that do not */
.support-keep {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: var(--edge);
}

.support-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #454545;
}

.btn {
  display: inline-grid;
  place-items: center;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--accent);
  color: var(--paper);
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--accent);
}

/* the address, and the ways to send it */
.share-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.share-link {
  flex: 1 1 9rem;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  height: 2.75rem;
  border: var(--edge);
}

.share-url {
  align-self: center;
  min-width: 0;
  padding: 0 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--machine);
  font-size: 0.95rem;
  line-height: 1;
}

.share-copy,
.share-native,
.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  color: var(--ink);
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.share-copy {
  min-width: 5rem;
  padding: 0 0.8rem;
  border-left: var(--edge);
  background: var(--ink);
  color: var(--paper);
}

.share-copy:hover,
.share-copy.is-copied {
  background: var(--accent);
  color: #000;
}

.share-native,
.share-icon {
  height: 2.75rem;
  border: var(--edge);
  background: var(--paper);
}

.share-native {
  padding: 0 0.8rem;
}

.share-native[hidden] {
  display: none;
}

.share-icon {
  width: 2.75rem;
}

.share-native svg,
.share-icon svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
}

.share-native:hover,
.share-icon:hover {
  background: var(--accent);
}

/* the next work, as loud as this one was */
.item-next {
  margin-top: clamp(4rem, 9vw, 7rem);
  border-top: var(--rule);
}

.item-next a {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.item-next-copy {
  min-width: 0;
}

.item-next-label {
  display: block;
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1.1;
}

.item-next-title {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--loud);
  font-weight: var(--loud-weight);
  font-size: calc(clamp(2.6rem, 10vw, 8rem) * var(--loud-scale));
  line-height: 0.85;
  letter-spacing: var(--loud-track);
}

.item-next a:hover .item-next-title,
.item-next a:focus-visible .item-next-title {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.08em;
}

/* three squares that grow: an arrow, in the screen's own grain */
.item-next-glyph {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 0.6rem;
}

.item-next-glyph i {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--text);
  transition: transform 0.25s steps(3, end);
}

.item-next-glyph i:nth-child(2) {
  width: 13px;
  height: 13px;
}

.item-next-glyph i:nth-child(3) {
  width: 20px;
  height: 20px;
}

.item-next a:hover .item-next-glyph i:nth-child(1),
.item-next a:focus-visible .item-next-glyph i:nth-child(1) {
  transform: translateX(4px);
}

.item-next a:hover .item-next-glyph i:nth-child(2),
.item-next a:focus-visible .item-next-glyph i:nth-child(2) {
  transform: translateX(8px);
}

.item-next a:hover .item-next-glyph i:nth-child(3),
.item-next a:focus-visible .item-next-glyph i:nth-child(3) {
  transform: translateX(12px);
}

/* a picture, enlarged: the same box the contact sheet opens in */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background:
    radial-gradient(var(--dots) 1px, transparent 1.3px) 0 0 / 6px 6px,
    color-mix(in srgb, var(--ground) 90%, transparent);
  cursor: zoom-out;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: min(72rem, 100%);
  padding-top: 3rem;
}

.lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: 74vh;
  border: var(--edge);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.lightbox-caption {
  padding: 0.35rem 0.7rem;
  border: var(--edge);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--machine);
  font-size: 1.03125rem;
  line-height: 1.15;
  text-align: center;
}

.lightbox-caption:empty {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: var(--edge);
  background: var(--paper);
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--accent);
}

.lightbox-close span,
.lightbox-close span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

.lightbox-close span {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close span::before {
  content: "";
  top: 0;
  left: 0;
  transform: rotate(90deg);
}

/* look 95: the reading is a document, white, in a grey frame. The teal
   desktop is no place for long text. */
html[data-look="95"] .item {
  --on-ground: #000;
  --ground: #fff;
  --mark: #000080;
  --lift: #000080;

  max-width: min(80rem, 100% - 1.5rem);
  margin-block: 4.5rem 3rem;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  border: 2px solid;
  border-color: #000 #fff #fff #000;
  background: #fff;
  box-shadow: 0 0 0 4px #c0c0c0, 2px 2px 0 5px #000;
}

html[data-look="95"] .item :focus-visible {
  outline-color: #000080;
}

html[data-look="95"] .item-back,
html[data-look="95"] .item-hero-note,
html[data-look="95"] .lightbox-caption,
html[data-look="95"] .lightbox-close,
html[data-look="95"] .embed-glyph,
html[data-look="95"] .share-native,
html[data-look="95"] .share-icon {
  border-color: #fff #000 #000 #fff;
  background: #c0c0c0;
  box-shadow: 1px 1px 0 #000;
}

html[data-look="95"] .file,
html[data-look="95"] .call,
html[data-look="95"] .support {
  padding: 3px;
  border-color: #fff #000 #000 #fff;
  background: #c0c0c0;
  box-shadow: 2px 2px 0 #000;
}

html[data-look="95"] .file .win-box:hover {
  background: #c0c0c0;
  box-shadow: none;
}

html[data-look="95"] .item-hero {
  border: 2px solid;
  border-color: #000 #fff #fff #000;
}

html[data-look="95"] .facts {
  border-top: 0;
  background: none;
}

html[data-look="95"] .fact {
  margin-top: 3px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
}

html[data-look="95"] .fact + .fact {
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
}

@media (min-width: 40rem) {
  html[data-look="95"] .facts {
    column-gap: 3px;
  }
}

html[data-look="95"] .call {
  padding: 1.75rem 1.5rem 1.75rem 3.25rem;
}

html[data-look="95"] .call[data-state="connecting"],
html[data-look="95"] .call[data-state="open"] {
  background: #edb200;
}

html[data-look="95"] .support {
  padding: 1.5rem 1.25rem;
}

html[data-look="95"] .call-button,
html[data-look="95"] .btn {
  border-color: #fff #000 #000 #fff;
  background: #c0c0c0;
  box-shadow: 1px 1px 0 #000;
  color: #000;
}

html[data-look="95"] .call-button--quiet:hover {
  background: #c0c0c0;
  color: #000;
}

html[data-look="95"] .share-link {
  border-color: #000 #fff #fff #000;
  background: #fff;
}

html[data-look="95"] .share-copy {
  border-left: 0;
  background: #000080;
  color: #fff;
}

html[data-look="95"] .lightbox-img {
  border-color: #fff #000 #000 #fff;
  box-shadow: 0 0 0 3px #c0c0c0, 2px 2px 0 4px #000;
}
