:root {
  color-scheme: light;
  --ink: #231338;
  --muted: #5e506e;
  --violet: #5c29a2;
  --dark: #170b2d;
  --lime: #cbfa82;
  font: 16px/1.5 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #f8f5fc;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .23em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3 { font-family: Manrope, system-ui, sans-serif; margin: 0; letter-spacing: -.045em; line-height: 1.12; }
.shell { width: min(1200px, calc(100% - 7vw)); margin-inline: auto; }
.site-header, footer { background: var(--dark); color: white; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .85rem; }
nav { display: flex; align-items: center; gap: clamp(.7rem, 3vw, 2rem); font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover, nav [aria-current] { text-decoration: underline; }
.contact { color: var(--lime); }
.hero { background: #211036; color: white; }
.hero-inner { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; }
.hero-inner > div { padding: clamp(2.8rem, 7vw, 6rem) clamp(1rem, 4vw, 3.5rem) clamp(2.8rem, 7vw, 6rem) 0; }
.hero h1 { font-size: clamp(3.35rem, 7.4vw, 7.25rem); font-weight: 800; }
.hero p { max-width: 33ch; color: #e4d8f3; font-size: clamp(1rem, 1.55vw, 1.26rem); margin: 1.2rem 0 1.7rem; }
.hero a { color: var(--lime); font-weight: 700; }
.hero img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; }
.library { padding-block: clamp(2.6rem, 6vw, 5rem); scroll-margin-top: 1rem; }
.section-heading, .filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.search { position: relative; }
.search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.search input { background: white; color: var(--ink); border: 1px solid #ab97c4; border-radius: .55rem; padding: .7rem 1rem; width: min(100%, 17rem); font: inherit; }
.filters { margin: 1.35rem 0 1.6rem; }
.topics { display: flex; flex-wrap: wrap; gap: .45rem; }
.topics button { border: 1px solid #d6c8e5; background: white; border-radius: 100px; padding: .55rem .95rem; color: var(--ink); cursor: pointer; font: 600 .875rem/1.4 "DM Sans", system-ui, sans-serif; }
.topics button:hover { border-color: var(--violet); }
.topics [aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: white; }
.count { color: var(--muted); margin: 0; font-size: .9rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.45rem); margin-top: 1.6rem; }
.post { position: relative; display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid #e8def1; border-radius: .85rem; }
.post:focus-within { outline: 2px solid var(--violet); outline-offset: 3px; }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e8d9f7; }
.post-copy { display: flex; flex-direction: column; flex: 1; padding: clamp(1rem, 2vw, 1.4rem); }
.post h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
.post h3 a { text-decoration: none; }
.post h3 a:hover { text-decoration: underline; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post p { margin: .65rem 0 0; color: var(--muted); }
.post .topic { margin: 0 0 .65rem; color: var(--violet); font-size: .82rem; font-weight: 700; }
.post .post-status { color: var(--violet); font-size: .85rem; font-weight: 700; margin-top: auto; padding-top: 1rem; }
.footer-inner { justify-content: flex-start; }
.footer-inner p { margin: 0; color: #e4d8f3; }
.footer-inner > a:last-child { color: var(--lime); margin-left: auto; }
@media (max-width: 850px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 630px) {
  .shell { width: calc(100% - 2rem); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-inner > div { padding: 2.5rem 0 2rem; }
  .hero img { aspect-ratio: 16 / 8; }
}
@media (max-width: 480px) {
  .post-grid { grid-template-columns: 1fr; }
  .header-inner img { width: 70px; height: auto; }
  .footer-inner { flex-wrap: wrap; }
}
