:root {
  --navy: #003366;
  --ink: #192936;
  --muted: #5d686c;
  --paper: #f8f7f3;
  --line: #dedfd7;
  --card-radius: 22px;
  --ease: cubic-bezier(.2,.7,.25,1);
  --orange: #b65b35;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", Arial, sans-serif;
  line-height: 1.5;
}
main {
  min-height: 75vh;
}
.wrap {
  width: min(1240px, 90%);
  margin: auto;
}
a {
  color: var(--navy);
  text-decoration: none;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #d9894a;
  outline-offset: 3px;
}
.ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
header {
  background: #082f52;
  color: white;
  position: relative;
  z-index: 1100;
}
.navrow,
nav,
.brand,
.addlink,
.menutoggle,
.headingline,
.searchbox,
.archive-link,
.eyebrow,
.tabs,
.filters {
  display: flex;
  align-items: center;
}
.navrow {
  height: 78px;
  gap: 32px;
}
.brand {
  color: white;
  gap: 12px;
  line-height: 1.12;
}
.brand b {
  font:
    700 24px/1.1 Georgia,
    serif;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.8px;
  margin-top: 5px;
}
.brand em {
  font-style: normal;
  color: #dfad83;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: #fff1;
  border: 1px solid #fff4;
  border-radius: 13px;
  width: 44px;
  height: 44px;
  color: #ffebd0;
}
.brand-icon svg {
  width: 29px;
  height: 29px;
}
nav {
  margin-left: auto;
  gap: 28px;
  height: 100%;
}
nav a {
  color: #e6ecf0;
  font-size: 14px;
  position: relative;
}
nav a[aria-current]:after {
  content: "";
  height: 2px;
  background: #e6a575;
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
}
.addlink {
  border: 1px solid #aab8c16b;
  border-radius: 999px;
  color: white;
  padding: 9px 15px;
  font-size: 14px;
  gap: 7px;
}
.menutoggle {
  display: none;
}
header a:hover {
  color: #f6cfad;
}
.hero {
  margin: 18px auto 0;
  width: min(1500px, 97%);
  border-radius: clamp(20px, 3vw, 42px);
  position: relative;
  overflow: hidden;
  background-color: #efede4;
  background-image:
    radial-gradient(ellipse at 12% 64%, #fcfaf4cc, transparent 58%),
    repeating-linear-gradient(0deg, transparent 0 36px, #91866d0c 36px 37px),
    repeating-linear-gradient(90deg, transparent 0 36px, #91866d0c 36px 37px);
  border: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 5%;
  min-height: 465px;
  padding-block: 48px;
}
.eyebrow {
  color: #80563c;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 750;
  gap: 11px;
}
.eyebrow span {
  width: 28px;
  height: 2px;
  background: #bb7049;
}
h1,
h2,
h3,
legend {
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
}
.intro h1 {
  font-weight: 500;
  font-size: clamp(64px, 6.8vw, 100px);
  line-height: 1.06;
  margin: 17px 0 16px;
  color: #162f43;
}
.intro h1 i {
  color: #935233;
  font-weight: 400;
}
.intro > p {
  font-size: 18px;
  line-height: 1.55;
  color: #54606a;
  max-width: 470px;
  margin-bottom: 26px;
}
.searchbox {
  --search-radius: 28px;
  border: 1px solid #cac8be;
  background: #fff;
  border-radius: var(--search-radius);
  padding: 5px;
  max-width: 485px;
  gap: 10px;
  box-shadow: 0 3px 7px #493c2010;
}
.searchbox > .ico {
  margin-left: 10px;
  color: #7b8283;
}
.searchbox input {
  border: none;
  min-width: 0;
  flex: 1;
  width: 100%;
  font-size: 15px;
  padding: 8px 0;
}
.searchbox button,
.primary {
  border: 0;
  background: var(--navy);
  color: white;
  border-radius: 999px;
  padding: 11px 19px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.searchbox button svg {
  width: 15px;
  margin-left: 4px;
}
.archive-link {
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 15px;
}
.archive-link svg {
  width: 15px;
}
.collage {
  position: relative;
  width: 89%;
  margin: 0 auto;
}
.collage figure {
  position: relative;
  margin: 0;
  padding: 12px 12px 5px;
  background: #fffaf0;
  box-shadow: 1px 7px 17px #40362038;
  transform: rotate(3deg);
  border: 1px solid #cfc7b1;
  border-radius: 14px;
}
.collage img {
  border-radius: 8px;
  width: 100%;
  height: clamp(215px, 19vw, 272px);
  object-fit: cover;
  filter: sepia(0.12);
}
figcaption {
  font:
    italic 18px Georgia,
    serif;
  color: #675e4c;
  padding: 9px 5px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
figcaption span {
  font: 10px monospace;
  letter-spacing: 1px;
}
.letter {
  border-radius: 14px;
  position: absolute;
  inset: 10px -7px 1px -6px;
  transform: rotate(-6deg);
  background: repeating-linear-gradient(0deg, #d3c7ac 0 1px, #e7dcc3 1px 20px);
  border: 1px solid #c4b89d;
  box-shadow: 0 3px 9px #73644024;
}
.tape {
  position: absolute;
  left: 38%;
  top: -15px;
  width: 90px;
  height: 29px;
  background: #cbb788a8;
  transform: rotate(-9deg);
  z-index: 1;
  box-shadow: 1px 1px 3px #0001;
}
.seal {
  position: absolute;
  bottom: -17px;
  left: -29px;
  transform: rotate(-15deg);
  border: 3px double #975c3a;
  border-radius: 50%;
  width: 84px;
  height: 84px;
  background: #eadfcad9;
  color: #925b40;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font:
    700 8px/1 Arial,
    sans-serif;
  letter-spacing: 1px;
  outline: 1px solid #975c3a;
  outline-offset: -7px;
}
.seal strong {
  font-size: 26px;
  margin: 3px;
}
.seal small {
  font-size: 7px;
}
.directions {
  padding: 36px 0 12px;
}
.headingline {
  gap: 22px;
  margin: 0 0 20px;
}
.headingline h2,
h2 {
  font-weight: 500;
  font-size: clamp(32px, 3.1vw, 44px);
  margin: 0;
}
.headingline > span {
  height: 1px;
  background: var(--line);
  flex: 1;
}
.headingline > a {
  font-size: 14px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}
.tile,
.panel {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.tile {
  display: block;
  color: var(--ink);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px #27313916;
}
.tilepic {
  height: 140px;
  position: relative;
}
.tilepic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
}
.tileicon {
  width: 37px;
  height: 37px;
  position: absolute;
  bottom: -14px;
  left: 19px;
  display: grid;
  place-items: center;
  background: #244666;
  color: #fff;
  border: 3px solid #fffefa;
  border-radius: 13px;
}
.home .tileicon {
  background: #ba551c;
}
.map .tileicon {
  background: #64735f;
}
.tilebody {
  position: relative;
  padding: 24px 44px 18px 20px;
}
.tilebody h3,
.panel h3 {
  font-size: 26px;
  margin: 0 0 5px;
}
.tilebody p,
.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.tilearrow {
  position: absolute;
  top: 30px;
  right: 18px;
  color: #566774;
}
.media-section {
  padding-block: 36px 56px;
}
.twocol,
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel {
  padding: 23px;
}
.entry {
  display: block;
  margin: 10px 0;
}
.entry small {
  color: var(--muted);
  display: block;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
  background: #eeeee8;
}
.inner {
  padding-block: 35px 65px;
}
.inner h1 {
  font-size: clamp(40px, 5vw, 67px);
  font-weight: 500;
  margin: 14px 0 22px;
}
.inner h2 {
  margin: 25px 0 15px;
}
.back,
.label {
  font-size: 14px;
  color: var(--muted);
}
.narrow {
  max-width: 840px;
}
.filters,
.tabs {
  gap: 12px;
  margin-bottom: 24px;
}
.filters .form-select {
  max-width: 230px;
}
.empty {
  grid-column: 1/-1;
}
.empty p {
  margin-bottom: 12px;
}
.tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #e8e8e2;
}
.tabs a[aria-current] {
  background: var(--navy);
  color: white;
}
.content-img,
video {
  max-width: 100%;
  max-height: 480px;
  border-radius: 8px;
  margin-block: 12px;
}
.inner fieldset {
  margin: 16px 0;
}
.inner legend {
  float: none;
  width: auto;
  font-size: 24px;
  padding: 0 5px;
}
.formgrid label {
  font-size: 14px;
  margin-bottom: 4px;
}
.errorlist {
  color: #952b1d;
}
.notice {
  margin-block: 16px;
  padding: 14px;
  background: #e3efdc;
  border-radius: 8px;
}
#map {
  height: min(65vh, 620px);
  min-height: 340px;
  border-radius: var(--card-radius);
}
.panel small {
  color: #8e563a;
}
.inner dt {
  color: var(--muted);
}
@media (max-width: 850px) {
  nav {
    gap: 13px;
  }
  .navrow {
    gap: 18px;
  }
  .hero-grid {
    min-height: 410px;
  }
  .eyebrow {
    letter-spacing: 1px;
  }
  .intro > p {
    font-size: 16px;
  }
  .tiles {
    gap: 12px;
  }
  .tilebody h3 {
    font-size: 22px;
  }
  .tilearrow {
    display: none;
  }
  .tilebody {
    padding-right: 15px;
  }
}
@media (max-width: 720px) {
  .navrow {
    height: 66px;
    gap: 9px;
  }
  .brand b {
    font-size: 20px;
  }
  .brand-icon {
    width: 35px;
    height: 35px;
  }
  .brand small {
    font-size: 8px;
  }
  .menutoggle {
    display: block;
    margin-left: auto;
    background: transparent;
    color: white;
    border: 0;
    font-size: 22px;
  }
  .addlink {
    padding: 8px;
    font-size: 12px;
  }
  .navrow nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    z-index: 10;
    border-radius: 16px;
    box-shadow: 0 12px 32px #14334d29;
    transition: opacity 180ms, transform 180ms var(--ease), visibility 0s 180ms;
    position: absolute;
    top: 59px;
    left: 5%;
    right: 5%;
    height: auto;
    background: #082f52;
    padding: 10px;
  }
  .navrow nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .navrow nav a { padding: 9px 12px; border-radius: 10px; }
  .navrow nav a[aria-current] { background: #ffffff17; }
  .navrow nav a[aria-current]:after { display: none; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 33px;
    padding: 32px 0 40px;
  }
  .intro h1 {
    font-size: 66px;
  }
  .intro > p {
    max-width: 420px;
  }
  .collage {
    width: min(80%, 440px);
  }
  .collage img {
  border-radius: 8px;
    height: 185px;
  }
  .seal {
    width: 65px;
    height: 65px;
    font-size: 6px;
  }
  .tiles,
  .twocol,
  .formgrid {
    grid-template-columns: 1fr;
  }
  .tilepic {
    height: 158px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters .form-select {
    flex: 1;
  }
  .directions {
    padding-top: 27px;
  }
  .headingline {
    gap: 12px;
  }
  .tilebody h3 {
    font-size: 26px;
  }
  .tilearrow {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none;
  }
}

#map.leaflet-container { background: #c5dde0; border: 1px solid var(--line); }
.city-label { color: #535e59; font: 600 11px/1.3 Arial, sans-serif; white-space: nowrap; text-shadow: 0 1px 3px white, 0 0 4px white; pointer-events: none; }
.map-filters { margin: 0 0 14px; }
.map-filters summary { width: fit-content; color: var(--navy); font-weight: 600; cursor: pointer; }
.layer-options { display: flex; gap: 8px; flex-wrap: wrap; padding-block: 10px 2px; }
.layer-options label { display: flex; align-items: center; gap: 7px; background: white; border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; font-size: 14px; cursor: pointer; }
.atlas-pin, .layer-options input { --marker: #287c9e; accent-color: var(--marker); }
.atlas-pin.front, input[value=front] { --marker: #003366; }
.atlas-pin.home, input[value=home] { --marker: #bd500d; }
.atlas-pin.burial, input[value=burial] { --marker: #a84345; }
.atlas-pin.event, input[value=event] { --marker: #754aa1; }
#map .atlas-pin { display: grid; place-items: center; line-height: 1; font-size: 13px; border: 2px solid white; border-radius: 50%; background: var(--marker); color: white; box-shadow: 0 2px 6px #18333155; font-weight: bold; }
.map-record + .map-record { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }

.panel { box-shadow: 0 5px 20px #24374308; }
.person-card .role-chip {
  display: inline-block;
  border-radius: 30px;
  padding: 4px 12px;
  margin-bottom: 13px;
  background: #eaf1f7;
  color: #244b6c;
}
.person-card .role-home { color: #8b492d; background: #f7eae0; }
.person-card .excerpt { margin-top: 14px; line-height: 1.6; }
.form-control, .form-select { border-radius: 13px; }
.tabs { flex-wrap: wrap; gap: 6px; }
.tabs a { padding: 8px 17px; }
a.panel, .primary, .searchbox button, .tabs a, .addlink {
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease), background-color 180ms;
}
a.panel:hover, a.panel:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 26px #20352d14; }
.primary:hover, .searchbox button:hover { background: #174d78; }
.addlink:hover { background: #ffffff14; }
.entry { line-height: 1.45; padding: 8px 0; }
.entry + .entry { border-top: 1px solid var(--line); }
.entry small { margin-top: 4px; }
@keyframes arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .inner, .hero-grid, fieldset[data-role]:not([hidden]), .map-filters[open] .layer-options {
    animation: arrive 220ms var(--ease) both;
  }
}
@supports (appearance: base-select) {
  .form-select, .form-select::picker(select) { appearance: base-select; }
  .form-select { background-image: none; }
  .form-select::picker(select) {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 5px;
    box-shadow: 0 8px 28px #20352d1a;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 150ms, transform 150ms, display 150ms allow-discrete, overlay 150ms allow-discrete;
  }
  .form-select:open::picker(select) { opacity: 1; transform: none; }
  @starting-style { .form-select:open::picker(select) { opacity: 0; transform: translateY(-4px); } }
  .form-select option { padding: 7px 12px; border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .navrow nav, a.panel, .primary, .searchbox button, .tabs a, .addlink, .form-select::picker(select) { transition: none; }
  a.panel:hover, .tile:hover { transform: none; }
}

.atlas-toolbar { display:flex; gap:16px; align-items:flex-start; justify-content:space-between; }
.atlas-action { background:white; border:1px solid var(--line); color:var(--navy); padding:7px 14px; border-radius:999px; white-space:nowrap; font-size:14px; }
#map .atlas-pin.grouped { outline:4px solid #ffffff61; }
#map .city-label { font:600 12px/1.2 Arial,sans-serif; color:#364645; text-shadow:0 0 3px white, 1px 1px 1px white, -1px -1px 1px white; }
#map .leaflet-control-zoom { overflow:hidden; border-radius:12px; border:1px solid #aab8b6; }
#map .country-label { color: #5d6353; font: 600 13px Georgia,serif; letter-spacing: .08em; text-transform: uppercase; }

.account-login { max-width: 520px; }
.account-login label { display: block; margin-bottom: 5px; }
.account-login .form-control { margin-bottom: 16px; }
.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.account-actions form { margin: 0; }
.account-login form input { display:block; width:100%; border:1px solid var(--line); border-radius:13px; padding:9px 12px; margin-bottom:12px; }
.account-login form .form-text { display:block; margin:-8px 0 12px; color:var(--muted); }
.account-login form .errorlist { margin:0 0 12px; }

.memory-atlas h1 { margin-bottom: 10px; }
.memory-atlas > p { color: var(--muted); }
.memory-atlas .atlas-toolbar {
  align-items: center;
  margin-block: 22px 12px;
}
.memory-atlas .map-filters { margin: 0; }
.memory-atlas .layer-options { padding-bottom: 0; }
.memory-atlas .layer-options label:has(input:checked) {
  background: #edf3f6;
  border-color: #ccdce5;
}
.atlas-frame {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid #d0dbe0;
  box-shadow: 0 12px 36px #1d384513;
}
.atlas-frame #map {
  border: 0;
  border-radius: 0;
  background: #c2dce8;
}
#map .leaflet-control-zoom {
  margin: 14px;
  box-shadow: 0 3px 12px #1d38451a;
}
#map .leaflet-control-zoom a { color: #23475e; }
#map .leaflet-control-attribution {
  padding: 3px 9px;
  background: #fffffff0;
  border-radius: 8px 0 0 0;
  font-size: 11px;
}
#map .leaflet-control-scale-line {
  border-color: #506573;
  background: #ffffffe0;
  color: #354d5d;
}
#map .city-label {
  color: #2e4656;
  text-shadow: 0 0 4px #fff, 0 0 2px #fff, 0 1px 1px #fff;
}
#map .country-label { color: #596a74; }
#map .atlas-pin:not(.grouped)::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
}
#map .leaflet-popup-content-wrapper {
  border-radius: 15px;
  color: #324e60;
}
#map .map-record a { font-weight: 700; }

@media (max-width: 600px) {
  .memory-atlas .atlas-toolbar { flex-wrap: wrap; gap: 10px; }
  .memory-atlas .layer-options { gap: 5px; }
  .memory-atlas .layer-options label { padding: 4px 9px; }
}

.atlas-commands {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.atlas-commands .form-select { width: auto; font-size: 14px; }
.atlas-count { font-size: 13px; margin-bottom: 8px; }
#map .atlas-cluster {
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #123d5a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 0 5px #123d5a35, 0 5px 12px #1833434d;
}
#map .atlas-cluster:hover, #map .atlas-cluster:focus-visible { background: #235f83; }

.atlas-status { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.atlas-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 285px);
  background: #fcfdfd;
}
.atlas-index {
  max-height: max(340px, min(65vh, 620px));
  padding: 20px 16px;
  overflow-y: auto;
  border-left: 1px solid #dce6eb;
}
.atlas-index h2 { font-size: 26px; margin: 0 0 12px; }
.atlas-index p { color: var(--muted); }
.atlas-index .atlas-count { margin-top: 10px; }
.atlas-results { list-style: none; margin: 0 0 12px; padding: 0; }
.atlas-results li + li { border-top: 1px solid #e2e9ec; }
.atlas-result {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  color: #23475e;
}
.atlas-result:hover, .atlas-result:focus-visible { background: #edf4f7; }
.atlas-result strong, .atlas-result small { display: block; overflow-wrap: anywhere; }
.atlas-result small { color: var(--muted); }
.atlas-result-dot {
  flex: 0 0 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: #287c9e;
}
.atlas-result-dot.front { background: #003366; }
.atlas-result-dot.home { background: #bd500d; }
.atlas-result-dot.burial { background: #a84345; }
.atlas-result-dot.event { background: #754aa1; }

@media (max-width: 760px) {
  .atlas-workspace { grid-template-columns: minmax(0, 1fr); }
  .atlas-index { max-height: 360px; border-left: 0; border-top: 1px solid #dce6eb; }
}

.atlas-board {
  margin-top: 20px;
  padding: clamp(10px, 2vw, 18px);
  border: 1px solid #d6e2e9;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px #18394e0c;
}
.memory-atlas .atlas-board .atlas-toolbar { margin-top: 0; }
.atlas-board .atlas-frame { box-shadow: none; border-radius: 12px; }
.atlas-board .layer-options label {
  border-radius: 8px;
  color: #233f53;
}
