/* ==========================================================================
   GracesGoods — Premium, dark, minimal. Deep green + muted gold.
   ========================================================================== */

:root {
    /* Base — deep green / near-black from logo */
    --bg-deep: #111c19;
    --bg-base: #1B2A27;
    --bg-elevated: #223530;
    --bg-card: #1e302b;

    /* Gold accents — muted, refined (#CBAA6A) */
    --gold: #CBAA6A;
    --gold-dim: #b3985c;
    --gold-bright: #d4bc7a;
    --gold-muted: rgba(203, 170, 106, 0.5);

    /* Borders & glow */
    --border: rgba(203, 170, 106, 0.12);
    --border-strong: rgba(203, 170, 106, 0.25);
    --glow: rgba(203, 170, 106, 0.12);
    --glow-strong: rgba(203, 170, 106, 0.2);

    /* Text */
    --text: #e8ebe9;
    --text-muted: #9aa8a2;
    --text-faint: #6b7a74;

    /* Layout */
    --max: 720px;
    --space: 1.25rem;
    --radius: 6px;
    --radius-lg: 10px;
}

/* -------------------------------------------------------------------------- */
/* Reset & base                                                                */
/* -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Optional: very faint logo watermark on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('./logo.png') center /  min(50vw, 420px) no-repeat;
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

/* -------------------------------------------------------------------------- */
/* Skip link                                                                   */
/* -------------------------------------------------------------------------- */

.skip-link {
    position: absolute;
    top: -4rem;
    left: var(--space);
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--gold);
    color: var(--bg-deep);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: var(--radius);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: var(--space);
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                      */
/* -------------------------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 10;
    padding: 1.5rem var(--space) 0;
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.brand:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: var(--radius);
}

.logo {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.wordmark {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-link:hover,
.header-link:focus {
    color: var(--gold);
}

.header-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/* Main                                                                        */
/* -------------------------------------------------------------------------- */

main {
    position: relative;
    z-index: 10;
    flex: 1;
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    padding: 2.5rem var(--space) 3rem;
}

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

.hero {
    position: relative;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.02);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero:hover {
    border-color: var(--border-strong);
    box-shadow:
        0 6px 32px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 0 48px var(--glow);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('./logo.png') center / 320px no-repeat;
    opacity: 0.04;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.9rem;
    color: var(--text);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 32em;
    margin-bottom: 1.75rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:focus {
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(180deg, rgba(203,170,106,0.14) 0%, rgba(203,170,106,0.06) 100%);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(180deg, rgba(203,170,106,0.2) 0%, rgba(203,170,106,0.1) 100%);
    border-color: var(--gold-muted);
    box-shadow: 0 0 24px var(--glow);
}

.btn-primary:active {
    transform: scale(0.99);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(203,170,106,0.06);
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: 0 0 16px var(--glow);
}

@media (prefers-reduced-motion: reduce) {
    .btn:hover, .btn:focus { transform: none; }
    .btn-primary:active { transform: none; }
}

/* -------------------------------------------------------------------------- */
/* Founder block                                                               */
/* -------------------------------------------------------------------------- */

.founder {
    margin-bottom: 2.5rem;
}

.founder-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-base) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.founder-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.founder-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.founder-line {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.founder-link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.founder-link:hover,
.founder-link:focus {
    color: var(--gold-bright);
}

.founder-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/* Exploring section                                                           */
/* -------------------------------------------------------------------------- */

.exploring {
    margin-bottom: 2rem;
}

.exploring h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text);
}

.exploring ul {
    list-style: none;
}

.exploring li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.exploring li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 500;
}

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

.site-footer {
    position: relative;
    z-index: 10;
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    padding: 2rem var(--space) 2.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.site-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--gold-bright);
}

.site-footer a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

.privacy {
    font-size: 0.85rem;
    color: var(--text-faint);
}

/* Sharp logo on high-DPI (avoid blur) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-faint);
}

/* -------------------------------------------------------------------------- */
/* Screen-reader only                                                          */
/* -------------------------------------------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media (min-width: 600px) {
    :root { --space: 2rem; }

    .site-header { padding: 2rem var(--space) 0; }
    main { padding: 3.5rem var(--space) 4rem; }

    .hero {
        padding: 3rem 2.5rem;
        margin-bottom: 3rem;
    }

    .hero h1 { font-size: 2.25rem; }
    .hero-sub { font-size: 1.1rem; margin-bottom: 2rem; }
    .hero-ctas { gap: 1rem; }

    .btn { padding: 0.85rem 1.75rem; }

    .founder-inner {
        padding: 1.5rem 1.75rem;
        gap: 1.5rem;
    }

    .founder-avatar {
        width: 96px;
        height: 96px;
        min-width: 96px;
    }

    .founder-line { font-size: 1rem; }

    .exploring h2 { font-size: 1.35rem; margin-bottom: 1.25rem; }
    .exploring li { font-size: 1.05rem; }

    .site-footer { padding: 2.5rem var(--space) 3rem; }
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* -------------------------------------------------------------------------- */
/* Print                                                                       */
/* -------------------------------------------------------------------------- */

@media print {
    body { background: #fff; color: #1a1a1a; }
    body::before { display: none; }
    .hero-bg { display: none; }
    .hero { border: 1px solid #ccc; box-shadow: none; }
    .founder-inner { border: 1px solid #ccc; }
    .btn { border: 1px solid #333; background: transparent !important; color: #1a1a1a !important; }
    .site-footer { border-top: 1px solid #ccc; }
    .founder-link, .site-footer a, .header-link { color: #1a1a1a; }
}
