@font-face {
  font-family: 'Domaine Sans Text';
  src: url('/fonts/DomaineSansText-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Sans Text';
  src: url('/fonts/DomaineSansText-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Sans Text';
  src: url('/fonts/DomaineSansText-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Sans Text';
  src: url('/fonts/DomaineSansText-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Sans Text';
  src: url('/fonts/DomaineSansText-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Domaine Sans Text';
  src: url('/fonts/DomaineSansText-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lyon Display';
  src: url('/fonts/LyonDisplay-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lyon Display';
  src: url('/fonts/LyonDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pitch';
  src: url('/fonts/Pitch-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-sans: 'Domaine Sans Text', Arial, Helvetica, sans-serif;
  --font-serif: 'Lyon Display', Georgia, serif;
  --font-caption: 'Pitch', 'Courier New', monospace;
  --paper: #f8ebba;
  --ink: #292624;
  --olive: #827858;
  --about: #e7e3da;
  --gallery: #f4f2ed;
  --contact: #f3e298;
  --page-margin: 6.4%;
  --contact-top-padding: 4rem;
  --page-background: var(--about);
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--page-background);
  font-synthesis: none;
}

:root:has(body[data-page="upload"]) {
  --page-background: var(--gallery);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 280px;
  padding-top: 12.5rem;
}

body[data-page="home"],
body[data-page="about"],
body[data-page="upload"] {
  background: var(--page-background);
}

body[data-page="upload"],
body[data-page="upload"] .site-header {
  background: var(--gallery);
}

body[data-page="about"] main {
  min-height: unset;
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .6;
}

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  background: var(--about);
  /* Equal side margins. The nav column starts on the about page’s second column, which is the midpoint when those margins match. */
  grid-template-columns: var(--page-margin) calc(50% - var(--page-margin)) minmax(0, 1fr) var(--page-margin);
  align-items: start;
  align-content: start;
  column-gap: 0;
  /* auto shrink-wraps. fit-content on a fixed box stretches to the viewport in mobile Safari. */
  height: auto;
  bottom: auto;
  padding: 1.5rem 0 1.5rem;
  --header-line: 0;
  border-bottom: 1px solid rgb(from #7E7F59 r g b / var(--header-line));
}

.brand {
  display: block;
  width: max-content;
  position: relative;
  transform-origin: left top;
  text-decoration: none;
  grid-column: 2;
  grid-row: 1;
}

/* The image is unchanged; this frame excludes its transparent canvas margins. */
.brand-mark {
  display: block;
  position: relative;
  width: 12rem;
  aspect-ratio: 4278 / 2018;
  overflow: hidden;
}

.brand-logo {
  position: absolute;
  display: block;
  width: 116.877045%;
  max-width: none;
  height: auto;
  left: -10.28518%;
  top: -23.934589%;
}

.tagline {
  position: absolute;
  left: 12.8rem;
  bottom: -.05rem;
  margin: 0;
  white-space: nowrap;
  font: bold italic .88rem/1.4 var(--font-caption);
  letter-spacing: .015em;
}

.site-nav {
  display: flex;
  grid-column: 3;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 4.5rem);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.15rem;
  padding: 0 .15rem;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
}

.site-nav :is(a:not([data-upload-link]), a[data-upload-link][aria-current="page"], .admin-logout):is(:hover, :focus-visible) {
  text-decoration: underline;
  text-decoration-color: var(--olive);
  text-decoration-thickness: 3px;
  text-underline-offset: .4em;
}

.site-nav:has(.nav-action:not([hidden])) {
  grid-column: 2 / 4;
  grid-row: 1;
  justify-self: end;
  width: max-content;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.site-nav a[data-upload-link]:not([aria-current="page"]) {
  background: var(--ink);
  color: #fff;
  height: 2.15rem;
  padding: 0 .95rem;
  box-shadow: none;
}

.site-nav a[data-upload-link]:not([aria-current="page"]):hover {
  background: var(--olive);
  color: #fff;
  box-shadow: none;
}

.site-nav button.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.15rem;
  min-width: 10rem;
  padding: 0 2.5rem;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: 300 1rem/1 var(--font-sans);
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: none;
}

.site-nav button.nav-action:hover {
  background: var(--olive);
  color: #fff;
  box-shadow: none;
}

.site-nav a.nav-action {
  background: transparent;
  color: inherit;
  padding: 0 .15rem;
  box-shadow: none;
}

.site-nav a.nav-action:hover {
  background: transparent;
  color: inherit;
  box-shadow: none;
}

main {
  min-height: 100vh;
  margin-top: 3.5rem;
}

body[data-page="home"] main {
  min-height: 0;
  margin-top: 2rem;
  padding-bottom: var(--contact-top-padding);
}

body[data-page="upload"] main {
  min-height: 0;
  margin-top: 2rem;
  padding-bottom: calc(var(--header-height, 10rem) / 2);
}

.content {
  margin-right: var(--page-margin);
  margin-left: var(--page-margin);
  padding-bottom: 4rem;
}

.gallery {
  --gallery-columns: 2;
  --gallery-caption-size: .9rem;
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr));
  gap: 2.1rem 1rem;
}

.gallery-state {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: inherit;
  column-gap: inherit;
  padding-bottom: calc(.45rem + var(--gallery-caption-size) * 1.45);
}

/* One image cell plus its caption reserves a row at every gallery breakpoint. */
.gallery-state::before {
  content: '';
  aspect-ratio: 1.5;
}

.gallery-state-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery[aria-busy="true"] figure {
  display: none;
}

.gallery figure {
  margin: 0;
  min-width: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.gallery figcaption,
.admin-entry figcaption {
  margin-top: .45rem;
  font: bold italic .9rem/1.45 var(--font-caption);
  overflow-wrap: anywhere;
}

.gallery figcaption {
  font-size: var(--gallery-caption-size);
}

.status {
  font-size: .9rem;
  line-height: 1.5;
  margin: 0 0 1.2rem;
}

.gallery-status {
  margin: 2rem 0 0;
}

.gallery-status:empty {
  display: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.about-columns {
  display: contents;
}

p {
  margin: 0 0 1.25em;
}

.about-intro {
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  line-height: 1.5;
  font-weight: 300;
}

.about-copy {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .01em;
}

.contact-section {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 2.5rem;
  background: var(--contact);
  padding: var(--contact-top-padding) var(--page-margin) 5rem;
  scroll-margin-top: 2rem;
}

.contact-intro {
  font-weight: 300;
  grid-column: 1 / -1;
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  line-height: 1.5;
  max-width: 80rem;
}

.contact-bio {
  grid-column: 3;
}

.upload-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 2rem;
  align-items: start;
}

.upload-form>.status,
.upload-form>.action-button,
.form-section,
.upload-form>.section-divider {
  grid-column: 2 / 4;
}

.upload-form>.section-divider {
  width: 100%;
  height: 0;
  border: 0;
  border-top: 1px solid rgb(0 0 0 / 30%);
  margin: 2rem 0;
}

.upload-form>.action-button {
  justify-self: start;
}

.form-section {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.upload-form>.form-section:first-of-type {
  margin-bottom: 0;
}

.upload-form>.form-section:first-of-type>.form-row:last-child {
  margin-bottom: 0;
}

.photo-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  border: 1px dashed var(--ink);
  padding: 2.6rem 1.15rem;
  min-height: 11rem;
  gap: .7rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.form-row>label,
.form-row>input,
.form-row>textarea,
.form-row>div,
.form-row>.field-note {
  min-width: 0;
  width: 100%;
}

.form-row>label,
.split-label label,
.choice-label {
  font: 1rem/1.25 var(--font-serif);
}

.split-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
}

.split-label .field-note {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--font-sans);
}

input:not([type="radio"]):not([type="file"]),
textarea {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  padding: .45rem .6rem;
  min-height: 2.25rem;
}

textarea {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.4;
}

.upload-form input::placeholder,
.upload-form textarea::placeholder,
.dialog input::placeholder {
  color: rgb(41 38 36 / 35%);
  font-size: .9rem;
  font-style: italic;
}

.long-row {
  align-items: start;
}

input[type="file"] {
  width: 100%;
  font-size: .95rem;
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 0;
}

input.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-picker {
  border: 1px solid var(--ink);
  background: #fff;
  padding: .35rem .65rem;
  font: 1rem/1.2 var(--font-sans);
  cursor: pointer;
}

.file-name {
  margin: 0;
  font-size: .95rem;
}

input::file-selector-button {
  font: inherit;
  background: #fff;
  border: 0;
  padding: .35rem .65rem;
  margin-right: .7rem;
  cursor: pointer;
}

.choices {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  min-height: 2.5rem;
}

.choices label {
  display: flex;
  gap: .4rem;
  align-items: center;
}

input[type="radio"] {
  accent-color: var(--olive);
  width: 1.1rem;
  height: 1.1rem;
}

.choice-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  border: 0;
  padding: 0;
  margin: 0 0 1.25rem;
  min-width: 0;
}

.choice-row legend {
  width: 100%;
  min-width: 0;
  font: 1rem/1.25 var(--font-serif);
  padding: 0;
  margin: 0 0 .5rem;
}

.upload-form > .form-section:last-of-type > .form-row:last-child {
  margin-bottom: 0;
}

.upload-form > .status:empty {
  display: none;
}

.choice-row .choices {
  width: 100%;
}

@media (min-width: 1200px) {
  .upload-form {
    column-gap: clamp(3rem, 5vw, 5rem);
  }

  .upload-form>.section-divider {
    grid-column: 1 / 3;
  }

  .upload-form>.form-section:first-of-type+.section-divider {
    display: none;
  }

  .upload-form>.form-section:not(.contribute-section),
  .upload-form>.status,
  .upload-form>.action-button {
    grid-column: 1 / 3;
  }

  .contribute-section {
    display: block;
    grid-column: 3 / 5;
    grid-row: 1 / span 4;
  }
}

.field-note {
  font-size: .85rem;
  line-height: 1.4;
  margin: .3rem 0 0;
}

.upload-preview {
  display: block;
  max-width: min(100%, 26rem);
  max-height: 20rem;
  margin-top: .7rem;
}

.action-button {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: white;
  padding: .7rem 1.4rem;
  font-size: 1rem;
}

.action-button:hover {
  background: var(--olive);
}

.error {
  color: #9c2525;
}

.dialog {
  width: min(28rem, calc(100% - 2rem));
  border: 1px solid var(--olive);
  padding: 2.5rem;
  background: var(--about);
  color: var(--ink);
}

.dialog::backdrop {
  background: rgb(41 38 36 / 35%);
}

.dialog h2 {
  margin: 0 0 1rem;
  font: bold 2rem var(--font-serif);
}

.dialog p {
  margin-bottom: 0;
}

.dialog input[type="password"] {
  margin-top: 1.5rem;
}

.dialog input[type="password"]::placeholder {
  color: rgb(41 38 36 / 35%);
  font-size: .9rem;
  font-style: italic;
}

.dialog-close {
  position: absolute;
  right: .65rem;
  top: .45rem;
  padding: .3rem .5rem;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: 0;
}

.dialog .action-button {
  margin-top: 1.5rem;
  width: 100%;
}

.dialog .secondary-button {
  margin-top: .75rem;
}

.action-button[data-admin-login] {
  border: 0;
  padding: .35rem 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.action-button[data-admin-login]:hover {
  background: transparent;
  color: var(--olive);
}

#admin-dialog input[type="password"] {
  margin-top: 0;
}

body[data-page="admin"] {
  background: var(--page-background);
}

.admin-heading h1 {
  margin: 0;
  font: normal 1.35rem var(--font-serif);
}

.admin-heading {
  grid-column: 2 / 4;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-top: 1.75rem;
  width: 100%;
}

.admin-heading-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}

.admin-icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

.admin-icon-definitions {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.dialog.reorder-dialog {
  width: min(60rem, calc(100% - 2rem));
  height: 75vh;
  min-height: 75vh;
  max-height: 75vh;
  padding: 0;
  overflow: hidden;
}

.reorder-dialog[open] {
  display: flex;
  flex-direction: column;
}

.reorder-dialog #reorder-help {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

.reorder-header {
  flex: none;
  padding: 1.5rem;
  border-bottom: 1px solid rgb(41 38 36 / 15%);
}

.reorder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reorder-heading h2 {
  margin: 0;
}

.reorder-grid {
  flex: 1;
  display: grid;
  align-content: start;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding: 1.5rem;
}

.reorder-card {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 2px solid transparent;
  outline-offset: 2px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.reorder-card[aria-pressed="true"] img {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

.reorder-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  pointer-events: none;
}

.reorder-card span {
  display: block;
  margin-top: .4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
}

.reorder-card.is-dragging { opacity: .35; }
.reorder-card.drop-before { box-shadow: -4px 0 var(--olive); }
.reorder-card.drop-after { box-shadow: 4px 0 var(--olive); }

.reorder-drag-preview {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  padding: .5rem .75rem;
  background: var(--ink);
  color: white;
  font-size: .85rem;
}

.reorder-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgb(41 38 36 / 15%);
}

.reorder-actions #reorder-status {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.reorder-actions .entry-action {
  flex: none;
}

.reorder-card:focus-visible {
  outline-color: var(--ink);
}

.admin-order-field {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  border: 1px solid var(--ink);
}

.admin-order-field::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  width: .3rem;
  height: .3rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

#admin-order,
#reorder-sort {
  appearance: none;
  max-width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: .5rem 2rem .5rem 1rem;
  background: transparent;
  color: inherit;
  font: inherit;
}

#admin-order,
#reorder-sort,
#change-order {
  font-size: .85rem;
}

.entry-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem .75rem;
  margin-top: 1rem;
}

