@font-face { font-family: "Pretendard Brand"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/pretendard-std-variable.woff2") format("woff2"); }
:root {
    --paper: #f7f5ef;
    --surface: #fffefa;
    --forest: #243f35;
    --forest-hover: #345747;
    --clay: #a54e36;
    --ink: #2d3831;
    --muted: #697069;
    --line: #dcded3;
    --sage: #e9eddf;
    --serif: Georgia, "Batang", "바탕", serif;
    --bs-primary: #243f35;
    --bs-primary-rgb: 36, 63, 53;
    --bs-link-color: #243f35;
    --bs-link-hover-color: #a54e36;
}
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; -webkit-font-smoothing: antialiased; }
body { line-height: 1.65; }
::selection { background: #d7dfc8; color: var(--forest); }
h1, h2, h3 { color: var(--forest); overflow-wrap: anywhere; }
p { text-wrap: pretty; }
a, .btn-link { color: var(--forest); text-underline-offset: .25em; }
a:hover, .btn-link:hover { color: var(--clay); }
button, input, select, textarea { font: inherit; }
.btn { border-radius: 5px; font-size: .9rem; font-weight: 600; padding: .75rem 1.15rem; transition: background-color .18s, border-color .18s, color .18s; }
.btn-lg { padding: 1rem 1.4rem; font-size: .93rem; }
.btn-primary { --bs-btn-disabled-bg: #68796a; --bs-btn-disabled-border-color: #68796a; --bs-btn-active-bg: #345747; --bs-btn-active-border-color: #345747; color: var(--surface); background: var(--forest); border-color: var(--forest); }
.btn-primary:hover, .btn-primary:focus { color: white; background: var(--forest-hover); border-color: var(--forest-hover); }
.btn-outline-secondary { color: var(--forest); border-color: #b9c2b5; }
.btn-outline-secondary:hover { background: var(--sage); color: var(--forest); border-color: var(--forest); }
.btn:disabled { opacity: .65; }
.btn-primary span[aria-hidden] { margin-left: 1.2rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
.btn:focus, .btn:active:focus, .form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #637a65; box-shadow: 0 0 0 .2rem #51694c26; }
h1:focus, main:focus { outline: none; }
.form-control, .form-select { background-color: var(--surface); color: var(--ink); border-color: #cdd2c7; border-radius: 5px; }
.form-control:focus, .form-select:focus { background-color: var(--surface); color: var(--ink); }
.form-control::placeholder { color: #7d8179; }
.form-check-input:checked { background-color: var(--forest); border-color: var(--forest); }
.valid.modified:not([type=checkbox]) { outline: 1px solid #617d58; }
.invalid { outline: 1px solid #b84031; }
.validation-message, .text-danger { color: #a12f25 !important; }
.validation-errors { padding-left: 1.2rem; font-size: .88rem; }
.blazor-error-boundary { padding: 1.25rem; background: #8d3527; color: white; }
.darker-border-checkbox.form-check-input { border-color: #7b8b76; }
.language-selector { display: flex; align-items: center; gap: .15rem; margin: 0; }
.language-label { display: none; }
.language-selector button { padding: .4rem .5rem; min-height: 36px; background: transparent; border: 0; border-radius: 4px; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.language-selector button:hover { background: var(--sage); }
.language-selector button.selected { color: var(--forest); background: var(--sage); font-weight: 700; }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1.3rem; color: var(--clay); font-size: .77rem; font-weight: 600; letter-spacing: .08em; }
.tiny-star { font-size: 1.6rem; font-weight: 400; line-height: 1; }
.home-hero { max-width: 1240px; margin: auto; padding: 4rem 3rem 5.4rem; display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.hero-copy { padding: .75rem 0 2rem; }
.hero-copy h1 { font-family: var(--serif); font-size: clamp(2.5rem, 4.5vw, 4.05rem); font-weight: 400; line-height: 1.38; letter-spacing: -.065em; word-break: keep-all; overflow-wrap: normal; }
.hero-copy h1 em { color: var(--clay); font-style: normal; }
html:not([lang="ko"]) .hero-copy h1 { font-size: clamp(2.3rem, 4vw, 3.55rem); letter-spacing: -.055em; line-height: 1.2; }
html:not([lang="ko"]) .hero-copy h1 em { font-style: italic; }
.hero-description { max-width: 28rem; font-size: .94rem; color: var(--muted); line-height: 1.95; margin: 1.6rem 0 2rem; word-break: keep-all; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; }
.text-link { display: inline-flex; align-items: center; gap: .8rem; padding: .65rem 0; color: var(--forest); font-size: .83rem; text-decoration: none; border-bottom: 1px solid #a4b09d; }
.text-link:hover { border-color: var(--clay); }
.hero-footnote { display: flex; align-items: flex-start; gap: .8rem; margin-top: 2.6rem; color: var(--muted); font-size: .72rem; }
.hero-footnote p { margin: 0; }
.note-line { flex: 0 0 23px; height: 1px; background: var(--clay); margin-top: .6rem; }
.hero-keepsake { position: relative; margin: 0 0 1.5rem; padding: 0 0 4.3rem; min-width: 0; }
.keepsake-photo { width: 100%; height: 530px; object-fit: cover; border-radius: 45% 45% 3px 3px; display: block; }
.keepsake-caption { position: absolute; inset: 1.6rem auto auto 1rem; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; gap: 1.5rem; color: var(--forest); font-size: .6rem; letter-spacing: .08em; translate: -2.3rem 0; }
.keepsake-note { position: absolute; bottom: 0; left: -2rem; right: 1.2rem; padding: 1.55rem 1.7rem 1.15rem; border: 1px solid #e0dfd2; background: var(--surface); box-shadow: 0 15px 35px #29372b10; transform: rotate(-3deg); }
.note-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.note-kicker { color: var(--clay); font-size: .68rem; }
.example-label { font-size: .6rem; padding: .13rem .45rem; border: 1px solid var(--line); color: var(--muted); }
.keepsake-note h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; letter-spacing: -.04em; margin: .7rem 0 .5rem; }
.keepsake-note > p { color: var(--muted); font-size: .71rem; margin: 0 0 1.1rem; }
.note-bottom { border-top: 1px dashed var(--line); padding-top: .8rem; display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; font-size: .63rem; color: var(--muted); }
.sealed-indicator { color: var(--forest); }
.sealed-indicator span { color: #647b4b; font-size: 1rem; margin-right: .2rem; }
.together-strip { max-width: 1144px; margin: 0 auto; padding: 1.55rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; font-size: .73rem; color: var(--muted); }
.city-pair { display: flex; gap: 1.6rem; color: var(--forest); letter-spacing: .16em; font-size: .67rem; }
.strip-note { font-size: .68rem; }
.strip-note > span { margin-left: .75rem; color: var(--clay); }
.ritual-section { max-width: 1240px; margin: auto; padding: 5.5rem 3rem; }
.ritual-heading { margin-bottom: 2.8rem; }
.ritual-heading .eyebrow { margin-bottom: 1rem; }
.ritual-heading h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 400; letter-spacing: -.045em; margin-bottom: 1rem; }
.ritual-heading p { color: var(--muted); font-size: .85rem; }
.ritual-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ritual-steps article { padding: 0 2.2rem; border-left: 1px solid var(--line); }
.ritual-steps article:first-child { padding-left: 0; border: 0; }
.ritual-steps article:last-child { padding-right: 0; }
.step-number { font: italic 2.4rem var(--serif); color: var(--clay); }
.ritual-steps h3 { margin: 1.3rem 0 .85rem; font-weight: 600; letter-spacing: -.03em; font-size: 1.04rem; }
.ritual-steps p { color: var(--muted); font-size: .84rem; line-height: 1.85; }
.step-detail { display: inline-block; margin-top: .65rem; color: var(--forest); font-size: .68rem; border-bottom: 1px solid #c3ccba; padding-bottom: .2rem; }
.closing-letter { max-width: 1144px; margin: 0 auto 4rem; padding: 3.4rem 2rem; background: var(--sage); text-align: center; }
.closing-letter h2 { font: 400 clamp(1.5rem, 2.8vw, 2rem)/1.6 var(--serif); letter-spacing: -.04em; margin: 0 0 1rem; }
.closing-letter .eyebrow { margin-bottom: 1rem; }
.dashboard-page { max-width: 1120px; margin: 0 auto; padding: 3.5rem 3rem 5rem; }
.dashboard-page > a:first-child { display: inline-block; margin-bottom: 1.5rem; font-size: .82rem; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.dashboard-heading .eyebrow { margin-bottom: .8rem; }
.dashboard-heading h1 { font: 400 clamp(1.9rem, 3vw, 2.65rem)/1.4 var(--serif); letter-spacing: -.045em; margin: 0; }
.dashboard-heading p { font-size: .9rem; color: var(--muted); margin: .9rem 0 0; }
.dashboard-heading > .btn { flex-shrink: 0; }
.capsule-steps { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; padding: 0 0 1.5rem; margin: 1.5rem 0; list-style: none; border-bottom: 1px solid var(--line); }
.capsule-steps li { min-width: 0; color: var(--muted); font-size: .76rem; display: flex; gap: .5rem; align-items: center; }
.capsule-steps li span { display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; border: 1px solid var(--line); }
.capsule-steps .current { color: var(--forest); font-weight: 700; }
.capsule-steps .current span { color: var(--paper); background: var(--forest); border-color: var(--forest); }
.capsule-steps .complete span { color: var(--forest); background: var(--sage); border-color: var(--sage); }
.workflow-card { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: clamp(1.4rem, 3vw, 2.4rem); margin: 1.5rem 0; }
.workflow-card h2, .success-note h2 { font-size: 1.35rem; letter-spacing: -.035em; }
.workflow-card h3, .success-note h3, .schedule-preview h3 { font-size: 1.04rem; }
.workflow-card p { color: var(--muted); line-height: 1.8; font-size: .9rem; }
.workflow-card label { display: block; font-weight: 600; font-size: .88rem; margin: 1.2rem 0 .5rem; }
.workflow-form { max-width: 680px; }
.workflow-form .form-control, .workflow-form .form-select { padding: .8rem; border-radius: 5px; }
.workflow-form fieldset { min-width: 0; }
.form-columns { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; }
.field-hint { font-size: .8rem; color: var(--muted); margin: .75rem 0 1.25rem; }
.card-heading, .share-row, .link-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.card-heading { justify-content: space-between; margin-bottom: 1.25rem; }
.card-heading h2 { margin-bottom: 0; }
.share-row { flex-wrap: nowrap; margin-bottom: .75rem; }
.share-row .form-control { min-width: 0; }
.share-row .btn { flex-shrink: 0; white-space: normal; }
.capsule-list-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; color: inherit; border-top: 1px solid var(--line); text-decoration: none; }
.capsule-list-item > div { min-width: 0; overflow-wrap: anywhere; }
.capsule-list-item:hover strong { color: var(--clay); }
.capsule-list-item small { display: block; color: var(--muted); margin-top: .4rem; font-size: .77rem; }
.status-pill { display: inline-block; border-radius: 4px; padding: .4rem .65rem; font-size: .72rem; background: var(--sage); color: var(--forest); }
.schedule-preview, .sealed-note, .success-note, .error-note { margin: 1.5rem 0; padding: 1.4rem; border-radius: 5px; }
.schedule-preview { background: #f3eee2; border: 1px solid #ded4bf; }
.schedule-preview p:last-child { margin-bottom: 0; }
.sealed-note { text-align: center; background: var(--sage); border: 1px dashed #bbc4ad; }
.sealed-note > span { display: block; font-size: 1.8rem; margin-bottom: .5rem; }
.sealed-note p { margin: .75rem 0 0; color: var(--muted); }
.success-note { background: #eaf0e2; border: 1px solid #c6d3b8; color: var(--forest); }
.success-note p { color: inherit; }
.error-note { background: #faebe3; border: 1px solid #e0b4a3; color: #913925; overflow-wrap: anywhere; }
.revealed-message { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1.5rem; }
.revealed-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.invite-page { max-width: 900px; }
.empty-state { display: grid; justify-items: center; margin-top: 2rem; padding: 4rem 1.5rem; border: 1px dashed #bfc9b4; border-radius: 5px; background: var(--sage); text-align: center; }
.empty-state > span { font-size: 2rem; }
.empty-state h2 { margin: 1rem 0 .5rem; font-size: 1.25rem; }
.empty-state p { color: var(--muted); margin: 0; }
.auth-page { max-width: 1144px; margin: 3.5rem auto 5rem; display: grid; grid-template-columns: .95fr 1.05fr; min-height: 630px; border: 1px solid var(--line); background: var(--surface); }
.auth-story { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 2.8rem; background: var(--forest); color: var(--paper); }
.auth-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.auth-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #152c24ed, #152c2420 90%); }
.auth-story-copy { position: relative; z-index: 1; }
.auth-story .eyebrow { color: #ead6ad; }
.auth-story blockquote { font: 400 2rem/1.6 var(--serif); letter-spacing: -.04em; margin: 0 0 1.2rem; }
.auth-story p { font-size: .82rem; color: #e0e5d9; line-height: 1.8; margin: 0; }
.auth-panel { padding: 3rem clamp(1.5rem, 4vw, 4rem); min-width: 0; }
.auth-panel > .eyebrow { margin-bottom: .9rem; }
.auth-panel h1 { font: 400 clamp(1.7rem, 2.5vw, 2.15rem)/1.4 var(--serif); letter-spacing: -.04em; margin-bottom: 1rem; }
.auth-intro { color: var(--muted); font-size: .85rem; margin-bottom: 1.8rem; }
.auth-panel .form-floating > label { color: var(--muted); font-size: .88rem; }
.auth-panel .form-floating > .form-control { background: var(--paper); }
.auth-panel .form-check-input { margin-right: .4rem; }
.auth-options { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .78rem; margin-bottom: 1.25rem; }
.auth-options label { margin: 0; }
.auth-switch { margin: 1.5rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .83rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .6rem; }
.auth-details { border-top: 1px solid var(--line); margin-top: 1.1rem; padding-top: 1rem; font-size: .78rem; color: var(--muted); }
.auth-details summary { cursor: pointer; }
.auth-details .btn-link { padding: .7rem 0; font-size: .8rem; }
.auth-details p { margin: .8rem 0 0; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/google-sans-500.ttf") format("truetype"); }
.external-sign-in { margin: 0 0 1.4rem; }
.google-sign-in { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; width: 100%; padding: 12px; border: 1px solid #747775; border-radius: 4px; background: #fff; color: #1f1f1f; font: 500 14px/20px "Google Sans", "Segoe UI", sans-serif; transition: background-color .15s; }
.google-sign-in img { flex-shrink: 0; }
.google-sign-in:hover:not(:disabled) { background: #f8faff; }
.google-sign-in:disabled { opacity: .65; cursor: not-allowed; }
.provider-hint { color: var(--muted); font-size: .72rem; line-height: 1.6; margin: .75rem 0 0; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .75rem; margin: 1.4rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.manage-page { max-width: 1120px; margin: auto; padding: 3.5rem 3rem 5rem; }
.manage-page > h1 { font-family: var(--serif); font-weight: 400; }
.manage-page > p { color: var(--muted); margin-bottom: 2rem; }
.manage-body { padding-top: 2rem; border-top: 1px solid var(--line); }
.nav-pills .nav-link { color: var(--forest); border-radius: 5px; margin-bottom: .25rem; font-size: .88rem; }
.nav-pills .nav-link.active { color: var(--paper); background: var(--forest); }
.content > h1, .content > h2, .content > h3, .content > p, .content > .alert, .content > .row { width: min(1050px, calc(100% - 3rem)); margin: 2rem auto; }
.content > h1 { font-family: var(--serif); font-weight: 400; margin-top: 3rem; }
@media (max-width: 1200px) {
    .together-strip, .closing-letter { margin-inline: 3rem; }
    .auth-page { margin-inline: 3rem; }
}
@media (max-width: 900px) {
    .home-hero { padding: 3rem 2rem 4rem; gap: 3rem; }
    .hero-copy h1 { font-size: 2.8rem; }
    .keepsake-photo { height: 470px; }
    .keepsake-note { left: -1.2rem; right: 0; padding: 1.2rem; }
    .hero-actions { gap: 1rem; }
    .together-strip { flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; text-align: center; }
    .ritual-steps article { padding-inline: 1.2rem; }
    .auth-story { padding: 2rem; }
    .auth-story blockquote { font-size: 1.7rem; }
    .auth-page { margin: 2.5rem 2rem; }
}
@media (max-width: 700px) {
    .home-hero { grid-template-columns: 1fr; padding: 2.5rem 1.5rem 3rem; gap: 1.75rem; }
    .hero-copy { padding: 0; }
    .hero-copy h1 { font-size: clamp(2.4rem, 9vw, 3.5rem); }
    html:not([lang="ko"]) .hero-copy h1 { font-size: clamp(2.3rem, 8.4vw, 3.5rem); }
    .hero-description { max-width: 34rem; }
    .hero-footnote { margin-top: 1.5rem; }
    .hero-keepsake { max-width: 490px; width: calc(100% - 1.25rem); margin: .7rem 0 0 auto; padding-bottom: 4.5rem; }
    .keepsake-photo { height: 420px; }
    .keepsake-caption { left: .6rem; }
    .keepsake-note { left: -1.1rem; right: .5rem; }
    .together-strip { margin-inline: 1.5rem; padding: 1.4rem 0; }
    .strip-title { flex-basis: 100%; }
    .strip-note { display: none; }
    .ritual-section { padding: 3.5rem 1.5rem; }
    .ritual-heading { margin-bottom: 2rem; }
    .ritual-steps { grid-template-columns: 1fr; gap: 2rem; }
    .ritual-steps article, .ritual-steps article:first-child { padding: 1.5rem 0 0; border: 0; border-top: 1px solid var(--line); }
    .step-number { font-size: 2rem; }
    .ritual-steps h3 { margin-top: .8rem; }
    .closing-letter { margin: 0 1.25rem 2.5rem; padding: 2.4rem 1.25rem; }
    .dashboard-page, .manage-page { padding: 2.5rem 1.25rem 3rem; }
    .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
    .capsule-steps { gap: .7rem 1rem; }
    .capsule-steps li { font-size: .72rem; }
    .capsule-list-item { flex-direction: column; align-items: flex-start; }
    .share-row { flex-wrap: wrap; }
    .share-row .form-control { flex-basis: 100%; }
    .share-row .btn { width: 100%; }
    .form-columns { grid-template-columns: 1fr 1fr; }
    .form-columns > div:first-child { grid-column: 1 / -1; }
    .link-actions { align-items: stretch; flex-direction: column; }
    .auth-page { grid-template-columns: 1fr; margin: 1.5rem 1.25rem 3rem; min-height: 0; }
    .auth-story { min-height: 200px; padding: 1.6rem; }
    .auth-story blockquote { font-size: 1.35rem; margin-bottom: .5rem; max-width: 28rem; }
    .auth-story .eyebrow { margin-bottom: .65rem; }
    .auth-story p { display: none; }
    .auth-panel { padding: 2rem 1.4rem; }
}
@media (max-width: 400px) {
    .language-selector { gap: 0; }
    .language-selector button { font-size: .65rem; padding-inline: .35rem; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .keepsake-note h2 { font-size: 1.25rem; }
    .note-bottom { font-size: .6rem; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.recording-controls { margin-block: 1rem; }
.recording-controls .capsule-media, .media-preview .capsule-media { display: block; width: 100%; max-width: 36rem; margin-block: .75rem; }
.recording-controls video, .media-preview video { max-height: 24rem; background: #161916; border-radius: 8px; }
.recording-controls .capsule-media[hidden] { display: none; }
.media-preview { margin-block: 1rem; }
