@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/fredoka-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/fredoka-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/fredoka-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #fdf9f0;
  --fg-light-base-body: #271f3d;
  --fg-light-base-heading: #271f3d;
  --fg-light-base-muted: #574d6c;
  --fg-light-base-link: #0b6b66;
  --fg-light-base-inverse: #271f3d;
  --bg-light-card: #ece4fa;
  --fg-light-card-body: #271f3d;
  --fg-light-card-heading: #271f3d;
  --fg-light-card-muted: #574d6c;
  --fg-light-card-link: #0b6b66;
  --fg-light-card-inverse: #271f3d;
  --bg-light-elevated: #ffffff;
  --fg-light-elevated-body: #271f3d;
  --fg-light-elevated-heading: #271f3d;
  --fg-light-elevated-muted: #574d6c;
  --fg-light-elevated-link: #0b6b66;
  --fg-light-elevated-inverse: #271f3d;
  --brand-light-accent: #0b6b66;
  --brand-light-accent-hover: #08504d;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #0b6b66;
  --border-light-default: #74679a;
  --border-light-subtle: #d8cdef;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Neighborhood help desk: a lavender porch, cream rooms, teal answers. */

:root {
  --type-round: 'Fredoka', 'Trebuchet MS', sans-serif;
  --type-text: 'Atkinson Hyperlegible', Verdana, sans-serif;
  --side: clamp(1rem, 4.5vw, 3rem);
  --wide: 76rem;
  --read: 42rem;
  --puff: 1.5rem;
  --nip: 0.4rem;
  --lilac-deep: #b9a6e3;
}

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

html { -webkit-text-size-adjust: 100%; }

body.nook {
  margin: 0;
  font-family: var(--type-text);
  font-size: 1.0625rem;
  line-height: 1.62;
}

.nook h1, .nook h2, .nook h3 { font-family: var(--type-round); font-weight: 600; }

/* ---------- porch (header) ---------- */

.porch { position: relative; border-bottom: 3px solid var(--lilac-deep); }

.porch-row {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.75rem var(--side);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
}

.porch-sign {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  min-width: 0;
  text-decoration: none;
}

.porch-sign .site-logo { width: 17.5rem; max-width: 100%; min-width: 0; height: auto; }

.porch-chips { display: none; }

.porch-chips .site-nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.porch-chips .site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-light-elevated);
  border: 2px solid transparent;
  font-family: var(--type-round);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.porch-chips .site-nav a:hover { border-color: var(--brand-light-accent); }

.porch-drawer { flex: none; }

.porch-drawer .site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.35rem 1rem 0.35rem 0.85rem;
  border-radius: var(--puff) var(--puff) var(--nip) var(--puff);
  background: var(--bg-light-base);
  color: var(--fg-light-base-body);
  border: 2px solid var(--fg-light-base-body);
  font-family: var(--type-round);
  font-weight: 600;
  font-size: 1rem;
}

.porch-drawer .site-menu .menu-icon {
  width: 1.15rem;
  height: 0.3rem;
  background: radial-gradient(circle, currentColor 0 0.14rem, transparent 0.16rem) 0 50% / 0.39rem 0.3rem repeat-x;
}

.porch-drawer .site-menu[open] > summary { background: var(--fg-light-base-body); color: var(--bg-light-base); }

.porch-drawer .site-menu > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  margin: 0;
  padding: 1rem var(--side) 1.25rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.5rem;
  background: var(--bg-light-card);
  border-bottom: 3px solid var(--lilac-deep);
}

.porch-drawer .site-menu > ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: var(--puff) var(--puff) var(--puff) var(--nip);
  background: var(--bg-light-base);
  color: var(--fg-light-base-body);
  text-decoration: none;
  font-family: var(--type-text);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.porch-drawer .site-menu > ul a:hover { background: var(--bg-light-elevated); color: var(--brand-light-accent-hover); }

@media (min-width: 75rem) {
  .porch-row { flex-wrap: wrap; }
  .porch-chips { display: block; flex: 1 0 100%; }
  .porch-drawer { display: none; }
}

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem var(--side) 0;
  font-size: 0.9rem;
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 0.5rem; color: var(--border-light-default); }

/* ---------- bands and oversized questions ---------- */

.den { padding-bottom: clamp(3rem, 8vw, 5.5rem); }

.band { margin-top: 0.9rem; }
.band-cream { border-bottom: 2px dashed var(--border-light-subtle); }

.band-in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--side);
}

.band-in-pin { display: flex; align-items: flex-start; gap: 1rem; }
.band-pin { flex: none; width: 2.4rem; height: auto; margin-top: 0.4rem; }

.band-ask h1, .sent-bubble h1, .convo-q h1, .greet-ask h1 { font: inherit; letter-spacing: inherit; margin: 0; }