.admin-entry.is-editing .entry-order-actions {
  display: none;
}

.entry-action:disabled:hover {
  background: transparent;
  color: inherit;
}

.entry-order-actions .entry-action:disabled {
  cursor: default;
}

.admin-entry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  padding: 2.5rem 0;
}

.admin-entry:first-child {
  padding-top: 0;
}

.admin-entry.is-hidden > figure,
.admin-entry.is-hidden .admin-entry-details > dl {
  filter: grayscale(1);
  opacity: .45;
}

.admin-entries:has(.is-editing) .admin-entry:not(.is-editing) {
  opacity: .3;
}

.admin-entry :is(input, textarea, select).entry-editor {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: .5rem;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
}

.admin-entry textarea.entry-editor {
  resize: vertical;
}

.admin-entry .entry-editor:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.admin-entry + .admin-entry {
  border-top: 1px solid rgb(0 0 0 / 30%);
}

.admin-entry figure,
.admin-entry dl {
  min-width: 0;
  margin: 0;
}

.admin-entry img {
  display: block;
  width: 100%;
  height: auto;
}

.admin-entry figcaption {
  margin-top: .5rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-entry dt {
  font: .75rem/1.25 var(--font-serif);
  margin-bottom: .5rem;
}

.admin-entry-number {
  font-family: var(--font-sans);
  font-style: normal;
}

.admin-entry dd {
  margin: 0 0 1.5rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.admin-entry dd:last-child {
  margin-bottom: 0;
}

.admin-entry-details {
  min-width: 0;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem .75rem;
  margin-top: 2rem;
}

.entry-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid var(--ink);
  padding: .5rem 1rem;
  background: transparent;
}

.entry-action:hover {
  background: var(--ink);
  color: white;
}

.entry-action-delete {
  color: #a52c2c;
  border-color: #a52c2c;
}

.entry-action-delete:hover:not(:disabled) {
  background: #a52c2c;
  color: white;
}

.admin-toast {
  position: fixed;
  z-index: 200;
  top: 1rem;
  left: 50%;
  max-width: calc(100% - 2rem);
  padding: .85rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
  transform: translate(-50%, calc(-100% - 1rem));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease, visibility .2s;
}

.admin-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .admin-toast { transition: none; }
}

