
:root {
  --paper: #f4efe7;
  --paper-deep: #ede6db;
  --ink: #26231f;
  --muted: #70665a;
  --line: rgba(38, 35, 31, 0.12);
  --max: 1180px;
  --reading: 46rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.55), transparent 38%),
    linear-gradient(180deg, #f7f2ea 0%, var(--paper) 50%, #f2ebe0 100%);
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.014) 1px, transparent 1px);
  background-size: 100% 3px, 3px 100%;
  opacity: 0.11;
  mix-blend-mode: multiply;
}
a { color: inherit; }

.site-header {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  padding: 1.15rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(244,239,231,0.88), rgba(244,239,231,0.55));
  border-bottom: 1px solid rgba(38, 35, 31, 0.06);
}
.brand {
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  opacity: 0.78;
}
.site-nav a:hover { color: var(--ink); opacity: 1; }

.section {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
}

.hero {
  padding: 2.5rem 0 3rem;
}
.hero-stage {
  position: relative;
  width: min(100%, 820px);
  margin: 0 auto;
  aspect-ratio: 0.73 / 1;
  min-height: 820px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.4s ease-in-out;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(40, 31, 23, 0.08);
}


.chapter {
  padding: 3rem 0 1rem;
}
.chapter-meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 3rem;
  align-items: start;
}
.copy.longform {
  max-width: var(--reading);
}
.copy h1 {
  font-size: clamp(2rem, 1.65rem + 1vw, 3rem);
  line-height: 1.12;
  font-weight: 400;
  margin: 0 0 1.2rem;
}
.copy h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 400;
  margin: 2.6rem 0 0.8rem;
}
.copy p {
  margin: 0 0 1.05rem;
  font-size: 1.11rem;
}
.visual {
  position: sticky;
  top: 6.5rem;
  margin: 0;
  opacity: 0.78;
}
.visual img,
.motif-inline img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(40, 31, 23, 0.06);
}
.motif-inline {
  margin: 2rem 0 2.2rem;
  max-width: 19rem;
  opacity: 0.8;
}
.motif-right { margin-left: auto; }

.diagram-placeholder { display: none; }

.closing {
  padding: 4.5rem 0 7rem;
}
.closing-inner {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  max-width: 42rem;
}
.closing-text {
  font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.8rem);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}
.cta {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.05rem;
  font-size: 1.05rem;
}
.contact-email {
  margin-top: 1.3rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .visual {
    position: static;
    max-width: 340px;
    margin-left: auto;
  }
  .hero-stage {
    min-height: 700px;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(calc(100% - 1.25rem), var(--max));
    padding: 0.95rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  .site-nav { flex-wrap: wrap; gap: 0.8rem 1rem; }
  .section { width: min(calc(100% - 1.25rem), var(--max)); }
  .hero { padding-top: 1.25rem; }
  .hero-stage {
    width: 100%;
    min-height: 610px;
  }
  .copy p { font-size: 1.03rem; }
  .motif-inline { max-width: 14rem; }
}
