:root {
  --navy-950: #020d1c;
  --navy-900: #03152c;
  --navy-800: #072143;
  --navy-700: #0b2d57;
  --gold-300: #f0cd83;
  --gold-400: #e5b85c;
  --gold-500: #c99134;
  --ivory: #f3eee4;
  --muted: #aeb6c2;
  --line: rgba(229, 184, 92, 0.22);
  --white-line: rgba(255, 255, 255, 0.14);
  --serif: "Baskerville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 22%, rgba(16, 54, 101, 0.58), transparent 33rem),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 48%, #020f22);
  font-family: var(--sans);
  font-size: 16px;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

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

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.018) 50%, transparent 50.1%),
    repeating-linear-gradient(0deg, transparent 0 5rem, rgba(255, 255, 255, 0.008) 5rem 5.05rem);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) auto minmax(9rem, 1fr);
  align-items: center;
  min-height: 7.2rem;
  padding: 0 4vw;
  border-bottom: 1px solid var(--white-line);
  background: linear-gradient(180deg, rgba(2, 13, 28, 0.94), rgba(2, 13, 28, 0.72));
  backdrop-filter: blur(16px);
  transition: min-height 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.home-header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  padding: 1.9rem 4vw;
}

.home-header .login-button {
  padding: 0.7rem 0;
  border-left: 0;
}

.wordmark {
  width: max-content;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.2vw, 2.3rem);
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.wordmark span::after,
.wordmark.footer-mark::after {
  display: block;
  width: 2.4rem;
  height: 1px;
  margin: 0.8rem auto 0;
  content: "";
  background: var(--gold-400);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.2vw, 2.5rem);
}

.main-nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.4vw, 3.8rem);
}

.main-nav a,
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border: 0;
  color: #d8d6d2;
  background: transparent;
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
}

.main-nav a::after,
.nav-link::after {
  position: absolute;
  right: 50%;
  bottom: -0.65rem;
  left: 50%;
  height: 1px;
  content: "";
  background: var(--gold-400);
  transition: right 180ms ease, left 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after,
.nav-link:hover::after {
  right: 12%;
  left: 12%;
}

.main-nav .nav-manage {
  padding-left: clamp(1.2rem, 2.2vw, 2.5rem);
  border-left: 1px solid var(--white-line);
  color: #9ea7b3;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.main-nav .nav-manage.active,
.main-nav .nav-manage:hover {
  color: var(--gold-300);
}

.nav-mobile-logout {
  display: none !important;
}

.lock {
  position: relative;
  display: inline-block;
  width: 0.72rem;
  height: 0.62rem;
  border-radius: 1px;
  background: currentColor;
  color: #7e8795;
}

.lock::before {
  position: absolute;
  top: -0.46rem;
  left: 0.13rem;
  width: 0.38rem;
  height: 0.46rem;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 0.3rem 0.3rem 0 0;
  content: "";
}

.lock.gold {
  color: var(--gold-400);
}

.login-button {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 0 1.1rem 2.8rem;
  border: 0;
  border-left: 1px solid var(--white-line);
  color: var(--gold-300);
  background: transparent;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

/* Section navigation and breadcrumbs */
.section-nav {
  position: absolute;
  top: 7.2rem;
  right: 0;
  left: 0;
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 4vw, 4rem);
  min-height: 3.15rem;
  padding: 0.4rem 4vw;
  border-bottom: 1px solid var(--white-line);
  background: rgba(2, 13, 28, 0.9);
  backdrop-filter: blur(14px);
}

.section-nav a {
  position: relative;
  padding: 0.55rem 0;
  color: #8d98a6;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.section-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 1px;
  content: "";
  background: var(--gold-400);
  transition: right 180ms ease, left 180ms ease;
}

.section-nav a:hover,
.section-nav a.active {
  color: var(--gold-300);
}

.section-nav a:hover::after,
.section-nav a.active::after {
  right: 0;
  left: 0;
}

.has-section-nav main {
  margin-top: 3.15rem;
}

.breadcrumbs {
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #7e8998;
  font-family: var(--serif);
  font-size: 0.78rem;
}

.breadcrumbs li:not(:last-child)::after {
  color: rgba(229, 184, 92, 0.5);
  content: "/";
}

.breadcrumbs a {
  color: #a8a18f;
  transition: color 180ms ease;
}

.breadcrumbs a:hover {
  color: var(--gold-300);
}

.breadcrumbs [aria-current="page"] {
  color: var(--gold-300);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 9rem 1.5rem 5rem;
}

.home-page {
  height: 100svh;
  overflow: hidden;
}

.home-page .hero {
  min-height: 100svh;
  padding: 3rem 1.5rem 4.5rem;
}

.home-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: block;
  padding: 0 0 1.7rem;
  border-top: 0;
  background: transparent;
  text-align: center;
}

.home-footer .copyright {
  justify-self: auto;
  color: rgba(174, 182, 194, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.hero-inner {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: min(100%, 75rem);
  text-align: center;
}

.crest-wrap {
  position: relative;
  width: min(38vw, 29rem);
  min-width: 16rem;
  margin-bottom: 1.2rem;
}

.crest-wrap::after {
  position: absolute;
  right: 7%;
  bottom: 0;
  left: 7%;
  height: 12%;
  content: "";
  background: linear-gradient(transparent, #051832 84%);
  filter: blur(8px);
}

.crest {
  display: block;
  width: 100%;
  aspect-ratio: 580 / 535;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 54% 51% at 50% 48%, #000 61%, transparent 100%);
  mask-image: radial-gradient(ellipse 54% 51% at 50% 48%, #000 61%, transparent 100%);
  mix-blend-mode: lighten;
  filter: drop-shadow(0 1.8rem 2.3rem rgba(0, 0, 0, 0.32));
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 0 2rem rgba(229, 184, 92, 0.12);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: min(24rem, 70vw);
  margin: 1.5rem 0 1.15rem;
}

.ornament span {
  width: 8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}

.ornament span:last-child {
  background: linear-gradient(90deg, var(--gold-400), transparent);
}

.ornament i {
  position: relative;
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid var(--gold-400);
  transform: rotate(45deg);
}

.ornament i::after {
  position: absolute;
  inset: 2px;
  border: 1px solid var(--gold-400);
  content: "";
}

.motto {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.7vw, 1.4rem);
  font-style: italic;
  letter-spacing: 0.07em;
}

.enter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  min-width: 15.5rem;
  margin-top: 2rem;
  padding: 1.15rem 2rem;
  border: 1px solid var(--gold-400);
  color: var(--gold-300);
  background: rgba(2, 13, 28, 0.35);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}

.enter-button:hover {
  color: var(--navy-950);
  background: var(--gold-400);
  transform: translateY(-2px);
}

.button-arrow {
  font-family: var(--sans);
  transition: transform 200ms ease;
}

.enter-button:hover .button-arrow {
  transform: translateX(0.25rem);
}

.scroll-cue {
  position: absolute;
  right: 4vw;
  bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #8c98a9;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(90deg);
  transform-origin: right center;
}

.scroll-cue i {
  width: 3rem;
  height: 1px;
  background: currentColor;
}

.legacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(27rem, 1.15fr);
  gap: clamp(4rem, 10vw, 10rem);
  min-height: 48rem;
  padding: clamp(7rem, 10vw, 11rem) 8vw;
  border-top: 1px solid var(--white-line);
  background:
    linear-gradient(90deg, rgba(2, 13, 28, 0.94), rgba(5, 27, 55, 0.82)),
    radial-gradient(circle at 80% 40%, rgba(201, 145, 52, 0.09), transparent 28rem);
}

.section-copy {
  align-self: center;
  max-width: 36rem;
}

.section-kicker {
  margin: 0 0 1rem;
  color: var(--gold-400);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.section-copy h2,
.dashboard-intro h1,
.section-heading h2,
.archive-note h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.3vw, 4.7rem);
  font-weight: 400;
  line-height: 1.08;
}

.section-copy > p:not(.section-kicker) {
  max-width: 33rem;
  margin: 2rem 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.8;
}

.text-link {
  padding: 0 0 0.6rem;
  border: 0;
  border-bottom: 1px solid var(--gold-400);
  color: var(--gold-300);
  background: transparent;
  font-family: var(--serif);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.text-link span {
  display: inline-block;
  margin-left: 1rem;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(0.2rem, -0.2rem);
}

.private-preview {
  align-self: center;
  border-top: 1px solid var(--line);
}

.private-preview article {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 9.5rem;
  padding: 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: padding 200ms ease, background 200ms ease;
}

.private-preview article:hover {
  padding-right: 1.8rem;
  padding-left: 1.8rem;
  background: rgba(255, 255, 255, 0.025);
}

.card-number {
  color: var(--gold-500);
  font-family: var(--serif);
  font-size: 0.85rem;
}

.private-preview p {
  margin: 0 0 0.5rem;
  color: #7f8a9b;
  font-size: 0.62rem;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.private-preview h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
  padding: 4.5rem 5vw 3rem;
  border-top: 1px solid var(--white-line);
  background: var(--navy-950);
}

.footer-mark {
  display: block;
}

footer > div > p {
  margin: 1.2rem 0 0;
  color: #7e8794;
  font-family: var(--serif);
  font-style: italic;
}

.footer-contact {
  text-align: center;
}

.footer-contact span {
  display: block;
  margin-bottom: 0.6rem;
  color: #788493;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-contact a {
  color: var(--gold-300);
  font-family: var(--serif);
}

.copyright,
.prototype-note {
  justify-self: end;
  margin: 0;
  color: #6f7987;
  font-family: var(--serif);
  font-size: 0.82rem;
}

.login-dialog {
  width: min(92vw, 34rem);
  padding: 3.3rem;
  border: 1px solid rgba(229, 184, 92, 0.42);
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 0, rgba(25, 67, 115, 0.5), transparent 18rem),
    #041429;
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.65);
  text-align: center;
}

