:root {
  --white: white;
  --black: black;
  --blue: blue;
  --red: red;
  --orange: orange;
  --yellow: yellow;
  --green: green;
  --purple: purple;
  --bg: var(--white);
  --fg: var(--black);
  --link: var(--blue);
  --surface-muted: #e8e4dc;
  --border: var(--black);
  --handle-bg: color-mix(in srgb, var(--black) 8%, var(--white));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111;
    --fg: #eee;
    --link: #7eb6ff;
    --surface-muted: #2a2824;
    --border: #ccc;
    --handle-bg: color-mix(in srgb, var(--fg) 8%, var(--bg));
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #111;
  --fg: #eee;
  --link: #7eb6ff;
  --surface-muted: #2a2824;
  --border: #ccc;
  --handle-bg: color-mix(in srgb, var(--fg) 8%, var(--bg));
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: var(--white);
  --fg: var(--black);
  --link: var(--blue);
  --surface-muted: #e8e4dc;
  --border: var(--black);
  --handle-bg: color-mix(in srgb, var(--black) 8%, var(--white));
  color-scheme: light;
}

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

.fira-mono-regular {
  font-family: "Fira Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.fira-mono-medium {
  font-family: "Fira Mono", monospace;
  font-weight: 500;
  font-style: normal;
}

.fira-mono-bold {
  font-family: "Fira Mono", monospace;
  font-weight: 700;
  font-style: normal;
}


body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: "Fira Mono", monospace;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
}

header,
footer.site-footer {
  max-width: 50rem;
  margin-inline: auto;
}

main {
  max-width: 40rem;
  margin-inline: auto;
  flex: 1 0 auto;
  width: 100%;
}

.hidden {
  display: none;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 4px;
  flex-shrink: 0;
}

.site-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--fg);
  line-height: 1;
  text-decoration: none;
}

.site-logo:hover .site-logo-mark {
  opacity: 0.75;
}

.site-logo-mark {
  display: block;
  width: 1.75rem;
  height: calc(1.75rem * 40 / 42);
  background-color: currentColor;
  opacity: 1;
  transition: opacity 0.15s ease;
  mask: url("/logo.61a03a5c.svg") no-repeat center / contain;
  -webkit-mask: url("/logo.61a03a5c.svg") no-repeat center / contain;
}

.breadcrumbs {
  min-width: 0;
  flex: 1 1 auto;
}

.nav-links {
  flex-shrink: 0;
}

.breadcrumbs ol,
.nav-links ul {
  display: flex;
  align-items: baseline;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs ol {
  flex-wrap: wrap;
  align-items: center;
}

.nav-links ul {
  flex-wrap: nowrap;
  gap: 0.75rem 1.25rem;
}

.breadcrumbs li {
  display: flex;
  flex: none;
  max-width: 100%;
}

.breadcrumbs li:not(:first-child)::before {
  content: "•";
  margin: 0 0.5rem;
}


[aria-current="page"] {
  color: var(--fg);
}

footer.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 4px;
  margin-top: 2rem;
  flex-shrink: 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  min-width: 0;
}

.footer-copyright {
  margin: 0;
}

.footer-popover-trigger {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  text-transform: lowercase;
}

.footer-popover-trigger:hover {
  text-decoration: underline;
}

.ai-statement-popover {
  max-width: min(24rem, calc(100vw - 2rem));
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  line-height: inherit;
}

.ai-statement-popover p {
  margin: 0;
}

.ai-statement-popover::backdrop {
  background: color-mix(in srgb, var(--bg) 20%, transparent);
}

.footer-theme {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.footer-theme-slot {
  display: inline-flex;
  align-items: baseline;
}

.footer-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  flex-shrink: 0;
}

.theme-toggle {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  text-transform: lowercase;
}

.theme-toggle:hover {
  text-decoration: underline;
}

main {
  padding: 1.5rem;
}

main h1 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

main h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
}

