/* pearl-snow.shop prefix .psd- · olive+cream · Nunito + Source Serif 4 */
:root {
  --psd-olive: #3f4a2e;
  --psd-olive-deep: #2a3320;
  --psd-cream: #f3efe4;
  --psd-cream-dark: #e4ddcf;
  --psd-ink: #1c1a14;
  --psd-accent: #6b7a4a;
  --psd-font-display: "Nunito", sans-serif;
  --psd-font-body: "Source Serif 4", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .psd-reduce * { animation: none !important; transition: none !important; }
}
body.psd-body {
  margin: 0;
  font-family: var(--psd-font-body);
  color: var(--psd-ink);
  background: var(--psd-cream);
  line-height: 1.65;
  font-size: 1.05rem;
}
a { color: var(--psd-olive-deep); }
.psd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; background: var(--psd-cream);
  border-bottom: 1px solid var(--psd-cream-dark); position: sticky; top: 0; z-index: 40;
}
.psd-logo {
  font-family: var(--psd-font-display); font-weight: 800; text-decoration: none;
  color: var(--psd-olive-deep); font-size: 1.15rem; letter-spacing: 0.02em;
}
.psd-nav-desktop { display: flex; gap: 1.25rem; }
.psd-nav-desktop a { text-decoration: none; font-family: var(--psd-font-display); font-weight: 600; font-size: 0.9rem; color: var(--psd-olive); }
.psd-nav-desktop a.is-active { color: var(--psd-olive-deep); border-bottom: 2px solid var(--psd-accent); }
.psd-burger { display: none; font-family: var(--psd-font-display); background: transparent; border: 1px solid var(--psd-olive); padding: 0.4rem 0.75rem; cursor: pointer; }
.psd-nav-panel {
  display: none; position: fixed; inset: 0; background: var(--psd-olive-deep); color: var(--psd-cream);
  flex-direction: column; justify-content: center; align-items: center; gap: 1.25rem; z-index: 50;
}
.psd-nav-panel.is-open { display: flex; }
.psd-nav-panel a { color: var(--psd-cream); font-family: var(--psd-font-display); font-size: 1.4rem; text-decoration: none; }
@media (max-width: 860px) {
  .psd-nav-desktop { display: none; }
  .psd-burger { display: inline-block; }
}
.psd-spy {
  position: fixed; right: 1rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.6rem; z-index: 30;
}
.psd-spy a {
  width: 10px; height: 10px; border-radius: 50%; background: var(--psd-cream-dark);
  border: 2px solid var(--psd-olive); text-indent: -9999px; overflow: hidden;
}
.psd-spy a.is-active { background: var(--psd-olive); }
@media (max-width: 860px) { .psd-spy { display: none; } }

/* L21: screen A brand, screen B enter TOC */
.psd-screen-a {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 3rem 1.5rem 4rem; background: linear-gradient(160deg, var(--psd-olive) 0%, var(--psd-olive-deep) 100%);
  color: var(--psd-cream); position: relative;
}
.psd-hero-caption {
  max-width: 32rem; opacity: 0.95; transition: opacity 0.2s ease;
}
.psd-hero-caption h1 {
  font-family: var(--psd-font-display); font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800; margin: 0 0 0.5rem; letter-spacing: -0.02em;
}
.psd-hero-caption p { margin: 0 0 1.25rem; font-size: 1.1rem; }
.psd-cta {
  display: inline-block; font-family: var(--psd-font-display); font-weight: 700;
  background: var(--psd-cream); color: var(--psd-olive-deep); text-decoration: none;
  padding: 0.75rem 1.4rem;
}
.psd-screen-b {
  min-height: 90vh; padding: 4rem 1.5rem; background: var(--psd-cream);
  display: grid; gap: 2rem; align-content: center; max-width: 48rem; margin: 0 auto;
}
.psd-screen-b h2 { font-family: var(--psd-font-display); color: var(--psd-olive-deep); font-size: 2rem; margin: 0; }
.psd-toc { list-style: none; padding: 0; margin: 0; }
.psd-toc li { border-top: 1px solid var(--psd-cream-dark); }
.psd-toc a {
  display: flex; justify-content: space-between; padding: 1rem 0;
  text-decoration: none; color: var(--psd-ink); font-family: var(--psd-font-display); font-weight: 700;
}
.psd-toc span { font-weight: 500; color: var(--psd-accent); }

