/* About the atlas and the page-unavailable page. One serif voice with the desk and the reader; the
   project hand is used once, for the About heading. Nothing here loads from another site. */
@font-face{font-family:Vinci;src:url('/derivatives/vinci-hand-font/releases/0.4.3/VinciHandReader-Regular.woff2') format('woff2');font-display:swap}

:root {
  color-scheme: light;
  --paper: #f5efe2;
  --surface: #fffdf7;
  --ink: #29221c;
  --muted: #66594d;
  --line: #dcd1c0;
  --accent: #762f29;
  --accent-dark: #54211d;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --hand: Vinci, var(--serif);
  --calm: cubic-bezier(.37, 0, .63, 1);
  --measure: 34rem;
  --side: 11rem;
  --side-gap: 2.5rem;
  --line-step: 1.62rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.62 var(--serif);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #762f2999;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .3s var(--calm), text-decoration-color .3s var(--calm);
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
strong { font-weight: 400; font-style: italic; }
[hidden] { display: none !important; }

.skip { position: fixed; left: 1rem; top: 1rem; z-index: 5; transform: translateY(-200%); background: var(--surface); padding: .5rem .8rem; }
.skip:focus { transform: none; }
#main { width: min(100% - 2.5rem, 47.5rem); margin-inline: auto; padding-bottom: clamp(3.5rem, 9vw, 6rem); }

/* The page: one column of text. On a wide screen the section names stand in the margin beside it. */
.information { max-width: var(--measure); margin-inline: auto; padding-top: clamp(1.6rem, 6vw, 4.2rem); }
.information h1 {
  font: 400 clamp(3.1rem, 11vw, 4.6rem)/.92 var(--hand);
  letter-spacing: 0;
  margin: 0 0 .32em -.03em;
}
.information .lead {
  max-width: 27rem;
  font: italic 1.36rem/1.42 var(--serif);
  text-wrap: balance;
}
.information p { text-wrap: pretty; }
.information p + p { margin-top: .72em; }
.information section { position: relative; margin-top: 2.5rem; }
.information > .lead + section, .information > figure + section { margin-top: 3.1rem; }
.information h2 {
  margin: 0 0 .3rem;
  color: var(--accent);
  font: italic 1.36rem/1.3 var(--serif);
}
.information h2[id] { scroll-margin-block-start: 1.5rem; }
.information section > p a { white-space: nowrap; }

@media (min-width: 56rem) {
  body { font-size: 1.125rem; }
  .information { max-width: none; padding-left: calc(var(--side) + var(--side-gap)); }
  .information > *, .information > section > * { max-width: var(--measure); }
  .information h2 {
    position: absolute;
    top: .05rem;
    right: 100%;
    width: var(--side);
    margin: 0 var(--side-gap) 0 0;
    font-size: 1.3rem;
    line-height: var(--line-step);
    text-align: right;
    text-wrap: balance;
  }
}

/* The page-unavailable heading is in the serif: it is the page's whole message, and the hand's g and n
   do not read surely enough to carry it. */
.information.is-lost { padding-top: clamp(3rem, 17vh, 9rem); }
.is-lost h1 { margin: 0 0 .28em; font: 400 clamp(2.5rem, 9vw, 3.6rem)/1.05 var(--serif); letter-spacing: -.02em; }
.is-lost h1 + p { font: italic 1.36rem/1.42 var(--serif); }
.is-lost p + p { margin-top: 1.1em; }

/* The launch film: a still laid on the page; the visitor starts it. */
.launch-film { margin-top: 1.9rem; }
.launch-film button, .launch-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 2px;
  background: #30251b;
  box-shadow: 0 1px 2px #3a241029, 0 14px 30px -12px #3a241047;
}
.launch-film button {
  position: relative;
  padding: 0;
  border: 0;
  color: #fbf3e2;
  cursor: pointer;
  text-align: left;
}
.launch-film img { width: 100%; height: auto; }
.launch-film button span {
  position: absolute;
  left: clamp(.65rem, 3vw, 1.1rem);
  bottom: clamp(.65rem, 3vw, 1.1rem);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .7rem;
  padding-inline: 1rem 1.15rem;
  border-radius: 999px;
  background: #30251b;
  box-shadow: 0 0 0 1px #fbf3e21f inset;
  font: 1.02rem/1.2 var(--serif);
  letter-spacing: .01em;
  transition: background-color .3s var(--calm);
}
.launch-film button span::before {
  content: "";
  border-left: 8px solid currentColor;
  border-block: 5px solid transparent;
}
.launch-film button:is(:hover, :focus-visible) span { background: var(--accent-dark); }
/* Credits kept folded: the film's, and the share image's at the end of Sources & credits. One style for both. */
.launch-film figcaption, .information .credit-note { margin-top: .35rem; color: var(--muted); font-size: .94rem; line-height: 1.5; }
:is(.launch-film, .credit-note) summary { width: fit-content; padding-block: .62rem; cursor: pointer; font-style: italic; }
:is(.launch-film details, .credit-note) p { max-width: 31rem; }
:is(.launch-film details, .credit-note) p:last-child { padding-bottom: .4rem; }

@media (prefers-reduced-motion: reduce) {
  a, .launch-film button span { transition: none; }
}

/* Saved addresses of the earlier readers pass through a page that redirects; this is what shows without scripts. */
body[data-page="restore"] #main { padding-top: clamp(1.6rem, 6vw, 4.2rem); }
body[data-page="restore"] h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: .5rem; }