.band-ask {
  font-family: var(--type-round);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 20ch;
}

.band-ask-xl { font-size: clamp(2.4rem, 7.5vw, 5rem); }
.band-ask-lg { font-size: clamp(2.1rem, 6vw, 3.9rem); }

/* ---------- home ---------- */

.greet-in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2.25rem, 7vw, 5rem) var(--side) clamp(2.5rem, 7vw, 4.5rem);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.4rem);
}

.greet-ask {
  margin: 0;
  max-width: 16ch;
  font-family: var(--type-round);
  font-weight: 600;
  font-size: clamp(2.7rem, 9vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.greet-lines { display: grid; gap: 0.75rem; align-content: end; max-width: 44rem; }

.greet-lines .display-line {
  margin: 0;
  padding: 0.9rem 1.25rem;
  border: 2px solid var(--lilac-deep);
  border-radius: var(--puff) var(--puff) var(--nip) var(--puff);
  font-size: 1.05rem;
  line-height: 1.45;
}

.greet-lines .display-line:first-child {
  border: 3px solid var(--brand-light-accent);
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
}

@media (min-width: 60rem) {
  .greet-in { grid-template-columns: minmax(0, 1fr) 22rem; column-gap: clamp(2.5rem, 5vw, 4.5rem); align-items: end; }
  .greet-lines .display-line:first-child { border-radius: var(--puff) var(--puff) var(--nip) var(--puff); }
}

.den-split {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--side) 0;
  display: grid;
  gap: 2rem;
}

/* ---------- the pile: body as stacked open Q&A rows ---------- */

.pile { max-width: var(--read); }

.den-shelf .pile, .den-convo .pile, .den-hello .pile, .den-lost .pile, .den-sent .pile {
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) var(--side) 0;
  box-sizing: content-box;
}

.pile > p, .pile > ul, .pile > ol { margin: 0 0 1rem; }

.pile > h2, .pile section[data-section] h2 {
  position: relative;
  margin: 2.4rem 0 0.9rem;
  padding: 0.9rem 3.25rem 0.9rem 0;
  border-top: 2px solid var(--border-light-subtle);
  font-size: clamp(1.4rem, 3.3vw, 1.9rem);
  line-height: 1.16;
}

.pile > h2:first-child { margin-top: 0; }

/* the open-row marker: each row in the stack is shown expanded */
.pile > h2::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 1.05rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 2px solid var(--brand-light-accent);
  background: linear-gradient(var(--brand-light-accent), var(--brand-light-accent)) center / 0.7rem 2px no-repeat;
}

/* answer bubbles under each row */
.pile > h2 ~ p,
.pile > h2 ~ ul,
.pile > h2 ~ ol {
  padding: 0.95rem 1.3rem;
  border-radius: var(--nip) var(--puff) var(--puff) var(--puff);
  background: var(--bg-light-card);
}

.pile > h2 ~ ul, .pile > h2 ~ ol { padding-left: 2.6rem; }

.pile li { margin: 0.3rem 0; padding-left: 0.15rem; }
.pile ol > li::marker { font-family: var(--type-round); font-weight: 600; color: var(--brand-light-accent-hover); }
.pile ul > li::marker { color: var(--brand-light-accent); }

.pile a { text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
.pile strong { font-weight: 700; }
.pile h3 { font-size: 1.22rem; margin: 1.6rem 0 0.5rem; }

.pile blockquote {
  margin: 0 0 1rem;
  padding: 0.9rem 1.3rem;
  border-left: 4px solid var(--brand-light-accent);
  border-radius: 0 var(--puff) var(--puff) 0;
}

.pile figure { margin: 0 0 1.5rem; }

.photo-hero img, .photo-inline img {
  display: block;
  width: 100%;
  border-radius: 2rem 2rem 2rem var(--nip);
}

.photo-hero { margin: 0 0 2rem; }

/* photo section wrapper the renderer injects */
.pile section[data-section] {
  margin: 2rem 0;
  padding: clamp(5rem, 22vw, 11rem) clamp(0.75rem, 3vw, 1.5rem) clamp(0.75rem, 3vw, 1.5rem);
  border-radius: 2rem;
  background-size: cover;
  background-position: center;
}

.pile section[data-section] > .bg-surface-card {
  padding: 1rem 1.3rem;
  border-radius: var(--puff) var(--puff) var(--puff) var(--nip);
}

.pile section[data-section] h2 { margin-top: 0; padding-right: 0; border-top: 0; }
.pile section[data-section] p { margin: 0 0 0.6rem; }
.pile section[data-section] p:last-child { margin-bottom: 0; }

/* ---------- topic shelf: link lists become accordion rows ---------- */

.pile-shelf ul:has(> li > a:only-child) {
  list-style: none;
  padding: 0;
  background: none;
  display: grid;
  gap: 0.5rem;
}

.pile-shelf ul:has(> li > a:only-child) > li { margin: 0; padding: 0; }

.pile-shelf ul:has(> li > a:only-child) a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.7rem 1.1rem;
  border-radius: var(--nip) var(--puff) var(--puff) var(--puff);
  background: var(--bg-light-elevated);
  border: 2px solid var(--border-light-subtle);
  font-family: var(--type-round);
  font-weight: 500;
  font-size: 1.08rem;
  text-decoration: none;
}

