@font-face {
  font-family: "Dancing Script";
  src: url("/fonts/dancing-script.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #3b2527;
  --muted: #6f5251;
  --line: #decdb9;
  --paper: #f7f0e4;
  --white: #fffaf2;
  --burgundy: #602737;
  --accent: #ae7f43;
  font: 100%/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1rem max(1.25rem, calc((100vw - 68rem) / 2)); background: #381822; color: var(--white); }
.header a { color: inherit; }
.brand { font: bold 1.4rem Georgia, serif; text-decoration: none; }
nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
nav a { font-size: .95rem; text-underline-offset: .25rem; }
main { width: min(68rem, calc(100% - 2.5rem)); min-height: 70vh; margin: 2rem auto 4rem; }
main:focus { outline: none; }
.hero { padding: clamp(1.5rem, 5vw, 4.25rem); border-radius: 1.1rem; background: #511f30; background-image: radial-gradient(ellipse at 95% 0%, #81464f, transparent 60%); color: var(--white); }
.hero h1 { max-width: 16ch; font-size: clamp(2.7rem, 7vw, 5.3rem); }
.hero p { max-width: 36rem; color: #f5e7d9; font-size: 1.1rem; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.13; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
p { margin: .65rem 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 3vw, 1.75rem); }
section { margin-top: 1.6rem; }
.narrow { max-width: 48rem; margin-inline: auto; }
.stack { display: grid; gap: .85rem; }
.row { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; }
.row + .row { margin-top: .8rem; }
label { font-weight: 600; display: grid; gap: .25rem; }
input, select, textarea, button { font: inherit; }
input, select, textarea { min-width: 0; max-width: 100%; color: var(--ink); background: #fff; border: 1px solid #aa8a7d; border-radius: .4rem; padding: .6rem .7rem; }
textarea { width: 100%; min-height: 5rem; resize: vertical; }
button, .button { cursor: pointer; padding: .6rem .85rem; border: 1px solid var(--burgundy); border-radius: .4rem; background: var(--burgundy); color: white; display: inline-block; font-weight: 650; text-decoration: none; }
button:hover, .button:hover { background: #753b4a; }
button:disabled { opacity: .58; cursor: wait; }
.secondary { color: var(--burgundy); background: transparent; }
.secondary:hover { background: #f3e4db; }
.options button { text-align: left; }
:focus-visible { outline: 3px solid #a46023; outline-offset: 3px; }
a { color: var(--burgundy); }
blockquote { margin: .8rem 0; padding: .75rem 1rem; border-left: 3px solid var(--accent); background: #f4e9d8; font-family: Georgia, serif; font-size: 1.12rem; }
blockquote p:last-child { margin-bottom: 0; }
small, .muted { color: var(--muted); }
.error { color: #8b2a20; font-weight: 650; }
.prompt { white-space: pre-wrap; }
progress { width: 100%; height: .65rem; accent-color: var(--burgundy); }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: .4rem; padding: .85rem; }
legend { font-weight: 650; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .45rem; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
footer { text-align: center; padding: 1.25rem; color: var(--muted); }

.dedication {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  min-height: 44px;
  margin: 2.5rem auto 0;
  padding: .5rem .75rem;
  font: 1rem/1.4 Georgia, serif;
  text-underline-offset: .24em;
  text-align: center;
}
.cross { width: 1em; height: 1.3em; position: relative; display: inline-block; flex: none; color: #93652e; }
.cross::before, .cross::after { content: ""; display: block; position: absolute; background: currentColor; border-radius: 1px; }
.cross::before { width: 2px; height: 100%; left: calc(50% - 1px); }
.cross::after { width: 85%; height: 2px; left: 7.5%; top: 32%; }

.tribute { width: min(55rem, calc(100% - 2rem)); }
.tribute-header { text-align: center; padding: clamp(1.25rem, 6vw, 3rem) 0 1.75rem; }
.tribute-header .cross { margin-bottom: .85rem; }
.tribute-header h1 { font-size: clamp(2.3rem, 7vw, 4rem); color: var(--burgundy); }
.tribute-dates { margin: .7rem 0 0; color: var(--muted); font: 1.05rem/1.5 Georgia, serif; }
.tribute-dates time { white-space: nowrap; }
.tribute-feature { display: grid; justify-items: center; gap: 1.25rem; }
.portrait {
  display: block;
  width: min(100%, 15rem);
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 2px;
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}
.tribute-verse {
  width: 100%;
  margin: 0;
  padding: clamp(1.15rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  background: var(--white);
}
.tribute-verse h2 { color: var(--burgundy); }
.tribute-verse h2 span { font: 700 .8rem/1 system-ui, sans-serif; letter-spacing: .1em; color: var(--muted); }
.tribute-verse blockquote { padding: 0; border: 0; background: transparent; font-size: clamp(1.16rem, 3vw, 1.4rem); }
.tribute-verse figcaption { color: var(--muted); font-size: .95rem; }
.tribute-bio, .tribute-timeline { max-width: 43rem; margin: clamp(2.5rem, 7vw, 4rem) auto 0; }
.tribute-bio h2, .tribute-timeline h2 { color: var(--burgundy); margin-bottom: 1.25rem; }
.tribute-bio p { line-height: 1.72; }
.tribute-timeline ol { list-style: none; margin: 0; padding: 0; position: relative; }
.tribute-timeline ol::before { content: ""; width: 1px; background: var(--accent); position: absolute; left: 1.23rem; top: 1.25rem; bottom: 1.25rem; }
.tribute-timeline li { position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .9rem; align-items: center; margin-bottom: 1.2rem; min-height: 2.5rem; }
.tribute-timeline svg { display: block; width: 2.5rem; height: 2.5rem; padding: .55rem; background: var(--white); border: 1px solid var(--accent); border-radius: 50%; fill: none; stroke: var(--burgundy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tribute-timeline h3, .tribute-timeline p { margin: 0; }
.tribute-timeline p { color: var(--muted); }
.milestone-year { display: block; color: var(--muted); font-weight: 650; }
.tribute-closing {
  color: var(--burgundy);
  text-align: center;
  margin: clamp(2.5rem, 7vw, 4rem) 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  font: clamp(1.7rem, 5vw, 2.7rem)/1.35 "Dancing Script", "Apple Chancery", "Segoe Script", cursive;
}
@media (min-width: 44rem) {
  .tribute-feature { grid-template-columns: minmax(10rem, 15rem) 1fr; gap: 2rem; align-items: center; }
}

.devotion-tag { margin: -.35rem 0 1rem; font-size: .95rem; color: var(--muted); }
.devotion-entry { min-width: 0; }
.devotion-entry summary { color: var(--burgundy); font-family: Georgia, serif; font-size: 1.17rem; cursor: pointer; padding-block: .25rem; }
.devotion-entry summary::marker { color: #93652e; }
.devotion-entry[open] summary { margin-bottom: .65rem; }
.devotion-entry .stack { gap: 0; }
.verse-number { display: inline-block; min-width: 1.3rem; margin-right: .25rem; font: 700 .78rem/1 system-ui, sans-serif; color: var(--muted); }
.streak-status { margin: 0; }
.ambassador-badge { display: flex; align-items: start; gap: .8rem; max-width: 34rem; margin-top: .5rem; padding: .85rem; border: 1px solid var(--accent); background: #f5e8d3; border-radius: .4rem; }
.ambassador-badge .cross { margin: .21rem .22rem 0; }
.ambassador-badge strong { display: block; color: var(--burgundy); }
