/* Week 2 S3 Static Site - Custom Styles */
:root {
    --ink: #141826;
    --ink-muted: #4f5b76;
    --brand: #0f3d6e;
    --brand-bright: #1b6ca8;
    --accent: #f2c14e;
    --bg: #f5f1ea;
    --panel: #ffffff;
    --panel-alt: #fff6df;
    --border: #d5d7de;
    --shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.theme-dark {
    --ink: #f8fafc;
    --ink-muted: #cbd5f1;
    --brand: #0b1220;
    --brand-bright: #1d4ed8;
    --accent: #f59e0b;
    --bg: #0b1220;
    --panel: #0f172a;
    --panel-alt: #111827;
    --border: #1f2a44;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--bg);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(242, 193, 78, 0.25), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(27, 108, 168, 0.2), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.site-header {
    position: relative;
    z-index: 1;
    padding: 2.5rem 1.5rem 4rem;
    background: linear-gradient(140deg, var(--brand), var(--brand-bright));
    color: #fefefe;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto 2rem;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.theme-toggle {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hero {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 1.2rem;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    opacity: 0.85;
}

.hero h1 {
    font-family: "Fraunces", serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.subtitle {
    font-size: 1.1rem;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: var(--accent);
    color: #1f2a44;
    box-shadow: 0 12px 24px rgba(242, 193, 78, 0.3);
}

.btn.ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

main {
    max-width: 1100px;
    margin: -3rem auto 0;
    padding: 0 1.5rem 3rem;
    position: relative;
    z-index: 1;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.highlight {
    background: var(--panel-alt);
}

h2 {
    font-family: "Fraunces", serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--brand);
}

h3 {
    margin-bottom: 0.6rem;
    color: var(--brand-bright);
}

p {
    color: var(--ink-muted);
}

code {
    background: rgba(15, 61, 110, 0.08);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
}

.grid {
    display: grid;
    gap: 1.2rem;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.four {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
}

.card.info {
    background: var(--panel-alt);
}

.card.mini {
    text-align: left;
}

.label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    color: var(--ink-muted);
    margin-bottom: 0.4rem;
}

.value {
    font-weight: 600;
    color: var(--ink);
    word-break: break-word;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checklist li {
    padding-left: 1.6rem;
    position: relative;
    margin-bottom: 0.7rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: 700;
}

.site-footer {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    color: var(--ink-muted);
}

.site-footer a {
    color: var(--brand-bright);
    text-decoration: none;
}

.footer-note {
    margin-top: 0.4rem;
}

.reveal {
    animation: fadeUp 0.8s ease both;
}

.reveal:nth-of-type(2) {
    animation-delay: 0.1s;
}

.reveal:nth-of-type(3) {
    animation-delay: 0.2s;
}

.reveal:nth-of-type(4) {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel {
        padding: 1.5rem;
    }
}
