/* The Somang Memorial sample's editorial proportions, adapted to an isolated Hosanna demo. */
:root { color-scheme: light; --ink: #202320; --muted: #686b66; --line: #dcded8; --paper: #f5f5f1; --serif: "Noto Serif KR", "Batang", "바탕", Georgia, serif; font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.8; word-break: keep-all; overflow-wrap: break-word; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .35; }
:focus-visible { outline: 2px solid #466b5b; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure, blockquote, h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.5; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px; background: #fff; }
.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 40px; }
.memorial-header { height: 72px; position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding-inline: clamp(22px, 3vw, 48px); background: #1c201d; color: #fff; }
.memorial-brand { display: flex; align-items: center; gap: 13px; font-family: var(--serif); font-size: 17px; line-height: 1.4; }
.memorial-brand small { display: block; margin-top: 5px; color: #b4bcb4; font-family: sans-serif; font-size: 8px; letter-spacing: .18em; }
.home-link { display: flex; align-items: center; gap: 15px; min-height: 44px; font-size: 13px; }
.home-link span { font-size: 19px; }
.memorial-header :focus-visible { outline-color: #fff; }
.memorial-hero { background: var(--paper); padding-block: 24px 64px; }
.hero-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 40px; color: var(--muted); font-size: 12px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; }
.example-label { border: 1px solid #d0d3ca; padding: 3px 11px; border-radius: 30px; font-size: 11px; white-space: nowrap; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); gap: clamp(48px, 8vw, 120px); align-items: center; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .18em; margin-bottom: 20px; }
.hero-copy > .eyebrow { font-size: 13px; letter-spacing: .1em; }
.hero-copy h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.2; }
.hero-role { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.hero-role span + span { padding-left: 12px; border-left: 1px solid #ccc; }
.hero-summary { max-width: 580px; margin-top: 32px; color: #515650; line-height: 2; }
.memorial-facts { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 32px; border-top: 1px solid #d5d7d0; padding-top: 24px; }
.memorial-facts dt { color: var(--muted); font-size: 11px; letter-spacing: .06em; margin-bottom: 7px; }
.memorial-facts dd { font-size: 14px; }
.example-note { font-size: 11px; line-height: 1.8; color: #73776f; margin-top: 24px; }
.memorial-portrait { width: 100%; max-width: 350px; margin-inline: auto; }
.memorial-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e5e5df; }
.memorial-portrait figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.record-nav { position: sticky; top: 72px; z-index: 20; background: #222823; color: #fff; }
.record-nav .container { display: flex; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #71786f #222823; }
.record-nav a { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; min-height: 68px; padding: 14px 24px; border-right: 1px solid #ffffff20; white-space: nowrap; font-size: 13px; }
.record-nav a:first-child { border-left: 1px solid #ffffff20; }
.record-nav a:hover, .record-nav a[aria-current] { background: #3e4940; }
.record-nav :focus-visible { outline-color: #fff; outline-offset: -5px; }
.record-section { padding-block: 96px; }
.section-heading { margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: clamp(28px, 3vw, 40px); }
.section-heading > p:last-child { margin-top: 12px; font-size: 14px; color: var(--muted); }
.life-layout { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: clamp(32px,6vw,80px); align-items: start; }
.memorial-verse { padding: 36px; background: #242d26; color: #fff; }
.memorial-verse p { font-family: var(--serif); font-size: clamp(17px,1.65vw,21px); line-height: 1.9; }
.memorial-verse cite { display: block; margin-top: 25px; color: #bdc6ba; font-size: 12px; font-style: normal; }
.memorial-service { padding: 28px 0; }
.memorial-service h3 { font-size: 23px; margin-bottom: 17px; }
.memorial-service p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.memorial-story h3 { font-size: 30px; margin-bottom: 28px; }
.memorial-story #memorial-story { display: grid; gap: 24px; }
.memorial-story #memorial-story p { color: #5d625a; line-height: 2.1; }
.gallery-section, .letters-section { background: var(--paper); }
.photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.photo-card { position: relative; overflow: hidden; padding: 0; width: 100%; border: 0; color: white; background: #d6d9d0; text-align: left; }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 25%; transition: transform 500ms ease; }
.photo-card:hover img { transform: scale(1.035); }
.photo-card .photo-caption { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: 38px 20px 18px; background: linear-gradient(transparent,#000a); font-size: 14px; line-height: 1.55; }
.photo-card .photo-caption small { font-size: 11px; color: #e4e6e0; }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 24px; }
.view-switch { display: inline-flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.view-switch button { min-height: 44px; padding: 10px 22px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; }
.view-switch [aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.book-view { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; padding: 0 50px 20px; }
.book-cover { display: grid; grid-template-columns: 1fr 42%; align-items: stretch; width: 100%; max-width: 500px; min-height: 390px; padding: 0; background: #33483c; border: 1px solid #33483c; border-left: 8px solid #223329; box-shadow: 8px 8px 0 #f1efe6, 9px 9px 0 #d8d7cc, 0 22px 32px #222c2420; color: #fff; text-align: left; transition: transform 400ms,box-shadow 400ms; }
.book-cover:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 #f1efe6, 9px 9px 0 #d8d7cc, 0 28px 36px #222c2428; }
.book-cover-copy { padding: 32px 26px; display: flex; flex-direction: column; align-items: flex-start; }
.book-cover-copy small { font-size: 8px; letter-spacing: .16em; color: #c0cdbd; }
.book-cover-copy strong { font-family: var(--serif); font-size: clamp(30px,3vw,42px); font-weight: 400; line-height: 1.5; margin: 36px 0 24px; }
.book-cover-copy > span { font-size: 12px; line-height: 1.8; color: #ced6c8; }
.book-cover-copy .book-cover-action { margin-top: auto; padding-top: 35px; font-size: 12px; color: #fff; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 48%; opacity: .9; }
.book-intro h3 { font-size: clamp(24px,2.5vw,32px); }
.book-intro > p:not(.eyebrow) { margin-top: 24px; color: var(--muted); line-height: 2.1; }
.timeline-view { max-width: 900px; margin-inline: auto; }
.timeline-entry { display: grid; grid-template-columns: 140px 1fr; gap: 25px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.timeline-entry > p { font-family: var(--serif); font-size: 26px; color: var(--muted); }
.timeline-entry h4 { font-family: var(--serif); font-size: 21px; font-weight: 400; margin: 0 0 10px; }
.timeline-entry div p { font-size: 14px; color: var(--muted); }
.letter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.letter-grid article { background: #fff; padding: 32px; border-top: 2px solid #899381; }
.letter-grid h3 { font: 500 13px/1.6 sans-serif; color: var(--muted); margin-bottom: 22px; letter-spacing: 0; }
.letter-grid p { font-family: var(--serif); font-size: 17px; line-height: 2; }
.family-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.family-layout img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.family-layout figcaption { margin-top: 14px; color: var(--muted); font-size: 11px; }
.family-layout h2 { font-size: clamp(25px,3vw,36px); margin-bottom: 28px; }
.family-layout p:not(.eyebrow) { color: var(--muted); line-height: 2; }
.memorial-footer { background: #1c201d; color: #fff; padding-block: 54px; }
.memorial-footer .container { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; }
.memorial-footer strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.memorial-footer p { margin: 16px 0 8px; color: #d1d7cd; font-size: 13px; }
.memorial-footer small { color: #a4ada0; font-size: 11px; }
.memorial-footer a { font-size: 13px; min-height: 44px; padding-block: 10px; }
.back-top { position: fixed; bottom: 22px; right: 22px; z-index: 25; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fffffff2; box-shadow: 0 3px 20px #0001; font-size: 21px; }
dialog { border: 0; padding: 0; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: auto; color: var(--ink); background: #fff; }
dialog::backdrop { background: #101710de; backdrop-filter: blur(5px); }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 24px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dialog-toolbar button, .dialog-controls button, .reader-controls button { min-height: 44px; border: 0; background: transparent; padding: 8px 12px; color: inherit; font-size: 13px; }
.dialog-toolbar button span { font-size: 23px; vertical-align: middle; margin-left: 6px; }
.photo-dialog { width: min(1020px,calc(100vw - 32px)); background: #111b14; color: #fff; }
.photo-dialog .dialog-toolbar { border-color: #ffffff20; }
.photo-dialog figure { padding: 20px; }
.photo-dialog figure img { max-height: calc(100dvh - 240px); width: 100%; object-fit: contain; }
.photo-dialog figcaption { padding-top: 18px; text-align: center; font-size: 14px; }
.photo-dialog :focus-visible { outline-color: white; }
.dialog-controls { display: flex; justify-content: space-between; padding: 0 20px 14px; }
.book-dialog { width: min(1040px,calc(100vw - 32px)); background: #faf9f3; }
.reader-spread { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 470px; }
.reader-picture { position: relative; display: grid; place-items: center; margin: 28px; min-height: 310px; background: #e4e6da; }
.reader-picture img { width: 100%; height: 100%; object-fit: cover; }
.reader-picture > span { font-family: var(--serif); font-size: clamp(48px,7vw,88px); font-weight: 400; color: #6a7b64; }
.reader-copy { padding: 48px 40px 48px 32px; border-left: 1px solid var(--line); align-self: stretch; }
.reader-copy h2 { font-size: 30px; margin-bottom: 26px; }
.reader-copy > p:last-child { color: #565e52; font-size: 16px; line-height: 2.2; }
.reader-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 12px 24px; }
.reader-controls select { max-width: 100%; min-height: 44px; padding: 9px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 13px; }
.reader-controls label { max-width: 60%; }
.script-notice { padding-block: 30px; }
@media (max-width: 900px) {
  .container { padding-inline: 28px; }
  .hero-layout { gap: 32px; grid-template-columns: 1fr .7fr; }
  .hero-copy h1 { font-size: 52px; }
  .hero-summary { font-size: 14px; }
  .record-section { padding-block: 70px; }
  .record-nav a { padding-inline: 19px; }
  .life-layout { grid-template-columns: 1fr 1.4fr; gap: 30px; }
  .memorial-verse { padding: 25px; }
  .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .book-view { gap: 32px; padding-inline: 0; }
  .book-cover { min-height: 350px; grid-template-columns: 1fr 35%; }
  .book-cover-copy { padding: 25px 20px; }
  .family-layout { gap: 32px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 122px; }
  .container { padding-inline: 22px; }
  .memorial-header { height: 64px; padding-inline: 20px; }
  .memorial-brand { font-size: 14px; gap: 9px; }
  .memorial-brand svg { width: 23px; }
  .memorial-brand small { font-size: 6px; }
  .home-link { font-size: 12px; gap: 8px; }
  .memorial-hero { padding-block: 14px 40px; }
  .hero-topline { gap: 8px; margin-bottom: 26px; font-size: 11px; }
  .example-label { font-size: 10px; padding-inline: 8px; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy h1 { font-size: 52px; }
  .hero-copy > .eyebrow { margin-bottom: 16px; }
  .hero-role { margin-top: 16px; }
  .hero-summary { margin-top: 24px; font-size: 15px; }
  .memorial-facts { margin-top: 24px; gap: 20px 28px; }
  .memorial-facts dd { font-size: 13px; }
  .example-note { font-size: 10px; margin-top: 20px; }
  .memorial-portrait { max-width: 310px; }
  .record-nav { top: 64px; }
  .record-nav .container { padding-inline: 0; }
  .record-nav a { min-height: 54px; padding: 12px 19px; font-size: 12px; }
  .record-section { padding-block: 58px; }
  .section-heading { margin-bottom: 32px; padding-bottom: 23px; }
  .section-heading .eyebrow { margin-bottom: 12px; }
  .section-heading > p:last-child { font-size: 13px; }
  .life-layout, .book-view, .letter-grid, .family-layout { grid-template-columns: 1fr; }
  .memorial-service { padding-bottom: 0; }
  .memorial-story h3 { font-size: 27px; }
  .memorial-story #memorial-story p { font-size: 15px; }
  .photo-grid { gap: 14px; }
  .photo-card img { aspect-ratio: 3/4; }
  .photo-card .photo-caption { padding: 28px 12px 12px; font-size: 12px; }
  .view-switch { margin-bottom: 30px; }
  .book-cover { max-width: 390px; min-height: 360px; margin-inline: auto; grid-template-columns: 1fr 42%; }
  .book-intro { padding-top: 20px; }
  .book-intro h3 { font-size: 26px; }
  .book-intro > p:not(.eyebrow) { font-size: 14px; }
  .timeline-entry { grid-template-columns: 90px 1fr; gap: 15px; padding-block: 26px; }
  .timeline-entry > p { font-size: 20px; }
  .timeline-entry h4 { font-size: 19px; }
  .timeline-entry div p { font-size: 13px; }
  .letter-grid { gap: 16px; }
  .letter-grid article { padding: 25px; }
  .letter-grid p { font-size: 16px; }
  .family-layout { gap: 30px; }
  .memorial-footer .container { flex-direction: column; }
  .back-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .dialog-toolbar { padding: 8px 12px; font-size: 11px; }
  .dialog-toolbar button { padding-inline: 5px; white-space: nowrap; }
  .photo-dialog figure { padding: 10px; }
  .photo-dialog figcaption { font-size: 12px; }
  .reader-spread { display: flex; flex-direction: column; min-height: 0; }
  .reader-picture { margin: 18px 22px 0; min-height: 0; height: 170px; flex: 0 0 170px; }
  .reader-picture img { object-position: center 40%; }
  .reader-copy { padding: 25px 24px; border-left: 0; }
  .reader-copy h2 { font-size: 24px; margin-bottom: 18px; }
  .reader-copy > p:last-child { font-size: 14px; line-height: 1.95; }
  .reader-controls { position: sticky; bottom: 0; background: #faf9f3; padding: 8px 12px; gap: 5px; }
  .reader-controls button { padding-inline: 5px; white-space: nowrap; }
  .reader-controls label { max-width: 58%; }
  .reader-controls select { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
