@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');

:root {
    --panel: rgba(19, 21, 24, 0.78);
    --line: rgba(255, 255, 255, 0.10);
    --text: #f5f3ee;
    --muted: #a6a7ab;
    --soft: #d7d2c8;
    --accent: #e6d3a3;
    --accent-strong: #f3dfad;
    --danger: #ffb8b8;
    --success: #cde8c8;
    --shadow: 0 30px 80px rgba(0,0,0,.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, rgba(230,211,163,.07), transparent 34%),
        linear-gradient(180deg, #0b0c0f 0%, #08090b 100%);
    color: var(--text);
    font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.ambient {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .11;
    z-index: -1;
}

.ambient-one {
    width: 320px;
    height: 320px;
    background: #d7bd76;
    top: 8%;
    left: -120px;
}

.ambient-two {
    width: 380px;
    height: 380px;
    background: #6877a7;
    right: -180px;
    bottom: 8%;
    opacity: .07;
}

.site-header,
.site-footer {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.site-header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
}

.brand-mark {
    color: var(--accent);
    font-size: 17px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
    color: #66686d;
    font-size: 10px;
    letter-spacing: .06em;
    white-space: nowrap;
}

.language-switch a {
    color: #77797f;
    text-decoration: none;
    transition: .2s ease;
}

.language-switch a:hover,
.language-switch a.selected {
    color: var(--accent);
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.main-shell {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 24px 0 52px;
}

.hero-card,
.quote-card,
.reflection-card,
.empty-state {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-card {
    border-radius: 28px;
    padding: clamp(24px, 4vw, 46px);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(230,211,163,.08);
}

.kicker {
    color: var(--muted);
    margin: 16px 0 10px;
    font-size: 13px;
}

.hero-card h1 {
    margin: 0;
    max-width: 720px;
    font-family: "Playfair Display", "Noto Sans KR", serif;
    font-size: clamp(32px, 5.2vw, 54px);
    line-height: 1.18;
    font-weight: 500;
    letter-spacing: -.035em;
    word-break: keep-all;
}

.divider,
.card-line {
    width: 100%;
    height: 1px;
    background: var(--line);
}

.divider {
    margin: 28px 0 24px;
}

.reflection-form {
    display: grid;
    gap: 17px;
}

.field-label {
    color: var(--soft);
    font-size: 13px;
    font-weight: 600;
}

.textarea-wrap {
    position: relative;
}

textarea {
    width: 100%;
    resize: vertical;
    min-height: 96px;
    outline: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
    color: var(--text);
    padding: 20px 22px 38px;
    font: inherit;
    font-size: 15px;
    line-height: 1.8;
    transition: .2s ease;
}

textarea::placeholder {
    color: #707277;
}

textarea:focus {
    border-color: rgba(230,211,163,.45);
    box-shadow: 0 0 0 4px rgba(230,211,163,.05);
}

.counter {
    position: absolute;
    right: 16px;
    bottom: 13px;
    color: #77797f;
    font-size: 11px;
}

.privacy-note {
    display: flex;
    gap: 12px;
    padding: 15px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.028);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.privacy-note p {
    margin: 0;
}

.privacy-note strong {
    color: var(--soft);
    font-weight: 600;
}

.privacy-note a {
    color: var(--accent);
    text-underline-offset: 3px;
}

.privacy-icon {
    color: var(--accent);
    flex: 0 0 auto;
    margin-top: 1px;
}

.primary-button {
    min-height: 56px;
    border: 0;
    border-radius: 15px;
    background: var(--accent-strong);
    color: #17140d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.inline-button {
    width: fit-content;
    display: inline-flex;
}

.notice {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.6;
}

.notice.success {
    background: rgba(154, 203, 145, .08);
    border: 1px solid rgba(154, 203, 145, .18);
    color: var(--success);
}

.notice.error {
    background: rgba(235, 142, 142, .08);
    border: 1px solid rgba(235, 142, 142, .18);
    color: var(--danger);
}

.today-meta {
    margin-top: 17px;
    color: #7f8186;
    text-align: center;
    font-size: 11px;
}

.today-meta strong {
    color: var(--soft);
}

.quote-card {
    margin-top: 20px;
    border-radius: 22px;
    padding: 27px 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.quote-mark {
    position: absolute;
    top: -20px;
    right: 22px;
    font-family: Georgia, serif;
    font-size: 110px;
    color: rgba(230,211,163,.07);
}

.quote-card p {
    display: inline;
    margin: 0;
    color: var(--soft);
    font-family: "Playfair Display", "Noto Sans KR", serif;
    font-size: 18px;
}

.reference {
    display: inline-block;
    margin-left: 8px;
    color: #77797e;
    font-size: 10px;
    letter-spacing: .02em;
    vertical-align: baseline;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.site-footer {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: #686a6e;
    font-size: 10px;
    letter-spacing: .08em;
}

/* community */
.community-shell {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 82px 0 70px;
}

.community-head {
    display: grid;
    grid-template-columns: 1.5fr .6fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 46px;
}

.community-head h1 {
    margin: 20px 0 17px;
    font-family: "Playfair Display", "Noto Sans KR", serif;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.18;
    font-weight: 500;
    letter-spacing: -.04em;
}

.community-head p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
    word-break: keep-all;
}

.stats {
    border-left: 1px solid var(--line);
    padding-left: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.stat {
    display: grid;
    gap: 4px;
}

.stat-number {
    font-family: "Playfair Display", serif;
    font-size: 38px;
    color: var(--accent);
}

.stat-label {
    color: #77797e;
    font-size: 11px;
}

.filter-row {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.filters {
    display: flex;
    gap: 8px;
}

.filter-pill {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 13px;
}

.filter-pill.selected {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255,255,255,.03);
}

.write-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
}

.reflection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.reflection-card {
    min-height: 270px;
    border-radius: 22px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.anonymous {
    color: var(--accent);
    font-size: 9px;
    letter-spacing: .14em;
    font-weight: 700;
}

.card-top time {
    color: #6f7176;
    font-size: 10px;
}

.card-question {
    margin: 0;
    color: #9a9ca1;
    font-size: 12px;
    line-height: 1.65;
}

.card-line {
    margin: 18px 0 20px;
}

.card-answer {
    margin: 0;
    color: var(--text);
    font-family: "Playfair Display", "Noto Sans KR", serif;
    font-size: 20px;
    line-height: 1.75;
    word-break: break-word;
}

.empty-state {
    border-radius: 24px;
    padding: 70px 30px;
    text-align: center;
}

.empty-icon {
    color: var(--accent);
    font-size: 25px;
}

.empty-state h2 {
    margin: 18px 0 10px;
    font-size: 20px;
}

.empty-state p {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 13px;
}

.empty-state .inline-button {
    margin: 0 auto;
}

@media (max-width: 760px) {
    .site-header {
        min-height: 70px;
    }

    .brand {
        font-size: 11px;
    }

    .header-actions {
        gap: 14px;
    }

    .main-nav {
        gap: 12px;
    }

    .language-switch {
        padding-left: 13px;
    }

    .nav-link {
        font-size: 11px;
    }

    .main-shell {
        padding-top: 18px;
    }

    .community-shell {
        padding-top: 42px;
    }

    .hero-card {
        border-radius: 24px;
    }

    .community-head {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 22px 0 0;
    }

    .reflection-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        gap: 20px;
    }
}

@media (max-width: 520px) {
    .site-header {
        align-items: flex-start;
        padding: 18px 0;
        gap: 14px;
    }

    .header-actions {
        align-items: flex-end;
        gap: 8px;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }

    .language-switch {
        align-self: center;
        padding-left: 10px;
        gap: 5px;
        font-size: 9px;
    }

    .hero-card {
        padding: 24px 20px;
    }

    .hero-card h1 {
        font-size: 33px;
        line-height: 1.2;
    }

    .kicker {
        margin-top: 13px;
    }

    .divider {
        margin: 22px 0 20px;
    }

    .privacy-note {
        font-size: 11px;
    }

    .filter-row {
        align-items: flex-start;
        gap: 18px;
        padding: 13px 0;
        flex-direction: column;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
}


.pagination {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

.page-number,
.page-nav {
    min-width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    transition: .2s ease;
    background: rgba(255,255,255,.02);
}

.page-nav {
    min-width: 84px;
    padding: 0 14px;
}

.page-nav:first-child {
    justify-self: start;
}

.page-nav:last-child {
    justify-self: end;
}

.page-number:hover,
.page-nav:hover {
    color: var(--text);
    border-color: rgba(230,211,163,.35);
    background: rgba(230,211,163,.05);
}

.page-number.current {
    color: #17140d;
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    font-weight: 700;
}

.page-nav.disabled {
    color: #55575c;
    background: rgba(255,255,255,.01);
    cursor: default;
}

.page-ellipsis {
    color: #66686d;
    font-size: 12px;
    padding: 0 2px;
}

.pagination-meta {
    margin: 13px 0 0;
    text-align: center;
    color: #686a6f;
    font-size: 10px;
}

@media (max-width: 620px) {
    .pagination {
        grid-template-columns: 1fr 1fr;
    }

    .page-numbers {
        grid-column: 1 / -1;
        grid-row: 1;
        order: -1;
    }

    .page-nav {
        width: 100%;
    }

    .page-nav:first-child {
        justify-self: stretch;
    }

    .page-nav:last-child {
        justify-self: stretch;
    }
}


.community-notice {
    margin-bottom: 24px;
}

.card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.owner-badge {
    color: #17140d;
    background: var(--accent);
    border-radius: 999px;
    padding: 4px 7px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
}

.card-actions {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-actions form {
    margin: 0;
}

.card-action {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.02);
    color: var(--muted);
    text-decoration: none;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: .2s ease;
}

.card-action:hover {
    color: var(--text);
    border-color: rgba(230,211,163,.35);
}

.danger-action:hover {
    color: var(--danger);
    border-color: rgba(255,184,184,.30);
}

.edit-shell {
    max-width: 860px;
}

.edit-heading {
    font-size: clamp(32px, 5vw, 52px) !important;
}

.edit-question {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.edit-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.edit-buttons .primary-button,
.edit-buttons .secondary-button {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.secondary-button {
    min-height: 56px;
    border: 1px solid var(--line);
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--soft);
    text-decoration: none;
    font-size: 13px;
}

.secondary-button:hover {
    border-color: rgba(230,211,163,.35);
}

@media (max-width: 520px) {
    .edit-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .edit-buttons .primary-button {
        padding: 0 14px;
        gap: 8px;
    }
}

/* daily ritual additions */
.reveal-card,
.community-lock-card {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
    border-radius: 18px;
}

.reveal-kicker {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.hearts-intro,
.unlocked-card p,
.verse-reflection {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.mood-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.mood-fieldset legend {
    padding: 0;
    color: var(--soft);
    font-size: 13px;
    font-weight: 600;
}

.mood-fieldset > p {
    margin: 6px 0 12px;
    color: #7f8186;
    font-size: 11px;
    line-height: 1.6;
}

.mood-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mood-chip {
    position: relative;
    cursor: pointer;
}

.mood-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mood-chip span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.02);
    color: var(--muted);
    font-size: 11px;
    transition: .18s ease;
}

.mood-chip:hover span,
.mood-chip input:focus-visible + span {
    border-color: rgba(230,211,163,.35);
    color: var(--soft);
}

.mood-chip input:checked + span {
    border-color: rgba(230,211,163,.55);
    background: rgba(230,211,163,.10);
    color: var(--accent-strong);
    box-shadow: inset 0 0 0 1px rgba(230,211,163,.08);
}

.answer-reveal-stack {
    display: grid;
    gap: 14px;
}

.reveal-card {
    padding: 20px;
}

.own-answer-card {
    border-color: rgba(230,211,163,.20);
    background: rgba(230,211,163,.035);
}

.own-answer {
    margin: 13px 0 12px;
    color: var(--text);
    font-family: "Playfair Display", "Noto Sans KR", serif;
    font-size: clamp(20px, 3vw, 27px);
    line-height: 1.65;
}

.selected-mood,
.mood-badge,
.lock-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
}

.selected-mood {
    padding: 6px 9px;
    border: 1px solid rgba(230,211,163,.22);
    color: var(--accent);
}

.verse-card {
    position: relative;
    overflow: hidden;
}

.verse-card::after {
    content: "✦";
    position: absolute;
    right: 18px;
    top: 9px;
    color: rgba(230,211,163,.08);
    font-size: 66px;
}

.verse-reference {
    margin: 10px 0 0;
    color: var(--accent-strong);
    font-family: "Noto Sans KR", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: right;
}

.verse-reflection {
    margin: 0;
    max-width: 620px;
}

.hearts-card {
    background: rgba(255,255,255,.018);
}

.hearts-intro {
    margin: 9px 0 15px;
}

.heart-constellation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
}

.heart-row {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.045);
}

.heart-label {
    color: var(--soft);
    font-size: 11px;
}

.heart-stars {
    color: var(--accent);
    font-size: 9px;
    letter-spacing: .15em;
    white-space: nowrap;
}

.heart-row.is-empty {
    opacity: .38;
}

.heart-total {
    margin-top: 12px;
    color: #696b70;
    text-align: right;
    font-size: 9px;
}

.unlocked-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.unlocked-card p {
    margin: 8px 0 0;
    max-width: 490px;
}

.unlocked-card .primary-button {
    flex: 0 0 auto;
}

.community-lock-card {
    margin: 0 0 24px;
    padding: 22px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    border-color: rgba(230,211,163,.18);
    background: rgba(230,211,163,.035);
}

.lock-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(230,211,163,.08);
    color: var(--accent);
}

.lock-badge {
    padding: 4px 7px;
    background: rgba(230,211,163,.09);
    color: var(--accent);
}

.community-lock-card h2 {
    margin: 8px 0 5px;
    font-size: 17px;
}

.community-lock-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.mood-badge {
    padding: 4px 7px;
    border: 1px solid rgba(255,255,255,.08);
    color: #8e9096;
}

@media (max-width: 700px) {
    .unlocked-card,
    .community-lock-card {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .unlocked-card {
        flex-direction: column;
    }

    .unlocked-card .primary-button,
    .community-lock-card .primary-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .heart-constellation {
        grid-template-columns: 1fr;
    }

    .mood-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mood-chip span {
        width: 100%;
    }
}

/* Scripture text shown after today's answer */
.verse-text {
    margin: 1.15rem 0 0;
    padding: 0;
    border: 0;
    max-width: 900px;
    color: var(--text);
    font-family: "Playfair Display", "Noto Sans KR", serif;
    font-size: clamp(1.45rem, 3.1vw, 2.05rem);
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: -0.025em;
    text-wrap: pretty;
}


.verse-divider {
    width: 2.2rem;
    height: 1px;
    margin: 1.35rem 0 1rem;
    background: currentColor;
    opacity: 0.16;
}


.answered-state {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 18px;
    border: 1px solid rgba(162, 203, 174, 0.24);
    border-radius: 18px;
    background: rgba(100, 155, 116, 0.08);
}

.answered-state-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(177, 218, 188, 0.35);
    font-size: 14px;
}

.answered-state strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.answered-state p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}


/* Local-day countdown beside TODAY */
.eyebrow-separator {
    opacity: 0.45;
}

.day-countdown {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    opacity: 0.82;
}

@media (max-width: 520px) {
    .eyebrow {
        flex-wrap: wrap;
        row-gap: 6px;
    }
}
