:root {
  --header: #c0ceda;
  --navy: #1f174b;
  --ink: #1f174b;
  --accent: #e4a888;
  --accent-strong: #8d3f2c;
  --text: #ffffff;
  --measure: 46rem;
  --article: 40rem;
  --header-pad: clamp(1.25rem, 4vw, 4.5rem);
  --font: "Source Sans 3", "Segoe UI", "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--navy);
  color: var(--text);
  padding: 0.6rem 0.9rem;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

.site-header {
  background: var(--header);
  color: var(--ink);
  padding: 3.15rem var(--header-pad) 0.65rem;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  display: block;
  font-size: clamp(2.64rem, 5.04vw, 4.26rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.brand-tag {
  display: block;
  margin-top: 0.55rem;
  max-width: 26rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.langs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.langs a,
.langs button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  padding: 0.1rem 0.05rem 0.15rem;
  text-decoration: none;
}

.langs [aria-current="true"] {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

.langs span[aria-hidden="true"] {
  color: rgba(31, 23, 75, 0.45);
  font-weight: 400;
}

.mast-tools {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-top: 0;
  padding: 0;
  border: 1px solid rgba(31, 23, 75, 0.28);
  border-radius: 0.3rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

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

.site-nav {
  display: flex;
  max-width: 1120px;
  margin: 2.55rem auto 0;
  border-top: 1px solid rgba(31, 23, 75, 0.22);
}

.site-nav[hidden] {
  display: none;
}

.site-nav a {
  flex: 1 1 0;
  border-top: 3px solid transparent;
  margin-top: -1px;
  padding: 0.9rem 0.35rem 1.05rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover {
  color: var(--ink);
  border-top-color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  border-top-color: var(--accent-strong);
}

.site-nav a[aria-current="page"]:hover {
  color: var(--ink);
  border-top-color: var(--ink);
}

@media (min-width: 1100px) {
  .site-nav {
    max-width: 1320px;
  }

  .site-nav a {
    font-size: 1.125rem;
    font-weight: 600;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"]:hover {
    color: var(--ink);
    border-top-color: var(--ink);
  }
}

@media (min-width: 1440px) {
  .site-nav a {
    font-size: 1.2rem;
  }
}

main {
  padding: 4.25rem var(--header-pad) 3.25rem;
}

.measure {
  max-width: var(--measure);
  margin-inline: auto;
}

.center {
  text-align: center;
}

.page-title,
.article-title {
  margin: 0 0 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.page-title {
  font-size: clamp(2.4rem, 5.2vw, 4.35rem);
  font-weight: 600;
}

.article-title {
  font-size: clamp(2.05rem, 4vw, 3.15rem);
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede,
.prose p,
.note {
  font-size: 1.3rem;
  line-height: 1.45;
}

.lede {
  margin: 0 0 1.1rem;
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  margin: 0.4rem 0 1.4rem;
}

.prose h2,
.prose h3 {
  margin: 1.8rem 0 0.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

body[data-page="family"] .prose h2 {
  margin: 2.4rem 0 0.9rem;
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}

.prose h3 {
  font-size: 1.35rem;
}

.prose h2.section-label {
  margin: 1.85rem 0 0.65rem;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.prose h2.section-label:first-child {
  margin-top: 0.2rem;
}

.prose blockquote {
  margin: 0 0 1.3rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--accent);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.35rem 0;
  font-size: 1.2rem;
  line-height: 1.45;
}

.figure {
  margin: 1.3rem 0 1.5rem;
}

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

.figure.narrow {
  max-width: 22rem;
}

.figure.band {
  display: flex;
  justify-content: center;
}

.figure.band button {
  width: auto;
  height: auto;
}

.figure.band img {
  width: auto;
  height: 22rem;
  max-width: 100%;
}

.prose figure.plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  margin: 1.3rem auto 0.4rem;
}

.plate-set {
  display: grid;
  gap: 1.35rem 1.25rem;
  align-items: start;
  margin: 1.4rem 0 0.4rem;
}

.plate-set.cols-2 {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr);
}

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

.prose .plate-set figure.plate {
  margin: 0;
}

.prose .plate-set figure.plate button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 16rem;
}

.prose figure.plate img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 28rem;
}

.prose .plate-set figure.plate img {
  max-width: 100%;
  max-height: 100%;
}

.prose figure.plate button {
  width: auto;
  height: auto;
}

.prose figure.plate figcaption {
  flex: 1 0 100%;
  max-width: 36rem;
  margin-top: 0.55rem;
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: center;
}

.fold details summary,
details.fold summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.15rem 0 1.35rem;
  color: var(--accent);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.fold details summary::-webkit-details-marker,
details.fold summary::-webkit-details-marker {
  display: none;
}

.fold details summary::before,
details.fold summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.fold details[open] summary::before,
details.fold[open] summary::before {
  transform: translateY(0.12rem) rotate(225deg);
}

.fold-less {
  display: none;
}

.fold details[open] .fold-more,
details.fold[open] .fold-more {
  display: none;
}

.fold details[open] .fold-less,
details.fold[open] .fold-less {
  display: inline;
}

.figure button,
.photo-row button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.3rem 0 1.5rem;
}

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

.photo-row img {
  display: block;
  width: 100%;
  height: auto;
}

.book {
  margin: 0.4rem 0 0.6rem;
}

.prose .book h2 {
  margin-top: 0.4rem;
  text-align: center;
}

.figure.book-cover {
  max-width: 17rem;
  margin-inline: auto;
}

.book-download {
  margin: 0.2rem 0 0;
  text-align: center;
}

.prose h2.memories-kicker {
  margin: 2.6rem 0 0.2rem;
  text-align: center;
}

.memory {
  margin: 0;
  padding: 1.35rem 0 1.2rem;
  border-top: 1px solid rgba(192, 206, 218, 0.38);
}

.memory > h2:first-child {
  margin: 0 0 0.2rem;
  color: var(--accent);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  text-align: left;
}

.prose p.memory-date {
  margin: 0.15rem 0 0.85rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
}

.prose p.memory-date:has(+ .memory-byline) {
  margin-bottom: 0.05rem;
}

.prose p.memory-byline {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
}

.memory h2 a {
  color: inherit;
}

.memory h3 {
  margin-top: 0.8rem;
  font-size: 1.25rem;
}

.memory .figure:not(.narrow) {
  max-width: 28rem;
  margin-inline: auto;
}

.memory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin-top: 0.85rem;
}

.memory-links p {
  margin: 0;
}

.prose a.source-link {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.prose a.source-link:hover {
  color: var(--header);
  border-color: var(--header);
}

.prose a {
  color: var(--header);
}

.prose a:hover {
  color: var(--accent);
}

.prose .gallery-frame {
  max-width: none;
  margin: 1.25rem 0 1.5rem;
}

.prose .gallery {
  margin: 0;
  padding: 0;
}

.year-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 46rem;
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
}

.year-list a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.year-list a:hover {
  color: var(--header);
  border-color: var(--header);
}

.archive {
  max-width: var(--measure);
  margin: 1.5rem auto 0;
}

.clip {
  display: block;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: inherit;
  text-decoration: none;
}

.archive .clip:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.clip-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.clip-meta {
  margin: 0.3rem 0 0;
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 600;
}

a.clip:hover .clip-title {
  color: var(--header);
}

.article {
  max-width: var(--article);
  margin-inline: auto;
}

.back {
  margin: 0 0 1.6rem;
}

.back a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.back a:hover {
  text-decoration: underline;
}

.byline {
  margin: 0 0 1.8rem;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
}

.article-title a,
.byline a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.prose .spoken {
  border-left: 3px solid var(--accent);
  margin-left: 0;
  padding-left: 1rem;
  font-style: italic;
}

.card {
  display: block;
  position: relative;
  max-width: var(--measure);
  margin: 2.25rem auto 0;
  padding: 1.35rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.card-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.card-out-row {
  position: relative;
  z-index: 1;
  margin: 0.15rem 0 0;
}

.card-out {
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.85rem;
}

.card-meta,
.card-more {
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 600;
}

.card-title {
  margin: 0.35rem 0 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.card p {
  margin: 0.3rem 0 0;
}

.card-excerpt {
  line-height: 1.6;
}

.note {
  margin: 0;
}

.card-more {
  display: inline-block;
  margin-top: 0.9rem;
}

.card:hover .card-title {
  color: var(--header);
}

.card-cover {
  display: block;
  width: calc(100% + 2rem);
  max-width: none;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0 -1rem 0.95rem;
  object-fit: cover;
}

.card-cover.is-video,
.archive .card-cover {
  aspect-ratio: 16 / 9;
}

.card-cover.is-square {
  aspect-ratio: 1 / 1;
}

.archive .card-cover {
  width: 100%;
  margin: 0 0 0.95rem;
}

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.2rem;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.archive .card {
  max-width: none;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding: 1.15rem 0 1.25rem;
}

.archive .card:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem 1.5rem;
  max-width: 72rem;
  margin: 1.75rem auto 0;
}

.card-grid .card {
  max-width: none;
  margin: 0;
  padding: 0 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

@media (min-width: 860px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .card-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.gallery-frame {
  position: relative;
  max-width: 1120px;
  margin: 3rem auto 0;
}

.gallery-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) transparent;
}

.gallery {
  display: flex;
  gap: 0.7rem;
  height: 22rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery.is-centered {
  justify-content: center;
}

.gallery-scroller:has(.gallery.is-centered) {
  overflow-x: hidden;
}

.gallery li {
  flex: 0 0 auto;
  height: 100%;
  scroll-snap-align: start;
}

.gallery button {
  display: block;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.gallery img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 23, 75, 0.72);
  color: #fff;
  cursor: pointer;
}

.gallery-arrow:hover {
  background: var(--header);
  color: var(--ink);
}

.gallery-arrow-prev {
  left: 0.6rem;
}

.gallery-arrow-next {
  right: 0.6rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem;
  background: rgba(12, 8, 32, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 0.8rem;
  right: 0.8rem;
  width: 2.6rem;
  height: 2.6rem;
}

.lightbox-arrow {
  top: 50%;
  width: 2.8rem;
  height: 2.8rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0.6rem;
}

.lightbox-next {
  right: 0.6rem;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  color: var(--header);
}

.site-footer {
  padding: 0 var(--header-pad) 2.4rem;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.8rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  list-style: none;
}

.contacts a {
  color: var(--text);
  text-decoration: none;
}

.contacts a:hover {
  color: var(--header);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-link svg {
  flex: none;
}

@media (max-width: 1099px) {
  .masthead {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .mast-tools {
    align-items: flex-start;
    align-self: flex-start;
    gap: 1.75rem;
  }

  .langs {
    margin-top: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 1.35rem;
    padding: 1rem 0 0.2rem;
    border-top: 1px solid rgba(31, 23, 75, 0.22);
  }

  .site-nav a {
    flex: none;
    margin: 0;
    border-top: 0;
    padding: 0.1rem 0;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"]:hover {
    color: var(--ink);
    border-top-color: transparent;
  }

  .site-nav a[aria-current="page"] {
    color: var(--accent-strong);
    border-top-color: transparent;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 2.15rem;
    padding-bottom: 1.35rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .masthead {
    gap: 0.65rem;
  }

  .mast-tools {
    gap: 0.75rem;
  }

  .brand-name {
    font-size: clamp(2rem, 10.83vw, 2.64rem);
  }

  .brand-tag {
    font-size: 1.05rem;
  }

  main {
    padding-top: 2.75rem;
  }

  .gallery {
    height: 16rem;
  }

  .figure.band img {
    max-height: 16rem;
    height: 16rem;
  }

  .prose figure.plate img {
    max-height: 21rem;
    height: auto;
  }

  .plate-set.cols-2,
  .plate-set.cols-3 {
    grid-template-columns: 1fr;
  }

  .prose .plate-set figure.plate button {
    width: auto;
    height: auto;
    max-width: 100%;
  }

  .prose .plate-set figure.plate img {
    max-height: 18rem;
  }

  .photo-row,
  .photo-row.cols-3 {
    grid-template-columns: 1fr;
  }

  .contacts {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 340px) {
  .site-header {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
}

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

  .gallery {
    scroll-snap-type: none;
  }
}