.login-dialog-simple {
  padding: 4rem 3.3rem 3rem;
}

.login-dialog-simple form {
  gap: 1.35rem;
}

.login-dialog::backdrop {
  background: rgba(0, 7, 17, 0.82);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  padding: 0.25rem 0.5rem;
  border: 0;
  color: #9ba4b2;
  background: transparent;
  font-family: var(--serif);
  font-size: 1.8rem;
  cursor: pointer;
}

.dialog-crest {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--gold-400);
  border-radius: 50%;
  color: var(--gold-300);
}

.dialog-crest i {
  position: absolute;
  inset: 0.35rem;
  border: 1px solid rgba(229, 184, 92, 0.35);
  border-radius: 50%;
}

.login-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
}

.dialog-intro {
  margin: 1rem auto 1.8rem;
  color: var(--muted);
  font-family: var(--serif);
  line-height: 1.6;
}

.login-dialog form {
  display: grid;
  gap: 1.1rem;
  text-align: left;
}

.login-dialog label {
  color: #aab3bf;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-dialog input {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 0;
  outline: 0;
  color: var(--ivory);
  background: rgba(0, 0, 0, 0.18);
}

.login-dialog input:focus {
  border-color: var(--gold-400);
}

.submit-button {
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--gold-400);
  color: var(--navy-950);
  background: var(--gold-400);
  font-family: var(--serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.form-message {
  min-height: 1.4rem;
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}

.dialog-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
  color: #6f7987;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dialog-divider::before,
.dialog-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--white-line);
}

.demo-link {
  color: var(--gold-300);
  font-family: var(--serif);
}

.demo-link span {
  display: inline-block;
  margin-left: 0.5rem;
}

.login-note {
  margin: 1.4rem 0 0;
  color: #7d8896;
  font-family: var(--serif);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Private area */
.private-page {
  background:
    radial-gradient(circle at 70% 5%, rgba(19, 60, 108, 0.5), transparent 30rem),
    var(--navy-950);
}

.private-header {
  position: absolute;
}

.crest-logo {
  display: block;
  width: 3.1rem;
  height: 3.7rem;
  transition: opacity 180ms ease, transform 180ms ease;
}

.crest-logo:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.crest-logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.dashboard {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 11rem);
  padding: calc(7.2rem + 2vw) 0 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 6rem);
  width: min(62rem, 84vw);
  margin: 0 auto;
  border: 0;
  background: transparent;
}

.feature-card {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 14rem;
  padding: 1rem;
  border: 0;
  background: transparent;
}

.feature-card::before {
  display: none;
}

.feature-card::after {
  display: none;
}

.feature-card .tile-symbol,
.feature-card > h2 {
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

a.feature-card:hover .tile-symbol {
  transform: translateY(-0.35rem);
}

a.feature-card:hover > h2 {
  color: var(--gold-300);
}

.feature-card > h2 {
  margin: 1.4rem 0 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 400;
}

.tile-symbol {
  width: clamp(5rem, 8vw, 7rem);
  height: clamp(5rem, 8vw, 7rem);
  overflow: visible;
  fill: none;
  stroke: var(--gold-300);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 1rem rgba(229, 184, 92, 0.14));
}

.tile-symbol .symbol-dot,
.tile-symbol .symbol-star,
.tile-symbol .symbol-moon {
  fill: var(--gold-300);
  stroke: none;
}

.private-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 11rem;
  padding: 2rem;
  border-top: 1px solid var(--white-line);
  background: var(--navy-950);
}

.private-footer img {
  width: 2rem;
  height: auto;
}

