@font-face {
  font-family: "Montserrat";
  src: url("/public/original/fonts/montserrat-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/public/original/fonts/montserrat-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat Alternates";
  src: url("/public/original/fonts/montserrat-alternates-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/public/original/fonts/poppins-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/public/original/fonts/poppins-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --accent: #3452ff;
  --pink: #ff1d5e;
  --ink: #3d3d3d;
  --muted: #696969;
  --line: #d7d7d7;
  --paper: #ffffff;
  --soft: #f4f4f4;
  --footer: #202020;
  --content: 1100px;
  --reader: #222222;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #142fcf;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--footer);
  color: #fff;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.content-shell {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 146px;
  border-bottom: 1px solid #eeeeee;
  background: rgba(255, 255, 255, 0.98);
}

.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  align-items: center;
  width: min(var(--content), calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 140px;
}

.site-logo img {
  width: 200px;
  height: 140px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav--left {
  justify-content: flex-end;
  padding-right: 42px;
}

.desktop-nav--right {
  justify-content: flex-start;
  padding-left: 42px;
}

.desktop-nav a,
.mobile-menu a {
  color: #555555;
  font-family: "Montserrat Alternates", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  color: var(--accent);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.home-hero {
  position: relative;
  height: 650px;
  overflow: hidden;
  background: #484350;
  color: #ffffff;
}

.home-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(55, 49, 64, 0.52);
}

.home-hero__content {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(900px, calc(100% - 48px));
  text-align: center;
  transform: translate(-50%, -45%);
}

.home-hero h1 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 66px;
  font-weight: 400;
  line-height: 1;
}

.home-hero p {
  margin: 18px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.7;
}

.home-intro {
  min-height: 630px;
  padding-top: 52px;
  padding-bottom: 88px;
}

.home-intro h2,
.page-intro h2,
.about-closing h2,
.history-section h2,
.research-repeat h2,
.commissioners h2,
.calendar-section h2,
.study-feature h2 {
  margin: 0;
  color: #383838;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.home-intro h2 {
  width: min(100%, 920px);
  font-size: 42px;
  line-height: 1.21;
}

.two-column-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  margin-top: 126px;
}

.two-column-copy p,
.page-intro p,
.history-section p,
.commissioner p {
  margin: 0;
  color: #585858;
  line-height: 1.08;
}

.study-feature {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 333px;
  gap: 52px;
  width: min(var(--content), calc(100% - 48px));
  min-height: 600px;
  margin-inline: auto;
  padding: 30px 0 70px;
}

.study-feature h2 {
  max-width: 690px;
  font-size: 24px;
  line-height: 1.35;
}

.study-feature blockquote,
.research-repeat blockquote,
.history-quote {
  margin: 20px 0 0;
}

.quote-mark {
  display: block;
  height: 58px;
  color: var(--pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
}

.study-feature blockquote > p,
.research-repeat blockquote > p,
.history-quote > p {
  margin: 13px 0 0;
  color: #555555;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.68;
}

.study-feature blockquote footer,
.research-repeat blockquote footer,
.history-quote footer {
  display: grid;
  gap: 8px;
  margin-top: 34px;
  color: #777777;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.25;
}

.study-feature cite,
.research-repeat cite {
  font-style: normal;
}

.paper-thumb {
  width: 333px;
  margin: 0;
}

.paper-preview {
  display: block;
  width: 333px;
  height: 430px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #eeeeee;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.paper-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.paper-thumb figcaption {
  margin-top: 14px;
  color: #666666;
  font-size: 13px;
  line-height: 1.35;
}

.archive-gallery {
  width: 100%;
  padding: 92px 0 112px;
  background: #ffffff;
}

.archive-gallery__heading {
  margin-bottom: 46px;
}

.archive-gallery__heading p {
  margin: 0 0 11px;
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.archive-gallery__heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.15;
}

.event-albums {
  border-top: 1px solid var(--line);
}

.event-album {
  border-bottom: 1px solid var(--line);
}

.event-album__summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr) 44px;
  gap: 38px;
  align-items: center;
  min-height: 260px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}

.event-album__summary::-webkit-details-marker {
  display: none;
}

.event-album__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--soft);
  object-fit: cover;
  object-position: var(--image-x) var(--image-y);
}

