:root {
  color-scheme: light;
  font: 1rem/1.6 system-ui, sans-serif;
  color: #172d43;
  background: #edf3f8;
  --navy: #112b46;
  --light: #f5f9fc;
  --link: #0c5684;
  --muted: #465c70;
  --border: #c8d7e4;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #a7540c; outline-offset: 3px; }
.shell { max-width: 68rem; padding-inline: clamp(1rem, 4vw, 3rem); margin-inline: auto; }
.masthead { background: var(--navy); color: #fff; }
.top, .top nav { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.2rem; }
.top { padding-block: 1rem; justify-content: space-between; min-height: 4rem; }
.top a { color: #fff; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 730; line-height: 1.15; text-decoration: none; }
.brand-mark { display: block; flex: none; border-radius: .18rem; }
.brand-region { display: block; margin-block-start: .2rem; color: #d3e2ec; font-size: .8125rem; font-weight: 550; }
.top nav form { margin: 0; }
.quiet { border: 1px solid #b8d3e9; background: none; color: #fff; padding: .35rem .65rem; text-decoration: none; border-radius: .3rem; font: inherit; }
.main { padding-block: 2rem 4rem; }
.skip { position: absolute; padding: .5rem .8rem; background: #fff; z-index: 1; }
.skip:not(:focus) { clip-path: inset(50%); }
h1, h2 { line-height: 1.2; overflow-wrap: anywhere; }
h1 { margin: .25rem 0 1.25rem; font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.04em; }
h2 { margin: 0 0 .7rem; font-size: 1.2rem; }
.group + .group { margin-top: 1.55rem; }
.group { scroll-margin: 1rem; }
.group h2 { font-weight: 730; }
.board-list, .panel { border: 1px solid var(--border); border-radius: .55rem; background: var(--surface); }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .8rem 1rem; overflow-wrap: anywhere; }
.board-list li + li { border-top: 1px solid var(--border); }
.board-list a { font-weight: 650; }
.meta, .post-heading time { color: var(--muted); font-size: .9rem; }
.breadcrumb, .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.breadcrumb { margin-bottom: .8rem; }
.breadcrumb a + a::before { content: "›"; display: inline-block; margin-right: .45rem; color: var(--muted); }
.pagination { margin-block: .8rem; }
.pagination a, .pagination .current { padding: .3rem .65rem; border: 1px solid var(--border); border-radius: .25rem; background: #fff; }
.pagination .current { color: #fff; background: var(--navy); }
.posts { display: grid; gap: .85rem; min-width: 0; }
.post { scroll-margin: 1rem; }
.post:target { outline: 3px solid #3f7da9; }
.post-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.post-heading h2 { display: inline; margin: 0; font-size: 1.03rem; }
.archive-label { color: var(--muted); font-size: .78rem; margin-inline-start: .4rem; }
.post-body { padding: clamp(.8rem, 2.5vw, 1.3rem); overflow-wrap: anywhere; overflow-x: auto; margin: 0; }
.plain { white-space: pre-wrap; }
.archive img, .image-frame img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  max-inline-size: 40rem;
  max-block-size: min(60vh, 28rem);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: var(--light);
  border-radius: .3rem;
}
.archive img { margin-block: .45rem; }
.image-consent { margin-block: .8rem; padding: .75rem 1rem; }
.image-consent p { margin: 0; }
.external-images { list-style: none; margin: 0; padding: .45rem 1rem .9rem; display: grid; gap: .45rem; }
.image-frame { margin: 0; max-inline-size: 40rem; min-inline-size: 0; overflow-wrap: anywhere; }
.image-frame figcaption { font-size: .88rem; margin: .35rem 0; }
.archive-image-placeholder { color: var(--muted); font-size: .88rem; }

.archive blockquote { margin: .45rem 0; padding: .45rem .8rem; background: var(--light); border-inline-start: .2rem solid #7da1bb; }
.archive cite { display: block; font-weight: 650; }
.archive pre { white-space: pre-wrap; }
.account, .composer { padding: clamp(1rem, 4vw, 2rem); }
.account { max-width: 38rem; margin-inline: auto; }
.composer { margin-top: 1.5rem; }
.room-composer { margin-block-end: 1rem; }
.room-composer > summary {
  inline-size: fit-content;
  max-inline-size: 100%;
  min-block-size: 3rem;
  padding: .65rem .85rem;
  border: 1px solid var(--navy);
  border-radius: .3rem;
  color: #fff;
  background: var(--navy);
  font-weight: 650;
  cursor: pointer;
  scroll-margin-block-start: 1rem;
}
.room-composer > summary:hover { background: #1b405f; }
.room-composer .composer {
  max-inline-size: 42rem;
  margin-block-start: .55rem;
  box-shadow: 0 .35rem 1.25rem rgb(17 43 70 / 12%);
  overflow-wrap: anywhere;
}
@supports selector(:has(~ :focus-within)) {
  @media (min-width: 55rem) and (min-height: 42rem) {
    .room-composer { position: relative; }
    /* Return the panel to the flow when focus moves to the room navigation or list. */
    .room-composer:not(:has(~ :focus-within)) .composer {
      position: absolute;
      z-index: 1;
      inset-block-start: 100%;
      inset-inline-start: 0;
      inline-size: min(100%, 42rem);
      max-block-size: min(65vh, 34rem);
      overflow-y: auto;
    }
  }
}
label { display: block; margin-block: .8rem .2rem; font-weight: 650; }
input, textarea { width: 100%; padding: .55rem .7rem; border: 1px solid #7891a8; border-radius: .3rem; color: inherit; font: inherit; }
textarea { resize: vertical; }
button { cursor: pointer; font: inherit; }
main button { margin-block-start: .8rem; padding: .55rem .85rem; border: 1px solid var(--navy); border-radius: .3rem; color: #fff; background: var(--navy); font-weight: 650; }
button.secondary { color: var(--navy); background: #fff; }
.notice { background: #fff4dc; padding: .65rem .85rem; border-left: .25rem solid #a7540c; margin-block: 0 1rem; }
.honeypot { display: none; }

.report-controls { margin: .35rem 1rem .9rem; }
.report-controls summary { cursor: pointer; color: var(--link); }
.report-controls form { max-width: 40rem; margin-top: .45rem; }
.post-hidden { border-color: #a7540c; }
.hidden-label { margin: 0; border-radius: .5rem .5rem 0 0; }
.topic-delete-form { max-inline-size: 30rem; margin-block-start: 1rem; padding-block-start: 1rem; border-block-start: 1px solid var(--border); }
.topic-delete-confirmation { display: flex; align-items: center; gap: .55rem; }
.topic-delete-confirmation input { flex: none; inline-size: 1.25em; margin: 0; accent-color: var(--navy); }
.topic-delete-confirmation label { align-content: center; min-block-size: 3rem; margin: 0; cursor: pointer; }

.search-form { display: grid; gap: .65rem; margin: 0 0 1.25rem; }
.search-results { margin-top: 1rem; }
.profile-fields dt { margin-top: .6rem; font-weight: 650; }
.profile-fields dd { margin: 0; overflow-wrap: anywhere; }
.post-signature { border-top: 1px solid var(--border); margin: .2rem 1rem .8rem; padding-top: .4rem; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.topic-bookmark { margin: .2rem 0 1rem; }
.topic-bookmark button, .bookmark-item button { margin-top: 0; }
.bookmark-item { align-items: center; }
.skip-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