.private-footer p {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.06em;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.58rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.feature-card-copy p {
  margin: 0 0 0.7rem;
  color: var(--gold-300);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feature-card-copy h2 {
  max-width: 25rem;
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 400;
  line-height: 1.08;
}

.feature-card-copy a {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #d3d7dd;
  font-family: var(--serif);
  font-size: 0.9rem;
}

.feature-card-link {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #d3d7dd;
  font-family: var(--serif);
  font-size: 0.9rem;
}

.family-tree {
  position: absolute;
  top: 20%;
  right: 0;
  left: 0;
  height: 13rem;
}

.tree-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(229, 184, 92, 0.56);
  border-radius: 50%;
  color: var(--gold-300);
  background: #092546;
  font-family: var(--serif);
}

.node-one {
  top: 0;
  left: calc(50% - 2rem);
}

.node-two {
  bottom: 0;
  left: 20%;
}

.node-three {
  right: 20%;
  bottom: 0;
}

.tree-line {
  position: absolute;
  top: 3.9rem;
  width: 1px;
  height: 6rem;
  background: rgba(229, 184, 92, 0.38);
  transform-origin: top;
}

.line-one {
  left: 49%;
  transform: rotate(34deg);
}

.line-two {
  right: 49%;
  transform: rotate(-34deg);
}

.album-collage {
  position: absolute;
  top: 18%;
  right: 7%;
  left: 7%;
  height: 15rem;
}

.album-collage span {
  position: absolute;
  width: 60%;
  height: 78%;
  border: 0.5rem solid #ded7c9;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.36);
}

.photo-one {
  left: 0;
  background: linear-gradient(145deg, #b8935c, #374e56 55%, #172b3d);
  transform: rotate(-7deg);
}

.photo-two {
  top: 8%;
  right: 0;
  background: linear-gradient(155deg, #71929e, #d0aa6b 48%, #132c49 49%);
  transform: rotate(6deg);
}

.photo-three {
  top: 14%;
  left: 20%;
  background: radial-gradient(circle at 48% 32%, #e1c68c 0 7%, transparent 8%), linear-gradient(#698c9b 0 52%, #25475b 53%);
  transform: rotate(-1deg);
}

.journal-list {
  padding: clamp(7rem, 11vw, 10rem) 7vw;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.section-heading button,
.section-all-link {
  padding: 0 0 0.5rem;
  border: 0;
  border-bottom: 1px solid var(--gold-400);
  color: var(--gold-300);
  background: transparent;
  font-family: var(--serif);
  cursor: pointer;
}

.journal-row {
  display: grid;
  grid-template-columns: 10rem 1fr 10rem auto;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--white-line);
}

.journal-row:last-child {
  border-bottom: 1px solid var(--white-line);
}

.journal-date,
.journal-row p {
  color: #7e8998;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.journal-row h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 400;
}

.journal-row > span:last-child {
  color: var(--gold-300);
}

.archive-note {
  padding: clamp(7rem, 12vw, 12rem) 7vw;
  border-block: 1px solid var(--white-line);
  background: radial-gradient(circle at 50% 50%, rgba(16, 56, 105, 0.65), transparent 34rem);
  text-align: center;
}

.archive-star {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--gold-300);
  font-size: 2rem;
}

.archive-note h2 {
  max-width: 53rem;
  margin: 0 auto;
}

.archive-note > p:last-child {
  max-width: 42rem;
  margin: 2rem auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.7;
}

.album-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.album-strip article {
  min-height: 20rem;
  padding: 2rem;
  border-right: 1px solid var(--white-line);
  background:
    linear-gradient(180deg, transparent, rgba(2, 13, 28, 0.88)),
    linear-gradient(145deg, rgba(45, 80, 105, 0.7), rgba(10, 30, 55, 0.8));
}

.album-strip article:nth-child(even) {
  background:
    linear-gradient(180deg, transparent, rgba(2, 13, 28, 0.88)),
    linear-gradient(145deg, rgba(141, 107, 58, 0.6), rgba(20, 44, 62, 0.8));
}

.album-strip span {
  color: var(--gold-300);
  font-family: var(--serif);
}

.album-strip h3 {
  margin: 9rem 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
}

.album-strip p {
  margin: 0;
  color: #8f99a6;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Travel archive */
.travel-overview {
  min-height: calc(100svh - 11rem);
  padding: calc(7.2rem + 4vw) 5vw clamp(5rem, 8vw, 8rem);
}

.travel-overview .travel-heading {
  margin-right: 0;
  margin-left: 0;
}

.travel-map-intro {
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.travel-map-section {
  width: min(80rem, 100%);
  margin: 0 auto;
}

.travel-view-switch {
  display: flex;
  width: max-content;
  margin: -2.5rem auto 3rem;
  border: 1px solid var(--white-line);
  background: rgba(2, 13, 28, 0.4);
}

.travel-view-switch button {
  min-width: 8.5rem;
  padding: 0.72rem 1.2rem;
  border: 0;
  color: #8f9aa8;
  background: transparent;
  font-family: var(--serif);
  font-size: 0.75rem;
  cursor: pointer;
}

.travel-view-switch button + button {
  border-left: 1px solid var(--white-line);
}

.travel-view-switch button.active {
  color: var(--navy-950);
  background: var(--gold-300);
}

.travel-world-map {
  position: relative;
  overflow: visible;
  width: min(74rem, 94%);
  margin: 0 auto;
  aspect-ratio: 1692 / 930;
  background: transparent;
}

.travel-world-map::before {
  content: none;
}

.world-map-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.travel-map-marker {
  position: absolute;
  z-index: 3;
  width: 1rem;
  height: 1rem;
  transform: translate(-50%, -50%);
}

.marker-kanada-hawaii {
  top: 27%;
  left: 24%;
}

.marker-island {
  top: 22%;
  left: 42%;
}

.marker-namibia {
  top: 68%;
  left: 53%;
}

.marker-singapur-indonesien {
  top: 59%;
  left: 76%;
}

.travel-map-dot,
.travel-map-secondary {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--navy-950);
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 0.8rem rgba(229, 184, 92, 0.65);
  transform: translate(-50%, -50%);
}

.travel-map-secondary {
  z-index: 2;
  width: 0.48rem;
  height: 0.48rem;
  border-width: 1px;
}

.secondary-kanada-hawaii {
  top: 48%;
  left: 14%;
}

.secondary-singapur-indonesien {
  top: 66%;
  left: 78%;
}

.travel-map-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(229, 184, 92, 0.58);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease;
}

.travel-map-label {
  position: absolute;
  top: 50%;
  left: 1.25rem;
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 13rem;
  padding: 0.58rem 0.75rem 0.55rem;
  border: 1px solid rgba(229, 184, 92, 0.27);
  background: rgba(2, 13, 28, 0.86);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.2);
  transform: translateY(-50%);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  backdrop-filter: blur(8px);
}

.marker-west .travel-map-label {
  right: 1.25rem;
  left: auto;
}

.travel-map-label strong {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(0.76rem, 1.05vw, 1rem);
  font-weight: 400;
  line-height: 1.2;
}

.travel-map-label small {
  margin-top: 0.28rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.travel-map-marker:hover .travel-map-pulse {
  width: 2.25rem;
  height: 2.25rem;
  opacity: 0.65;
}

.travel-map-marker:hover .travel-map-label,
.travel-map-marker:focus-visible .travel-map-label {
  border-color: rgba(229, 184, 92, 0.75);
  background: rgba(5, 25, 51, 0.96);
  transform: translateY(-50%) translateX(0.22rem);
}

.travel-map-marker.marker-west:hover .travel-map-label,
.travel-map-marker.marker-west:focus-visible .travel-map-label {
  transform: translateY(-50%) translateX(-0.22rem);
}

.travel-map-index {
  display: grid;
  width: min(74rem, 94%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-right: 1px solid var(--white-line);
  border-bottom: 1px solid var(--white-line);
  border-left: 1px solid var(--white-line);
}

.travel-list-panel {
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
  border-top: 1px solid var(--white-line);
  background: var(--white-line);
}

.travel-list-panel a {
  position: relative;
  isolation: isolate;
  align-items: flex-end;
  overflow: hidden;
  min-height: clamp(15rem, 27vw, 21rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-right: 0;
  background: #06182f;
}

.travel-list-panel a::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(2, 13, 28, 0.08) 20%, rgba(2, 13, 28, 0.88) 100%),
    linear-gradient(90deg, rgba(2, 13, 28, 0.35), transparent 65%);
  transition: background 220ms ease;
}

.travel-list-panel a:hover::before {
  background:
    linear-gradient(180deg, rgba(2, 13, 28, 0.02) 15%, rgba(2, 13, 28, 0.78) 100%),
    linear-gradient(90deg, rgba(2, 13, 28, 0.25), transparent 65%);
}

.travel-list-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.travel-list-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) brightness(0.82);
  transition: filter 240ms ease, transform 500ms ease;
}

.travel-list-panel a:hover .travel-list-image img {
  filter: saturate(1) brightness(0.92);
  transform: scale(1.025);
}

.travel-list-panel .travel-list-copy {
  position: relative;
  z-index: 1;
}

.travel-list-panel .travel-list-copy strong {
  color: var(--ivory);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.travel-list-panel .travel-list-copy small {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
}

.travel-list-arrow {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  color: var(--gold-300);
  font-size: 1.25rem;
}

.travel-map-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.5rem;
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--white-line);
  transition: background 180ms ease;
}

.travel-map-index a:last-child {
  border-right: 0;
}

.travel-map-index a:hover {
  background: rgba(229, 184, 92, 0.055);
}

.travel-map-index a > span:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.travel-map-index strong {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 400;
}

.travel-map-index small {
  overflow: hidden;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-map-index a > span:last-child {
  color: var(--gold-300);
}

.travel-archive {
  padding: calc(7.2rem + 5vw) 4vw 0;
}

.travel-heading {
  margin: 0 3vw clamp(3rem, 6vw, 6rem);
}

.travel-heading h1 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.95;
}

.travel-featured {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: min(64vw, 42rem);
  border: 1px solid var(--white-line);
  isolation: isolate;
}

.travel-featured > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}

.travel-featured:hover > img {
  transform: scale(1.025);
}

.travel-featured-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 13, 28, 0.08), rgba(2, 13, 28, 0.88)),
    linear-gradient(90deg, rgba(2, 13, 28, 0.35), transparent 60%);
}

.travel-featured-meta {
  position: absolute;
  top: 2rem;
  right: 2rem;
  left: 2rem;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.travel-featured-copy {
  position: absolute;
  right: clamp(2rem, 5vw, 5rem);
  bottom: clamp(2rem, 5vw, 5rem);
  left: clamp(2rem, 5vw, 5rem);
}

.travel-featured-copy h2 {
  max-width: 52rem;
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
}

.travel-featured-copy > span {
  display: flex;
  justify-content: space-between;
  max-width: 22rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  font-family: var(--serif);
}

.travel-featured-copy i {
  color: var(--gold-300);
  font-family: var(--sans);
  font-style: normal;
}

.travel-library {
  padding: clamp(6rem, 10vw, 10rem) 3vw;
}

.travel-library-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: clamp(4rem, 7vw, 7rem);
}

.travel-library-heading .section-kicker {
  grid-column: 1 / -1;
}

.travel-library-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 400;
}

.travel-library-heading > p:last-child {
  margin: 0 0 0.6rem;
  color: #7d8897;
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.travel-trip + .travel-trip {
  margin-top: clamp(6rem, 10vw, 10rem);
}

.travel-trip-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.travel-trip-heading h3 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
}

.travel-trip-heading span {
  color: #788493;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 3vw, 3.5rem) 1.5rem;
}

.travel-card-entry {
  display: block;
}

.travel-card-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #17344e, #06162a);
}

.travel-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
  transition: filter 400ms ease, transform 600ms ease;
}

.travel-card-entry:hover .travel-card-image img {
  filter: saturate(1) contrast(1);
  transform: scale(1.035);
}

.travel-card-body {
  padding: 1.4rem 0 0;
}

.travel-card-body > p {
  margin: 0 0 0.65rem;
  color: var(--gold-400);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.travel-card-body h4 {
  min-height: 2.5em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
}

.travel-card-body h2 {
  min-height: 2.5em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
}

.travel-card-body > div {
  display: flex;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--white-line);
  color: #778392;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.travel-card-body > div span:last-child {
  color: var(--gold-300);
}