.entry-action-status:not(:empty) {
  margin-top: .75rem;
}

.admin-logout {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
}

@media (max-width: 600px) {
  .admin-heading {
    grid-column: 1;
    grid-row: auto;
    justify-content: center;
    margin-top: 0;
  }

  .reorder-header, .reorder-grid { padding: 1rem; }
  .reorder-heading { gap: .5rem; }
  .reorder-heading h2 { font-size: 1.4rem; }
  .reorder-actions { padding: 1rem; gap: .5rem; }
  .reorder-actions .entry-action { padding: .5rem .65rem; font-size: .85rem; }
  .reorder-actions #reorder-status { font-size: .85rem; }
  .admin-heading-controls { justify-content: center; }
  .reorder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-entry {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="admin"] .site-nav {
    flex-wrap: wrap;
    row-gap: 1rem;
  }
}

.dialog .status {
  margin: 0;
}

.dialog .status:not(:empty) {
  margin-top: .8rem;
}

@media (min-width: 1601px) {
  .gallery {
    --gallery-columns: 3;
  }
}

@media (min-width: 1700px) {
  .site-header {
    /* min-height: 21rem; */
  }
}

@media (max-width: 1360px) and (min-width: 1001px) {
  .about-grid,
  .contact-section {
    grid-template-columns: 2fr 2fr;
  }

  .about-columns {
    display: block;
    grid-column: 2;
    min-width: 0;
  }

  .contact-bio {
    grid-column: 2;
  }
}

