/* Layout: no boxes and no grid. One night scene behind every page, and plain text on the water. */
:root {
  color-scheme: dark;
  --night: #03040a;
  --ink: #f2f0fa;
  --ink-soft: rgba(242, 240, 250, .66);
  --line: rgba(242, 240, 250, .34);
  --hair: rgba(242, 240, 250, .16);
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --gutter: clamp(16px, 2vw, 32px);
  --left: max(var(--gutter), env(safe-area-inset-left, 0px));
  --right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--serif); font-size: 16px; overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.skip { position: fixed; z-index: 10; left: var(--left); top: -80px; padding: 8px 12px; background: var(--ink); color: var(--night); }
.skip:focus { top: 12px; }

/* The stage. */
#scene { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; animation: lights-up .7s ease-out; }
@keyframes lights-up { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #scene { animation: none; } }
#feed { position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.still { display: none; }
.stage-title { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#hero { position: relative; z-index: 1; height: 100vh; pointer-events: none; }
.mode-far #hero { height: 40vh; }

/* The key to the skyline. */
#tags { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; display: block; color: var(--ink); text-decoration: none; white-space: nowrap; pointer-events: auto;
  font-style: italic; font-weight: 300; font-size: clamp(13.5px, 1.04vw, 18px); line-height: 1.15; padding: 0 6px 2px 6px; opacity: .78;
  transition: opacity .25s;
}
.tag::before { content: ""; position: absolute; left: 0; bottom: 3px; width: 1px; height: var(--drop, 20px); background: var(--line); }
.tag.flip { text-align: right; }
.tag.flip::before { left: auto; right: 0; }
.tag small { display: none; font-size: .86em; color: var(--ink-soft); margin-left: .5em; }
.tag:hover, .tag:focus-visible, .tag.on { opacity: 1; font-weight: 400; z-index: 4; }
.tag.on small, .tag:hover small, .tag:focus-visible small { display: inline; }
.dim .tag:not(.on) { opacity: .28; }
#readout {
  display: none; position: fixed; z-index: 3; left: var(--left); right: var(--right);
  font-style: italic; font-weight: 300; font-size: 21px; line-height: 1.2; color: var(--ink); text-decoration: none;
}
#readout small { display: block; font-size: 14.5px; color: var(--ink-soft); }