.travel-pending {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: clamp(7rem, 11vw, 11rem);
  padding: 3rem;
  border: 1px solid var(--line);
}

.travel-pending .archive-star {
  margin: 0;
}

.travel-pending h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.travel-pending p:last-child {
  margin: 0;
  color: #8994a2;
  font-family: var(--serif);
}

.trip-archive {
  min-height: calc(100svh - 11rem);
  padding: calc(7.2rem + 4vw) 7vw clamp(7rem, 10vw, 10rem);
}

.trip-heading {
  margin-bottom: clamp(4rem, 7vw, 7rem);
}

.trip-heading h1 {
  max-width: 65rem;
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.95;
}

.trip-heading > p:last-child {
  margin: 1.5rem 0 0;
  color: #818d9c;
  font-family: var(--serif);
}

/* Travel article */
.journal {
  max-width: 96rem;
  margin: 0 auto;
  padding: calc(7.2rem + 5vw) 5vw 8rem;
}

.journal-back {
  display: inline-flex;
  gap: 0.7rem;
  margin-bottom: clamp(4rem, 7vw, 7rem);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gold-400);
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.journal-header {
  max-width: 62rem;
  margin: 0 auto clamp(3.5rem, 7vw, 7rem);
  text-align: center;
}

.journal-header h1 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 400;
  line-height: 1.02;
  text-wrap: balance;
}

.journal-date {
  margin: 1.2rem 0 0;
  color: var(--gold-400);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: 0.04em;
}

.journal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
  color: #7f8a99;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.journal-edit {
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(229, 184, 92, 0.5);
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 0.86rem;
}

.journal-hero {
  position: relative;
  margin: 0 0 clamp(5rem, 9vw, 9rem);
}

.journal-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 52rem;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28);
}

.journal-content {
  max-width: 46rem;
  margin: 0 auto;
  color: #d6d8dc;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.5vw, 1.2rem);
  line-height: 1.9;
}

.journal-content h2,
.journal-content h3,
.journal-content h4 {
  margin: 3.5rem 0 1.2rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
}

.journal-content h2 {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--gold-300);
  font-size: clamp(2rem, 4vw, 3rem);
}

.journal-content h3 {
  color: var(--gold-300);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.journal-content p,
.journal-content > div {
  margin: 0 0 1.4rem;
}

.journal-content > p:first-child,
.journal-content > div:first-child {
  font-size: 1.16em;
}

.journal-content span {
  font: inherit;
}

.journal-content br {
  display: block;
  content: "";
  margin-top: 0.15rem;
}

.journal-content iframe:not(.map-wrapper iframe) {
  display: block;
  width: min(42rem, 100%);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 2rem auto;
  border: 1px solid var(--white-line);
  background: #07182d;
}

.journal-content a {
  color: var(--gold-300);
  text-decoration: underline;
  text-decoration-color: rgba(229, 184, 92, 0.4);
  text-underline-offset: 0.2em;
}

.journal-content a:has(img) {
  display: block;
  text-decoration: none;
}

.journal-content img {
  display: block;
  width: min(64rem, calc(100vw - 3rem));
  max-height: 52rem;
  height: auto;
  margin: clamp(3rem, 7vw, 6rem) 0 1rem 50%;
  object-fit: contain;
  transform: translateX(-50%);
}

.journal-content table,
.journal-content tbody,
.journal-content tr,
.journal-content td {
  display: block;
  width: 100%;
}

.journal-content table {
  margin: clamp(3rem, 6vw, 5rem) 0;
}

.journal-content tr:last-child:not(:first-child) td {
  margin-top: 0.7rem;
  color: #8792a0;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-align: center;
}

.journal-content table img {
  margin-top: 0;
}

.journal-content a:has(img) + div,
.journal-content img + div,
.journal-content table tr:last-child:not(:first-child) {
  color: #818c9a;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
}

/* Namibia planning article */
.journal-content .namibia-section {
  margin: 0 0 clamp(4rem, 8vw, 7rem);
}

.journal-content .namibia-card {
  width: min(56rem, calc(100vw - 3rem));
  margin: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem) 50%;
  padding: 2rem 2.2rem;
  border: 1px solid var(--line);
  color: var(--gold-300);
  background: rgba(7, 33, 67, 0.5);
  font-size: 1.08rem;
  line-height: 1.65;
  text-align: center;
  transform: translateX(-50%);
}

.journal-content .map-wrapper {
  position: relative;
  width: min(72rem, calc(100vw - 3rem));
  aspect-ratio: 16 / 9;
  margin: 3rem 0 0 50%;
  overflow: hidden;
  border: 1px solid var(--white-line);
  transform: translateX(-50%);
}

.journal-content .map-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.7) contrast(1.05);
}

.journal-content .reise-table-wrapper {
  width: min(82rem, calc(100vw - 3rem));
  margin: 3rem 0 1.5rem 50%;
  overflow-x: auto;
  border: 1px solid var(--white-line);
  transform: translateX(-50%);
}

.journal-content .reise-table {
  display: table;
  width: 100%;
  min-width: 72rem;
  margin: 0;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.45;
}

.journal-content .reise-table tbody {
  display: table-row-group;
}

.journal-content .reise-table tr {
  display: table-row;
}

.journal-content .reise-table th,
.journal-content .reise-table td {
  display: table-cell;
  width: auto;
  padding: 0.9rem;
  border-bottom: 1px solid var(--white-line);
  vertical-align: top;
}

.journal-content .reise-table th {
  color: var(--gold-300);
  background: #071d38;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.journal-content .reise-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}

.journal-content .legend {
  color: #7f8a99;
  font-family: var(--sans);
  font-size: 0.7rem;
}

.journal-content .car-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  width: min(56rem, calc(100vw - 3rem));
  margin: 3rem 0 0 50%;
  padding: 2.5rem;
  border: 1px solid var(--line);
  background: rgba(7, 33, 67, 0.35);
  transform: translateX(-50%);
}

.journal-content .car-image img {
  width: 100%;
  margin: 0;
  transform: none;
}

.journal-content blockquote {
  margin: 3rem 0;
  padding: 0.5rem 0 0.5rem 2rem;
  border-left: 1px solid var(--gold-400);
  color: var(--gold-300);
  font-size: 1.3rem;
  font-style: italic;
}

.journal-gallery {
  max-width: 78rem;
  margin: clamp(2.5rem, 5vw, 4.5rem) auto 0;
}

.journal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
}

.journal-gallery-grid:has(figure:only-child) {
  grid-template-columns: minmax(0, 46rem);
  justify-content: center;
}

.journal-gallery-grid figure {
  margin: 0;
}

.journal-gallery-grid a {
  display: block;
  overflow: hidden;
  background: #07182d;
}

.journal-gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: filter 350ms ease, transform 600ms ease;
}

.journal-gallery-grid a:hover img {
  filter: saturate(1) contrast(1);
  transform: scale(1.025);
}

.journal-gallery-grid figcaption {
  padding: 0.85rem 0.2rem 0;
  color: #8c96a4;
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.5;
}

.journal-end {
  display: block;
  max-width: 48rem;
  margin: 7rem auto 0;
  padding: 4rem 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: center;
}

.journal-end > span {
  color: var(--gold-300);
}

.journal-end p {
  margin: 1rem 0 1.5rem;
  color: #788493;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journal-end a {
  color: var(--gold-300);
  font-family: var(--serif);
}

/* Journal administration */
.admin-main {
  max-width: 58rem;
  min-height: calc(100svh - 11rem);
  margin: 0 auto;
  padding: calc(7.2rem + 4vw) 1.5rem 7rem;
}

.admin-heading {
  margin-bottom: 3rem;
  text-align: center;
}

.admin-heading h1 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
}

.admin-heading > p:not(.section-kicker) {
  margin: 1rem auto 0;
  color: #8b96a4;
  font-family: var(--serif);
}

.admin-section-link {
  display: inline-block;
  margin-top: 1.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(229, 184, 92, 0.42);
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 0.88rem;
}

.admin-section-link span {
  display: inline-block;
  margin-left: 0.55rem;
  transition: transform 180ms ease;
}

.admin-section-link:hover span {
  transform: translateX(0.2rem);
}

.admin-existing-posts {
  margin: 0 0 2rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  background: rgba(4, 24, 49, 0.48);
}

.admin-existing-posts-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.admin-existing-posts-heading h2,
.admin-existing-posts-empty h2 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
}

