:root {
    color-scheme: light;
    --cream: #f6f2ea;
    --ink: #463c2b;
    --sand: #c4a681;
    --brown: #a78e6c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Lora', Georgia, serif; line-height: 1.6; }
a { color: inherit; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
.thank-you { min-height: 570px; display: grid; place-items: center; padding: 64px 24px 72px; text-align: center; color: var(--cream); background: linear-gradient(#201e18aa, #201e18b3), url('assets/seri-und-linus.jpg') center 45% / cover; }
.thank-you-content { max-width: 760px; }
.eyebrow { font-size: 12px; letter-spacing: 3px; font-weight: 500; margin: 0 0 18px; }
h1 { font-size: clamp(80px, 11vw, 144px); font-weight: 400; letter-spacing: -5px; line-height: 1.1; margin: 0 0 18px; }
.hero-subtitle { font-size: clamp(20px, 3vw, 29px); font-style: italic; margin: 0 0 24px; }
.hero-message { font-size: 16px; line-height: 1.9; margin: 0; }
.hero-link { display: inline-flex; align-items: center; gap: 24px; margin-top: 32px; padding-bottom: 7px; border-bottom: 1px solid #f6f2ea80; font-size: 14px; text-decoration: none; }
.hero-link:hover { border-color: var(--cream); }
.memories { padding: 64px 40px 76px; text-align: center; background: linear-gradient(180deg, #e2d3bd, var(--cream)); scroll-margin-top: 24px; }
.memories .eyebrow { margin-bottom: 12px; }
h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.35; font-weight: 500; margin: 0 0 14px; }
.section-intro { margin: 0 0 38px; font-size: 15px; }
.memory-grid { max-width: 1200px; margin: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.memory-card { display: flex; flex-direction: column; align-items: center; padding: 32px 18px 26px; border: 1px solid #a78e6c55; border-radius: 16px; background: #f6f2eacc; text-decoration: none; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.memory-card:hover { transform: translateY(-5px); background: #fffaf2; box-shadow: 0 12px 28px #463c2b12; }
.card-icon { width: 58px; height: 58px; color: #8b7152; margin-bottom: 20px; }
h3 { font-weight: 500; font-size: 23px; line-height: 1.3; margin: 0 0 14px; }
.memory-card p { font-size: 14px; line-height: 1.8; margin: 0 0 26px; }
.card-link { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; border-top: 1px solid #a78e6c55; padding-top: 18px; margin-top: auto; font-size: 13px; }
.site-footer { text-align: center; padding: 12px 24px 40px; }
.site-footer p { font-style: italic; font-size: 19px; margin: 0 0 10px; }
.site-footer span { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 10; top: 12px; left: 12px; padding: 12px; background: var(--cream); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 950px) {
    .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; }
}
@media (max-width: 540px) {
    .thank-you { min-height: 520px; padding: 52px 22px; }
    .hero-message { font-size: 14px; }
    .eyebrow { font-size: 10px; letter-spacing: 2px; }
    .memories { padding: 46px 22px; }
    .memory-grid { grid-template-columns: 1fr; gap: 18px; }
    .memory-card { padding: 28px 24px 22px; }
    .site-footer p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .memory-card { transition: none; }
    .memory-card:hover { transform: none; }
}