main p {
  margin: 0 0 1rem;
}

main ul {
  margin: 0;
  padding-left: 1.25rem;
}

main li {
  margin: 0 0 0.5rem;
}

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

img {
  max-width: 100%;
  height: auto;
}

p.tight {
  margin: 0 0 0.5rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-grid li {
  margin: 0;
}

.photo-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.photo-grid img {
  display: block;
  width: 100%;
  padding: 0.25rem;
  border: 1px solid color-mix(in srgb, var(--border) 35%, transparent);
  background: var(--surface-muted);
}

.photo-grid-title {
  text-align: center;
}

.photograph {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.photograph > a {
  display: inline-block;
  padding: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--border) 35%, transparent);
  background: var(--surface-muted);
}

.photograph img {
  display: block;
}

.photograph figcaption {
  align-self: stretch;
  width: 100%;
}

.photograph figcaption h1 {
  margin-top: 0.75rem;
  text-align: center;
}

.photograph-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.photograph-nav a[rel="next"]:only-child {
  margin-inline-start: auto;
}

.travel-map-title {
  margin: 0 0 0.5rem;
}

.travel-map {
  margin: 1rem 0 1.5rem;
}

.travel-map-canvas {
  width: 100%;
  height: 24rem;
  background: var(--surface-muted);
}

.travel-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.travel-map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.travel-map-legend-swatch {
  flex-shrink: 0;
  width: 1.5rem;
  height: 0.35rem;
  border-radius: 1px;
}

.travel-map-legend-swatch-blocked {
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 4px,
    var(--bg) 4px,
    var(--bg) 7px
  );
}

.travel-map-route-label {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.2rem;
  background: var(--bg);
  color: var(--fg);
  box-shadow: none;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.travel-map-route-label::before {
  display: none;
}

.leaflet-container .leaflet-tile {
  max-width: none;
  max-height: none;
  height: initial;
}

.album-title {
  margin: 0 0 0.5rem;
}

.album-description {
  margin: 0 0 1rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 9.5rem);
  gap: 0.4rem;
}

.album-photo {
  margin: 0;
}

.album-photo-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9.5rem;
  height: 9.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.album-photo img {
  display: block;
  max-width: 9.5rem;
  max-height: 9.5rem;
  width: auto;
  height: auto;
}

.album-image {
  margin: 1rem 0;
}

.album-image img {
  display: block;
}

.album-image-caption {
  margin-top: 0.35rem;
  text-align: center;
}

main h3 {
  clear: inline-start;
}

.figure-aside {
  float: inline-end;
  width: min(100%, 14rem);
  margin: 0 0 1rem 1.25rem;
}

.figure-aside-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.figure-aside img {
  display: block;
  width: 100%;
  height: auto;
}

.figure-aside figcaption {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 32rem) {
  .figure-aside {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }
}

.figure-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 37.5rem);
  margin: 1rem auto;
}

.figure-inline-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.figure-inline img {
  display: block;
  width: 100%;
  height: auto;
}

.figure-inline figcaption {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
}

.draft-marker {
  color: var(--orange);
  font-weight: bold;
}

body.album-viewer-open {
  overflow: hidden;
}

.album-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem 1.5rem;
  background: var(--bg);
}

.album-viewer.hidden {
  display: none;
}

.album-viewer-close,
.album-viewer-prev,
.album-viewer-next {
  position: absolute;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.album-viewer-close {
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.75rem;
}

.album-viewer-prev,
.album-viewer-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.album-viewer-prev {
  left: 0.75rem;
}

.album-viewer-next {
  right: 0.75rem;
}

.album-viewer-prev:disabled,
.album-viewer-next:disabled {
  opacity: 0.25;
  cursor: default;
}

.album-viewer-count {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  margin: 0;
}

.album-viewer-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(100%, 60rem);
  max-height: 100%;
  margin: 0;
}

.album-viewer-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  width: auto;
  height: auto;
}