.admin-existing-posts-new,
.admin-existing-post a,
.admin-existing-post-active {
  display: inline-flex;
  width: max-content;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(229, 184, 92, 0.42);
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 0.82rem;
  white-space: nowrap;
}

.admin-existing-posts-list {
  display: grid;
  gap: 0.75rem;
}

.admin-existing-post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--white-line);
  background: rgba(0, 0, 0, 0.12);
}

.admin-existing-post-current {
  border-color: rgba(229, 184, 92, 0.5);
  background: rgba(229, 184, 92, 0.08);
}

.admin-existing-post h3 {
  margin: 0 0 0.35rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.admin-existing-post p,
.admin-existing-posts-empty > p:last-child {
  margin: 0;
  color: #8b96a4;
  font-size: 0.75rem;
  line-height: 1.5;
}

.admin-existing-post-active {
  border-bottom-color: transparent;
  color: #8b96a4;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: rgba(4, 24, 49, 0.72);
}

.admin-field {
  display: grid;
  gap: 0.55rem;
}

.admin-field-wide,
.admin-actions,
.admin-message {
  grid-column: 1 / -1;
}

.admin-field span {
  color: #aab3bf;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 0;
  outline: 0;
  color: var(--ivory);
  background: rgba(0, 0, 0, 0.18);
  font: inherit;
}

.admin-field textarea {
  min-height: 18rem;
  resize: vertical;
  font-family: var(--serif);
  line-height: 1.7;
}

.admin-field textarea[name="captions"] {
  min-height: 7rem;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: var(--gold-400);
}

.admin-field input[type="file"] {
  color: #aab3bf;
}

.admin-existing-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-existing-image {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--white-line);
}

.admin-existing-image img {
  width: 7rem;
  height: 5.5rem;
  object-fit: cover;
}

.admin-existing-image div {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.admin-existing-image label {
  color: #aab3bf;
  font-size: 0.68rem;
}

.admin-existing-image input[type="text"] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  color: var(--ivory);
  background: rgba(0, 0, 0, 0.18);
}

.admin-help {
  margin: 0;
  color: #788493;
  font-size: 0.72rem;
  line-height: 1.5;
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
}

.admin-submit {
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--gold-400);
  color: var(--navy-950);
  background: var(--gold-400);
  font-family: var(--serif);
  letter-spacing: 0.1em;
  cursor: pointer;
}

.admin-message {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(229, 184, 92, 0.35);
  color: var(--gold-300);
  font-family: var(--serif);
  text-align: center;
}

.admin-message-error {
  border-color: rgba(210, 105, 105, 0.5);
  color: #efb1a9;
}

/* Annual family photo albums */
.albums-main {
  min-height: calc(100svh - 11rem);
  padding: calc(7.2rem + 4vw) 5vw 7rem;
}

.albums-heading {
  max-width: 78rem;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.albums-heading h1,
.album-detail-heading h1 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
}

.album-year-grid {
  display: grid;
  width: min(78rem, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.album-year-card {
  display: block;
  min-width: 0;
}

.album-year-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--white-line);
  background: rgba(5, 27, 54, 0.56);
}

.album-year-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(2, 13, 28, 0.42));
  pointer-events: none;
}

.album-year-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease, opacity 300ms ease;
}

.album-year-card:hover .album-year-cover img {
  opacity: 0.9;
  transform: scale(1.025);
}

.album-year-empty .album-year-cover {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(34, 79, 120, 0.22), transparent 42%),
    rgba(4, 22, 45, 0.52);
}

.album-year-empty .album-year-cover > span {
  color: rgba(229, 184, 92, 0.54);
  font-size: 1.25rem;
}

.album-year-info {
  padding: 1.1rem 0.2rem 0;
}

.album-year-info p,
.album-year-info span {
  margin: 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.album-year-info h2 {
  margin: 0.25rem 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.album-detail {
  min-height: calc(100svh - 6rem);
  padding: calc(7.2rem + 3vw) 4vw 7rem;
}

.album-detail > .journal-back,
.album-admin-main > .journal-back {
  display: inline-flex;
  margin-bottom: 3rem;
}

.album-detail-heading {
  max-width: 65rem;
  margin: 0 auto clamp(3rem, 7vw, 6rem);
  text-align: center;
}

.album-detail-heading > p:not(.section-kicker) {
  max-width: 42rem;
  margin: 1rem auto 0;
  color: #8b96a4;
  font-family: var(--serif);
  line-height: 1.7;
}

.album-detail-heading .journal-edit {
  margin-top: 1.4rem;
}

.photo-album-grid {
  width: min(92rem, 100%);
  margin: 0 auto;
  columns: 3 18rem;
  column-gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.photo-album-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0 0 clamp(0.75rem, 1.5vw, 1.25rem);
  break-inside: avoid;
  border: 1px solid var(--white-line);
  background: rgba(3, 18, 37, 0.64);
}

.photo-album-grid a {
  display: block;
}

.photo-album-grid img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 220ms ease, transform 500ms ease;
}

.photo-album-grid a:hover img {
  opacity: 0.9;
  transform: scale(1.015);
}

.photo-album-grid figcaption {
  padding: 0.8rem 1rem;
  color: #929dab;
  font-family: var(--serif);
  font-size: 0.78rem;
}

.album-empty-state {
  display: grid;
  width: min(48rem, 100%);
  min-height: 18rem;
  margin: 0 auto;
  padding: 3rem;
  place-items: center;
  align-content: center;
  border: 1px solid var(--white-line);
  color: #8b96a4;
  font-family: var(--serif);
  text-align: center;
}

.album-empty-state > span {
  color: var(--gold-300);
}

.album-empty-state a {
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(229, 184, 92, 0.42);
  color: var(--gold-300);
}

.album-admin-main {
  width: min(68rem, calc(100% - 3rem));
  min-height: calc(100svh - 11rem);
  margin: 0 auto;
  padding: calc(7.2rem + 3vw) 0 7rem;
}

.album-year-selector {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 auto 2rem;
}

.album-year-selector label,
.album-details-form label,
.album-file-field {
  display: grid;
  gap: 0.5rem;
  color: #9ba5b2;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-year-selector select,
.album-year-selector button,
.album-details-form input,
.album-details-form textarea,
.album-file-field input {
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--white-line);
  border-radius: 0;
  color: var(--ivory);
  background: rgba(3, 18, 37, 0.76);
  font: inherit;
}

.album-upload-status {
  min-height: 1.2rem;
  margin: 0;
  color: #8995a3;
  font-family: var(--serif);
  font-size: 0.78rem;
}

.album-admin-panel .admin-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.album-year-selector button {
  color: var(--gold-300);
  cursor: pointer;
}

.album-admin-panel {
  margin-top: 1.5rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--white-line);
  background: rgba(4, 22, 45, 0.54);
}

.album-admin-panel h2 {
  margin: 0 0 1.25rem;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
}

.album-admin-panel > p {
  max-width: 46rem;
  color: #8995a3;
  font-family: var(--serif);
  line-height: 1.7;
}

.album-details-form,
.album-admin-panel > form {
  display: grid;
  gap: 1rem;
}

.album-admin-panel .admin-submit {
  justify-self: start;
}

.album-admin-photos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.album-admin-photos label {
  overflow: hidden;
  border: 1px solid var(--white-line);
  background: rgba(2, 13, 28, 0.62);
}

.album-admin-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.album-admin-photos span {
  display: block;
  padding: 0.55rem;
  color: #9aa5b2;
  font-size: 0.68rem;
}

.admin-delete {
  justify-self: start;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(208, 110, 110, 0.5);
  color: #e3aaa3;
  background: transparent;
  cursor: pointer;
}

/* Family history */
.family-history-main {
  display: grid;
  min-height: calc(100svh - 11rem);
  padding: calc(7.2rem + 4vw) 5vw 7rem;
  align-content: center;
}

.family-history-heading {
  width: min(72rem, 100%);
  margin: 0 auto clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}

.family-history-heading h1,
.family-story-heading h1 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.96;
}

.family-history-choices {
  display: grid;
  width: min(64rem, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--white-line);
  border-left: 1px solid var(--white-line);
}

.family-history-choices > a {
  display: flex;
  min-height: 23rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-right: 1px solid var(--white-line);
  border-bottom: 1px solid var(--white-line);
  flex-direction: column;
  justify-content: center;
  background: rgba(3, 20, 41, 0.28);
  transition: background 220ms ease;
}

.family-history-choices > a:hover {
  background: rgba(9, 38, 73, 0.48);
}

.family-history-symbol {
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 2.5rem;
  fill: none;
  stroke: var(--gold-300);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 220ms ease;
}

