/* Psychduck: night forest, marigold, jamaica */
:root {
  --night: #13201A;
  --night-2: #1B2C23;
  --paper: #F3ECDF;
  --paper-2: #EAE0CF;
  --ink: #221A14;
  --muted: #65574A;
  --rule: #D9CCB6;
  --forest: #2F4A3A;
  --marigold: #E3A13B;
  --marigold-ink: #87560B;
  --jamaica: #A8325E;
  --clay: #A4502F;
  --on-night: #EFE6D6;
  --on-night-muted: #B8B09F;

  --t-healing: var(--jamaica);
  --t-justice: var(--marigold-ink);
  --t-power: var(--clay);

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --read: "Literata", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --measure: 66ch;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 50; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--night); color: var(--on-night); position: relative; z-index: 20; }
.home .site-header { background: transparent; position: absolute; inset: 0 0 auto 0; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em;
  text-decoration: none; color: var(--on-night); display: inline-flex; align-items: center; gap: 10px;
}
.wordmark svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--on-night); padding: 8px 14px; border-radius: 999px; font-size: 0.98rem; }
.nav a:hover { background: rgba(239, 230, 214, 0.1); }
.nav a[aria-current="page"] { background: var(--on-night); color: var(--night); }
.socials { display: flex; gap: 6px; }
.icon-link {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%;
  color: var(--on-night); border: 1px solid rgba(239, 230, 214, 0.25); text-decoration: none;
}
.icon-link:hover { background: var(--marigold); border-color: var(--marigold); color: var(--night); }
.icon-link svg { width: 18px; height: 18px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(239,230,214,.3); color: var(--on-night); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .95rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--night); color: var(--on-night); overflow: hidden;
  min-height: min(88vh, 820px); display: flex; align-items: flex-end;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(19,32,26,.92) 0%, rgba(19,32,26,.55) 48%, rgba(19,32,26,0) 75%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 88px; width: 100%; }