.album-viewer-caption {
  width: 100%;
  margin-top: 0.75rem;
  text-align: center;
}

.album-viewer-caption p {
  margin: 0 0 0.35rem;
}

.album-viewer-title {
  font-weight: bold;
}

body.album-manage-page header,
body.album-manage-page main,
body.album-manage-page footer.site-footer {
  max-width: none;
}

body.album-manage-page footer.site-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
}

.album-manage-topbar {
  display: flex;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.album-manage-topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
}

.album-manage-topbar-nav [aria-current="page"] {
  font-weight: bold;
}

.album-manage-main {
  padding: 1.5rem;
}

.album-manage-intro h1 {
  margin: 0 0 0.5rem;
}

.album-manage-note {
  color: var(--orange);
}

.album-manage-help {
  margin: 0 0 1rem;
}

.album-manage-panel {
  margin: 0 0 1rem;
  border: 1px solid var(--border);
}

.album-manage-panel summary {
  padding: 0.6rem 0.75rem;
  cursor: pointer;
}

.album-manage-panel-body {
  padding: 0 0.75rem 0.75rem;
}

.album-manage-field {
  display: block;
  margin: 0 0 0.75rem;
}

.album-manage-field:last-child {
  margin-bottom: 0;
}

.album-manage-field input,
.album-manage-field textarea {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin-top: 0.25rem;
  font: inherit;
}

.album-manage-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.album-manage-photo {
  margin: 0;
  border: 1px solid var(--border);
}

.album-manage-photo-unlisted {
  border-style: dashed;
}

.album-manage-handle {
  height: 2.5rem;
  background: var(--handle-bg);
  cursor: grab;
}

.album-manage-handle:active {
  cursor: grabbing;
}

.album-manage-photo img {
  display: block;
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
  margin-inline: auto;
}

.album-manage-thumb {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.album-manage-src {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  word-break: break-all;
}

.album-manage-photo-panel {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.album-manage-photo-panel summary {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
}

.album-manage-badge {
  color: var(--orange);
}

.album-manage-output-panel .album-manage-panel-body {
  max-width: 40rem;
}

.album-manage-output {
  display: block;
  width: 100%;
  font-family: monospace;
  font-size: 0.85rem;
}

.album-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.album-manage-save,
.album-manage-copy {
  margin: 0;
  font: inherit;
  cursor: pointer;
}

body.album-manage-editor-open {
  overflow: hidden;
}

.album-manage-editor {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem 1.5rem;
  background: var(--bg);
}

.album-manage-editor.hidden {
  display: none;
}

.album-manage-editor-close,
.album-manage-editor-prev,
.album-manage-editor-next {
  position: absolute;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.album-manage-editor-close {
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.75rem;
}

.album-manage-editor-prev,
.album-manage-editor-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.album-manage-editor-prev {
  left: 0.75rem;
}

.album-manage-editor-next {
  right: 0.75rem;
}

.album-manage-editor-prev:disabled,
.album-manage-editor-next:disabled {
  opacity: 0.25;
  cursor: default;
}

.album-manage-editor-count {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  margin: 0;
}

.album-manage-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  max-width: min(100%, 72rem);
  max-height: 100%;
  overflow: auto;
}

.album-manage-editor-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  margin-inline: auto;
}

.album-manage-editor-form {
  margin: 0;
}

.album-manage-editor-stem {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  word-break: break-all;
}

.album-manage-editor-form .album-manage-field input,
.album-manage-editor-form .album-manage-field textarea {
  max-width: none;
}

@media (max-width: 50rem) {
  .album-manage-editor {
    padding: 3rem 1rem 1rem;
  }

  .album-manage-editor-body {
    grid-template-columns: 1fr;
  }

  .album-manage-editor-image {
    max-height: 45vh;
  }

  .album-manage-editor-prev,
  .album-manage-editor-next {
    top: auto;
    bottom: 0.75rem;
    transform: none;
  }
}