.event-album__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.event-album__meta,
.event-album__count {
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
}

.event-album__title {
  margin-top: 13px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.18;
}

.event-album__description {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.event-album__count {
  margin-top: 23px;
}

.event-album__toggle {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  transition: transform 160ms ease;
}

.event-album[open] .event-album__toggle {
  transform: rotate(45deg);
}

.event-album__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 0 34px;
}

.event-album__photo {
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 0;
  background: var(--soft);
  cursor: zoom-in;
}

.event-album__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-x) var(--image-y);
  transition: transform 180ms ease;
}

.event-album__photo:hover img {
  transform: scale(1.015);
}

.gallery-status {
  display: grid;
  min-height: 300px;
  place-items: center;
  color: #777777;
}

.calendar-section {
  background: #ffffff;
  padding: 180px 0 135px;
}

.calendar-section__intro {
  text-align: center;
}

.calendar-section h2 {
  font-size: 36px;
  line-height: 1.2;
}

.calendar-section__intro p {
  max-width: 930px;
  margin: 18px auto 0;
  color: #585858;
  font-size: 16px;
  line-height: 1.18;
}

.booking-row {
  display: grid;
  grid-template-columns: 1fr 12px 1fr auto;
  align-items: center;
  gap: 26px;
  margin-top: 310px;
}

.booking-row p {
  margin: 0;
  color: #555555;
  line-height: 1.2;
}

.booking-row p:nth-of-type(2) {
  text-align: right;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 8px 16px;
  border: 1px solid #999999;
  border-radius: 2px;
  color: #333333;
  line-height: 1;
  text-decoration: none;
}

.outline-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.recent-battles {
  margin-top: 105px;
}

.recent-battles h2 {
  margin-bottom: 48px;
  text-align: center;
}

.battle-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  align-items: center;
  min-height: 79px;
  padding: 18px 22px;
  color: #555555;
  line-height: 1.18;
}

.battle-row > :nth-child(2),
.battle-row > :nth-child(3) {
  text-align: center;
}

.battle-row--accent {
  background: #2d55f6;
  color: #ffffff;
}

.site-footer {
  min-height: 330px;
  padding-top: 210px;
  background: var(--footer);
  color: #9b9b9b;
  font-size: 14px;
  line-height: 1.4;
}

/* Interior pages */
.page-main {
  min-height: 550px;
}

.page-title {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0 48px;
  color: #383838;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1;
}

.page-intro {
  padding-bottom: 96px;
}

.page-intro h2 {
  max-width: 920px;
  font-size: 38px;
  line-height: 1.25;
}

.page-intro .two-column-copy {
  margin-top: 72px;
}

.about-closing {
  padding: 72px 0 96px;
  background: #f5f5f5;
}

.about-closing h2 {
  max-width: 1000px;
  font-size: 34px;
  line-height: 1.3;
}

.history-section {
  padding: 95px 0;
}

.history-section--soft {
  background: #f5f5f5;
}

.history-section h2,
.research-repeat h2,
.commissioners h2 {
  font-size: 38px;
  line-height: 1.2;
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 70px;
  align-items: start;
  margin-top: 44px;
}

.history-section p {
  line-height: 1.55;
}

.history-section p + p {
  margin-top: 25px;
}

.video-frame,
.history-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #e8e8e8;
  object-fit: cover;
}

.history-quote {
  padding: 0 16px;
}

.history-quote > p {
  margin-top: 0;
  font-size: 22px;
  line-height: 1.55;
}

.history-quote footer {
  margin-top: 26px;
}

.contact-button {
  display: inline-flex;
  margin-top: 30px;
  padding: 13px 22px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.contact-button:hover {
  background: #142fcf;
  color: #ffffff;
}

.documentary-image {
  width: 100%;
  margin-top: 54px;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.research-repeat {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 333px;
  gap: 52px;
  padding: 92px 0;
}

.research-repeat h2 {
  max-width: 720px;
  font-size: 28px;
}

.research-repeat blockquote > p {
  font-size: 22px;
}

.commissioners {
  padding: 90px 0 120px;
  background: #f5f5f5;
}

.commissioner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  margin-top: 52px;
}

.commissioner img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.commissioner h3 {
  margin: 26px 0 18px;
  color: #3d3d3d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.2;
}

.commissioner p {
  line-height: 1.55;
}

.commissioner p + p {
  margin-top: 20px;
}

/* Science archive */
.science-main {
  padding: 82px 0 120px;
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 333px);
  gap: 68px 50px;
  justify-content: center;
}

