:root {
    --bg: #f6f1f1;
    --bg-accent: #f6dede;
    --card: #ffffff;
    --text: #2a2020;
    --muted: #6f6464;
    --line: #eee5e5;
    --accent: #e30613;
    --accent-hover: #b8050f;
    --accent-soft: #fdecec;
    --shadow: 0 1px 2px rgba(52, 15, 15, .06), 0 12px 40px rgba(52, 15, 15, .10);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #171012;
        --bg-accent: #2a1417;
        --card: #211719;
        --text: #f1e9ea;
        --muted: #b3a3a5;
        --line: #3a2b2e;
        --accent: #ff4d57;
        --accent-hover: #ff7a81;
        --accent-soft: #3a1c20;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 40px rgba(0, 0, 0, .35);
    }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, var(--bg-accent), transparent 55%),
        radial-gradient(circle at 100% 100%, var(--bg-accent), transparent 50%),
        var(--bg);
}

.card {
    width: 100%;
    max-width: 560px;
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 40px;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), #ff6b73);
}

/* Header */
.card__header { text-align: center; margin-bottom: 28px; }

/* Logo has a white background, so it sits on a white badge (visible in dark mode) */
.logo {
    display: inline-block;
    margin: 0 auto 16px;
    padding: 8px 14px;
    border-radius: 14px;
    background: #fff;
}

.logo img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
}

h1 {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    letter-spacing: .02em;
}

.subtitle {
    margin: 6px 0 0;
    font-size: .95rem;
    color: var(--muted);
}

/* People */
.people {
    display: grid;
    gap: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.people p { margin: 0; font-weight: 600; }

.people span {
    display: block;
    font-size: .85rem;
    font-weight: 400;
    color: var(--muted);
}

@media (min-width: 481px) {
    .people { grid-template-columns: 1fr 1fr; }
}

/* Address */
.address {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    margin-bottom: 24px;
    border-radius: 12px;
    background: var(--accent-soft);
}

.address address { font-style: normal; font-weight: 500; }

.icon {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    fill: var(--accent);
}

/* Details list */
.details { margin: 0 0 28px; }

.details .row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.details .row:last-child { border-bottom: 0; }

.details dt {
    flex: none;
    font-size: .9rem;
    color: var(--muted);
}

.details dd {
    margin: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* Contact button */
.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
    transition: background-color .15s ease, transform .15s ease;
}

.contact .icon { fill: currentColor; margin-top: 0; }

.contact:hover { background: var(--accent-hover); transform: translateY(-1px); }

.contact:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }

@media (prefers-color-scheme: dark) {
    .contact { color: #171012; }
}

.footer {
    margin-top: 24px;
    font-size: .8rem;
    color: var(--muted);
}

/* Mobile */
@media (max-width: 480px) {
    body { padding: 16px; justify-content: flex-start; }

    .card { padding: 32px 20px 24px; border-radius: 16px; }

    .details .row { flex-direction: column; gap: 2px; }

    .details dd { text-align: left; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    .contact { transition: none; }
    .contact:hover { transform: none; }
}
