/* ============================================================
   bayoofficial.com — the biblo layer
   spaciom-npc design system · yeezy first, apple second
   warm ivory #FFFFFD · cream #EEE0C5 · tan #E7D7BB
   brass #9A7B4F · blush #F0B9C2 · warm ink #23201B
   ============================================================ */

:root {
  --ivory: #FFFFFD;
  --cream: #EEE0C5;
  --tan: #E7D7BB;
  --brass: #9A7B4F;
  --blush: #F0B9C2;
  --ink: #23201B;
  --ink-soft: rgba(35, 32, 27, 0.72);
  --ink-faint: rgba(35, 32, 27, 0.52);
  --rule: rgba(154, 123, 79, 0.28);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", Arial, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cream); color: var(--ink); }

img { max-width: 100%; display: block; }

a {
  color: var(--brass);
  text-decoration: none;
  text-underline-offset: 0.22em;
  transition: color 0.4s var(--ease);
}
a:hover { color: var(--ink); }

/* ---------- layout ---------- */

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
}

.screen { padding: clamp(5rem, 12vh, 9rem) 0; }
.screen:first-of-type { padding-top: clamp(9rem, 20vh, 13rem); }

.rule-top { border-top: 1px solid var(--rule); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 253, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(154, 123, 79, 0.16);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brass);
  flex: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.foot-seal {
  display: block;
  width: clamp(140px, 26vw, 190px);
  margin: 0 auto 2rem;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.25rem);
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; }

/* ---------- type ---------- */

.label {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--brass);
  font-weight: 500;
  margin-bottom: 2rem;
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; }

.hero-title {
  font-size: clamp(3.4rem, 9.5vw, 7.25rem);
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  margin-bottom: 2.5rem;
}

.lede {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
}

.prose { max-width: 38rem; }
.prose p + p { margin-top: 1.5rem; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 500; }
.lede + .prose { margin-top: 2rem; }

.pull {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 26ch;
}

/* one human moment per surface */
.blush-mark {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blush);
  margin-right: 0.7rem;
  vertical-align: baseline;
  transform: translateY(-0.05rem);
}

/* ---------- portrait plates ----------
   real photography replaces these plates.
   search for PORTRAIT SLOT in the html. */

.plate {
  background: var(--cream);
  border: 1px solid var(--tan);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.plate .monogram {
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--ink);
  line-height: 1;
  user-select: none;
}

.plate .monogram em { font-style: normal; color: var(--brass); }

/* the dot of the monogram, given feathers */
.feather-dot {
  display: inline-block;
  font-size: 0.13em;
  margin-left: 0.14em;
  transform: translateY(-0.55em);
  opacity: 0.85;
  filter: sepia(0.6) saturate(1.5) brightness(0.78);
}

/* marks in the motto line — text-sized, stay inline */
.lede-mark { font-size: 0.92em; }

/* keep a word and its mark together */
.nowrap { white-space: nowrap; }

.plate-mark {
  width: clamp(200px, 64%, 340px);
  height: auto;
}

.plate-tall { aspect-ratio: 4 / 5; }
.plate-wide { aspect-ratio: 16 / 10; }
.plate-book { aspect-ratio: 2 / 3; }


.plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-frame { max-width: 540px; margin-inline: auto; }
.portrait-round { aspect-ratio: 1 / 1; border-radius: 50%; max-width: 420px; margin-inline: auto; }
.portrait-round img { object-position: center 42%; }

/* ---------- buy button ---------- */

.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  background: var(--ink);
  color: var(--ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: end;
}

/* gentle breathing — a hearth, not a notification */
@keyframes breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.022); }
}
.breathe .monogram,
.breathe .plate-mark { animation: breathe 9s ease-in-out infinite alternate; }

/* ---------- lanes ---------- */

.lanes { list-style: none; }

.lane {
  border-top: 1px solid var(--rule);
  padding: 2.4rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease);
}
.lanes .lane:last-child { border-bottom: 1px solid var(--rule); }

.lane:hover { background: rgba(238, 224, 197, 0.35); }

.lane-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.lane-desc { display: block; color: var(--ink-faint); max-width: 44ch; }

.lane-arrow {
  color: var(--brass);
  font-size: 1.5rem;
  transition: transform 0.5s var(--ease);
}
.lane:hover .lane-arrow { transform: translateX(0.5rem); }

/* ---------- feature card (journal anchor) ---------- */

.feature {
  background: var(--cream);
  border: 1px solid var(--tan);
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid;
  gap: 1.75rem;
}

.feature .kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--brass);
  font-weight: 500;
}

.feature-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
}

.feature-sub { color: var(--ink-soft); font-size: 1.15rem; }

.feature-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brass);
}
.feature-link:hover { color: var(--brass); }

/* ---------- archive ---------- */

