/* THRESHOLD: the figure that draws itself.
   Bone paper, charcoal ink, construction lines in violet-grey; the bonfire
   tint is the ground of every plate, and fire red belongs to the living
   figure and a few marks. One centred axis, one column, a lot of air.
   Text colours are at least 4.5:1 on --paper and --tint (WCAG AA): --ink,
   --muted and --fire-text. --fire and --line only draw shapes. */
:root {
  --paper: #e9e2d0;
  --tint: #fdedf0;
  --ink: #26262f;
  --muted: #585870;
  --fire: #e51d47;
  --fire-text: #b3123a;
  --line: #7c7c97;
  --hair: rgba(124, 124, 151, 0.55);
  --night: #2e2e3a;

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --text: "Alegreya", Palatino, "Book Antiqua", Georgia, serif;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;

  --size-text: 1.1875rem;
  --size-lede: 1.5rem;
  --size-small: 0.9375rem;
  --size-label: 0.78rem;
  --measure: 34rem;
  --gutter: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --draw: cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--size-text);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

::selection {
  background: var(--fire);
  color: var(--tint);
}

:focus-visible {
  outline: 2px solid var(--fire);
  outline-offset: 4px;
}

/* Paper grain, laid under the page's content; it never takes clicks and
   never sits above anything fixed. */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .15 0 0 0 0 .19 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  max-width: none;
  padding: 0 0 5rem;
}

.page > * {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Masthead: a small heptagram and the way between the pages. */
.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.9rem;
}

.masthead .home {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--ink);
  view-transition-name: emblem;
}

.masthead .home svg {
  display: block;
  width: 100%;
  height: 100%;
}

.masthead .home:hover,
.masthead .home:focus-visible {
  color: var(--fire-text);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 17rem;
  gap: 0 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 0.45rem 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: var(--size-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1.5px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--fire-text);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--fire);
}

/* ---------- Type. */
h1,
h2 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