.science-intro {
  color: #555555;
  font-size: 18px;
  line-height: 1.5;
}

.science-intro p {
  margin: 0 0 26px;
}

.science-intro blockquote {
  margin: 0;
  color: #555555;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
}

.paper-card {
  width: 333px;
  margin: 0;
}

.paper-card__cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 333px;
  height: 430px;
  padding: 38px 31px;
  overflow: hidden;
  border: 0;
  background: #ececec;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
  color: #2e2e2e;
  cursor: pointer;
  text-align: left;
}

.paper-card__cover:not(button) {
  cursor: default;
}

.paper-card__cover::before {
  position: absolute;
  inset: 22px;
  border: 1px solid #c8c8c8;
  content: "";
}

.paper-card:nth-child(4n + 2) .paper-card__cover {
  background: #f2f0eb;
}

.paper-card:nth-child(4n + 3) .paper-card__cover {
  background: #e9edf0;
}

.paper-card:nth-child(4n + 4) .paper-card__cover {
  background: #f1ecec;
}

.paper-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.paper-card__cover span {
  position: relative;
  z-index: 1;
  max-width: 245px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.paper-card figcaption {
  margin-top: 15px;
  color: #555555;
  font-size: 14px;
  line-height: 1.45;
}

/* Contact */
.contact-main {
  padding: 82px 0 130px;
}

.not-found {
  min-height: 620px;
  padding-top: 110px;
  padding-bottom: 110px;
}

.not-found__code {
  margin: 0 0 18px;
  color: var(--pink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
}

.not-found h1 {
  margin: 0;
  color: #383838;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1.1;
}

.not-found > p:not(.not-found__code) {
  max-width: 620px;
  margin: 24px 0 0;
  color: #585858;
  line-height: 1.5;
}

.contact-form {
  position: relative;
  width: min(720px, 100%);
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-field {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.form-field label,
.form-field legend {
  color: #4c4c4c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #c6c6c6;
  border-radius: 0;
  background: #f7f7f7;
}

.form-field input,
.form-field select {
  min-height: 48px;
  padding: 9px 12px;
}

.form-field textarea {
  min-height: 220px;
  padding: 12px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  min-width: 92px;
  min-height: 44px;
  padding: 10px 21px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

.contact-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.58;
}

.form-note {
  margin: 18px 0 0;
  color: #777777;
  line-height: 1.4;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: #666666;
  line-height: 1.4;
}

.form-status--success {
  color: #17724a;
}

.form-status--error {
  color: #a12d3b;
}

/* Paper reader and photo lightbox */
dialog {
  padding: 0;
  border: 0;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.3;
}

.paper-reader {
  width: min(1180px, calc(100vw - 32px));
  height: min(900px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  background: var(--reader);
  color: #ffffff;
}

.paper-reader__shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.paper-reader__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid #444444;
}

.paper-reader__header h2 {
  margin: 0;
  overflow: hidden;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper-reader__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.paper-reader__tools a {
  color: #ffffff;
  font-size: 14px;
}

.paper-reader__stage {
  display: grid;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
  place-items: center;
}

.paper-book {
  width: 100%;
  height: 100%;
}

.paper-reader__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 66px;
  border-top: 1px solid #444444;
}

.paper-reader__controls output {
  min-width: 95px;
  text-align: center;
}

.gallery-lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  overflow: hidden;
  background: #0c0c0c;
}

.gallery-lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-lightbox__caption {
  position: fixed;
  z-index: 2;
  right: 72px;
  bottom: 20px;
  left: 72px;
  margin: 0;
  color: #f4f4f4;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 1px 3px #000000;
}

.gallery-lightbox .icon-button {
  position: fixed;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
}

.gallery-lightbox__close {
  top: 18px;
  right: 18px;
}

.gallery-lightbox__previous,
.gallery-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox__previous {
  left: 18px;
}

.gallery-lightbox__next {
  right: 18px;
}

@media (max-width: 1100px) {
  .event-album__summary {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr) 44px;
    gap: 28px;
  }

  .event-album__photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .science-grid {
    grid-template-columns: repeat(2, 333px);
  }

  .site-header__inner {
    width: calc(100% - 30px);
  }

  .desktop-nav {
    gap: 19px;
  }

  .desktop-nav--left {
    padding-right: 24px;
  }

  .desktop-nav--right {
    padding-left: 24px;
  }
}

@media (max-width: 760px) {
  .content-shell,
  .page-title,
  .study-feature,
  .site-header__inner {
    width: min(100% - 36px, var(--content));
  }

  .site-header {
    height: 92px;
  }

  .site-header__inner {
    display: flex;
    justify-content: space-between;
  }

  .site-logo,
  .site-logo img {
    width: 126px;
    height: 88px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #555555;
    cursor: pointer;
    font-family: "Montserrat Alternates", sans-serif;
  }

  .mobile-menu {
    position: absolute;
    top: 92px;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 18px 22px;
    border-top: 1px solid #eeeeee;
    background: #ffffff;
  }

  .mobile-menu.is-open {
    display: grid;
  }

  .mobile-menu a {
    padding: 13px 0;
    border-bottom: 1px solid #eeeeee;
  }

  .home-hero {
    height: 520px;
  }

  .home-hero h1 {
    font-size: 42px;
    line-height: 1.05;
  }

  .home-hero p {
    font-size: 20px;
    line-height: 1.4;
  }

  .home-intro {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 68px;
  }

  .home-intro h2,
  .page-intro h2 {
    font-size: 31px;
    line-height: 1.25;
  }

  .two-column-copy {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 54px;
  }

  .two-column-copy p,
  .page-intro p {
    line-height: 1.45;
  }

  .study-feature,
  .research-repeat {
    grid-template-columns: 1fr;
    gap: 45px;
    min-height: 0;
    padding: 58px 0 78px;
  }

  .study-feature h2 {
    font-size: 23px;
  }

  .study-feature blockquote > p,
  .research-repeat blockquote > p,
  .history-quote > p {
    font-size: 20px;
    line-height: 1.55;
  }

  .paper-thumb,
  .paper-preview {
    width: min(333px, 100%);
  }

  .paper-preview {
    height: auto;
    aspect-ratio: 333 / 430;
  }

  .archive-gallery {
    padding: 66px 0 78px;
  }

  .archive-gallery__heading {
    margin-bottom: 30px;
  }

  .archive-gallery__heading h2 {
    font-size: 32px;
  }

  .event-album__summary {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 24px 0 28px;
  }

  .event-album__copy {
    padding-right: 52px;
  }

  .event-album__title {
    font-size: 25px;
  }

  .event-album__toggle {
    position: absolute;
    right: 0;
    bottom: 29px;
  }

  .event-album__photos {
    gap: 4px;
    padding-bottom: 26px;
  }

  .gallery-lightbox__caption {
    right: 56px;
    bottom: 14px;
    left: 56px;
    font-size: 12px;
  }

  .calendar-section {
    padding: 100px 0 90px;
  }

  .calendar-section h2 {
    font-size: 32px;
  }

  .calendar-section__intro p {
    line-height: 1.45;
  }

  .booking-row {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 50px;
  }

  .booking-row > span {
    display: none;
  }

  .booking-row p:nth-of-type(2) {
    text-align: left;
  }

  .outline-button {
    justify-self: start;
  }

  .recent-battles {
    margin-top: 82px;
  }

  .battle-row {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 19px 16px;
  }

  .battle-row > :nth-child(2),
  .battle-row > :nth-child(3) {
    text-align: left;
  }

  .site-footer {
    min-height: 230px;
    padding-top: 145px;
  }

  .page-title {
    padding: 56px 0 38px;
    font-size: 43px;
  }

  .page-intro {
    padding-bottom: 70px;
  }

  .about-closing,
  .history-section,
  .commissioners {
    padding: 66px 0;
  }

  .about-closing h2 {
    font-size: 29px;
  }

  .history-section h2,
  .commissioners h2 {
    font-size: 34px;
  }

  .history-grid,
  .commissioner-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .history-quote {
    padding: 0;
  }

  .documentary-image {
    aspect-ratio: 4 / 3;
  }

  .science-main {
    padding-top: 54px;
  }

  .science-grid {
    grid-template-columns: minmax(0, 333px);
    gap: 52px;
  }

  .paper-card,
  .paper-card__cover {
    width: min(333px, 100%);
  }

  .paper-card__cover {
    height: auto;
    aspect-ratio: 333 / 430;
  }

  .contact-main {
    padding-top: 55px;
  }

  .paper-reader {
    width: 100vw;
    height: 100dvh;
  }

  .paper-reader__header h2 {
    max-width: 45vw;
  }

  .paper-reader__stage {
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .event-album__toggle,
  .event-album__photo img {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --accent: #8fa0ff;
    --pink: #ff4f7f;
    --ink: #f1f0ed;
    --muted: #c1c1c6;
    --line: #3b3d43;
    --paper: #141519;
    --soft: #1e2025;
    --footer: #0c0d10;
    --reader: #141519;
  }

  html,
  body,
  .archive-gallery,
  .calendar-section {
    background: var(--paper);
    color: var(--ink);
  }

  a {
    color: var(--accent);
  }

  a:hover {
    color: #bec6ff;
  }

  .site-header {
    border-bottom-color: #2b2d33;
    background: rgba(20, 21, 25, 0.98);
  }

  .site-logo img {
    content: url("/public/original/logo-dark.png");
  }

  .desktop-nav a,
  .mobile-menu a,
  .menu-toggle {
    color: #e6e4e0;
  }

  .desktop-nav a:hover,
  .desktop-nav a[aria-current="page"],
  .mobile-menu a:hover,
  .mobile-menu a[aria-current="page"] {
    color: var(--accent);
  }

  .home-intro h2,
  .page-intro h2,
  .about-closing h2,
  .history-section h2,
  .research-repeat h2,
  .commissioners h2,
  .calendar-section h2,
  .study-feature h2,
  .page-title,
  .commissioner h3,
  .not-found h1 {
    color: var(--ink);
  }

  .two-column-copy p,
  .page-intro p,
  .history-section p,
  .commissioner p,
  .study-feature blockquote > p,
  .research-repeat blockquote > p,
  .history-quote > p,
  .calendar-section__intro p,
  .booking-row p,
  .battle-row,
  .science-intro,
  .science-intro blockquote,
  .paper-thumb figcaption,
  .paper-card figcaption {
    color: #c5c3bf;
  }

  .archive-gallery__heading p,
  .event-album__meta,
  .event-album__description,
  .event-album__count {
    color: #aaa9ae;
  }

  .archive-gallery__heading h2,
  .event-album__title,
  .event-album__toggle {
    color: var(--ink);
  }

  .not-found > p:not(.not-found__code) {
    color: #c5c3bf;
  }

  .study-feature blockquote footer,
  .research-repeat blockquote footer,
  .history-quote footer {
    color: #aaa9ae;
  }

  .paper-preview {
    background: #292b31;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
  }

  .gallery-status,
  .form-note,
  .form-status {
    color: #aaa9ae;
  }

  .form-status--success {
    color: #70d6a5;
  }

  .form-status--error {
    color: #ff8794;
  }

  .outline-button {
    border-color: #777a84;
    color: var(--ink);
  }

  .outline-button:hover {
    border-color: var(--accent);
    color: #bec6ff;
  }

  .battle-row--accent {
    background: #304dcc;
    color: #ffffff;
  }

  .site-footer {
    background: var(--footer);
    color: #999aa1;
  }

  .about-closing,
  .history-section--soft,
  .commissioners {
    background: var(--soft);
  }

  .video-frame,
  .history-image {
    background: #292b31;
  }

  .contact-button,
  .contact-form button[type="submit"] {
    background: #405cdc;
    color: #ffffff;
  }

  .contact-button:hover {
    background: #536de8;
  }

  .paper-card__cover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  }

  .form-field label,
  .form-field legend {
    color: var(--ink);
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    border-color: #4c4f58;
    background: #1e2025;
    color: var(--ink);
  }

  .mobile-menu {
    border-top-color: #2b2d33;
    background: var(--paper);
  }

  .mobile-menu a {
    border-bottom-color: #2b2d33;
  }
}
