@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/dm-sans.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/instrument-serif-italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #343a36;
  --muted: #787a70;
  --teal: #226052;
  --orange: #df673d;
  --shelf-width: min(25vw, 26vh);
  --shelf-travel: 20px;
  --ease-reveal: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
.coming-soon {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.shelf {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  width: var(--shelf-width);
  background-image: url('assets/bookshelves.webp');
  background-repeat: no-repeat;
  /* Keep the reference's full vertical canvas: every shelf row, its
     original cast shadow, and the white space below remain in frame.
     Clip only horizontally at the viewport edges on smaller screens. */
  background-size: auto 100%;
  pointer-events: none;
  animation-duration: 860ms;
  animation-timing-function: var(--ease-reveal);
  animation-fill-mode: both;
}
.shelf--left { left: 0; background-position: left center; animation-name: shelf-enter-left; }
.shelf--right { right: 0; background-position: right center; animation-name: shelf-enter-right; }
.message {
  width: min(600px, calc(100% - 2 * var(--shelf-width) - 36px));
  padding-block: 20px;
  text-align: center;
}
/* Three quiet groups, starting 200ms after the shelves and finishing at 1200ms. Animate individual
   blocks so the message container stays centered throughout the reveal. */
.message > * { animation: message-reveal 760ms var(--ease-reveal) both; }
.message > .wordmark { animation-delay: 200ms; }
.message > .status, .message > h1 { animation-delay: 320ms; }
.message > .description, .message > .invitation,
.message > .divider, .message > .endorsement { animation-delay: 440ms; }
p, h1 { margin: 0; }
.wordmark {
  font-weight: 600;
  font-size: clamp(36px, 3.8vw, 50px);
  line-height: 1.1;
  letter-spacing: -.8px;
}
.wordmark-dot { color: var(--orange); font-weight:300; }
.status {
  margin-top: clamp(24px, 4.5vh, 40px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid currentColor;
  border-radius: 999px;
}
.status span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
h1 {
  margin-top: 20px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -1.3px;
  text-wrap: balance;
}
.description {
  max-width: 390px;
  margin: 24px auto 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}
.invitation {
  margin-top: 24px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.35;
  color: var(--muted);
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: clamp(20px, 3.8vh, 30px) auto;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  opacity: .45;
  user-select: none;
}
.endorsement {
  margin-top: 0;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.endorsement span {
  display: inline-block;
  line-height: 1;
}
.endorsement-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity .15s ease;
}
.endorsement-link:hover {
  opacity: .72;
}
.endorsement-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.endorsement-logo {
  display: block;
  height: 12px;
  width: auto;
  flex-shrink: 0;
  transform: translateY(1px);
}
@keyframes shelf-enter-left {
  from { opacity: 0; transform: translateX(calc(-1 * var(--shelf-travel))); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes shelf-enter-right {
  from { opacity: 0; transform: translateX(var(--shelf-travel)); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes message-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@supports (height: 100dvh) { :root { --shelf-width: min(25vw, 26dvh); } }
@media (max-width: 700px) {
  :root { --shelf-width: min(13vw, 26vh); --shelf-travel: 10px; }
  .message { width: calc(100% - 2 * var(--shelf-width) - 24px); max-width: 440px; }
  .wordmark { font-size: 38px; }
  h1 { font-size: clamp(34px, 7.7vw, 49px); letter-spacing: -.7px; line-height: 1.12; }
  .description { font-size: 14px; line-height: 1.7; margin-top: 22px; }
  .invitation { font-size: 20px; }
}
@media (max-width: 360px) {
  :root { --shelf-width: min(10vw, 26vh); }
  .wordmark { font-size: 34px; }
  h1 { font-size: 32px; }
  .description { font-size: 13px; }
  .invitation { font-size: 18px; }
}
@media (max-height: 600px) {
  .message { padding-block: 12px; }
  .wordmark { font-size: 32px; }
  .status { margin-top: 16px; font-size: 10px; padding: 4px 12px; }
  h1 { margin-top: 12px; font-size: clamp(30px, 4vw, 43px); line-height: 1.08; }
  .description { margin-top: 14px; font-size: 13px; line-height: 1.55; }
  .invitation { margin-top: 14px; font-size: 18px; }
  .divider { margin: 14px auto; font-size: 10px; gap: 8px; }
  .endorsement { margin-top: 0; }
}
@media (max-height: 400px) {
  .wordmark { font-size: 28px; }
  .status { margin-top: 10px; font-size: 9px; padding: 3px 10px; }
  h1 { margin-top: 8px; font-size: 30px; }
  .description { margin-top: 10px; font-size: 12px; line-height: 1.4; }
  .invitation { margin-top: 8px; font-size: 16px; }
  .divider { margin: 8px auto; font-size: 9px; gap: 6px; }
  .endorsement { margin-top: 0; font-size: 10px; }
  .endorsement-logo { height: 11px; transform: translateY(0.5px); }
}
@media (prefers-reduced-motion: reduce) {
  .shelf, .message > * { animation: none; }
}