.family-history-symbol .symbol-star {
  fill: var(--gold-300);
  stroke: none;
}

.family-history-choices > a:hover .family-history-symbol {
  transform: translateY(-0.3rem);
}

.family-history-choices p {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.family-history-choices h2 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 400;
}

.family-history-choices > a > span {
  margin-top: 2rem;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 0.85rem;
}

.family-story-main {
  min-height: calc(100svh - 6rem);
  padding: calc(7.2rem + 3vw) 5vw 7rem;
}

.family-story-main > .journal-back,
.family-tree-main > .journal-back {
  display: inline-flex;
  margin-bottom: 4rem;
}

.family-story-heading {
  width: min(70rem, 100%);
  margin: 0 auto clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}

.family-story-heading > p:last-child:not(.family-story-meta) {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  color: #8b96a4;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
}

.family-story-intro {
  display: grid;
  width: min(52rem, 100%);
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  justify-items: center;
  text-align: center;
}

.family-story-intro > span {
  margin-bottom: 1.3rem;
  color: var(--gold-300);
}

.family-story-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.8;
}

.family-story-blog-list {
  display: grid;
  width: min(76rem, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--white-line);
  border-left: 1px solid var(--white-line);
}

.family-story-blog-card {
  min-height: 21rem;
  border-right: 1px solid var(--white-line);
  border-bottom: 1px solid var(--white-line);
  background: rgba(3, 20, 41, 0.26);
}

.family-story-blog-card > a {
  display: flex;
  height: 100%;
  padding: clamp(2rem, 5vw, 3.5rem);
  flex-direction: column;
  color: inherit;
  transition: background 220ms ease, transform 220ms ease;
}

.family-story-blog-card > a:hover {
  background: rgba(9, 38, 73, 0.42);
  transform: translateY(-0.2rem);
}

.family-story-card-kicker,
.family-story-card-meta,
.family-story-card-period,
.family-story-meta {
  margin: 0 0 1rem;
  color: rgba(229, 184, 92, 0.78);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.family-story-blog-card h2 {
  margin: 0 0 1rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.08;
}

.family-story-card-meta,
.family-story-meta {
  color: rgba(255, 255, 255, 0.48);
}

.family-story-card-period {
  margin-bottom: 1.2rem;
  color: rgba(229, 184, 92, 0.68);
}

.family-story-blog-card p:not(.family-story-card-kicker, .family-story-card-meta, .family-story-card-period) {
  margin: 0;
  color: #8995a3;
  font-family: var(--serif);
  line-height: 1.75;
}

.family-story-blog-card span:last-child {
  display: inline-flex;
  width: max-content;
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(229, 184, 92, 0.42);
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 0.85rem;
}

.family-story-article {
  width: min(62rem, 100%);
  margin: 0 auto;
}

.family-story-article > .journal-back {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.family-story-article-heading {
  margin-bottom: clamp(2.8rem, 6vw, 5rem);
}

.family-story-article-heading .family-story-meta {
  margin: 1.5rem auto 0;
}

.family-story-article-text {
  width: min(46rem, 100%);
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.family-story-article-text h3 {
  margin-top: 2.4rem;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2vw, 2.15rem);
  font-weight: 400;
}

.family-story-article-gallery {
  width: min(58rem, 100%);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}

.family-story-empty-state {
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-right: 1px solid var(--white-line);
  border-bottom: 1px solid var(--white-line);
  border-left: 1px solid var(--white-line);
  border-top: 1px solid var(--white-line);
  background: rgba(3, 20, 41, 0.26);
  text-align: center;
}

.family-story-empty-state h2 {
  margin: 0 0 1rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 400;
}

.family-story-empty-state p:last-child {
  margin: 0;
  color: #8995a3;
  font-family: var(--serif);
  line-height: 1.75;
}

.family-story-posts {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.2rem;
}

.family-story-post {
  padding-top: 1.5rem;
  border-top: 1px solid var(--white-line);
}

.family-story-post header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.family-story-post header p {
  margin: 0;
  color: rgba(229, 184, 92, 0.78);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.family-story-post h3 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 400;
}

.family-story-post header a {
  width: max-content;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(229, 184, 92, 0.34);
  color: #b8a77f;
  font-family: var(--serif);
  font-size: 0.72rem;
}

.family-story-post-text {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  line-height: 1.8;
}

.family-story-post-text p,
.family-story-post-text h3 {
  margin: 0 0 1rem;
}

.family-story-gallery {
  display: grid;
  margin-top: 1.4rem;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.family-story-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--white-line);
  background: rgba(3, 18, 37, 0.64);
}

.family-story-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.family-story-gallery figcaption {
  padding: 0.6rem 0.75rem;
  color: #929dab;
  font-family: var(--serif);
  font-size: 0.72rem;
}

.family-story-empty {
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--serif);
}

/* Family tree */
.family-tree-main {
  min-height: calc(100svh - 6rem);
  padding: calc(7.2rem + 3vw) 3vw 7rem;
}

.family-tree-heading {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.family-tree-heading h1 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
}

.family-tree-heading > p:last-child {
  margin: 1.3rem auto 0;
  color: #8b96a4;
  font-family: var(--serif);
  line-height: 1.7;
}

.tree-toolbar {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.tree-toolbar button {
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  color: var(--gold-300);
  background: rgba(4, 24, 49, 0.65);
  font-family: var(--serif);
  cursor: pointer;
}

.family-tree-branches {
  display: grid;
  gap: 3rem;
}

.family-tree-branch {
  overflow-x: auto;
  padding: 2rem max(1.5rem, 4vw) 4rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0, rgba(24, 67, 113, 0.2), transparent 25rem),
    rgba(2, 15, 32, 0.68);
}

.family-tree-branch-heading {
  position: sticky;
  left: 0;
  width: fit-content;
  margin-bottom: 2.5rem;
}

.family-tree-branch-heading p {
  margin: 0 0 0.3rem;
  color: #768291;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.family-tree-branch-heading h2 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.tree-household {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: max-content;
}

.tree-partners {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.tree-partners:has(.tree-person + .tree-person)::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 2.5rem;
  height: 1px;
  content: "";
  background: rgba(229, 184, 92, 0.42);
  transform: translate(-50%, -50%);
}

.tree-person {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3rem minmax(8rem, 1fr);
  align-items: center;
  gap: 0.8rem;
  width: 15rem;
  min-height: 5.2rem;
  padding: 0.8rem;
  border: 1px solid rgba(229, 184, 92, 0.38);
  color: var(--ivory);
  background: #061a34;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.tree-person:hover,
.tree-person:focus-visible {
  border-color: var(--gold-300);
  background: #0a2343;
  transform: translateY(-2px);
}

.tree-person-female {
  border-color: rgba(229, 184, 92, 0.55);
}

.tree-person-avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(229, 184, 92, 0.4);
  border-radius: 50%;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 0.85rem;
}

.tree-person-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.tree-person-has-portrait::after {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  color: var(--gold-300);
  content: "✦";
  font-size: 0.62rem;
}

.tree-person-copy {
  display: grid;
  gap: 0.3rem;
}

.tree-person-copy strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.15;
}

.tree-person-copy small {
  color: #7f8a99;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.tree-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: 1rem;
  border: 1px solid rgba(229, 184, 92, 0.4);
  border-radius: 50%;
  color: var(--gold-300);
  background: #061a34;
  cursor: pointer;
}

.tree-toggle::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 1rem;
  content: "";
  background: rgba(229, 184, 92, 0.35);
}

.tree-descendants {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.tree-descendants::before {
  position: absolute;
  top: 0;
  right: 7.5rem;
  left: 7.5rem;
  height: 1px;
  content: "";
  background: rgba(229, 184, 92, 0.28);
}

.tree-descendants[hidden] {
  display: none;
}

.tree-child {
  position: relative;
  display: grid;
  justify-items: center;
}

.tree-child::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 2rem;
  content: "";
  background: rgba(229, 184, 92, 0.28);
}

.person-dialog {
  width: min(92vw, 34rem);
  padding: 3rem;
  border: 1px solid rgba(229, 184, 92, 0.42);
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 0, rgba(25, 67, 115, 0.5), transparent 18rem),
    #041429;
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.65);
  text-align: center;
}

.person-dialog::backdrop {
  background: rgba(0, 7, 17, 0.84);
  backdrop-filter: blur(8px);
}

.person-dialog-symbol {
  margin-bottom: 1rem;
  color: var(--gold-300);
  font-size: 1.5rem;
}

.person-dialog h2 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
}

.person-birth-name {
  margin: 0.7rem 0 0;
  color: #8792a0;
  font-family: var(--serif);
  font-style: italic;
}

