@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/newsreader-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Palette and type */
:root {
  --paper: #f7f3eb;
  --surface: #fffdf8;
  --text: #2d352b;
  --muted: #62685d;
  --accent: #a74724;
  --accent-hover: #8e371a;
  --line: #d6d9cb;
  --soft: #eeede3;
  --green: #253b30;
  --focus: #b94d27;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --paper: #1f2822; --surface: #28332b; --text: #eeeadd;
    --muted: #bcc3b7; --accent: #efae83; --accent-hover: #f6c7a7;
    --line: #465046; --soft: #29352d; --green: #18271e; --focus: #edab80;
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --paper: #1f2822; --surface: #28332b; --text: #eeeadd;
  --muted: #bcc3b7; --accent: #efae83; --accent-hover: #f6c7a7;
  --line: #465046; --soft: #29352d; --green: #18271e; --focus: #edab80;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:where(button, a, input, textarea, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: var(--surface); z-index: 5; }
.skip:focus { top: 12px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(48px, 5vw, 70px); }
h2 { font-size: clamp(36px, 3.4vw, 46px); }
h3 { font-size: 28px; letter-spacing: -.02em; }
p { text-wrap: pretty; }

/* Navigation and shared controls */
.site-header { min-height: 80px; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -1.4px; text-decoration: none; white-space: nowrap; }
.brand-flower { font-family: Georgia, serif; font-size: 34px; line-height: 1; color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-header nav a:hover, a[aria-current=page], .text-link:hover { color: var(--accent); }
.site-header nav a[aria-current=page] { text-decoration: underline; text-underline-offset: 7px; }
.theme-toggle { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 21px; }
.theme-toggle:hover { background: var(--soft); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; line-height: 1.5; font-weight: 600; text-align: center; text-decoration: none; transition: background .18s, border-color .18s; }
.button.primary { color: var(--paper); background: var(--accent); }
.button.primary:hover:not(:disabled) { background: var(--accent-hover); }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.button.secondary:hover:not(:disabled) { border-color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; padding: 0; background: none; font-size: 14px; line-height: 1.5; font-weight: 500; text-decoration: none; }
.text-link > span, .button > span { flex-shrink: 0; }

/* Opening */
.hero { display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: 64px; padding-block: 40px 72px; }
.hero-copy { padding-block: 12px; }
.eyebrow { margin: 0 0 24px; font-size: 11px; line-height: 1.5; letter-spacing: .15em; font-weight: 600; color: var(--accent); }
.hero h1 { max-width: 540px; }
.hero-description { max-width: 410px; margin: 24px 0 28px; font-size: 17px; line-height: 1.75; color: var(--muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.hero-art { margin: 0; }
.hero-art img { width: 100%; height: clamp(420px, 37vw, 520px); object-fit: cover; object-position: center; border-radius: 160px 160px 8px 8px; }

/* Memorial editor */
.creator-section { background: var(--soft); padding-block: 72px 80px; }
.section-heading { margin-bottom: 40px; }
.section-heading h2 { max-width: 720px; }
.section-heading p { max-width: 650px; margin: 16px 0 0; color: var(--muted); }
.creator-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.editor { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend, .field > label { display: block; margin-bottom: 10px; font-size: 14px; line-height: 1.5; font-weight: 600; }
input[type=text], textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 16px; }
input[type=text] { min-height: 50px; }
input::placeholder { color: var(--muted); }
textarea { display: block; min-height: 88px; max-height: 180px; line-height: 1.6; resize: vertical; }
.upload-area { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 146px; padding: 20px; border: 1px dashed #969e8c; border-radius: 8px; background: var(--surface); text-align: center; cursor: pointer; }
.upload-area:hover, .upload-area.dragover { border-color: var(--accent); background: var(--paper); }
.upload-area:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.upload-area input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-symbol { font-size: 26px; line-height: 1.2; color: var(--accent); }
.upload-area > span:not(.upload-symbol) { font-size: 15px; font-weight: 500; }
.upload-area small { max-width: 100%; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.photo-tools { padding-top: 12px; }
.photo-tools label { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
input[type=range] { width: 100%; min-width: 0; height: 44px; accent-color: var(--accent); }
.crop-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.small { font-size: 13px; }
.phrase-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.phrase { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; font-size: 12px; line-height: 1.5; }
.phrase:hover { border-color: var(--accent); color: var(--accent); }
.scene-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.scene-option { position: relative; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.scene-option input, .segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.scene-swatch { display: grid; place-items: center; height: 96px; border: 3px solid transparent; outline: 1px solid transparent; border-radius: 7px; background-clip: padding-box !important; color: #e8c8a0; font-size: 36px; }
.scene-option input:checked + .scene-swatch { outline-color: var(--accent); border-color: var(--soft); }
.scene-option input:checked ~ span:last-child { color: var(--accent); font-weight: 600; }
.scene-option input:focus-visible + .scene-swatch { outline: 3px solid var(--focus); outline-offset: 3px; }
.scene-swatch.bridge { background: linear-gradient(0deg, #d88421aa, #22372e33), url('/assets/scene-bridge.jpg') center 65% / cover; }
.scene-swatch.altar { background: radial-gradient(ellipse at 50% 110%, #b88446, #544732 60%, #35382a); }
.scene-swatch.stars { background: radial-gradient(ellipse at bottom, #4d6271, #1f3039); }
.segmented { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.segmented label { position: relative; width: 50%; cursor: pointer; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border-radius: 4px; text-align: center; font-size: 14px; }
.segmented input:checked + span { background: var(--soft); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); }
.check-field { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.check-field input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.preview-column { position: sticky; top: 28px; min-width: 0; }
.preview-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 21px; }
.preview-caption span:first-child { color: var(--text); font-size: 14px; font-weight: 600; }
.preview-stage { display: flex; align-items: center; justify-content: center; min-height: 536px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--paper) 55%, transparent); }
.preview-frame { position: relative; display: flex; justify-content: center; max-width: 100%; }
#memorialCanvas { display: block; width: auto; height: 480px; max-width: 100%; border-radius: 4px; background: #233a30; object-fit: contain; box-shadow: 0 12px 35px #13251b20; }
#memorialCanvas.square { width: 100%; height: auto; max-height: 480px; aspect-ratio: 1; }
.play-button { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff66; border-radius: 50%; background: #fcf8efed; color: #304332; font-size: 14px; box-shadow: 0 2px 10px #14241b15; }
.export-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.export-actions > .button { gap: 12px; padding-inline: 12px; white-space: nowrap; }
.export-help { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.render-status { padding-top: 20px; font-size: 13px; }
.render-status > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.render-status progress { display: block; width: 100%; height: 6px; margin-bottom: 6px; accent-color: var(--accent); }
.form-error { margin-bottom: 0; color: var(--accent); font-size: 14px; }
.result-box { margin-top: 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 14px; }
.result-box p { margin: 0 0 4px; }
.result-box .text-link { margin-right: 18px; text-decoration: underline; }

/* AI prompt and tradition */
.ai-section { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 72px; padding-block: 80px; }
.flower-outline { display: block; margin-bottom: 24px; color: var(--accent); font: 44px/1 Georgia, serif; }
.ai-heading h2 { max-width: 420px; }
.ai-heading p { max-width: 410px; margin: 22px 0 16px; color: var(--muted); }
.prompt-panel { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.prompt-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.prompt-tabs button { position: relative; min-height: 44px; padding: 0 0 12px; border: 0; background: none; color: var(--muted); font-size: 14px; }
.prompt-tabs button[aria-pressed=true] { color: var(--accent); font-weight: 600; }
.prompt-tabs button[aria-pressed=true]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); content: ''; }
#promptText { min-height: 168px; margin: 22px 0; font-size: 15px; line-height: 1.75; }
.prompt-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.prompt-footer .button { min-height: 46px; padding: 10px 16px; gap: 16px; }
.prompt-panel small { display: block; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tradition-section { padding-block: 72px; background: var(--green); color: #f5eddb; }
.tradition-layout { display: grid; grid-template-columns: .65fr 1.2fr; align-items: center; gap: 80px; }
.tradition-date { display: flex; flex-direction: column; align-items: center; color: #e2c694; }
.tradition-date span { font-size: 12px; letter-spacing: .15em; }
.tradition-date strong { font-family: var(--serif); font-size: 160px; font-weight: 400; letter-spacing: -.06em; line-height: 1.1; }
.tradition-copy h2 { max-width: 540px; }
.tradition-copy p { max-width: 560px; margin: 22px 0; color: #d0d6c8; font-size: 16px; line-height: 1.8; }
.tradition-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; font-size: 14px; }
.tradition-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid #708170; text-decoration: none; }

/* FAQ and footer */
.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding-block: 80px; }
.faq-section h2 { max-width: 320px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; display: flex; align-items: center; min-height: 68px; padding: 20px 36px 20px 0; font-size: 15px; line-height: 1.55; font-weight: 500; list-style: none; cursor: pointer; }
.faq-list details:first-child summary { padding-top: 0; min-height: 48px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); font-size: 24px; font-weight: 400; content: '+'; }
.faq-list details:first-child summary::after { margin-top: -10px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin: 0 30px 22px 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.site-footer { display: flex; align-items: center; gap: 32px; padding-block: 28px; border-top: 1px solid var(--line); }
.site-footer .wordmark { font-size: 28px; }
.site-footer .brand-flower { font-size: 28px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer > div { display: flex; gap: 24px; margin-left: auto; font-size: 13px; }
.site-footer > div a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer > div a:hover { color: var(--accent); }
.toast { position: fixed; z-index: 4; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; width: max-content; max-width: calc(100vw - 32px); padding: 14px 22px; transform: translateX(-50%); border-radius: 6px; background: var(--text); color: var(--paper); font-size: 14px; line-height: 1.5; text-align: center; box-shadow: 0 5px 25px #13251b20; }

/* Reading pages */
.article { width: min(740px, calc(100% - 96px)); margin-inline: auto; padding-block: 48px 80px; }
.article .back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; color: var(--muted); }
.article .back:hover { color: var(--accent); }
.article h1 { max-width: none; margin: 24px 0; font-size: clamp(42px, 4.5vw, 58px); }
.article .lead { margin: 0 0 30px; color: var(--muted); font-size: 20px; line-height: 1.7; }
.article h2 { margin: 48px 0 20px; font-size: 36px; letter-spacing: -.025em; }
.article h3 { margin: 32px 0 16px; font-size: 28px; }
.article p, .article li { font-size: 16px; line-height: 1.8; }
.article p { margin-block: 18px; }
.article :is(ol, ul) { padding-left: 24px; }
.article li { margin-bottom: 12px; padding-left: 4px; }
.article a:not(.button):hover { color: var(--accent); }
.article .callout { margin: 28px 0; padding: 24px 28px; border-radius: 7px; background: var(--soft); }
.article .callout > :first-child { margin-top: 0; }
.article .callout > :last-child { margin-bottom: 0; }
.article .prompt-block { margin-block: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.article .prompt-block h2 { margin-top: 0; }
.article .prompt-block p { font-size: 15px; line-height: 1.8; }
.article .sources { margin-top: 40px; color: var(--muted); font-size: 13px; }
.article .sources li { font-size: 13px; overflow-wrap: anywhere; }
.article .article-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 28px 0; font-size: 14px; }
.article-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.article .copy-article { margin-top: 8px; }
.article .article-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; }
.article-actions .text-link { font-size: 14px; }
.article .remembrance-lines p { font-family: var(--serif); font-size: 25px; line-height: 1.5; }
.checklist-items { display: grid; gap: 20px; }
.checklist-item { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 14px; cursor: pointer; }
.checklist-item > input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--accent); }
.checklist-copy { display: grid; gap: 4px; font-size: 15px; line-height: 1.65; }
.checklist-copy strong { color: var(--text); font-weight: 600; }
.checklist-copy > span { color: var(--muted); }
.ofrenda-checklist .button { margin-top: 28px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .site-header { gap: 20px; }
  .site-header nav { gap: 20px; font-size: 13px; }
  .hero { gap: 36px; }
  .hero-art img { height: 440px; border-top-left-radius: 120px; border-top-right-radius: 120px; }
  .hero-description { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .creator-layout { gap: 40px; }
  .preview-stage { padding: 22px; min-height: 506px; }
  #memorialCanvas { height: 460px; }
  .export-actions { grid-template-columns: 1fr; gap: 10px; }
  .ai-section, .tradition-layout, .faq-section { gap: 48px; }
  .prompt-panel { padding: 24px; }
  .site-footer { gap: 24px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 24px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding-top: 16px; }
  .wordmark { font-size: 30px; }
  .brand-flower { font-size: 31px; }
  .theme-toggle { grid-column: 2; grid-row: 1; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; gap: 12px; width: 100%; margin: 8px 0 0; font-size: 12px; }
  .site-header nav a { white-space: nowrap; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 32px 48px; }
  .hero-copy { max-width: 560px; padding: 0; }
  .eyebrow { margin-bottom: 18px; font-size: 10px; letter-spacing: .13em; }
  h1 { font-size: clamp(44px, 12.5vw, 64px); }
  h2 { font-size: 36px; }
  .hero-description { max-width: 440px; margin: 20px 0 24px; font-size: 16px; line-height: 1.7; }
  .hero-actions { flex-direction: row; align-items: center; gap: 10px 20px; }
  .hero-actions .button { padding-inline: 18px; gap: 16px; }
  .hero-actions .text-link { font-size: 13px; }
  .hero-art img { height: clamp(320px, 88vw, 440px); border-radius: 110px 110px 6px 6px; object-position: center 57%; }
  .creator-section { padding-block: 48px 56px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading p { margin-top: 16px; font-size: 15px; }
  .creator-layout { grid-template-columns: 1fr; gap: 32px; }
  .upload-area { min-height: 140px; }
  .phrase { min-height: 44px; }
  .scene-options { gap: 12px; }
  .scene-swatch { height: 90px; }
  .scene-option { font-size: 12px; }
  .preview-column { position: static; }
  .preview-stage { min-height: 0; padding: 24px; }
  #memorialCanvas { height: 440px; }
  #memorialCanvas.square { max-height: none; }
  .export-actions { grid-template-columns: 1fr 1fr; }
  .export-actions .button { gap: 8px; padding-inline: 10px; font-size: 13px; }
  .ai-section { grid-template-columns: 1fr; gap: 28px; padding-block: 56px; }
  .flower-outline { margin-bottom: 20px; font-size: 38px; }
  .ai-heading h2 { max-width: 440px; }
  .ai-heading p { font-size: 15px; margin: 20px 0 12px; }
  #promptText { min-height: 0; font-size: 14px; }
  .prompt-panel { padding: 22px; }
  .prompt-tabs { gap: 22px; }
  .prompt-tabs button { font-size: 13px; }
  .prompt-footer { gap: 8px 12px; }
  .prompt-footer .button { padding-inline: 12px; font-size: 13px; gap: 12px; }
  .prompt-footer .text-link { font-size: 13px; }
  .tradition-section { padding-block: 48px; }
  .tradition-layout { grid-template-columns: 1fr; gap: 24px; }
  .tradition-date { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 22px; }
  .tradition-date strong { font-size: 88px; line-height: 1; }
  .tradition-date span { font-size: 12px; }
  .tradition-copy p { margin: 20px 0; font-size: 15px; line-height: 1.8; }
  .tradition-links { gap: 8px; flex-direction: column; align-items: flex-start; font-size: 14px; }
  .faq-section { grid-template-columns: 1fr; gap: 32px; padding-block: 56px; }
  .faq-section h2 { max-width: 380px; }
  .faq-list summary { font-size: 15px; }
  .faq-list p { margin-right: 12px; font-size: 14px; }
  .site-footer { flex-wrap: wrap; justify-content: space-between; gap: 12px 16px; padding-block: 24px; }
  .site-footer p { font-size: 12px; }
  .site-footer > div { width: 100%; margin-left: 0; gap: 24px; }
  .article { width: calc(100% - 40px); padding-block: 24px 56px; }
  .article h1 { margin: 20px 0; font-size: 42px; }
  .article .lead { font-size: 18px; line-height: 1.7; }
  .article h2 { margin-top: 36px; font-size: 32px; }
  .article h3 { font-size: 27px; }
  .article p, .article li { font-size: 16px; line-height: 1.75; }
  .article .callout, .article .prompt-block { padding: 22px; }
  .article .prompt-block p { font-size: 14px; }
  .article .article-nav { gap: 4px 18px; }
  .article .remembrance-lines p { font-size: 23px; }
  .checklist-items { gap: 22px; }
  .checklist-copy { font-size: 14px; }
}
@media (max-width: 360px) {
  .wrap, .article { width: calc(100% - 32px); }
  .site-header nav { gap: 8px; font-size: 11px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hero-art img { height: 310px; }
  .scene-options { gap: 8px; }
  .scene-option { font-size: 11px; }
  .scene-swatch { height: 80px; }
  .crop-controls { grid-template-columns: 1fr; gap: 0; }
  .preview-stage { padding: 18px; }
  #memorialCanvas { height: 410px; }
  .export-actions { grid-template-columns: 1fr; }
  .prompt-panel { padding: 18px; }
  .article h1 { font-size: 38px; }
  .article .callout, .article .prompt-block { padding: 20px; }
  .site-footer p { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
