:root {
  --ink: #183f36;
  --forest: #163e35;
  --paper: #f6f3e8;
  --card: #fbf9f1;
  --muted: #54675c;
  --line: #c7c9b6;
  --rust: #a53d24;
  --bright: #ffae82;
  --mono: Consolas, "Courier New", monospace;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", Verdana, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #d26b36;
  outline-offset: 3px;
}
.wrap,
.page:not(:has(.wrap)) {
  width: min(1180px, 92%);
  margin-inline: auto;
}
.mast {
  background: #11382f;
  color: var(--paper);
  border-bottom: 1px solid #597467;
}
.mast-inner,
.foot,
.actions,
.map-bar,
.legend,
.dialog-head,
.list-head,
.city-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mast-inner {
  min-height: 66px;
}
.brand {
  font: 700 29px/1 var(--serif);
  letter-spacing: -1.6px;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font-weight: 400;
  font-style: italic;
}
.brand b {
  color: var(--bright);
  display: inline-block;
  font: 32px var(--serif);
  vertical-align: -2px;
}
.mast nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.mast nav a,
.breadcrumb,
.textlink {
  font-size: 14px;
  font-weight: bold;
  text-underline-offset: 5px;
}
.mast nav a {
  text-decoration: none;
}
.mast nav a:hover,
.foot a:hover {
  text-decoration: underline;
}
.hero,
.city-head {
  background-color: var(--forest);
  background-image: repeating-radial-gradient(
    ellipse at 84% 130%,
    transparent 0 28px,
    #bad2b00a 29px 30px,
    transparent 31px 40px
  );
  color: var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  gap: 6%;
  align-items: center;
  padding-block: 54px 60px;
}
.kicker,
.plate-head,
.map-bar,
.legend,
.tag,
#count,
.plate figcaption span {
  font: 700 11px/1.5 var(--mono);
  letter-spacing: 1.4px;
}
.hero .kicker,
.city-head .kicker {
  color: #d8dfc1;
}
.kicker i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--bright);
  margin-right: 7px;
  transform: rotate(45deg);
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.06;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(58px, 6.2vw, 94px);
  margin: 18px 0;
}
h1 em {
  color: var(--bright);
  font-weight: normal;
}
h2 {
  font-size: clamp(34px, 4vw, 54px);
  margin: 8px 0;
}
h3 {
  font-size: 25px;
}
p {
  color: var(--muted);
}
.hero p,
.city-head p {
  color: #d3ded1;
  max-width: 470px;
}
.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 25px;
}
.button,
button:not(.leaflet-control-layers-toggle) {
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  padding: 10px 15px;
  font: 700 14px/1.4 var(--sans);
  text-decoration: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}