.person-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: left;
}

.person-details div {
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.person-details dt {
  margin-bottom: 0.4rem;
  color: #74808f;
  font-size: 0.57rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.person-details dd {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
}

.person-dialog-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.person-edit-link,
.person-portrait-link {
  display: inline-block;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(229, 184, 92, 0.5);
  color: var(--gold-300);
  font-family: var(--serif);
}

.person-portrait-link[hidden] {
  display: none;
}

.person-edit-link {
  color: #9da7b3;
}

.portrait-admin-section {
  display: grid;
  grid-column: 1 / -1;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--white-line);
}

.portrait-admin-section h2 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.portrait-admin-section > div > p:last-child {
  color: #8f9aa8;
  font-family: var(--serif);
  line-height: 1.7;
}

.portrait-admin-current {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.portrait-admin-current img {
  width: 7rem;
  height: 8.5rem;
  border: 1px solid var(--white-line);
  object-fit: cover;
}

/* Portraits */
.portraits-main,
.portrait-main {
  min-height: calc(100svh - 6rem);
  padding: calc(7.2rem + 3vw) 5vw 7rem;
}

.portraits-main > .journal-back,
.portrait-main > .journal-back {
  display: inline-flex;
  margin-bottom: 4rem;
}

.portraits-heading {
  width: min(60rem, 100%);
  margin: 0 auto clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}

.portraits-heading h1 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.96;
}

.portraits-heading > p:not(.section-kicker) {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  color: #8b96a4;
  font-family: var(--serif);
  line-height: 1.8;
}

.portraits-heading > a {
  display: inline-flex;
  margin-top: 1.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(229, 184, 92, 0.4);
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 0.82rem;
}

.portrait-grid {
  display: grid;
  width: min(72rem, 100%);
  margin: 0 auto;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white-line);
  border: 1px solid var(--white-line);
}

.portrait-card {
  display: grid;
  min-width: 0;
  background: #04152c;
  transition: background 200ms ease;
}

.portrait-card:hover {
  background: #08213f;
}

.portrait-card-image {
  display: grid;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  place-items: center;
  color: rgba(229, 184, 92, 0.65);
  background: radial-gradient(circle at 50% 35%, rgba(38, 79, 124, 0.62), transparent 62%);
  font-family: var(--serif);
  font-size: 4rem;
}

.portrait-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 220ms ease, transform 400ms ease;
}

.portrait-card:hover img {
  filter: saturate(1);
  transform: scale(1.02);
}

.portrait-card-copy {
  padding: 1.5rem;
}

.portrait-card-copy p {
  margin: 0 0 0.45rem;
  color: #7f8b99;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portrait-card-copy h2 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
}

.portrait-card-copy span {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 0.76rem;
}

.portraits-empty {
  display: grid;
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: 4rem 2rem;
  border: 1px solid var(--white-line);
  justify-items: center;
  color: #8b96a4;
  font-family: var(--serif);
  text-align: center;
}

.portraits-empty > span,
.portraits-empty a {
  color: var(--gold-300);
}

.portrait-article {
  display: grid;
  width: min(74rem, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(22rem, 1.18fr);
  border: 1px solid var(--white-line);
  background: rgba(3, 19, 39, 0.5);
}

.portrait-hero-image {
  display: grid;
  min-height: 42rem;
  border-right: 1px solid var(--white-line);
  place-items: center;
  color: var(--gold-300);
  background: radial-gradient(circle at 50% 35%, rgba(38, 79, 124, 0.56), transparent 62%);
  font-size: 3rem;
}

.portrait-hero-image img {
  width: 100%;
  height: 100%;
  max-height: 52rem;
  object-fit: cover;
}

.portrait-content {
  padding: clamp(2.5rem, 6vw, 5rem);
}

.portrait-content h1 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 0.98;
}

.portrait-birth-name,
.portrait-dates {
  margin: 0.9rem 0 0;
  color: #8f9aa8;
  font-family: var(--serif);
}

.portrait-birth-name {
  font-style: italic;
}

.portrait-biography {
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.9;
}

.portrait-biography h2 {
  margin: 2.5rem 0 1rem;
  color: var(--gold-300);
  font-size: 1.65rem;
  font-weight: 400;
}

.portrait-biography p {
  margin: 0 0 1.35rem;
}

.portrait-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--white-line);
}

.portrait-links a {
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 0.78rem;
}

.tree-admin-form {
  margin-top: 1.5rem;
}

.tree-admin-checkbox {
  display: flex;
  align-items: center;
  grid-template-columns: none;
  gap: 0.75rem;
}

.tree-admin-checkbox input {
  width: auto;
  margin: 0;
}