/* S15 chapter title cards */
.psd-chapter-card {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  background: var(--psd-olive-deep); color: var(--psd-cream); text-align: center; padding: 2rem;
}
.psd-chapter-card h2 {
  font-family: var(--psd-font-display); font-size: clamp(2rem, 5vw, 3.5rem); margin: 0; max-width: 16ch;
}

/* C11 caption essay (text essay panels) */
.psd-essay { max-width: 42rem; margin: 0 auto; padding: 3rem 1.5rem; }
.psd-essay figure {
  margin: 0 0 2.5rem; padding: 1.5rem; background: var(--psd-cream-dark);
  border-left: 4px solid var(--psd-accent);
}
.psd-essay figcaption {
  font-family: var(--psd-font-display); font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--psd-olive); margin-bottom: 0.75rem;
}
.psd-essay h3 { font-family: var(--psd-font-display); margin: 0 0 0.5rem; color: var(--psd-olive-deep); }

/* K02 split contact */
.psd-split-contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 3rem 1.5rem; max-width: 56rem; margin: 0 auto;
}
@media (max-width: 760px) { .psd-split-contact { grid-template-columns: 1fr; } }
.psd-form label { display: block; margin: 0.75rem 0 0.25rem; font-family: var(--psd-font-display); font-weight: 600; }
.psd-form input, .psd-form textarea {
  width: 100%; padding: 0.65rem; border: 1px solid var(--psd-olive); background: #fff; font: inherit;
}
.psd-form button {
  margin-top: 1rem; font-family: var(--psd-font-display); font-weight: 700;
  background: var(--psd-olive); color: var(--psd-cream); border: 0; padding: 0.75rem 1.25rem; cursor: pointer;
}
.psd-form-success { margin-top: 1rem; color: var(--psd-olive-deep); font-weight: 600; }

.psd-page { max-width: 42rem; margin: 0 auto; padding: 3rem 1.5rem; }
.psd-page h1 { font-family: var(--psd-font-display); color: var(--psd-olive-deep); font-size: 2.2rem; }
.legal-main { max-width: 42rem; margin: 0 auto; padding: 3rem 1.5rem; }
.legal-main h1, .legal-main h2 { font-family: var(--psd-font-display); color: var(--psd-olive-deep); }

.psd-footer {
  border-top: 1px solid var(--psd-cream-dark); padding: 2rem 1.5rem 3rem; text-align: center;
}
.psd-footer-ribbon {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.25rem;
  font-family: var(--psd-font-display); font-size: 0.85rem; margin-bottom: 1rem;
}
.psd-footer-ribbon a { text-decoration: none; color: var(--psd-olive); }
.psd-footer-brand { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--psd-accent); margin: 0 0 1rem; }
.psd-contact-block { font-size: 0.95rem; }
.psd-contact-block p { margin: 0.25rem 0; }

/* CB09 inline under header */
.psd-cookie {
  background: var(--psd-olive-deep); color: var(--psd-cream); padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--psd-accent);
}
.psd-cookie[hidden] { display: none !important; }
.psd-cookie-inner { max-width: 70rem; margin: 0 auto; }
.psd-cookie-text { margin: 0 0 0.75rem; font-size: 0.9rem; }
.psd-cookie-text a { color: var(--psd-cream); }
.psd-cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.psd-cookie-actions button, .psd-cookie-settings button {
  font-family: var(--psd-font-display); border: 1px solid var(--psd-cream); background: transparent;
  color: var(--psd-cream); padding: 0.4rem 0.85rem; cursor: pointer;
}
.psd-cookie-actions button[data-psd-accept] { background: var(--psd-cream); color: var(--psd-olive-deep); }
.psd-cookie-settings { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.psd-cookie-settings[hidden] { display: none !important; }
