* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", Arial, sans-serif;
  background: var(--dark-bg);
  color: var(--dark-fg);
  transition: background .35s ease, color .35s ease;
}
body.theme-light { background: var(--light-bg); color: var(--light-fg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-shell {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

.menu-trigger,
.menu-close,
.admin-pi {
  position: fixed;
  z-index: 80;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font-family: "Noto Sans Symbols 2", "Segoe UI Symbol", "Apple Symbols", "Source Sans 3", sans-serif;
  line-height: 1;
}
.menu-trigger {
  top: 20px;
  right: 24px;
  font-size: clamp(2.9rem, 6vw, 4rem);
}
.menu-close {
  top: 22px;
  right: 24px;
  font-size: clamp(2.9rem, 5vw, 3.8rem);
  z-index: 95;
  display: none;
}
body.menu-open .menu-close { display: block; }
body.menu-open .menu-trigger { opacity: 0; pointer-events: none; }
.admin-pi {
  right: 18px;
  bottom: 14px;
  font-size: 1.55rem;
  opacity: 0.38;
}
.admin-pi:hover { opacity: 0.72; }

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  background: inherit;
  transition: opacity .8s ease, visibility .8s ease;
  pointer-events: none;
}
.intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-inner {
  text-align: center;
  padding: 2rem;
}
.intro-brand,
.home-brand {
  margin: 0;
  font-family: "Marcellus", serif;
  font-weight: 400;
  text-transform: uppercase;
}
.intro-brand {
  font-size: clamp(4rem, 18vw, 12rem);
  line-height: .86;
  letter-spacing: .015em;
  animation: brandZoom calc(var(--intro-seconds) * 1s) ease forwards;
}
.intro-since {
  font-family: "Marcellus", serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-top: 1.2rem;
  animation: sinceFade calc(var(--intro-seconds) * 1s) ease forwards;
}
@keyframes brandZoom {
  0% { opacity: 0; transform: scale(.965); }
  16% { opacity: 1; transform: scale(1); }
  82% { opacity: 1; transform: scale(1.022); }
  100% { opacity: 0; transform: scale(1.03); }
}
@keyframes sinceFade {
  0%, 8% { opacity: 0; transform: translateY(8px); }
  18%, 82% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-3px); }
}