.tree-admin-checkbox span {
  margin: 0;
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 5.5rem;
  }

  .section-nav {
    top: 5.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 1.75rem;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
    scrollbar-width: none;
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .section-nav a {
    flex: 0 0 auto;
  }

  .main-nav {
    position: fixed;
    inset: 5.5rem 0 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem max(1.5rem, 8vw) 3rem;
    border-top: 1px solid var(--white-line);
    background:
      radial-gradient(circle at 50% 20%, rgba(17, 55, 100, 0.5), transparent 28rem),
      rgba(2, 13, 28, 0.985);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav-primary {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .main-nav a,
  .nav-link {
    justify-content: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: clamp(1.15rem, 4vw, 1.6rem);
    letter-spacing: 0.1em;
  }

  .main-nav a::after,
  .nav-link::after {
    display: none;
  }

  .login-button {
    display: none;
  }

  .home-header .login-button {
    display: flex;
  }

  .menu-toggle {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border: 0;
    color: var(--gold-300);
    background: transparent;
    font-family: var(--serif);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .menu-toggle-lines {
    display: grid;
    width: 1.4rem;
    gap: 0.35rem;
  }

  .menu-toggle-lines i {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--gold-300);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:first-child {
    transform: translateY(0.175rem) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:last-child {
    transform: translateY(-0.175rem) rotate(-45deg);
  }

  .hero {
    padding-top: 7rem;
  }

  .legacy-section {
    grid-template-columns: 1fr;
  }

  .section-copy {
    max-width: 44rem;
  }

  .private-preview {
    width: 100%;
  }

  .main-nav .nav-manage {
    align-self: center;
    padding: 1rem 2rem;
    border: 1px solid rgba(229, 184, 92, 0.28);
    font-size: 0.82rem;
  }

  .nav-mobile-logout {
    display: flex !important;
    align-self: center;
    width: max-content;
    padding: 0.7rem 1rem !important;
    border-bottom: 0 !important;
    color: #7f8a98 !important;
    font-size: 0.72rem !important;
  }

  body.menu-open {
    overflow: hidden;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .album-strip {
    grid-template-columns: 1fr 1fr;
  }

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

  .travel-map-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .travel-map-index a:nth-child(2) {
    border-right: 0;
  }

  .travel-map-index a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--white-line);
  }

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

  .album-admin-photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .family-history-choices > a {
    min-height: 21rem;
  }
}

@media (max-height: 850px) and (min-width: 701px) {
  .home-page .hero {
    padding-top: 7rem;
    padding-bottom: 2.5rem;
  }

  .crest-wrap {
    width: min(30vw, 20rem);
  }

  .home-page .hero h1 {
    font-size: clamp(0.9rem, 1.4vw, 1.5rem);
  }

  .ornament {
    margin-top: 1rem;
    margin-bottom: 0.8rem;
  }

  .enter-button {
    margin-top: 1.2rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 0 1.25rem;
  }

  .menu-toggle-label {
    display: none;
  }

  .breadcrumbs {
    margin-bottom: 3rem;
  }

  .breadcrumbs ol {
    gap: 0.35rem;
  }

  .breadcrumbs li {
    gap: 0.35rem;
    font-size: 0.7rem;
  }

  .travel-view-switch {
    width: 100%;
    margin-top: -1.5rem;
  }

  .travel-view-switch button {
    min-width: 0;
    flex: 1;
  }

  .home-page .hero {
    min-height: 100svh;
    padding: 4.5rem 1rem 4rem;
  }

  .home-page {
    min-height: 100svh;
    height: auto;
    overflow-y: auto;
  }

  .home-header {
    padding: 1.25rem;
  }

  .home-header .login-button {
    gap: 0.65rem;
    font-size: 0.8rem;
  }

  .crest-wrap {
    width: min(76vw, 20rem);
    min-width: 0;
  }

  .home-page .hero h1 {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    letter-spacing: 0.06em;
  }

  .eyebrow {
    display: none;
  }

  .motto {
    font-size: 0.76rem;
  }

  .home-page .ornament {
    margin-top: 1rem;
    margin-bottom: 0.85rem;
  }

  .home-footer {
    padding-bottom: 0.85rem;
  }

  .scroll-cue {
    display: none;
  }

  .legacy-section {
    min-height: auto;
    padding: 6rem 1.4rem;
  }

  .section-copy h2 {
    font-size: 2.6rem;
  }

  .private-preview article {
    grid-template-columns: 2.2rem 1fr auto;
    gap: 0.8rem;
    min-height: 8rem;
    padding-right: 0;
    padding-left: 0;
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 4rem 1.5rem 2rem;
  }

  .footer-contact {
    text-align: left;
  }

  .copyright,
  .prototype-note {
    justify-self: start;
  }

  .login-dialog {
    padding: 3rem 1.4rem 2rem;
  }

  .dashboard {
    display: block;
    min-height: auto;
    padding: calc(5.5rem + 1.5rem) 0 3rem;
  }

  .crest-logo {
    width: 2.5rem;
    height: 3rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: auto;
    margin: 0 1rem;
  }

  .feature-card {
    min-height: 10rem;
  }

  .journal-list {
    padding: 6rem 1.4rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 1.5rem;
  }

  .journal-row {
    grid-template-columns: 1fr auto;
    gap: 0.7rem 1rem;
  }

  .journal-row h3 {
    grid-column: 1;
  }

  .journal-row p {
    grid-column: 1;
    margin: 0;
  }

  .journal-row > span:last-child {
    grid-column: 2;
    grid-row: 1 / 4;
  }

  .archive-note {
    padding: 7rem 1.4rem;
  }

  .album-strip {
    grid-template-columns: 1fr;
  }

  .travel-archive {
    padding: 7.5rem 1rem 0;
  }

  .travel-overview {
    padding: 7.5rem 1rem 5rem;
  }

  .travel-heading {
    margin: 0 0.4rem 3rem;
  }

  .travel-heading h1 {
    font-size: 3.8rem;
  }

  .travel-featured {
    min-height: 34rem;
  }

  .travel-featured-meta {
    top: 1.3rem;
    right: 1.3rem;
    left: 1.3rem;
  }

  .travel-featured-meta span:last-child {
    text-align: right;
  }

  .travel-featured-copy {
    right: 1.5rem;
    bottom: 2rem;
    left: 1.5rem;
  }

  .travel-featured-copy h2 {
    font-size: 2.7rem;
  }

  .travel-library {
    padding: 5rem 0.4rem;
  }

  .travel-library-heading {
    display: block;
  }

  .travel-library-heading > p:last-child {
    margin-top: 1rem;
  }

  .travel-trip-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .travel-grid {
    grid-template-columns: 1fr;
  }

  .travel-card-body h4 {
    min-height: 0;
  }

  .travel-card-body h2 {
    min-height: 0;
  }

  .travel-pending {
    align-items: start;
    padding: 2rem 1.5rem;
  }

  .journal {
    padding: 7.5rem 1.25rem 5rem;
  }

  .journal-back {
    margin-bottom: 4rem;
  }

  .journal-header h1 {
    font-size: 3rem;
  }

  .journal-meta {
    gap: 0.7rem 1rem;
  }

  .journal-hero {
    margin-right: -1.25rem;
    margin-left: -1.25rem;
  }

  .journal-content {
    font-size: 1.05rem;
  }

  .journal-content img {
    width: calc(100vw - 2rem);
  }

  .journal-content .namibia-card,
  .journal-content .map-wrapper,
  .journal-content .reise-table-wrapper,
  .journal-content .car-card {
    width: calc(100vw - 2rem);
  }

  .journal-content .namibia-card {
    padding: 1.5rem;
  }

  .journal-content .map-wrapper {
    aspect-ratio: 4 / 3;
  }

  .journal-content .car-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .journal-content .reise-table-wrapper {
    overflow: visible;
    border: 0;
  }

  .journal-content .reise-table {
    display: block;
    min-width: 0;
    background: transparent;
  }

  .journal-content .reise-table thead {
    display: none;
  }

  .journal-content .reise-table tbody,
  .journal-content .reise-table tr,
  .journal-content .reise-table td {
    display: block;
    width: 100%;
  }

  .journal-content .reise-table tr {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    background: rgba(7, 33, 67, 0.42);
  }

  .journal-content .reise-table td {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--white-line);
    background: transparent !important;
  }

  .journal-content .reise-table td:last-child {
    border-bottom: 0;
  }

  .journal-content .reise-table td::before {
    color: var(--gold-400);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .journal-content .reise-table td:nth-child(1)::before { content: "Datum"; }
  .journal-content .reise-table td:nth-child(2)::before { content: "Tag"; }
  .journal-content .reise-table td:nth-child(3)::before { content: "Region / Flug"; }
  .journal-content .reise-table td:nth-child(4)::before { content: "Unterkunft"; }
  .journal-content .reise-table td:nth-child(5)::before { content: "Basis"; }
  .journal-content .reise-table td:nth-child(6)::before { content: "Distanz / Fahrzeit"; }
  .journal-content .reise-table td:nth-child(7)::before { content: "Highlights"; }
  .journal-content .reise-table td:nth-child(8)::before { content: "Hinweise"; }

  .journal-gallery-grid {
    grid-template-columns: 1fr;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-field {
    grid-column: 1;
  }

  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-existing-posts-heading,
  .admin-existing-post {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-existing-gallery {
    grid-template-columns: 1fr;
  }

  .albums-main {
    padding: 7.5rem 1rem 5rem;
  }

  .album-year-grid {
    grid-template-columns: 1fr;
  }

  .album-year-card {
    display: grid;
    grid-template-columns: minmax(8rem, 42%) 1fr;
    align-items: center;
    gap: 1.2rem;
  }

  .album-year-info {
    padding: 0;
  }

  .album-detail {
    padding: 7.5rem 1rem 5rem;
  }

  .album-detail-heading h1 {
    font-size: 4.2rem;
  }

  .photo-album-grid {
    columns: 1;
  }

  .album-admin-main {
    width: calc(100% - 2rem);
    padding: 7.5rem 0 5rem;
  }

  .album-year-selector {
    align-items: stretch;
    flex-direction: column;
  }

  .album-admin-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-history-main {
    display: block;
    padding: 7.5rem 1rem 5rem;
  }

  .family-history-heading {
    text-align: left;
  }

  .family-history-heading h1 {
    font-size: 3.5rem;
  }

  .family-history-choices,
  .family-story-blog-list {
    grid-template-columns: 1fr;
  }

  .portraits-main,
  .portrait-main {
    padding: 7.5rem 1rem 5rem;
  }

  .portraits-heading {
    text-align: left;
  }

  .portraits-heading > p:not(.section-kicker) {
    margin-left: 0;
  }

  .portrait-grid {
    grid-template-columns: 1fr;
  }

  .portrait-article {
    grid-template-columns: 1fr;
  }

  .portrait-hero-image {
    min-height: 30rem;
    border-right: 0;
    border-bottom: 1px solid var(--white-line);
  }

  .portrait-links,
  .person-dialog-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .family-history-choices > a {
    min-height: 18rem;
    padding: 2rem;
  }

  .family-history-symbol {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.5rem;
  }

  .family-story-main {
    padding: 7.5rem 1rem 5rem;
  }

  .family-story-heading {
    text-align: left;
  }

  .family-story-heading h1 {
    font-size: 3.8rem;
  }

  .family-story-heading > p:last-child {
    margin-left: 0;
  }

  .family-story-blog-card {
    min-height: 15rem;
  }

  .family-story-gallery {
    grid-template-columns: 1fr;
  }

  .family-tree-main {
    padding: 7.5rem 1rem 5rem;
  }

  .family-tree-branch {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .person-details {
    grid-template-columns: 1fr;
  }

  .trip-archive {
    padding: 7.5rem 1rem 5rem;
  }

  .trip-heading h1 {
    font-size: 3.6rem;
  }

  .travel-overview {
    padding-right: 1rem;
    padding-left: 1rem;
  }

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

  .travel-map-dot {
    width: 0.82rem;
    height: 0.82rem;
  }

  .travel-map-index {
    grid-template-columns: 1fr;
  }

  .travel-map-index a,
  .travel-map-index a:nth-child(2) {
    min-height: 4.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--white-line);
  }

  .travel-map-index a:last-child {
    border-bottom: 0;
  }

  .travel-map-index.travel-list-panel a,
  .travel-map-index.travel-list-panel a:nth-child(2) {
    min-height: 18rem;
    border-bottom: 0;
  }

  .travel-map-index small {
    white-space: normal;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
