:root {
  --ink: #182f42;
  --muted: #53616a;
  --paper: #f7f6f2;
  --line: #d7dcd9;
  --orange: #a85a2a;
  --serif: Georgia, "Times New Roman", serif;
  --page-width: 1192px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(40px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
main { flex: 1; min-width: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; }
h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.2vw, 38px); line-height: 1.2; letter-spacing: -.025em; }
h3 { font-size: 26px; line-height: 1.3; }
em { color: var(--orange); font-weight: normal; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.container { width: calc(100% - var(--gutter) * 2); max-width: var(--page-width); margin-inline: auto; }
.skip { position: absolute; top: -100px; z-index: 9; padding: 12px; background: white; }
.skip:focus { top: 0; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.wordmark { display: inline-flex; align-items: center; gap: 16px; flex-shrink: 0; }
.wordmark:hover { text-decoration: none; }
.monogram { padding-right: 20px; border-right: 1px solid var(--line); font: bold 40px/1.1 var(--serif); letter-spacing: -3px; }
.brand-name { font-size: 11px; line-height: 1.4; letter-spacing: .02em; }
.public-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.eyebrow { font-size: 11px; line-height: 1.5; font-weight: 650; letter-spacing: .17em; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: var(--section-space); }
.hero-copy, .form-intro { min-width: 0; }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { margin-bottom: 26px; }
.role { color: var(--muted); font-size: 14px; line-height: 1.8; }
.hero-line { width: 44px; height: 1px; margin-block: 28px; background: var(--orange); }
.intro { max-width: 45ch; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero .button { margin-top: 30px; }
.portrait { min-width: 0; background: #e3e4df; }
.portrait img { width: 100%; }
.portrait figcaption { padding: 12px 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.button {
  display: inline-flex;
  min-height: 48px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: white;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 550;
  text-align: center;
  vertical-align: middle;
}
.button > [aria-hidden] { flex-shrink: 0; line-height: 1; }
.button:hover { background: #294456; text-decoration: none; }
.secondary { background: transparent; color: var(--ink); }
.secondary:hover { background: #e6eae5; }
.text-link { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid #97a4a7; font-size: 14px; line-height: 1.6; }
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-block: var(--section-space); border-top: 1px solid var(--line); }
.about .eyebrow { margin-bottom: 20px; }
.about-copy { min-width: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.memories { padding-block: var(--section-space); background: #eceee7; }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-top > * { min-width: 0; }
.section-top .eyebrow { margin-bottom: 12px; }
.section-top > .text-link { flex-shrink: 0; }
.empty { padding: 48px 20px; border-block: 1px solid #ccd3c9; text-align: center; }
.empty h3 { margin-bottom: 14px; }
.empty p { margin-bottom: 20px; color: var(--muted); font-size: 15px; }
.small-mark { display: block; margin-bottom: 14px; color: var(--orange); font-size: 30px; line-height: 1; }
.tribute-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tribute { display: flex; min-width: 0; flex-direction: column; padding: 32px; background: var(--paper); }
.quote { color: var(--orange); font: 48px/1 var(--serif); }
.message { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 20px/1.75 var(--serif); }
.tribute .message { margin-bottom: 28px; }
.preview { margin-bottom: 28px; border: 1px solid var(--line); }
.signature { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.signature span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.pagination { margin-top: 32px; }
.form-page { padding-block: var(--section-space); }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-size: 14px; line-height: 1.5; }
.form-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(40px, 6vw, 88px); }
.form-intro .eyebrow { margin-bottom: 22px; }
.form-intro h1 { margin-bottom: 26px; }
.form-intro > p:not(.eyebrow) { max-width: 42ch; color: var(--muted); font-size: 16px; line-height: 1.8; }
.card { min-width: 0; padding: 32px; border: 1px solid var(--line); background: white; }
.field { display: grid; min-width: 0; gap: 8px; margin-bottom: 24px; }
.field label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.field label > span { color: var(--muted); font-size: 12px; font-weight: normal; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #aab7bd;
  border-radius: 0;
  background: #fdfdfb;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.field input, .field select { height: 48px; }
.select-field { position: relative; min-width: 0; }
.field select { -webkit-appearance: none; appearance: none; padding-inline-end: 48px; }
.select-field::after {
  content: "";
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field textarea { min-height: 224px; resize: vertical; }
.field input::placeholder { color: #69757c; opacity: 1; }
.help { color: var(--muted); font-size: 13px; line-height: 1.6; }
.consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 12px; margin-bottom: 20px; font-size: 14px; line-height: 1.65; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }
.error { margin-bottom: 24px; padding: 16px; background: #f7e8e5; color: #8c2820; font-size: 14px; line-height: 1.6; }
.center { max-width: 850px; padding-block: clamp(64px, 8vw, 110px); text-align: center; }
.center .eyebrow { margin-bottom: 24px; }
.center h1 { margin-bottom: 28px; font-size: clamp(40px, 5vw, 60px); }
.center > p:not(.eyebrow) { max-width: 58ch; margin-inline: auto; }
.center > p + p { margin-top: 16px; }
.center .button { margin-top: 28px; }
.login-actions { display: flex; align-items: center; flex-direction: column; gap: 22px; }
.notice { margin-block: 24px; padding: 16px 20px; border: 1px solid #ded6c6; background: #eee8da; font-size: 14px; line-height: 1.6; }
.admin { padding-block: var(--section-space); }
.admin-header, .review-header { align-items: flex-start; }
.admin-header h1 { margin-bottom: 12px; font-size: clamp(34px, 4.5vw, 48px); }
.admin-header p:last-child { color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-block: 32px; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 16px; border-bottom: 2px solid transparent; font-size: 14px; }
.tabs a[aria-current="page"] { border-bottom-color: var(--orange); font-weight: 650; }
.queue-title { margin-bottom: 24px; font-size: 30px; text-transform: capitalize; }
.review { margin-bottom: 24px; }
.review-header { margin-bottom: 22px; font-size: 14px; }
.review-header strong { overflow-wrap: anywhere; }
.review-meta { display: flex; flex-shrink: 0; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.status { padding: 3px 9px; border: 1px solid var(--line); background: var(--paper); }
.review .message { margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.edit { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.edit summary { display: inline-flex; min-height: 44px; align-items: center; cursor: pointer; font-size: 14px; font-weight: 650; }
.edit[open] summary { margin-bottom: 16px; }
.edit .help { margin-bottom: 16px; }
.footer { padding-block: 44px 24px; background: #192f3c; color: #e7ede7; }
.footer-title { margin-bottom: 36px; font: 28px/1.4 var(--serif); }
.footer-title span { display: block; margin-top: 4px; color: #b1c0c3; font-size: 20px; }
.footer-bottom { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding-top: 20px; border-top: 1px solid #39505a; color: #b1c0c3; font-size: 12px; }
@media (max-width: 900px) {
  .form-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .form-page { max-width: 720px; }
  .form-intro > p:not(.eyebrow) { max-width: none; }
  .form-intro h1 br { display: none; }
  .form-intro h1 em::before { content: " "; }
}
@media (max-width: 800px) {
  .hero, .about { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-copy { max-width: 620px; }
  .hero h1 { font-size: clamp(40px, 7.4vw, 60px); }
  .portrait { width: 100%; max-width: 460px; justify-self: center; }
  .about { gap: 24px; }
  .about h2 { max-width: 20ch; }
}
@media (max-width: 650px) {
  .header-inner { gap: 16px; padding-block: 22px; }
  .public-nav { gap: 16px; }
  .public-nav > a:first-child { display: none; }
  .section-top { align-items: flex-start; flex-direction: column; gap: 18px; }
  .tribute-grid { grid-template-columns: minmax(0, 1fr); }
  .tribute, .card { padding: 24px; }
  .form-card > .button { width: 100%; justify-content: space-between; }
  .tabs { gap: 0; }
  .tabs a { padding-inline: 12px; }
  .review-header { gap: 12px; }
  .footer-title span { font-size: 18px; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
  .monogram { padding-right: 0; border: 0; font-size: 34px; }
  .hero h1 { font-size: 40px; }
  .hero .intro { font-size: 15px; }
  .card, .tribute { padding: 20px; }
  .field label > span { font-size: 11px; }
  .tabs a { padding-inline: 9px; font-size: 13px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