.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgba(22, 28, 38, 0.96);
  backdrop-filter: blur(18px);
}
body.theme-light .overlay-menu {
  background: rgba(245, 241, 234, 0.96);
}
.overlay-menu.open {
  display: block;
}
.overlay-scroll {
  min-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 5.2rem 9vw 3.5rem;
}
.overlay-top-brand {
  font-family: "Marcellus", serif;
  font-size: clamp(2.9rem, 10vw, 6.4rem);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 1.5rem;
}
.overlay-nav {
  display: grid;
  gap: .35rem;
  margin-top: .2rem;
}
.overlay-link {
  display: block;
  font-family: "Marcellus", serif;
  font-size: clamp(2.1rem, 7vw, 4.3rem);
  line-height: 1.04;
  padding: .55rem 0 .8rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.overlay-link.active { opacity: .55; }

.main-content { min-height: 100vh; min-height: 100dvh; }

body.home-with-intro .home-stage { opacity: 0; }
body.home-with-intro.intro-done .home-stage,
body.intro-done .home-stage { opacity: 1; }

.main-home {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
}
.home-stage {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: max(5.5rem, calc(env(safe-area-inset-top) + 4rem)) 4.8vw max(1.2rem, calc(env(safe-area-inset-bottom) + 0.8rem));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity .7s ease;
}
.center-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding-top: clamp(13vh, 20vh, 24vh);
}
.home-brand {
  font-size: clamp(4rem, 13vw, 10.4rem);
  line-height: .88;
  letter-spacing: .012em;
  display: block;
  width: 100%;
  max-width: 92vw;
  margin-inline: auto;
  text-align: center;
  white-space: nowrap;
}
.home-since {
  margin-top: 1rem;
  font-family: "Marcellus", serif;
  font-size: clamp(1.35rem, 3.2vw, 2.25rem);
}
.home-since span { margin-left: .28em; }
.bottom-block {
  display: flex;
  margin-top: auto;
  flex-direction: column;
  gap: .95rem;
  align-items: flex-start;
  padding-bottom: .35rem;
}
.home-tagline {
  font-family: "Marcellus", serif;
  font-size: clamp(1.3rem, 3vw, 2.5rem);
  line-height: 1.16;
}
.signature-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}
.signature-brand,
.signature-author {
  display: block;
  width: max-content;
}
.signature-brand {
  font-family: "Marcellus", serif;
  font-size: clamp(2rem, 4.5vw, 3.55rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .014em;
}
.signature-author {
  margin-top: .18rem;
  font-size: clamp(.88rem, 2.1vw, 1.55rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}

.main-inner {
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 6.2rem 7vw 4rem;
}
.page-head { margin-bottom: 2rem; }
.page-head h1,
.detail-title {
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.page-subtitle,
.detail-subtitle,
.card-subtitle {
  margin: .8rem 0 0;
  font-family: "Marcellus", serif;
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  opacity: .86;
}
.page-layout,
.detail-layout {
  display: grid;
  gap: 2.1rem;
}
.page-layout.has-image,
.detail-layout {
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  align-items: start;
}
.page-image,
.entry-image {
  margin: 0;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 5%, transparent);
}
.page-image.rounded,
.entry-image.rounded { border-radius: 28px; }
.page-image.circle,
.entry-image.circle { border-radius: 999px; aspect-ratio: 1 / 1; }
.page-image img,
.entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-rich,
.entry-body p,
.entry-body li {
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  line-height: 1.82;
}
.page-rich p { margin: 0 0 1rem; }
.page-rich ul, .page-rich ol { margin: 0 0 1rem 1.2rem; }
.cards-grid {
  display: grid;
  gap: 2rem;
}
.entry-card {
  display: grid;
  grid-template-columns: minmax(170px, 280px) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}
.entry-body h2 {
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.05;
}
.eyebrow {
  margin-bottom: .5rem;
  font-size: .98rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .62;
}
.back-link { margin-bottom: .8rem; }
.text-link,
.back-link a {
  border-bottom: 1px solid currentColor;
  padding-bottom: .08rem;
}
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.embed-box {
  margin-top: 1.35rem;
  border-radius: 22px;
  overflow: hidden;
}
.embed-box iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  background: #fff;
}

@media (max-width: 920px) {
  .overlay-scroll { padding-left: 10vw; padding-right: 10vw; }
  .page-layout.has-image,
  .detail-layout,
  .entry-card { grid-template-columns: 1fr; }
  .page-image,
  .entry-image { max-width: 360px; }
}

@media (max-width: 720px) {
  .menu-trigger, .menu-close { right: 16px; }
  .menu-trigger { top: 14px; font-size: 3rem; }
  .menu-close { top: 16px; font-size: 2.8rem; }
  .admin-pi { right: 12px; bottom: 10px; font-size: 1.45rem; }
  .home-stage { padding: max(4.8rem, calc(env(safe-area-inset-top) + 3rem)) 8vw max(1rem, calc(env(safe-area-inset-bottom) + .7rem)); }
  .center-hero { justify-content: flex-start; padding-top: clamp(11vh, 17vh, 21vh); min-height: 0; }
  .home-brand { font-size: clamp(3.15rem, 13.2vw, 6.2rem); max-width: 100%; white-space: nowrap; }
  .intro-brand { font-size: clamp(3.15rem, 13.2vw, 6.2rem); }
  .home-since { font-size: clamp(1.1rem, 5vw, 1.7rem); }
  .bottom-block { margin-top: auto; gap: 1rem; }
  .home-tagline { font-size: clamp(1rem, 6vw, 1.7rem); max-width: 100%; }
  .signature-brand { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .signature-author { font-size: clamp(.72rem, 3.3vw, 1rem); }
  .overlay-link { font-size: clamp(1.65rem, 7vw, 2.6rem); }
  .overlay-top-brand { font-size: clamp(2.3rem, 15vw, 4rem); }
  .main-inner { padding: 5rem 8vw 3rem; }
}
