@font-face { font-family: "Gloock"; src: url("../fonts/Gloock-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/Alegreya-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/Alegreya-400italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/Alegreya-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --haze: #EDE7EC;
  --haze-warm: #E6DADF;
  --ink: #361B26;
  --smoke: #6B5265;
  --sea: #1D5560;
  --night: #24121C;
  --stone: #DDBB82;
  --focus: var(--sea);
  --wm: min(26rem, 72vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (min-width: 48em) { html { font-size: 118.75%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--haze);
  color: var(--ink);
  font: 400 1rem/1.6 "Alegreya", Georgia, serif;
}

a { color: var(--sea); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: 0.5rem 1rem; background: var(--ink); color: var(--haze); z-index: 10; }
.skip:focus { top: 1rem; }

h1, h2 { font-family: "Gloock", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; }

/* hero */
.hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.25rem 1.25rem 0;
  background: linear-gradient(var(--haze), var(--haze-warm) 62%, var(--haze));
  text-align: center;
}
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; margin-bottom: 2.5rem; }
.mark { width: min(13rem, 46vw); height: auto; fill: var(--ink); }
.hero h1:not(.title) { margin-top: 1.4rem; line-height: 0; }
.wordmark { display: block; width: var(--wm); height: auto; fill: currentColor; }
.horizon { width: 100%; max-width: 1240px; border: 0; border-top: 1px solid var(--sea); margin: 1.6rem 0 0.35rem; }
.mirage {
  color: var(--smoke);
  opacity: 0.5;
  height: calc(var(--wm) * 304 / 634 * 0.75);
  overflow: hidden;
}
.mirage .wordmark {
  transform-origin: 50% 0;
  transform: translateY(115%) scaleY(-1.15);
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgba(0,0,0,.4) 2px 4px), linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.5) 28%, transparent 54%);
  -webkit-mask-composite: source-in;
  mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgba(0,0,0,.4) 2px 4px), linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.5) 28%, transparent 54%);
  mask-composite: intersect;
}
.welcome { max-width: 40rem; margin: 1.5rem 0 0; }
.lede { font-size: 1.3rem; line-height: 1.45; margin: 0 0 1.5rem; }
.cta { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.9rem 1.4rem; }
.cta span { color: var(--smoke); }
.button {
  display: inline-block; padding: 0.7rem 1.5rem;
  background: var(--sea); color: var(--haze);
  text-decoration: none; font-size: 1.05rem;
}
.button:hover { background: var(--ink); }

/* sections */
main, .night section { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
main { padding-top: 7rem; }
section { display: grid; gap: 1.2rem 3rem; margin-bottom: 7rem; }
section > h2 { display: flex; align-items: baseline; gap: 0.6rem; }
.moon { flex: none; width: 0.6em; height: 0.6em; fill: currentColor; color: var(--smoke); }
.body { display: grid; gap: 1.5rem 3rem; align-items: start; }
.body p, .shelves li { max-width: 62ch; }
.text p:first-child { margin-top: 0; }
.shelves { list-style: none; margin: 0; padding: 0; }
.shelves li { margin-bottom: 0.7rem; break-inside: avoid; }
.aside { color: var(--smoke); margin: 0; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); }
figcaption { font-size: 0.89rem; color: var(--smoke); margin-top: 0.5rem; }

@media (min-width: 60em) {
  section { grid-template-columns: minmax(14rem, 1fr) 2.4fr; }
  section > h2 { position: sticky; top: 2rem; align-self: start; }
  .moon { margin-left: -1em; }
  .body { grid-template-columns: 1fr 19rem; }
  .body > figure { grid-column: 2; grid-row: 1 / span 3; }
  .night .body { grid-template-columns: 1fr; }
}

/* visit: nightfall */
.night { background: var(--night); color: var(--haze); padding: 6rem 0 2rem; --focus: var(--stone); }
.night section { margin-bottom: 4rem; }
.night h2 { color: var(--stone); }
.night .moon { color: var(--stone); }
.night a { color: var(--stone); }
.contacts { list-style: none; padding: 0; margin: 1.5rem 0; columns: 2 16rem; column-gap: 2.5rem; }
.contacts li { margin-bottom: 0.5rem; break-inside: avoid; }
.signoff { color: var(--stone); font-size: 1.2rem; }
.legal { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; font-size: 0.89rem; }

/* 404 */
.lost .hero { max-width: none; min-height: 100vh; padding-top: 4rem; }
.lost .horizon { margin-bottom: 0; }
.title { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1; margin-top: 1.5rem; }
