/* Change these tokens to restyle every view. The six topic accents are below. */
@font-face {
  font-family: Montserrat;
  src: url("/assets/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #15212c;
  --mast: #0d141c;
  --panel: #213241;
  --panel-top: #293c4d;
  --panel-hover: #30475a;
  --line: #3c4e5d;
  --text: #f5f8fb;
  --muted: #bac8d3;
  --subtle: #a6b7c5;
  --cyan: #8bd6f1;
  --link: #97ddf7;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4.5vw, 4rem);
  --radius: 0.95rem;
  --font: Montserrat, "Segoe UI", Arial, sans-serif;
  --body-font: var(--font);
  --photo: #263746;
}
.tone-blue {
  --accent: #81d1f5;
}
.tone-mint {
  --accent: #80dfbf;
}
.tone-violet {
  --accent: #bea8ff;
}
.tone-gold {
  --accent: #f4cc7b;
}
.tone-pink {
  --accent: #f1aaca;
}
.tone-orange {
  --accent: #f9ad88;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
a {
  color: var(--link);
}
a,
button,
input {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 0.18rem solid var(--cyan);
  outline-offset: 0.24rem;
}
button,
input {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
.sr,
.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  background: var(--mast);
  padding: 0.75rem 1rem;
  z-index: 20;
}
.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--wrap));
  margin-inline: auto;
}
.ui-icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  flex: none;
  vertical-align: middle;
}
.mast {
  background: var(--mast);
  border-bottom: 1px solid #384451;
}
.mast-inner,
.mast nav,
.brand,
.support-link,
.utility-inner,
.section-head,
.card-top,
.footer-inner,
.quick,
.section-head > span,
.date {
  display: flex;
  align-items: center;
}
.mast-inner {
  min-height: 4.5rem;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  flex: none;
  gap: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  display: block;
  width: 7rem;
  height: auto;
}
.brand span {
  border-left: 1px solid #45505b;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  font-weight: 630;
}
.mast nav {
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 580;
}
.mast nav a,
.footer-inner a {
  color: var(--text);
  text-decoration: none;
}
.mast nav a:hover,
.footer-inner a:hover {
  color: var(--link);
}
.support-link {
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #495663;
  border-radius: 0.55rem;
}
.support-link .ui-icon {
  width: 1rem;
  color: var(--cyan);
}
.hero {
  position: relative;
  isolation: isolate;
  background: var(--photo);
  border-bottom: 1px solid #455563;
}
.hero-photo,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-photo {
  overflow: hidden;
  left: 12%;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.hero::after {
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #101a25 2%,
      rgb(15 26 38 / 94%) 20%,
      rgb(15 26 38 / 82%) 37%,
      rgb(15 26 38 / 33%) 59%,
      transparent 80%
    ),
    linear-gradient(0deg, rgb(14 25 35 / 35%), transparent 35%);
}
.hero-inner {
  padding-block: clamp(2.8rem, 4.4vw, 4.1rem);
}
.hero-copy {
  position: relative;
  max-width: 35.5rem;
}
.hero h1 {
  max-width: 100%;
  font-size: clamp(2.45rem, 4.2vw, 3.85rem);
  line-height: 1.025;
  letter-spacing: -0.058em;
  font-weight: 750;
  white-space: pre-line;
  text-wrap: initial;
  margin-bottom: 1.6rem;
}
.search-box {
  display: flex;
  align-items: center;
  position: relative;
  gap: 0.65rem;
  padding: 0.32rem 0.32rem 0.32rem 0.95rem;
  background: #fbfdff;
  border: 1px solid #e5edf1;
  border-radius: 0.72rem;
  color: #486074;
  box-shadow: 0 5px 18px rgb(0 0 0 / 13%);
}
.search-box:focus-within {
  outline: 0.16rem solid var(--cyan);
  outline-offset: 0.2rem;
}
.search-box > .ui-icon {
  width: 1.25rem;
}
.search-box input {
  color-scheme: light;
  min-width: 0;
  flex: 1;
  width: 100%;
  border: 0;
  padding: 0.5rem 0;
  background: transparent;
  font-size: 1rem;
  color: #142738;
  outline: none;
}
.search-box input:focus-visible {
  outline: 0;
}
.search-box input::placeholder {
  opacity: 1;
  color: #506173;
}
.search-box button {
  flex: none;
  border: 0;
  border-radius: 0.45rem;
  padding: 0.64rem 1.1rem;
  background: var(--cyan);
  color: #102531;
  font-size: 0.9rem;
  font-weight: 720;
}
.search-box button:hover {
  filter: brightness(0.94);
}
.quick {
  flex-wrap: wrap;
  gap: 0.38rem 0.9rem;
  margin-top: 1rem;
  font-size: 0.83rem;
}
.quick span {
  color: #c4cfd8;
  font-weight: 600;
}
.quick a {
  color: #e5edf3;
  text-decoration-thickness: 1px;
  text-decoration-color: #8698a7;
  text-underline-offset: 0.23rem;
  padding: 0.15rem 0;
}
.quick a:hover {
  color: var(--link);
}
.suggestions {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: calc(100% + 0.5rem);
  background: #fbfdff;
  color: #1a3040;
  border: 1px solid #c2d1db;
  border-radius: 0.7rem;
  box-shadow: 0 0.8rem 2rem #0005;
  padding: 0.3rem;
  max-height: min(23rem, 48vh);
  overflow-y: auto;
}
.suggestions[hidden] {
  display: none;
}
.suggestions a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  border-radius: 0.4rem;
  font-weight: 620;
}
.suggestions a:is(:hover, :focus-visible) {
  background: #d8eff9;
  outline: none;
}
.suggestions small {
  display: block;
  font-size: 0.76rem;
  color: #425b70;
  font-weight: 500;
}
.browse {
  padding-block: clamp(2.4rem, 4.3vw, 3.6rem);
}
.section-head {
  justify-content: space-between;
  margin-bottom: 1.35rem;
  gap: 1rem;
}
.section-head h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.05rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
  font-weight: 700;
}
.section-head > span {
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}
.section-head .ui-icon {
  color: var(--cyan);
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.topic-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: linear-gradient(123deg, var(--panel-top), var(--panel));
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}
.topic-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 63%, var(--line));
  background: linear-gradient(123deg, var(--panel-hover), var(--panel));
}
.card-top {
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}
.emblem {
  position: relative;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 0.78rem;
  background: color-mix(in srgb, var(--accent) 15%, #21303e);
  color: var(--accent);
}
.emblem .symbol {
  width: 55%;
  height: 55%;
  background: var(--accent);
  mask: var(--symbol) center / contain no-repeat;
  -webkit-mask: var(--symbol) center / contain no-repeat;
}
.count {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 550;
}
.topic-card h3 {
  font-size: clamp(1.09rem, 1.65vw, 1.34rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 680;
  margin: 0 0 0.38rem;
  text-wrap: initial;
}
.topic-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 450;
}
footer {
  border-top: 1px solid #344452;
  background: #121d27;
}
.footer-inner {
  min-height: 4.3rem;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--subtle);
}
.footer-inner a {
  color: var(--muted);
}
.utility {
  background: #1a2834;
  border-bottom: 1px solid #344553;
}
.utility-inner {
  justify-content: space-between;
  gap: 1.2rem;
  padding-block: 1.25rem;
}
.utility .search-box {
  width: min(24rem, 48%);
}
.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.crumb a {
  text-decoration: none;
}
.crumb a:hover {
  text-decoration: underline;
}
.crumb [aria-hidden] {
  color: #92a6b5;
}
.inner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 17.5rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3.75rem);
}
.reading {
  min-width: 0;
  overflow-wrap: anywhere;
}
.page-heading {
  margin-bottom: 1.6rem;
}
.page-heading > .emblem {
  margin-bottom: 0.85rem;
}
.page-heading h1 {
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
  font-weight: 720;
  text-wrap: pretty;
}
.page-heading p {
  margin-top: 0.8rem;
  font-size: 1.03rem;
  line-height: 1.65;
  color: var(--muted);
}
.sidebar {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.1rem, 2vw, 2rem);
}
.sidebar summary {
  color: var(--text);
  font-weight: 650;
  font-size: 1rem;
  margin: 0 0 0.7rem;
}
.sidebar nav {
  display: grid;
  gap: 0.1rem;
  margin: 0 0 1rem;
}
.sidebar nav a,
.aside-contact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 0.45rem;
  padding: 0.55rem 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 540;
  line-height: 1.4;
  text-decoration: none;
}
.sidebar a:is(:hover, [aria-current]) {
  color: var(--text);
  background: var(--panel);
}
.sidebar .emblem {
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 0.35rem;
}
.aside-contact {
  color: var(--link);
  padding: 0.8rem 0.4rem;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.list-title,
.date {
  color: var(--muted);
  font-size: 0.86rem;
}
.date {
  gap: 0.45rem;
  margin-top: 1rem;
}
.rows {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0;
  border-block-start: 1px solid var(--line);
}
.article-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--text);
  font-weight: 580;
  text-decoration: none;
  border-block-end: 1px solid var(--line);
  padding: 1rem 0.25rem;
}
.article-row:hover {
  color: var(--link);
  background: #ffffff05;
}
.article-row > .ui-icon {
  color: var(--cyan);
  margin-top: 0.14rem;
}
.article-row small {
  display: block;
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 0.18rem;
}
.article-row p {
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.3rem;
}
.prose {
  border-top: 1px solid var(--line);
  padding-top: 1.45rem;
  line-height: 1.8;
  font-family: var(--body-font);
}
.prose > * + * {
  margin-top: 1.2rem;
}
.prose h2 {
  font-size: 1.35rem;
  line-height: 1.35;
  margin-top: 1.9rem;
}
.prose a,
.text-link {
  text-underline-offset: 0.18rem;
}
.prose li + li {
  margin-top: 0.45rem;
}
.prose ul,
.prose ol {
  padding-left: 1.6rem;
  margin-bottom: 0;
}
.prose li::marker {
  color: var(--cyan);
  font-weight: 650;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: 0.8rem;
  align-items: start;
}
.gallery a {
  display: block;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
}
/* Breakpoints follow the available reading and control widths. */
@media (max-width: 60rem) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-copy {
    max-width: 31rem;
  }
  .inner-layout {
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) 13.5rem;
  }
}
@media (max-width: 43rem) {
  .mast-inner {
    min-height: 4rem;
    gap: 0.65rem;
  }
  .brand {
    gap: 0.65rem;
  }
  .brand span {
    padding-left: 0.65rem;
    font-size: 0.78rem;
  }
  .brand img {
    width: 5.7rem;
  }
  .mast nav {
    gap: 0.7rem;
    font-size: 0.78rem;
  }
  .mast .site-link {
    display: none;
  }
  .support-link {
    padding: 0.52rem 0.65rem;
  }
  .hero-photo {
    left: 0;
  }
  .hero-photo img {
    object-position: 60% 40%;
  }
  .hero::after {
    background:
      linear-gradient(
        90deg,
        rgb(14 24 34 / 92%),
        rgb(14 24 34 / 65%) 55%,
        rgb(14 24 34 / 18%)
      ),
      linear-gradient(0deg, rgb(14 24 34 / 65%), transparent 60%);
  }
  .hero-copy {
    max-width: 29rem;
  }
  .hero-inner {
    padding-block: 2.6rem 2rem;
  }
  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 6.5vw, 2.6rem);
  }
  .quick {
    gap: 0.25rem 0.8rem;
  }
  .inner-layout {
    display: block;
  }
  .sidebar {
    margin-top: 2.25rem;
    padding: 1.1rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .utility-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
    padding-block: 0.8rem 1rem;
  }
  .utility .search-box {
    width: 100%;
  }
}
@media (max-width: 36rem) {
  .topic-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .browse {
    padding-block: 2rem;
  }
  .topic-card {
    display: grid;
    grid-template-columns: 2.7rem 1fr;
    column-gap: 0.9rem;
    padding: 1rem;
  }
  .card-top {
    display: contents;
  }
  .card-top .emblem {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 2.7rem;
    height: 2.7rem;
  }
  .topic-card h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.08rem;
  }
  .topic-card p {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.88rem;
  }
  .count {
    grid-column: 2;
    grid-row: 3;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--subtle);
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    flex-wrap: wrap;
    padding-block: 1rem;
  }
}
@media (max-width: 23rem) {
  .brand span {
    display: none;
  }
  .search-box {
    gap: 0.4rem;
    padding-left: 0.6rem;
  }
  .search-box input {
    font-size: 0.92rem;
  }
  .search-box button {
    padding-inline: 0.65rem;
  }
  .section-head > span {
    font-size: 0.75rem;
  }
  .section-head h2 {
    font-size: 1.38rem;
  }
  .section-head {
    gap: 0.4rem;
  }
  .sidebar nav {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  .mast,
  .utility,
  .sidebar,
  footer,
  .skip {
    display: none;
  }
  .inner-layout {
    display: block;
    width: 100%;
    padding: 0;
  }
  .date,
  .prose a,
  .prose li::marker {
    color: #333;
  }
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feedback {
  border-top: 1px solid var(--line);
  margin: 2rem 0 0;
  padding: 1.15rem 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.feedback strong {
  color: var(--text);
}
.feedback button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.45rem 0.85rem;
  color: var(--text);
}
.feedback button:hover {
  border-color: var(--cyan);
}
.feedback p {
  flex-basis: 100%;
}
@media print {
  .feedback {
    display: none;
  }
}