.title {
  font-size: clamp(2.6rem, 17vw, 5rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.title.wide {
  font-size: clamp(3.4rem, 17vw, 6rem);
  letter-spacing: 0.08em;
}

.title.long {
  font-size: clamp(2.2rem, 13.5vw, 4.25rem);
}

.lede {
  margin: 1.2rem auto 0;
  max-width: 30rem;
  font-size: var(--size-lede);
  font-style: italic;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

.lede.big {
  font-size: clamp(1.7rem, 6.6vw, 2.4rem);
}

.whisper {
  margin: 1.2rem 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: var(--size-label);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

p {
  margin: 0 0 1.1em;
}

em {
  font-style: italic;
}

a {
  color: var(--ink);
  text-decoration-color: var(--hair);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  color: var(--fire-text);
  text-decoration-color: currentColor;
}

/* Small-caps labels: carved, tracked, quiet. */
.label {
  font-family: var(--display);
  font-size: var(--size-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* An onward link: a drawn four-point star, then carved capitals. */
.onward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  text-align: left;
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding: 0.4rem 0;
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.onward svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--fire);
  transition: transform 0.6s var(--ease);
}

.onward:hover svg,
.onward:focus-visible svg {
  transform: rotate(90deg) scale(1.15);
}

/* ---------- The plate: the figure's ground, after old engraved plates. */
.plate {
  position: relative;
  margin: 2rem auto 0;
  width: min(100%, 24rem);
  padding: 0;
  text-align: center;
}

.plate .field {
  position: relative;
  display: block;
  background: var(--tint);
  border: 1px solid var(--hair);
  aspect-ratio: 1;
  overflow: hidden;
}

/* Corner points, as on a keyline frame. */
.plate .field::before,
.plate .field::after {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--line) 1.4px, transparent 1.9px) 0 0 / 4px 4px no-repeat,
    radial-gradient(circle, var(--line) 1.4px, transparent 1.9px) 100% 0 / 4px 4px no-repeat,
    radial-gradient(circle, var(--line) 1.4px, transparent 1.9px) 0 100% / 4px 4px no-repeat,
    radial-gradient(circle, var(--line) 1.4px, transparent 1.9px) 100% 100% / 4px 4px no-repeat;
}

.plate .field::after {
  display: none;
}

.plate .field > svg,
.plate .field > canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.plate figcaption {
  margin-top: 0.75rem;
  font-size: var(--size-small);
  font-style: italic;
  color: var(--muted);
}

.plate figcaption b {
  font-weight: 500;
  font-style: normal;
}

.plate.night .field {
  background: var(--night);
  border-color: var(--night);
}

.plate.night .field::before {
  --line: rgba(253, 237, 240, 0.55);
}

.plate.night .figure * {
  stroke: var(--tint);
}

html:not(.js) .needs-js,
.js .no-js {
  display: none;
}

.hearth {
  touch-action: pan-y;
  cursor: grab;
}

.hearth:active {
  cursor: grabbing;
}

/* The nine cubes of the impossible ring: three faces each, the last cube in fire. */
.figure .cube polygon {
  stroke: var(--ink);
  stroke-width: 1.3;
}

.figure .cube .f1 {
  fill: #fff8f9;
}

.figure .cube .f2 {
  fill: #f1dfe2;
}

.figure .cube .f3 {
  fill: #d9cfc4;
}

.figure .cube.last polygon {
  stroke: var(--fire);
  stroke-width: 1.8;
}

/* Every figure's strokes. */
.figure {
  overflow: visible;
}

.figure * {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.figure .aux {
  stroke: var(--line);
  stroke-width: 1;
}

.figure .fire {
  stroke: var(--fire);
  stroke-width: 2;
}

.figure .dot {
  fill: var(--ink);
  stroke: none;
}

.figure .dot.fire {
  fill: var(--fire);
}

/* ---------- The home threshold: the figure constructs itself, then breathes. */
.threshold {
  padding-top: 0.75rem;
  min-height: calc(100svh - 7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.threshold .plate {
  margin-top: 0.25rem;
  width: min(100%, 19.5rem);
}

.threshold .plate figcaption {
  margin-top: 0.6rem;
}

.threshold .title {
  margin-top: 1.5rem;
  max-width: 40rem;
}

.threshold .title span {
  display: block;
}

/* Timeline of the construction, in seconds. Each stroke sets its own start
   (--d) and length (--t); the pen that draws it runs on the same clock. */
.s {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw var(--t, 1s) var(--draw) var(--d, 0s) forwards;
}

.pen {
  fill: var(--fire);
  stroke: none;
  opacity: 0;
  offset-rotate: 0deg;
  animation:
    pen-move var(--t, 1s) var(--draw) var(--d, 0s) forwards,
    pen-show var(--t, 1s) linear var(--d, 0s) forwards;
}

.node {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: pop 0.6s var(--ease) var(--d, 0s) forwards;
}

.settle {
  animation: settle 1.2s ease var(--d, 0s) forwards;
}

.breath polygon {
  stroke: var(--line);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: breathe 9s ease-out var(--d, 0s) infinite;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pen-move {
  from {
    offset-distance: 0%;
  }

  to {
    offset-distance: 100%;
  }
}

@keyframes pen-show {
  0% {
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  94% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes pop {
  to {
    transform: scale(1);
  }
}

@keyframes settle {
  to {
    opacity: 0.45;
  }
}

@keyframes breathe {
  0% {
    transform: scale(0.45);
    opacity: 0;
  }

  18% {
    opacity: 0.55;
  }

  100% {
    transform: scale(2.15);
    opacity: 0;
  }
}

.rise {
  animation: rise 1.4s var(--ease) var(--d, 0s) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sections: each opens with an arc and a ∴, drawn as it arrives. */
.sec {
  margin-top: 5.5rem;
  text-align: center;
}

.sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 1.4rem;
}

.sec-head .arc {
  width: 120px;
  height: 36px;
  overflow: visible;
}

.sec-head .arc path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.sec-head .arc .tri {
  fill: var(--fire);
  stroke: none;
  font-family: var(--text);
  font-size: 22px;
}

.sec-head h2 {
  font-size: clamp(1.15rem, 4.4vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.sec-head h2.quote {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
}

.sec p {
  margin-left: auto;
  margin-right: auto;
  max-width: 30rem;
}

.sec p.lead {
  font-size: 1.3rem;
  line-height: 1.4;
  font-style: italic;
  text-wrap: balance;
}

.sec .quiet {
  color: var(--muted);
  font-size: var(--size-small);
}

/* With JS, sections arrive: the arc draws and the text settles. Without it,
   everything is simply there. */
.js .sec {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.js .sec.in {
  opacity: 1;
  transform: none;
}

.js .sec.in .arc path {
  animation: draw 1.4s var(--draw) 0.15s forwards;
}

html:not(.js) .sec-head .arc path {
  stroke-dashoffset: 0;
}

/* Contact lines in the last section. */
.contact {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact a {
  font-size: 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
}

.contact a:hover,
.contact a:focus-visible {
  border-bottom-color: currentColor;
}

/* A native fold for a wink. */
details.wink {
  margin: 0.5rem auto 0;
  max-width: 30rem;
  font-style: italic;
}

details.wink summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  padding: 0.4rem 0;
}

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

details.wink summary::after {
  content: "?";
  color: var(--fire);
}

details.wink[open] summary::after {
  content: "";
}

details.wink summary:hover {
  color: var(--fire-text);
}

details.wink p {
  margin: 0.2rem 0 0;
  font-size: 1.35rem;
}

/* ---------- Inner pages. */
.head {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.head .plate {
  margin-top: 0.5rem;
  width: min(100%, 20rem);
}

.head .title {
  margin-top: 1.6rem;
}

.head .bar {
  margin-top: 1.1rem;
}

.prose {
  margin: 3rem auto 0;
  max-width: 30rem;
  text-align: center;
}

.prose p.lead {
  font-size: 1.3rem;
  line-height: 1.4;
  font-style: italic;
  text-wrap: balance;
}

.genres {
  margin: 1.4rem auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0;
  font-family: var(--display);
  font-size: var(--size-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.genres li + li::before {
  content: "∴";
  color: var(--fire);
  margin: 0 0.75em;
  letter-spacing: 0;
}

/* The volumes, on the NOT NOT PHILO page. */
.volumes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.volumes li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--hair);
}

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

.volumes .label {
  display: block;
  margin-bottom: 0.4rem;
}

.volumes h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.volumes .q {
  margin: 0.4rem auto 0;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.35;
  text-wrap: balance;
}

.volumes .line {
  margin: 0.5rem auto 0;
  color: var(--muted);
  font-size: var(--size-small);
}

/* ---------- Events: an axis with every gathering as a point on it. */
.axis {
  position: relative;
  margin: 2.2rem auto 0;
  padding: 0;
  list-style: none;
  max-width: 30rem;
}

.axis::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hair);
}

.axis li {
  position: relative;
  padding: 1.5rem 0 1.5rem;
  text-align: center;
}

.axis li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}

.axis li.soon::before {
  background: var(--fire);
  border-color: var(--fire);
}

.axis .when {
  display: block;
  padding-top: 1rem;
  background: var(--paper);
}

.axis h3 {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-wrap: balance;
}

.axis .where {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: var(--size-small);
}

.axis .line {
  margin: 0.55rem auto 0;
  max-width: 26rem;
  font-style: italic;
}

.axis-head {
  margin-top: 3.5rem;
}

/* ---------- Colophon. */
.colophon {
  margin-top: 6rem;
  text-align: center;
}

.colophon .seal {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  color: var(--ink);
}

.colophon p {
  margin: 0.25rem 0;
}

.colophon .ways {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1.5rem;
}

.colophon .ways a {
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
}

.colophon .signature {
  margin-top: 2.2rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.colophon .signature .emoji {
  font-family: var(--emoji);
  font-size: 1.3em;
  vertical-align: -0.1em;
  margin-right: 0.3em;
  letter-spacing: 0;
}

/* ---------- Pages cross-fade when moving within the site. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
}

/* ---------- Wider screens: more air, the same axis. */
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  .masthead {
    padding-top: 1.4rem;
  }

  .nav {
    max-width: none;
  }

  .threshold {
    padding-top: 1rem;
  }

  .threshold .plate {
    width: min(100%, 22rem);
  }

  .threshold .title {
    margin-top: 1.4rem;
    width: max-content;
    max-width: calc(100vw - 2 * var(--gutter));
  }

  .threshold .title span:first-child::after {
    content: " ";
  }

  .threshold .title span:nth-child(-n + 2) {
    display: inline;
  }

  .head .plate {
    width: min(100%, 22rem);
  }

  .sec {
    margin-top: 7rem;
  }
}

@media (max-width: 359px) {
  .title.wide {
    letter-spacing: 0.04em;
  }

  .title.long {
    letter-spacing: 0;
  }
}

/* ---------- Stillness. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .s,
  .node,
  .settle,
  .rise,
  .breath polygon,
  .js .sec.in .arc path {
    animation: none;
  }

  .s,
  .sec-head .arc path {
    stroke-dashoffset: 0;
  }

  .node {
    transform: none;
  }

  .settle {
    opacity: 0.45;
  }

  .pen {
    display: none;
  }

  .js .sec {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .onward svg {
    transition: none;
  }

  @view-transition {
    navigation: none;
  }
}