.archive { list-style: none; margin-top: 3rem; }
.archive li {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(154, 123, 79, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  color: var(--ink-faint);
  font-size: 0.98rem;
}
.archive li:last-child { border-bottom: 1px solid rgba(154, 123, 79, 0.18); }
.archive time { flex: none; font-size: 0.85rem; letter-spacing: 0.06em; }

/* ---------- entry (journal post) ---------- */

.entry-head { max-width: 46rem; }
.entry-title { font-size: clamp(2.8rem, 7vw, 5.5rem); margin: 1.5rem 0; }
.entry-meta { color: var(--ink-faint); font-size: 0.95rem; letter-spacing: 0.04em; }
.entry-body { max-width: 38rem; margin-top: 4rem; }

.back { display: inline-block; margin-bottom: 3rem; font-size: 0.95rem; }

/* ---------- entry media slots ----------
   marked slots for real photography / film embeds.
   search for PHOTO SLOT / VIDEO SLOT in the html. */

.photo-slot { margin: 3.5rem 0; }

.slot-label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--brass);
  font-weight: 500;
  user-select: none;
}

.photo-slot figcaption {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* the year, as shared — link list inside an entry */
.year-list { list-style: none; margin: 1.75rem 0 0; }
.year-list li {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(154, 123, 79, 0.18);
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.year-list li:last-child { border-bottom: 1px solid rgba(154, 123, 79, 0.18); }
.yl-label { color: var(--ink-faint); }
.year-list a { overflow-wrap: anywhere; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 4rem;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: baseline;
}

/* ---------- motion: slow, eased, one at a time ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .breathe .monogram,
  .breathe .plate-mark { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .plate-tall { aspect-ratio: 16 / 11; }
  .lane { grid-template-columns: 1fr; gap: 0.75rem; }
  .lane-arrow { display: none; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.88rem; }
}

/* biblo's transmissions — the instagram feed, one embed per post */
.ig-grid {
  display: grid;
  gap: 2.5rem;
  justify-items: center;
  margin-top: 2.5rem;
}
.ig-embed {
  width: min(100%, 540px);
  height: 680px;
  border: 1px solid var(--tan);
  border-radius: 6px;
  background: var(--cream);
}

/* biblo's dispatches — the x feed, lights up with the first thread */
.x-feed {
  width: min(100%, 540px);
  margin: 2.5rem auto 0;
  border: 1px solid var(--tan);
  border-radius: 6px;
  background: var(--cream);
  overflow: hidden;
  min-height: 160px;
}

/* the feather that marks the biblo tab — same brown as the monogram's dot */
.nav-feather {
  display: inline-block;
  font-size: 0.85em;
  margin-left: 0.2em;
  filter: sepia(0.6) saturate(1.5) brightness(0.78);
}

/* the lane feather sits closer to the word than the nav feather */
.lane-title .nav-feather {
  margin-left: 0.08em;
}

/* ---------- embedded posts (temporary) ---------- */

.embed-frame {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.embed-frame iframe {
  display: block;
  width: 100%;
  height: 85vh;
  min-height: 1400px;
  border: 0;
}

.embed-fallback {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.embed-fallback a { color: var(--ink); }

/* ---------- hero window: a world you peer into ----------
   the owl library, alive. cinematic frame, slow drift,
   parallax depth, fireflies — and now and then a feather
   escapes the frame and drifts up the page. */

.hero .hero-title { margin-bottom: 1rem; }
.hero .lede { margin-bottom: clamp(2rem, 4vw, 3.25rem); }

.hero-window {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--tan);
  border-radius: 8px;
  overflow: hidden;
  background: #1d1712;
  isolation: isolate;
}

/* golden light bleeding off the frame onto the page */
.hero-window-glow {
  position: absolute;
  inset: -8%;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 30%, rgba(255, 214, 140, 0.34), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(154, 123, 79, 0.22), transparent 70%);
  filter: blur(28px);
  animation: glow-pulse 11s ease-in-out infinite alternate;
}
@keyframes glow-pulse {
  from { opacity: 0.75; transform: scale(1); }
  to   { opacity: 1;    transform: scale(1.05); }
}

/* the living scene — an extremely slow drift, like watching clouds */
.hero-img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  animation: scene-drift 48s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes scene-drift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.07) translate(-1.2%, 1%); }
}

/* the vignette: edges fall away, you peer into depth */
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 50% 42%, transparent 55%, rgba(20, 14, 9, 0.42) 100%),
    linear-gradient(to top, rgba(20, 14, 9, 0.28), transparent 26%);
  pointer-events: none;
}

/* fireflies inside the world */
.hero-motes { position: absolute; inset: 0; pointer-events: none; }
.mote {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #ffeec2 0%, rgba(255, 214, 140, 0.9) 40%, transparent 70%);
  box-shadow: 0 0 10px 2px rgba(255, 214, 140, 0.55);
  animation: mote-rise linear infinite, mote-flicker ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes mote-rise {
  from { transform: translateY(12%) translateX(0); }
  to   { transform: translateY(-115%) translateX(2.5vw); }
}
@keyframes mote-flicker {
  from { opacity: 0.15; }
  to   { opacity: 1; }
}

/* a feather that escapes the frame and drifts up the page */
.escaped-feather {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  font-size: 1.15rem;
  filter: sepia(0.65) saturate(1.5) brightness(0.82);
  animation: feather-escape 7.5s var(--ease) forwards;
  will-change: transform, opacity;
}
@keyframes feather-escape {
  0%   { opacity: 0; transform: translateY(0) rotate(-14deg) scale(0.7); }
  12%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-34vh) translateX(6vw) rotate(38deg) scale(1.05); }
}

@media (max-width: 820px) {
  .hero-window { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero-window-glow { animation: none; }
  .mote, .escaped-feather { display: none; }
}
