:root {
  color-scheme: light;
  --ink: #27231f;
  --muted: #6f675e;
  --paper: #fffdf8;
  --soft: #f3efe7;
  --line: #ded5c9;
  --accent: #6d7f5f;
  --accent-dark: #3d5139;
  --shadow: 0 24px 80px rgba(39, 35, 31, 0.14);
  --shell: 1120px;
  --measure: 860px;
  --edge: clamp(1rem, 3.8vw, 4.5rem);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

body,
button,
input,
textarea {
  font-size: 18px;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: #1f3321;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0.9rem var(--edge);
}

.brand {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.hero {
  min-height: clamp(520px, 78vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 45vw);
  align-items: stretch;
  overflow: hidden;
  background: #050505;
}

.hero-portrait {
  min-height: inherit;
  margin: 0;
  background: #050505;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-end;
  margin: 0;
  padding: 6rem var(--edge) 4.5rem;
  color: white;
  text-align: right;
  background:
    radial-gradient(circle at 82% 70%, rgba(75, 66, 54, 0.36), transparent 48%),
    linear-gradient(90deg, #050505 0%, #11100d 14%, #201b16 42%, #241f19 100%);
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.3rem, 9vw, 7rem);
  font-weight: 500;
}

.hero h1 {
  max-width: 9.5ch;
  font-size: 4.9rem;
}

.dates {
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
}

.page-title {
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto;
  padding: 4.75rem 0 1.75rem;
}

.page-title h1 {
  max-width: none;
  color: var(--ink);
  font-size: 5.15rem;
}

.content-shell {
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto;
  padding: 3.25rem 0 3.75rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.content-single {
  display: grid;
  justify-items: stretch;
}

.article {
  max-width: none;
}

.article h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 500;
}

.article p {
  margin: 0 0 1.2rem;
}

.pullquote {
  margin: 2rem 0 0;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  font-size: 1rem;
}

.sidebar {
  display: grid;
  gap: 1rem;
}

.memoriam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto 1rem;
}

.history-note {
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto clamp(3rem, 7vw, 5rem);
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid var(--line);
  background: var(--soft);
}

.history-note h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
}

.history-note p {
  margin: 0 0 1rem;
}

.history-note p:last-child {
  margin-bottom: 0;
}

.detail,
.footer-card,
.notice {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  padding: 1.2rem;
  box-shadow: 0 12px 40px rgba(39, 35, 31, 0.06);
}

.detail h2,
.detail h3,
.footer-card h3,
.notice h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.detail p,
.footer-card p,
.notice p {
  margin: 0;
}

.obituary {
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 4.5rem;
}

.obituary p {
  margin: 0 0 1.25rem;
}

.notice {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto clamp(3rem, 7vw, 5rem);
}

.footer {
  background: #25221e;
  color: #f8f4ec;
  padding: 2.35rem 0 1.7rem;
}

.footer a {
  color: #f2dfb5;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto 1.55rem;
  text-align: left;
}

.footer-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-credit {
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto;
  color: #c9c0b0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 980px) {
  .page-title h1 {
    font-size: 4.15rem;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .nav {
    align-items: center;
    flex-direction: row;
  }

  .nav-links {
    width: auto;
    justify-content: flex-end;
  }

  .content-grid,
  .memoriam-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    min-height: 0;
    aspect-ratio: 16 / 11;
    order: 1;
  }

  .hero-content {
    order: 2;
    align-items: flex-start;
    padding: 2.5rem 1rem 3rem;
    text-align: left;
    background:
      radial-gradient(circle at 20% 58%, rgba(75, 66, 54, 0.34), transparent 54%),
      linear-gradient(180deg, #050505 0%, #16130f 22%, #241f19 100%);
  }

  .hero h1 {
    font-size: 4rem;
  }

  .page-title {
    padding: 3.25rem 0 1.25rem;
  }

  .page-title h1 {
    font-size: 4rem;
  }
}

@media (max-width: 520px) {
  body,
  button,
  input,
  textarea {
    font-size: 17px;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .page-title h1 {
    font-size: 3.25rem;
  }
}
