/* pray.fiat.gratis — one line, one screen. Warm stone like Fiat; the accent is
   the day's liturgical colour, set on <body data-color>. */

@font-face {
    font-family: 'Crimson Text';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/crimson-text-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Crimson Text';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/crimson-text-latin-400-italic.woff2') format('woff2');
}

:root {
    color-scheme: dark;
    --bg: #1c1917;
    --bg-2: #292524;
    --text: #f5f5f4;
    --muted: #a8a29e;
    --faint: #78716c;
    --line: #44403c;
    --accent: #8fb08f;
    --accent-soft: rgba(143, 176, 143, 0.14);
}
body[data-color='purple'] { --accent: #b49ad6; --accent-soft: rgba(180, 154, 214, 0.14); }
body[data-color='rose']   { --accent: #e3a3b8; --accent-soft: rgba(227, 163, 184, 0.14); }
body[data-color='red']    { --accent: #e08a80; --accent-soft: rgba(224, 138, 128, 0.14); }
body[data-color='white'],
body[data-color='gold']   { --accent: #e2c46f; --accent-soft: rgba(226, 196, 111, 0.14); }
body[data-color='black']  { --accent: #c4bdb5; --accent-soft: rgba(196, 189, 181, 0.12); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    background: var(--bg);
    background-image: radial-gradient(ellipse at 50% -10%, var(--accent-soft), transparent 60%);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}

main {
    flex: 1;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0 2rem;
}

.day {
    margin: 0 0 2.25rem;
    text-align: center;
}
.day .date {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.day .name {
    display: block;
    margin-top: 0.4rem;
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 500;
}
.day .memorial {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

blockquote {
    margin: 0;
    text-align: center;
    font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.6rem, 5.2vw, 2.35rem);
    line-height: 1.3;
    text-wrap: balance;
}
blockquote.long { font-size: clamp(1.3rem, 4.2vw, 1.85rem); }
.by {
    margin: 1.25rem 0 0;
    text-align: center;
    color: var(--muted);
    font-style: italic;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.05rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}
.btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-2);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #1c1917;
    font-weight: 600;
}
.btn .count { color: var(--muted); font-size: 0.85rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

.status {
    min-height: 1.5rem;
    margin-top: 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

footer {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 1.5rem 0 1.75rem;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--faint);
    font-size: 0.85rem;
}
footer p { margin: 0.35rem 0; }
footer a { color: var(--muted); text-underline-offset: 3px; }
footer a:hover { color: var(--text); }

.subscribe[hidden], [hidden] { display: none !important; }
.subscribe {
    margin-top: 0.6rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

noscript p { text-align: center; color: var(--muted); }
