@font-face {
  font-family: "Archivo Black";
  src: url("/assets/archivo-black.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f7f4fb;
  --surface: #fff;
  --ink: #23182f;
  --secondary: #62536d;
  --line: #d7cce3;
  --action: #54358a;
  --action-ink: #fff;
  --accent: #54358a;
  --wash: #ece4f6;
  --hero: #f2edf9;
  --art-filter: invert(1) hue-rotate(180deg) saturate(.9);
  --display: "Archivo Black", "Arial Black", sans-serif;
  --text: "DM Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #15131b;
    --surface: #23202a;
    --ink: #fbf8ff;
    --secondary: #c5bbcf;
    --line: #54475f;
    --action: #def653;
    --action-ink: #20172b;
    --accent: #c6b5ff;
    --wash: #3b3047;
    --hero: #0f0e1a;
    --art-filter: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem / 1.55 var(--text);
}
a { color: inherit; }
a[hidden], button[hidden], [hidden] { display: none; }
h1, h2, p, ol { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; }
a, button, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip {
  position: absolute;
  z-index: 3;
  left: .5rem;
  top: .5rem;
  padding: .5rem .8rem;
  background: var(--surface);
  transform: translateY(-150%);
}
.skip:focus { transform: none; }

.shell { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
main { flex-grow: 1; }
.site-header, .site-footer { border-color: var(--line); border-style: solid; border-width: 0; }
.site-header { border-bottom-width: 1px; }
.site-footer { margin-top: 3rem; border-top-width: 1px; }
.nav, .footer-inner { display: flex; min-height: 4.7rem; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner { padding-block: .9rem; flex-wrap: wrap; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--secondary); font-size: .875rem; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { text-decoration: underline; }
.wordmark {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  gap: .45em;
  align-items: center;
  font: 400 1.63rem / 1 var(--display);
  letter-spacing: -.065em;
}
.footer-mark { font-size: 1.12rem; }
.door {
  display: inline-block;
  position: relative;
  width: .49em;
  height: .66em;
  border: 1.5px solid var(--action);
  border-radius: .28em .28em .06em .06em;
}
.door::before {
  content: "";
  position: absolute;
  inset: 19% 21% 0;
  border: 1px solid var(--action);
  border-bottom: 0;
  border-radius: .2em .2em 0 0;
}
.door::after {
  content: "";
  position: absolute;
  left: 39%;
  top: 63%;
  inline-size: .08em;
  block-size: .08em;
  border-radius: 50%;
  background: var(--action);
}
.feedback-link, .copy-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding-inline: .9rem;
  border: 1px solid var(--line);
  border-radius: 3rem;
  color: var(--ink);
  background: transparent;
  font: 700 .85rem / 1.4 var(--text);
  text-decoration: none;
}
.feedback-link:hover, .copy-link:hover { background: var(--wash); }

.landing { padding-top: clamp(1.25rem, 4vw, 3.6rem); }
.hero {
  position: relative;
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  min-height: min(33rem, calc(100vh - 13rem));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--hero);
}
.hero-copy { align-self: center; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 6vw, 4.5rem) clamp(2rem, 6vw, 4.5rem); z-index: 1; }
.hero h1 { font: 400 clamp(2.8rem, 5.1vw, 4.55rem) / .96 var(--display); letter-spacing: -.075em; }
.hero h1 em { display: block; color: var(--accent); font-style: normal; }
.hero-copy > p { max-width: 33ch; margin-block: 1.35rem; color: var(--secondary); font-size: 1.08rem; }
.hero-art {
  background: url("/assets/wrapped-contours.webp") 54% center / cover no-repeat;
  filter: var(--art-filter);
  margin-inline-start: -20%;
  mask-image: linear-gradient(90deg, transparent 1%, #000 47%);
}
.primary {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.1rem;
  border: 0;
  border-radius: 3rem;
  color: var(--action-ink);
  background: var(--action);
  font-weight: 700;
  text-decoration: none;
  justify-self: start;
}
.primary:hover { opacity: .9; }
p.download-status { font-weight: 700; color: var(--ink); }

.discussion, .reading { max-width: 46rem; margin-inline: auto; }
.discussion { padding-top: clamp(1.8rem, 6vw, 4.25rem); }
.place-header { padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.kind {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
}
.place-header h1, .page-title {
  margin-top: .2rem;
  font: 400 clamp(2rem, 5.6vw, 3.65rem) / 1.06 var(--display);
  letter-spacing: -.063em;
  overflow-wrap: anywhere;
}
.location, .discussion-stats { color: var(--secondary); }
.location { margin-top: .4rem; }
.related { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .8rem; color: var(--accent); font-size: .87rem; }
.discussion-stats { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .95rem; font-size: .87rem; }
.thread { margin-top: 1.6rem; }
.thread-heading { min-height: 2.75rem; display: flex; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: .65rem; }
.thread-heading h2, .reading h2 { font: 400 1.25rem / 1.23 var(--display); letter-spacing: -.035em; }
.comment-list, .reply-list { padding: 0; list-style: none; }
.comment-list > li { border-bottom: 1px solid var(--line); }
.comment, .empty { padding: 1.05rem 0; }
.comment { scroll-margin-top: 1rem; border-radius: .55rem; }
.comment:target, .comment.selected { background: var(--wash); padding-inline: .8rem; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.comment-meta strong, .comment p { overflow-wrap: anywhere; }
.comment-meta time, .report-link, .empty { color: var(--secondary); }
.comment-meta time, .report-link { font-size: .82rem; }
.comment p { margin-top: .3rem; white-space: pre-wrap; }
.report-link { display: inline-flex; min-height: 2.75rem; align-items: center; margin-bottom: -.5rem; }
.reply-list { margin-block: 0 .85rem; padding-inline-start: .9rem; border-inline-start: 1px solid var(--line); }
.reply-list li + li { border-top: 1px solid var(--line); }
.reply-list .comment { padding-block: .6rem; }
.status { margin-block: .8rem; color: var(--accent); font-size: .93rem; }
.visitor-form { margin-top: 1rem; }
.visitor-form button {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--secondary);
  text-decoration: underline;
}
.thread-download { margin-top: 1.1rem; color: var(--accent); font-size: .9rem; }

.reading { padding-top: clamp(2rem, 6vw, 4.4rem); }
.reading > h2 { margin-top: 2rem; }
.reading > p { max-width: 65ch; margin-top: .85rem; overflow-wrap: anywhere; }
.reading > .page-title { margin-bottom: 1.3rem; }
.reading a:not(.primary) { text-underline-offset: .18em; }
.intake { display: grid; gap: .6rem; margin-top: 1.2rem; }
.intake label { font-weight: 700; }
.intake textarea {
  min-width: 0;
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: var(--ink);
  background: var(--surface);
}
@media (max-width: 40rem) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 2rem 1.4rem 0; }
  .hero h1 { font-size: clamp(2.45rem, 9.4vw, 3.4rem); }
  .hero-art { min-height: 13rem; margin: -1.45rem 0 0; mask-image: linear-gradient(180deg, transparent 5%, #000 66%); }
}