.hero h1 {
  font-family: var(--display); font-weight: 650; font-stretch: 92%;
  font-size: clamp(2.7rem, 7.4vw, 6.1rem); line-height: 0.96; letter-spacing: -0.035em;
  margin: 0; max-width: 12.5ch;
}
.hero .byline { margin: 0 0 22px; color: var(--marigold); font-size: 1.02rem; font-weight: 500; }
.hero .lede { font-family: var(--read); font-size: 1.15rem; line-height: 1.6; color: var(--on-night-muted); max-width: 48ch; margin: 26px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--marigold); color: var(--night); }
.btn-primary:hover { background: #F0B455; }
.btn-ghost { border-color: rgba(239,230,214,.4); color: var(--on-night); }
.btn-ghost:hover { border-color: var(--on-night); background: rgba(239,230,214,.08); }
.btn-dark { background: var(--night); color: var(--on-night); }
.btn-dark:hover { background: var(--forest); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.hero-hint { position: absolute; right: 28px; bottom: 24px; z-index: 2; color: var(--on-night-muted); font-size: .85rem; }

/* ---------- Sections ---------- */
.block { padding: 88px 0; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.block-head h2 { font-family: var(--display); font-weight: 650; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.block-head p { margin: 8px 0 0; color: var(--muted); max-width: 52ch; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--marigold); }
.text-link:hover { color: var(--jamaica); }

/* Topic paths */
.paths { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; border-radius: 22px; overflow: hidden; }
.path {
  position: relative; padding: 34px 30px 30px; min-height: 250px; text-decoration: none; color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.path.healing { background: var(--jamaica); }
.path.justice { background: var(--marigold); color: var(--night); }
.path.power { background: var(--forest); }
.path h3 { font-family: var(--display); font-weight: 650; font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 10px; max-width: 14ch; }
.path p { margin: 0; font-family: var(--read); font-size: 1rem; line-height: 1.5; opacity: .9; max-width: 34ch; }
.path .count { font-weight: 600; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.path .arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: transform .25s ease, background .25s ease; }
.path:hover .arrow { transform: translateX(4px); background: rgba(255,255,255,.15); }
.path .arrow svg { width: 18px; height: 18px; }

/* Featured + list */
.latest { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.feature { text-decoration: none; display: block; padding: 34px; background: var(--night); color: var(--on-night); border-radius: 22px; position: relative; overflow: hidden; }
.feature .tag { color: var(--marigold); }
.feature h3 { font-family: var(--display); font-weight: 650; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.08; letter-spacing: -0.025em; margin: 18px 0 16px; }
.feature p { font-family: var(--read); color: var(--on-night-muted); margin: 0 0 26px; line-height: 1.6; }
.feature .read { font-weight: 600; color: var(--marigold); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.feature .read svg { width: 18px; height: 18px; }
.feature:hover h3 { color: var(--marigold); }
.feature-art { position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; opacity: .22; pointer-events: none; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li + li { border-top: 1px solid var(--rule); }
.mini-list a { display: block; padding: 22px 0; text-decoration: none; }
.mini-list h4 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; margin: 8px 0 0; }
.mini-list a:hover h4 { color: var(--jamaica); }

.tag { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; }
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.tag.healing { color: var(--t-healing); }
.tag.justice { color: var(--t-justice); }
.tag.power { color: var(--t-power); }
.date { color: var(--muted); font-size: .88rem; }

/* Instagram */
.insta { background: var(--paper-2); }
.insta-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.insta-strip .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; border-radius: 16px !important; }
.insta-fallback {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 280px; padding: 24px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; text-decoration: none;
}
.insta-fallback p { font-family: var(--read); margin: 0; }

/* About band */
.band { background: var(--forest); color: var(--on-night); }
.band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; padding-top: 88px; padding-bottom: 88px; align-items: center; }
.band blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; }
.band p { font-family: var(--read); color: #D5CDBD; line-height: 1.65; margin: 0 0 26px; }
.band .btn-ghost { border-color: rgba(239,230,214,.45); }
.portrait { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--night-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Writing index ---------- */
.page-head { background: var(--night); color: var(--on-night); padding: 64px 0 44px; }
.page-head h1 { font-family: var(--display); font-weight: 650; font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.035em; line-height: 1; margin: 0 0 14px; }
.page-head p { font-family: var(--read); color: var(--on-night-muted); margin: 0; max-width: 56ch; font-size: 1.08rem; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.search {
  flex: 1 1 260px; max-width: 380px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  border-radius: 999px; background: var(--night-2); border: 1px solid rgba(239,230,214,.2);
}
.search svg { width: 18px; height: 18px; color: var(--on-night-muted); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--on-night); font: inherit; padding: 12px 0; }
.search input::placeholder { color: var(--on-night-muted); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--marigold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .92rem; font-weight: 500; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--on-night); border: 1px solid rgba(239,230,214,.3);
}
.chip span { opacity: .65; margin-left: 4px; }
.chip:hover { border-color: var(--on-night); }
.chip[aria-pressed="true"] { background: var(--marigold); border-color: var(--marigold); color: var(--night); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-row a {
  display: grid; grid-template-columns: 170px 1fr 48px; gap: 8px 32px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.post-row .side { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.post-row h3 { font-family: var(--display); font-weight: 650; font-size: 1.45rem; line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 10px; }
.post-row p { font-family: var(--read); margin: 0; color: var(--muted); line-height: 1.6; max-width: var(--measure); }
.post-row .go { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rule); display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s; }
.post-row .go svg { width: 18px; height: 18px; }
.post-row a:hover h3 { color: var(--jamaica); }
.post-row a:hover .go { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateX(3px); }
.empty { padding: 40px 0; color: var(--muted); font-family: var(--read); }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--marigold), var(--jamaica)); z-index: 60; }
.article-head { background: var(--night); color: var(--on-night); padding: 64px 0 56px; }
.article-head .inner { max-width: 820px; }
.article-head .tag { color: var(--marigold); text-decoration: none; }
.article-head .tag.healing { color: #E58AAE; }
.article-head h1 { font-family: var(--display); font-weight: 650; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.04; letter-spacing: -0.032em; margin: 18px 0 22px; }
.article-head .meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--on-night-muted); font-size: .95rem; }
.prose { max-width: 70ch; margin: 0 auto; padding: 56px 0 24px; font-family: var(--read); font-size: 1.14rem; line-height: 1.75; }
.prose p { margin: 0 0 1.25em; }
.prose h2, .prose h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.15; margin: 2.1em 0 .6em; }
.prose h2 { font-size: 1.75rem; font-weight: 650; }
.prose h3 { font-size: 1.35rem; font-weight: 600; }
.prose a { color: var(--jamaica); text-underline-offset: 3px; }
.prose hr { border: 0; height: 1px; background: var(--rule); margin: 2.6em 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--marigold-ink); }
.prose ul.refs { font-size: .92rem; color: var(--muted); }
.prose .note { font-size: .98rem; color: var(--muted); border-left: 3px solid var(--marigold); padding-left: 16px; }
.share { max-width: 70ch; margin: 0 auto; padding: 28px 0; border-top: 1px solid var(--rule); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.share strong { margin-right: 6px; font-weight: 600; }
.share .btn { padding: 10px 16px; font-size: .92rem; }
.next-prev { max-width: 70ch; margin: 0 auto; padding: 8px 0 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.next-prev a { display: block; padding: 22px; border: 1px solid var(--rule); border-radius: 18px; text-decoration: none; }
.next-prev a:hover { border-color: var(--ink); }
.next-prev .dir { font-size: .88rem; color: var(--muted); }
.next-prev h4 { font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; margin: 6px 0 0; }
.next-prev .newer { text-align: right; grid-column: 2; }

/* ---------- About / Contact ---------- */
.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; padding: 72px 0 96px; }
.about aside { position: sticky; top: 24px; align-self: start; }
.facts { list-style: none; padding: 0; margin: 28px 0; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; font-size: .98rem; }
.facts li span:first-child { color: var(--muted); }
.about .prose { margin: 0; padding: 0; max-width: 64ch; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 64px 0 96px; }
.contact-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 22px; text-decoration: none; min-height: 210px; justify-content: space-between; }
.contact-card svg { width: 30px; height: 30px; }
.contact-card h2 { font-family: var(--display); font-weight: 650; font-size: 1.4rem; margin: 0; letter-spacing: -0.02em; }
.contact-card p { margin: 0; font-family: var(--read); word-break: break-word; }
.contact-card.email { background: var(--night); color: var(--on-night); }
.contact-card.ig { background: var(--jamaica); color: var(--paper); }
.contact-card.li { background: var(--marigold); color: var(--night); }
.contact-card:hover { transform: translateY(-3px); transition: transform .2s ease; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; }
.site-footer p { color: var(--on-night-muted); font-family: var(--read); margin: 14px 0 0; max-width: 40ch; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { text-decoration: none; color: var(--on-night); }
.site-footer nav a:hover { color: var(--marigold); }
.site-footer small { grid-column: 1 / -1; color: var(--on-night-muted); border-top: 1px solid rgba(239,230,214,.15); padding-top: 22px; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .paths { grid-template-columns: 1fr; }
  .path { min-height: 0; }
  .latest, .band .wrap, .about { grid-template-columns: 1fr; gap: 36px; }
  .about aside { position: static; }
  .insta-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .insta-strip > * { scroll-snap-align: start; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .menu-btn { display: inline-block; }
  .site-header .socials { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--night); padding: 8px 18px 20px; border-bottom: 1px solid rgba(239,230,214,.15);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid rgba(239,230,214,.1); font-size: 1.1rem; }
  .nav a[aria-current="page"] { background: none; color: var(--marigold); }
  .nav .nav-socials { display: flex; gap: 10px; padding-top: 16px; }
  .home .site-header { position: absolute; }
  .home .nav { background: var(--night); }
  .hero { min-height: 92vh; }
  .hero::after { background: linear-gradient(0deg, rgba(19,32,26,.95) 0%, rgba(19,32,26,.6) 55%, rgba(19,32,26,.15) 100%); }
  .hero .wrap { padding-top: 120px; padding-bottom: 56px; }
  .hero-hint { display: none; }
  .block { padding: 64px 0; }
  .post-row a { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .post-row .side { flex-direction: row; gap: 14px; align-items: center; }
  .post-row .go { display: none; }
  .prose { padding-top: 40px; font-size: 1.06rem; }
  .next-prev { grid-template-columns: 1fr; }
  .next-prev .newer { grid-column: auto; text-align: left; }
}
@media (min-width: 761px) { .nav .nav-socials { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.band .portrait { max-width: 400px; width: 100%; justify-self: end; border: 6px solid var(--marigold); }
.about .portrait { margin-bottom: 8px; }
@media (max-width: 900px) { .band .portrait { justify-self: start; max-width: 320px; } }
