/* obituary.my — launching page. Warm muted neutrals + soft gold accent.
   Matches the memorial site brand palette. No external resources. */

:root {
    --bg: #faf7f1;
    --surface: #ffffff;
    --ink: #2e2a24;
    --muted: #6f675c;
    --line: #e6ded1;
    --gold: #b98a2f;
    --gold-dark: #96690f;
    --gold-soft: #f6ecd7;
    --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.65;
    /* Soft cream, lightening gently toward white at the centre top. */
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
        var(--bg);
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 0.8rem 1.2rem;
    z-index: 100;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Intro ---------- */

.site-intro {
    text-align: center;
    padding: 3.2rem 1.1rem 0;
    max-width: 720px;
}

.motif { margin-bottom: 1.1rem; }
.motif svg { display: inline-block; }

.wordmark {
    margin: 0 0 1.4rem;
    font-size: 1.05rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-dark);
    /* Optical centring for the letterspaced text */
    padding-left: 0.32em;
}

.headline {
    margin: 0 0 0.55rem;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}

.subline {
    margin: 0 0 1rem;
    font-size: 1.12rem;
    color: var(--muted);
}

.accent-line {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.55em;
    padding-left: 0.55em;
    color: var(--gold-dark);
}

.rule {
    border: 0;
    border-top: 1px solid var(--gold);
    opacity: 0.55;
    width: 72px;
    margin: 2rem auto 0;
}

/* ---------- Cards ---------- */

.cards-wrap {
    width: 100%;
    max-width: 1060px;
    padding: 2.6rem 1.1rem 0;
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.5rem 1.8rem;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 10px 28px rgba(46, 42, 36, 0.09);
}

.card-label {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.card-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.card-desc {
    font-size: 1rem;
    color: var(--muted);
    max-width: 30ch;
}

.card-addr {
    margin-top: 0.55rem;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    color: var(--gold-dark);
    border-top: 1px solid var(--gold-soft);
    padding-top: 0.7rem;
}

@media (min-width: 760px) {
    .cards { flex-direction: row; align-items: stretch; }
    .card { flex: 1 1 0; }
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: auto;
    text-align: center;
    padding: 3rem 1.1rem 2.2rem;
}

.site-footer .rule { margin: 0 auto 1.3rem; }

.site-footer p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
    .site-intro { padding-top: 2.4rem; }
    .headline { font-size: 2.1rem; }
    .card { padding: 1.6rem 1.1rem 1.5rem; }
    .card-title { font-size: 1.75rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .card { transition: none; }
    .card:hover,
    .card:focus-visible { transform: none; }
}