/* The words at the edge of the water. */
.foot {
  position: fixed; z-index: 3; right: var(--right); bottom: clamp(18px, 3.6vh, 38px); display: flex; flex-direction: column; align-items: flex-end; gap: .45em;
  text-align: right; font-style: italic; font-weight: 300; font-size: clamp(17px, 1.6vw, 27px); line-height: 1.2; pointer-events: none;
}
.tagline { margin: 0; }
.nav { display: flex; flex-wrap: wrap; gap: .2em 1em; font-size: .78em; pointer-events: auto; }
.nav a { text-decoration: none; padding-block: 2px; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.mode-far .foot { position: absolute; bottom: auto; top: 44vh; }
@media (min-width: 761px) {
  .mode-quay .foot { left: var(--foot-left, auto); right: auto; bottom: var(--foot-bottom, 38px); align-items: flex-start; text-align: left; }
}

/* Under the surface. */
.under, .end { position: relative; z-index: 2; padding-inline: var(--left) var(--right); }
.under { padding-block: 10vh 0; }
.mode-far .under { padding-top: 2vh; }
.big { margin: 0 0 .8em; font-weight: 200; font-size: clamp(30px, 4.4vw, 76px); line-height: 1.04; letter-spacing: -.015em; max-width: 17em; text-wrap: balance; }
.index { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(24px, 5vw, 90px); }
.index li { break-inside: avoid; border-top: 1px solid var(--hair); }
.index a { display: block; padding-block: .6em .75em; color: inherit; text-decoration: none; }
.index b { display: block; font-weight: 300; font-size: clamp(24px, 2.5vw, 40px); line-height: 1.08; letter-spacing: -.01em; }
.index a:hover b { font-style: italic; }
.index span { display: block; margin-top: .25em; font-size: clamp(14px, 1.02vw, 16px); line-height: 1.3; color: var(--ink-soft); }
.facts { margin: -1.1em 0 2.2em; font-style: italic; font-weight: 300; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.3; color: var(--ink-soft); }
.onward { margin: clamp(48px, 10vh, 100px) 0 0; font-style: italic; font-weight: 300; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.3; color: var(--ink-soft); }
.onward a { display: inline-block; margin-top: .15em; color: var(--ink); font-style: normal; font-weight: 200; font-size: clamp(30px, 4.4vw, 76px); line-height: 1.04; letter-spacing: -.015em; text-decoration: none; }
.onward a:hover { font-style: italic; }
.page-media { margin: 0 0 2em; max-width: 1200px; }
.page-media img { display: block; width: 100%; height: auto; }
.pagination { margin-top: 2em; font-style: italic; font-size: 18px; }
.pagination .nav-links { display: flex; gap: 1em; }
.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* A post's own text and media. */
.entry-content { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; overflow-wrap: break-word; }
.entry-content > * { max-width: 38em; margin-block: 0 1.2em; }
.entry-content > figure, .entry-content > .wp-block-image, .entry-content > .wp-block-video, .entry-content > .wp-block-gallery, .entry-content > .wp-block-embed { max-width: min(100%, 1200px); }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.entry-content h2 { font-size: clamp(26px, 2.6vw, 42px); }
.entry-content h3 { font-size: clamp(22px, 2vw, 32px); }
.entry-content a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.entry-content figure { margin-inline: 0; }
.entry-content img, .entry-content video { display: block; max-width: 100%; height: auto; }
.entry-content .wp-block-image img, .entry-content .wp-block-video video { width: 100%; }
.entry-content figcaption { margin-top: .5em; font-style: italic; font-size: .82em; line-height: 1.3; color: var(--ink-soft); }
.entry-content .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.entry-content .wp-block-gallery figure { flex: 1 1 calc(50% - 12px); margin: 0; }
.entry-content iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.entry-content blockquote { margin-inline: 0; font-style: italic; font-weight: 300; font-size: 1.2em; line-height: 1.3; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content .alignwide, .entry-content .alignfull { max-width: none; }

/* How to get in touch. */
.end { padding-block: clamp(48px, 12vh, 120px) 32px; }
.contact { margin: 0; font-weight: 200; font-size: clamp(30px, 6vw, 104px); line-height: 1.02; letter-spacing: -.02em; scroll-margin-top: 10vh; }
.contact a { overflow-wrap: anywhere; text-decoration-thickness: .025em; text-underline-offset: .12em; }
.end-nav { margin-top: 2em; font-style: italic; font-weight: 300; font-size: 18px; }

@media (max-width: 760px) {
  #tags { display: none; }
  #readout { display: block; }
  .foot { left: var(--left); bottom: 18px; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 12px; text-align: left; font-size: 16.5px; }
  .foot .nav { flex-direction: column; flex-wrap: nowrap; align-items: flex-end; flex: none; margin-left: auto; font-size: 16.5px; text-align: right; }
  .mode-far .foot .nav { flex-direction: row; gap: .2em 1em; }
  .index { columns: 1; }
}

/* No JavaScript or no WebGL: the same content as an ordinary page. */
html:not(.js) #scene, .no-gl #scene, html:not(.js) #tags, .no-gl #tags, html:not(.js) #readout, .no-gl #readout { display: none; }
html:not(.js) .still, .no-gl .still { display: block; width: 100%; height: auto; }
html:not(.js) #hero, .no-gl #hero { display: none; }
html:not(.js) .stage-title, .no-gl .stage-title {
  position: static; width: auto; height: auto; clip-path: none; white-space: normal; padding: 24px var(--right) 0 var(--left);
  font-weight: 200; font-size: clamp(34px, 7vw, 110px); line-height: 1.04;
}
html:not(.js) .foot, .no-gl .foot { position: static; align-items: flex-start; text-align: left; padding: 16px var(--right) 0 var(--left); }