.pile-shelf ul:has(> li > a:only-child) a::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
}

.pile-shelf ul:has(> li > a:only-child) a:hover { border-color: var(--brand-light-accent); }

/* ---------- neighborhood board ---------- */

.board {
  max-width: calc(var(--read) + 4rem);
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-radius: 2rem;
  border: 2px solid var(--border-light-subtle);
}

@media (max-width: 47.99rem) {
  .board { margin-left: var(--side); margin-right: var(--side); }
}

.pile-board > h2 { padding-left: 2rem; }

.pile-board > h2::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: radial-gradient(circle at 50% 50%, var(--bg-light-elevated) 0 26%, var(--brand-light-accent) 28%);
}

/* ---------- conversation page ---------- */

.convo-q {
  max-width: var(--read);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) var(--side) 0;
  box-sizing: content-box;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.convo-dot {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: clamp(0.9rem, 2.6vw, 1.7rem);
  border-radius: 50%;
  background: var(--brand-light-accent);
}

/* ---------- ask form ---------- */

.den-ask-grid {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) var(--side) 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 60rem) {
  .den-ask-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); column-gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
}

.askbox {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 2rem;
  border: 2px solid var(--border-light-subtle);
}

.askbox-pair { display: grid; gap: 1rem; }

@media (min-width: 36rem) {
  .askbox-pair { grid-template-columns: 1fr 1fr; }
}

.askbox-row { display: grid; gap: 0.35rem; margin: 0; }

.askbox-label { font-weight: 700; }

.askbox-input {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--border-light-default);
  background: var(--bg-light-base);
  color: inherit;
}

.askbox-bubble {
  min-height: 10rem;
  resize: vertical;
  border-radius: var(--puff) var(--puff) var(--puff) var(--nip);
  background: var(--bg-light-card);
}

.askbox-input:focus-visible {
  outline: 3px solid var(--focus-light-ring);
  outline-offset: 2px;
  border-color: var(--brand-light-accent);
}

.askbox-send {
  justify-self: end;
  min-height: 48px;
  padding: 0.7rem 1.9rem;
  border: 0;
  border-radius: var(--puff) var(--puff) var(--nip) var(--puff);
  font-family: var(--type-round);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  background: var(--brand-light-accent);
  color: var(--brand-light-on-accent);
}

.askbox-send:hover { background: var(--brand-light-accent-hover); }
.askbox-send:focus-visible { outline: 3px solid var(--focus-light-ring); outline-offset: 3px; }

/* ---------- sent bubble ---------- */

.sent {
  max-width: var(--read);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) var(--side) 0;
  box-sizing: content-box;
}

.sent-bubble {
  display: inline-block;
  padding: 1.1rem 1.6rem;
  border: 4px solid var(--brand-light-accent);
  border-radius: 2rem 2rem 2rem var(--nip);
  font-family: var(--type-round);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
}

@media (prefers-reduced-motion: no-preference) {
  .sent-bubble { animation: pop 380ms cubic-bezier(0.2, 0.8, 0.3, 1.2) both; }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

.rows {
  max-width: var(--read);
  margin: 1.5rem auto 0;
  padding: 0 var(--side);
  box-sizing: content-box;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.rows-item { margin: 0; }

.rows-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.7rem 1.1rem;
  border-top: 2px solid var(--border-light-subtle);
  font-family: var(--type-round);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
}

.rows-link::after { content: "+"; font-size: 1.4rem; line-height: 1; }

/* ---------- stoop (footer) ---------- */

.stoop { border-top: 3px solid var(--lilac-deep); }

.stoop-wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) var(--side);
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

.stoop-say {
  justify-self: start;
  max-width: 28ch;
  margin: 0;
  padding: 1rem 1.4rem;
  border-radius: var(--puff) var(--puff) var(--puff) var(--nip);
  font-family: var(--type-round);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.2;
}

.stoop-sign { display: grid; gap: 0.25rem; }
.stoop-name, .stoop-out { margin: 0; }

@media (min-width: 48rem) {
  .stoop-wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .stoop-sign { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
