:root {
  --ink: #463a47;
  --muted: #655865;
  --plum: #775d73;
  --plum-deep: #5f495c;
  --lilac: #e4d8e3;
  --line: #d4c7d3;
  --rule: rgba(119, 93, 115, 0.28);
  --sage-ink: #35463e;
  --sage: #526d60;
  --sage-soft: #d7e6dc;
  --peach-soft: #f3e2d6;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.88);
  --shadow: 0 8px 24px rgba(69, 59, 71, 0.08);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, #eee8f3 0%, #f7e9e8 100%) fixed;
  -webkit-font-smoothing: antialiased;
}

/* Soft colour atmosphere behind everything */
.atmosphere { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow-cool { width: 700px; height: 620px; left: -220px; top: -260px; background: rgba(214, 205, 240, 0.9); }
.glow-main { width: 580px; height: 690px; right: -160px; top: 170px; background: rgba(234, 201, 222, 0.75); }
.glow-warm { width: 640px; height: 640px; left: -260px; bottom: -240px; background: rgba(250, 224, 204, 0.8); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: var(--plum); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  max-width: var(--page);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; }
.brand img { height: 26px; width: auto; display: block; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a {
  font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none;
}
.site-header nav a:hover { color: var(--ink); }

main { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 24px; }

/* Hero */
.hero { padding: 88px 0 56px; max-width: 760px; }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--plum); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.12; text-wrap: balance; }
.lead { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 620px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  color: var(--plum);
  font: 500 15px var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.button:hover { background: rgba(255, 255, 255, 0.8); }
.button.primary { background: var(--plum); border-color: var(--plum); color: #fff; }
.button.primary:hover { background: var(--plum-deep); border-color: var(--plum-deep); }
.button.small { height: 38px; padding: 0 18px; font-size: 14px; }

/* About */
.about { padding: 48px 0; border-top: 2px solid var(--rule); }
.about-intro { max-width: 680px; display: grid; gap: 14px; }
.about h2, .library h2, .contact h2 { font-size: 30px; line-height: 1.2; }
.about-intro p { color: var(--ink); }
.pillars { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar, .item {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.pillar { padding: 24px; }
.pillar h3 { font-size: 19px; color: var(--plum); margin-bottom: 8px; }
.pillar p { font-size: 14.5px; color: var(--ink); }

/* Library */
.library { padding: 48px 0; border-top: 2px solid var(--rule); }
.library-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-note { color: var(--muted); margin-top: 6px; }
.search input {
  width: 280px; max-width: 100%; height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font: 400 15px var(--sans); color: var(--ink);
}
.search input::placeholder { color: var(--muted); }

.filters { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  color: var(--plum); font: 500 14px var(--sans); cursor: pointer;
}
.chip:hover { background: rgba(255, 255, 255, 0.8); }
.chip-count { font-size: 12px; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip[aria-pressed="true"] .chip-count { color: rgba(255, 255, 255, 0.8); }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.item { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.item-kind {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.type-icon {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lilac); color: var(--plum);
}
.item-audio .type-icon { background: var(--sage-soft); color: var(--sage); }
.item-video .type-icon { background: var(--peach-soft); color: #8a6248; }
.item h3 { font-size: 21px; line-height: 1.3; }
.item-description { font-size: 15px; color: var(--ink); }
.item-meta { font-size: 13px; color: var(--muted); }
.media { margin-top: 6px; }
.media audio { width: 100%; height: 40px; display: block; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; border-radius: 14px; background: #2c242d; }
.item-actions { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 24px 0; }

/* Contact */
.contact {
  margin: 16px 0 56px; padding: 44px 32px; text-align: center;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(227, 237, 231, 0.9), rgba(245, 236, 224, 0.9));
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}
.contact h2 { color: var(--sage-ink); }
.contact p { margin: 10px auto 24px; max-width: 460px; color: var(--sage-ink); }
.contact .button.primary { background: var(--sage); border-color: var(--sage); }
.contact .button.primary:hover { background: var(--sage-ink); border-color: var(--sage-ink); }

/* Footer */
.site-footer {
  max-width: var(--page); margin: 0 auto; padding: 0 24px 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .search, .search input { width: 100%; }
}
@media (max-width: 480px) {
  .site-header nav { gap: 14px; }
  .items { grid-template-columns: 1fr; }
  .contact { padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
