/* fabrication.live while Fabrication Live is on its way: the night and
 * gold of the creator site (packages/creator/site/assets/site.css). Its
 * fonts are copied in by build.mjs, from the creator site's own. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/fraunces-latin-opsz-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/fraunces-latin-opsz-italic.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
}

:root {
  --night: #0b0d14;
  --ink: #efe7d6;
  --ink-dim: #c9c1b1;
  --ink-faint: #8d877b;
  --gold: #d6b26a;
  --gold-soft: rgba(214, 178, 106, 0.16);
  --line: rgba(239, 231, 214, 0.18);
  --brand: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--night);
}
/* No background of its own, so the backdrop (behind it) shows. */
html,
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* The backdrop fills the window; night falls over it from the left and
 * the bottom, so the words read. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
}
.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.04);
  animation: drift 40s ease-in-out infinite alternate;
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 20, 0.92) 0%, rgba(11, 13, 20, 0.8) 42%, rgba(11, 13, 20, 0.4) 62%, rgba(11, 13, 20, 0.3) 100%),
    linear-gradient(0deg, rgba(11, 13, 20, 0.95) 0%, rgba(11, 13, 20, 0) 40%);
}
@keyframes drift {
  from {
    transform: scale(1.04) translateX(0);
  }
  to {
    transform: scale(1.1) translateX(-1.5%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .backdrop img {
    animation: none;
  }
}

.stage {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 9vh, 110px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--brand);
  font-size: 26px;
  letter-spacing: 0.01em;
}
.wordmark em {
  font-style: italic;
  color: var(--gold);
}
.wordmark svg {
  filter: drop-shadow(0 0 12px rgba(214, 178, 106, 0.6));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wordmark:hover svg {
  transform: rotate(45deg);
}

.soon {
  display: block;
  width: fit-content;
  margin: clamp(28px, 6vh, 56px) 0 14px;
  padding: 5px 12px;
  border: 1px solid rgba(214, 178, 106, 0.45);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(11, 13, 20, 0.6);
}

.lede {
  max-width: 32em;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  text-shadow: 0 1px 16px rgba(11, 13, 20, 0.8);
}

.writers {
  max-width: 32em;
  margin: clamp(24px, 4vh, 40px) 0 0;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.writers .lede {
  margin-bottom: 22px;
}

/* The gold button, as on the creator site (.btn.primary there). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn.primary {
  color: #1a1408;
  background: linear-gradient(180deg, #f1d48d, var(--gold) 55%, #b58c3c);
  box-shadow:
    0 8px 30px -8px rgba(214, 178, 106, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 40px -8px rgba(214, 178, 106, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* The sample cover: a book on the shelf, tipped toward the reader. */
.cover {
  margin: 0;
  justify-self: center;
  width: min(100%, 380px);
  perspective: 1200px;
}
.cover img {
  width: 100%;
  border-radius: 4px 8px 8px 4px;
  box-shadow:
    -1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 8px 18px rgba(0, 0, 0, 0.4);
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cover:hover img {
  transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
}
.cover figcaption {
  margin-top: 18px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(11, 13, 20, 0.9), 0 0 18px rgba(11, 13, 20, 0.9);
}
.cover figcaption span {
  white-space: nowrap;
}
.cover cite {
  color: var(--ink);
  font-style: italic;
  font-family: var(--brand);
  font-size: 15px;
}

.foot {
  padding: 18px var(--gutter) 22px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 12px;
}

@media (max-width: 760px) {
  .stage {
    grid-template-columns: 1fr;
    padding-top: 32px;
    text-align: center;
  }
  .backdrop::after {
    background: linear-gradient(0deg, rgba(11, 13, 20, 0.96) 0%, rgba(11, 13, 20, 0.7) 55%, rgba(11, 13, 20, 0.55) 100%);
  }
  .wordmark {
    font-size: 22px;
  }
  .soon,
  .lede,
  .writers {
    margin-left: auto;
    margin-right: auto;
  }
  .cover {
    width: min(70vw, 300px);
  }
}
