/*
 * stylesheet.css — rahulprasad.com
 * Plain CSS. Deployed as-is (no build step).
 * Design tokens tuned for WCAG AA contrast and comfortable tap targets.
 */

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

:root {
    --brand: #7c3aed;            /* violet-600 — white text on this = 5.7:1 (AA) */
    --brand-dark: #5b21b6;       /* violet-800 — hover */
    --ink: #111827;
    --muted: #4b5563;            /* gray-600 — 7.5:1 on white (AAA) */
    --muted-border: rgba(75, 85, 99, 0.35);
    --surface: #f3f4f6;
    --surface-strong: #e5e7eb;
    --focus-ring: 3px solid var(--brand);
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;              /* comfortable base (was 12px) */
    line-height: 1.6;
    color: var(--ink);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.mycontainer {
    width: 100%;
    max-width: 900px;
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;      /* balances whitespace top/bottom */
    gap: clamp(2rem, 7vh, 4rem);
}

/* ---------- Hero ---------- */

.row.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2.5rem, 6vh, 4rem);
    text-align: center;
}

#details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1.name {
    margin: 0 0 0.2em;
    font-family: 'Titillium Web', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;             /* real weight — loaded from Google Fonts */
    font-size: clamp(2.75rem, 10vw, 4.75rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.role {
    margin: 0;
    font-size: clamp(1.125rem, 3.2vw, 1.4rem);
    font-weight: 400;
    color: var(--muted);
}

.role a {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--muted-border);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.role a:hover {
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}

/* ---------- Sticker + CTA ---------- */

#sticker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#sticker {
    width: clamp(180px, 50vw, 260px);
}

#sticker img {
    display: block;
    width: 100%;
    height: auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;             /* >= 44px tap target */
    padding: 0.7rem 1.9rem;
    border: none;
    border-radius: 999px;
    background: var(--brand);     /* solid fill — readable vs the old ghost outline */
    color: #ffffff;               /* 5.7:1 on brand (AA) */
    font-family: 'Titillium Web', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.12);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.button:hover {
    background: var(--brand-dark);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
    transform: translateY(-1px);
}

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

.row.actions {
    display: flex;
    justify-content: center;
}

.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;                  /* 48x48 — comfortable tap target */
    height: 3rem;
    border-radius: 12px;
    background: var(--surface);
    transition: background 0.15s ease, transform 0.1s ease;
}

.action:hover {
    background: var(--surface-strong);
    transform: translateY(-1px);
}

.action img {
    display: block;
    width: 1.5rem;                /* 24px glyph inside the 48px target */
    height: 1.5rem;
}

/* ---------- Focus / a11y ---------- */

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ---------- Responsive: desktop hero side-by-side ---------- */

@media (min-width: 861px) {
    .row.main {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    #details-container {
        align-items: flex-start;
    }

    #sticker-container {
        align-items: flex-end;
    }
}