.button:hover,
button:hover {
  filter: brightness(0.93);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.button.primary {
  color: #263c2f;
  background: var(--bright);
  border-color: var(--bright);
}
.button.light {
  background: none;
  color: var(--paper);
  border-color: #a1b4a2;
}
.plate {
  background: #f3e7c6;
  color: var(--ink);
  padding: 10px;
  border: 1px solid #efd9aa;
  box-shadow: 7px 8px 0 #0c2924;
  transform: rotate(1.2deg);
}
.plate-head,
.plate figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plate-head {
  font-size: 10px;
  padding: 1px 3px 7px;
}
.plate img {
  width: 100%;
  display: block;
  border: 1px solid #83957a;
}
.plate figcaption {
  padding: 8px 3px 1px;
}
.plate figcaption strong {
  font: italic 26px var(--serif);
}
.plate figcaption span {
  font-size: 9px;
  text-align: right;
}
.section {
  padding-block: 44px 60px;
}
.section > .kicker,
.card > .kicker,
.list-head .kicker {
  color: var(--rust);
}
.atlas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(240px, 1fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}
.map-shell,
.card,
dialog {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 6px;
}
.map-shell {
  overflow: hidden;
}
.map-bar {
  background: #e8e7d7;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.leaflet-container,
#world-map,
#austin-map {
  background-color: #bdd3c1;
  background-image:
    linear-gradient(#43685212 1px, transparent 1px),
    linear-gradient(90deg, #43685212 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--sans);
}
#world-map {
  height: 355px;
}
#austin-map {
  height: 455px;
  background-color: #e5e4cb;
}
.card {
  padding: 22px;
}
.rows {
  margin: 12px 0 18px;
}
.city-row,
.entry,
.collection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.city-row small,
.entry small,
.dim {
  display: block;
  color: var(--muted);
}
.tag {
  color: var(--rust);
  font-size: 10px;
  letter-spacing: 0.6px;
}
.foot {
  border-top: 1px solid var(--line);
  padding-block: 24px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.foot .brand {
  font-size: 23px;
}
.city-head .wrap {
  padding-block: 20px 30px;
}
.breadcrumb {
  display: inline-block;
  margin-bottom: 18px;
  color: #d3ded1;
}
.city-heading h1 {
  margin: 4px 0;
}
.map-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
}
.map-controls label {
  flex: 1;
  min-width: 130px;
}
label {
  display: grid;
  gap: 4px;
  font: 700 13px var(--sans);
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #8e9d8c;
  border-radius: 4px;
  color: var(--ink);
  background: #fffdf5;
  font: 15px var(--sans);
}
.legend {
  justify-content: flex-start;
  padding: 8px 12px;
  flex-wrap: wrap;
  gap: 14px;
  letter-spacing: 0;
}
.legend button {
  margin-left: auto;
  font-size: 12px;
  padding: 6px;
}
.key {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #c06344;
  vertical-align: -1px;
  margin-right: 2px;
}
.key.habitat {
  background: var(--paper);
  border-radius: 0;
  transform: rotate(45deg);
}
.log h2 {
  font-size: 32px;
}
.log h3 {
  font-size: 22px;
  margin: 6px 0;
}
.log #quest,
.log #collection {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 15px;
}
.list-head {
  margin: 36px 0 16px;
}
.entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.entry {
  align-items: start;
  flex-direction: column;
  padding: 18px;
}
.entry button {
  margin-top: auto;
}
.skip {
  position: absolute;
  top: -100px;
  z-index: 5000;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 0;
}
.leaflet-tooltip.district-label {
  background: #f9f4dcdc;
  border: 0;
  color: #435a47;
  box-shadow: none;
  font: 700 10px var(--mono);
  padding: 2px 4px;
}
.district-label:before {
  display: none;
}
.pin {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid #263f32;
  box-shadow: 0 1px 3px #142d317a;
  border-radius: 50%;
  background: var(--pin, #c06344);
}
.pin.home-pin {
  transform: rotate(45deg);
  border-radius: 1px;
  background: var(--paper);
  box-shadow:
    inset 0 0 0 3px var(--pin),
    0 1px 3px #142d317a;
}
.leaflet-popup-content {
  min-width: 120px;
}
.leaflet-popup-content button {
  margin-top: 7px;
}
.map-failure,
#notice:not(:empty) {
  padding: 12px;
  background: #fff0d5;
}
.map-failure {
  position: relative;
  z-index: 450;
}
dialog {
  padding: 24px;
  color: var(--ink);
  width: min(460px, 94vw);
  max-height: 85dvh;
  overflow: auto;
  box-shadow: 0 20px 70px #173a3533;
}
dialog::backdrop {
  background: #102e28a6;
}
.dialog-head button {
  padding: 3px 10px;
  font-size: 22px;
}
dialog h2 {
  font-size: 34px;
  margin: 14px 0;
}
dialog form {
  display: grid;
  gap: 12px;
}
dialog p {
  margin: 10px 0;
}
dialog blockquote {
  border-left: 3px solid var(--rust);
  margin: 14px 0;
  padding-left: 14px;
  font: italic 20px var(--serif);
}
dialog .actions {
  gap: 9px;
}
#dialog-body,
.card {
  overflow-wrap: anywhere;
}
.collection-row a {
  font-size: 14px;
}
.collection-row button {
  padding: 4px 8px;
}
.status {
  color: var(--rust);
}
@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5%;
    padding-block: 36px;
  }
  .atlas-grid {
    grid-template-columns: 1fr;
  }
  .entries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mast nav {
    gap: 14px;
  }
  .city-heading {
    align-items: start;
    flex-direction: column;
  }
  .city-heading .actions {
    margin-top: 0;
  }
}
@media (max-width: 580px) {
  .mast-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
  }
  .mast nav {
    gap: 13px;
  }
  .mast nav a {
    font-size: 12px;
  }
  .brand {
    font-size: 24px;
  }
  .brand b {
    font-size: 24px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 32px;
  }
  .hero h1 {
    font-size: 61px;
  }
  .plate {
    margin: 0 5px;
  }
  .plate img {
    max-height: 190px;
    object-fit: cover;
  }
  .actions {
    margin-top: 18px;
  }
  .section {
    padding-block: 28px 34px;
  }
  .entries {
    grid-template-columns: 1fr;
  }
  .map-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .map-controls label {
    min-width: 0;
  }
  #world-map {
    height: 290px;
  }
  #austin-map {
    height: 380px;
  }
  .foot {
    gap: 12px;
  }
  .foot span:not(.brand span) {
    width: 100%;
  }
  .card {
    padding: 16px;
  }
  .atlas-grid {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Midnight survey edition: warm paper is reserved for the illustrated city plate. */
:root {
  --ink: #f2edde;
  --forest: #23202e;
  --paper: #191820;
  --card: #24222e;
  --muted: #bdb7c8;
  --line: #46414f;
  --rust: #ffaf80;
  --bright: #ffb184;
  --surface: #24222e;
  --border: #46414f;
}
.mast {
  background: #191820;
  color: var(--ink);
  border-color: var(--line);
}
.hero,
.city-head {
  color: var(--ink);
  background-image: repeating-radial-gradient(
    ellipse at 90% 120%,
    transparent 0 27px,
    #bea6e60c 28px 29px,
    transparent 30px 38px
  );
}
.hero .kicker,
.city-head .kicker,
.breadcrumb {
  color: #d1bedf;
}
.hero p,
.city-head p {
  color: #c8c0cc;
}
.hero-grid {
  grid-template-columns: 0.82fr 1.24fr;
  gap: 5%;
  padding-block: 42px;
}
.hero h1 {
  font-size: clamp(56px, 5.9vw, 85px);
}
.map-bar {
  background: #322e40;
  color: #e4daeb;
}
.hero .map-shell {
  box-shadow: 6px 6px 0 #121017;
}
.plate {
  color: #28483b;
}
.plate-link {
  text-decoration: none;
  max-width: 600px;
  display: block;
  margin: 5px;
}
.hero #world-map {
  height: clamp(290px, 41vh, 440px);
}
.leaflet-container,
#world-map,
#austin-map {
  background-color: #222334;
  background-image:
    linear-gradient(#af95c71a 1px, transparent 1px),
    linear-gradient(90deg, #af95c71a 1px, transparent 1px);
}
#austin-map {
  height: 78vh;
  height: 78svh;
  background-color: #292735;
}
.map-failure,
#notice:not(:empty) {
  background: #382d39;
  color: #ffd2ad;
}
.legend .habitat {
  background: #26232d;
  border-color: #dcbae8;
}
.legend .key {
  border-color: #e6dbe9;
}
.button.light {
  color: var(--ink);
}
.button,
button:not(.leaflet-control-layers-toggle) {
  border-color: #74687b;
}
.button.primary {
  border-color: var(--bright);
}
input,
select,
textarea {
  background: #1d1c25;
  border-color: #786c7f;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #282431;
  color: var(--ink);
}
.leaflet-tooltip.district-label {
  color: #dac7de;
  background: #211e2bbf;
}
.leaflet-container a {
  color: #6d355d;
}
.leaflet-popup-content a {
  color: var(--bright);
}
.skip,
.skip-main {
  background: #1f1c27;
  color: #fff;
}
.skip-main:not(:focus) {
  position: absolute;
  left: -100vw;
}
.atlas-header,
.atlas-footer {
  padding: 18px 4%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.atlas-header {
  justify-content: space-between;
}
.atlas-header nav {
  display: flex;
  gap: 16px;
}
.atlas-brand {
  font: 700 26px var(--serif);
}
.atlas-footer {
  border-top: 1px solid var(--line);
}
.legend button,
.city-row button {
  min-height: 36px;
}
.leaflet-control-attribution {
  font-size: 9px;
}
.pin {
  border-color: #f7dfce;
}
.pin.home-pin {
  background: #362e40;
}
.leaflet-container .leaflet-control-attribution {
  background: #ede3efdf;
  color: #342a3a;
}
@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 25px;
  }
  .hero h1 br {
    display: none;
  }
  .hero h1 {
    font-size: clamp(45px, 8vw, 62px);
    margin: 10px 0;
  }
  .hero .actions {
    margin-top: 14px;
  }
  .hero #world-map {
    height: clamp(220px, 33svh, 340px);
  }
}
[hidden] {
  display: none !important;
}
.group-entry {
  display: block;
  width: 100%;
  margin: 8px 0;
  text-align: left;
}
.log button {
  margin-top: 8px;
}
.entry:before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--bright);
}
.city-row button {
  font-size: 12px;
}
.hero h1 br:after {
  content: " ";
}
:root {
  color-scheme: dark;
}
.leaflet-tooltip.ocean-label {
  font:
    italic 9px Georgia,
    serif;
  letter-spacing: 1.5px;
  color: #c0aec6;
  background: none;
  box-shadow: none;
  border: 0;
}
.ocean-label:before {
  display: none;
}
.partner-pin .pin,
.key.partner {
  border-radius: 2px;
  background: #e4c872;
}
.leaflet-control-scale-line {
  color: #eee4ee;
  background: #302c3acc;
  text-shadow: none;
  border-color: #baabbe;
}
.hero h1 {
  font-size: clamp(52px, 5.1vw, 74px);
}
@media (max-width: 720px) {
  .hero h1 {
    font-size: clamp(44px, 8vw, 62px);
  }
}
.plate-link {
  width: calc(100% - 12px);
  max-width: none;
}
.field-pin {
  display: grid;
  place-items: center;
}
.field-pin .pin {
  pointer-events: none;
}
.field-pin:focus-visible {
  outline-offset: -6px;
  border-radius: 50%;
}
.partner-pin .pin,
.key.partner {
  border-radius: 2px;
  background: #e4c872;
  box-shadow: inset 0 0 0 2px #544831;
}
.partner-pin .pin:after {
  content: "+";
  display: block;
  color: #442f23;
  font: bold 12px/12px var(--mono);
  text-align: center;
}
.legend {
  gap: 10px;
}
.map-controls select {
  max-width: 100%;
}
@media (max-width: 360px) {
  dialog {
    width: calc(100vw - 4px);
    max-width: none;
    padding: 10px 6px;
  }
  dialog .actions {
    flex-wrap: wrap;
  }
  .mast nav {
    gap: 10px;
  }
  .mast nav a {
    padding-block: 8px;
  }
}