@media (max-width: 1000px) {
  body {
    padding-top: 11.25rem;
  }

  .site-header {
    grid-template-columns: var(--page-margin) minmax(0, 1fr) minmax(0, 1fr) var(--page-margin);
  }

  .about-grid,
  .contact-section {
    grid-template-columns: 1fr 1fr;
  }

  .contact-bio {
    grid-column: 2;
  }

  .about-columns {
    display: contents;
  }

  .about-intro {
    grid-column: 1 / -1;
    max-width: 45rem;
  }

}

@media (max-width: 600px) {
  body {
    padding-top: 15.25rem;
  }

  .site-header {
    margin: 0;
    padding: 1.5rem var(--page-margin) .75rem;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 1.75rem;
  }

  main {
    margin-top: 4rem;
  }

  body[data-page="home"] main,
  body[data-page="upload"] main {
    margin-top: 2rem;
  }

  .brand {
    display: grid;
    /* Definite width so the 1fr tracks cannot cycle with max-content and stretch the header. */
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
    justify-self: stretch;
    align-self: start;
    transform-origin: center top;
  }

  .brand-mark {
    grid-column: 2;
  }

  .brand,
  .site-nav {
    grid-column: 1;
  }

  .site-nav {
    justify-content: center;
  }

  .site-nav:has(.nav-action:not([hidden])) {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    max-width: 100%;
  }

  .brand-mark {
    width: 10.5rem;
  }

  .tagline {
    grid-column: 1 / -1;
    position: static;
    left: auto;
    bottom: auto;
    margin: .6rem 0 0;
    font-size: .8rem;
    white-space: normal;
    text-align: center;
  }

  .site-nav {
    gap: 2.3rem;
  }

  .content {
    margin-right: var(--page-margin);
    margin-left: var(--page-margin);
    padding-bottom: 3rem;
  }

  .gallery {
    --gallery-columns: 1;
    --gallery-caption-size: .85rem;
    gap: 1.8rem;
  }

  .gallery figcaption,
  .admin-entry figcaption {
    font-size: .85rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .contact-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-bio {
    grid-column: 1;
  }

  .about-intro {
    font-size: 1.45rem;
  }

  .contact-section {
    padding-bottom: 3rem;
  }

  .contact-intro a {
    overflow-wrap: anywhere;
  }

  .upload-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-section,
  .contribute-section,
  .upload-form>.status,
  .upload-form>.action-button,
  .upload-form>.section-divider {
    grid-column: 1;
  }

  .contribute-section {
    display: block;
  }

  .dialog {
    padding: 2rem 1.5rem;
  }
}
