/* ──────────────────────────────────────────
   Lucas Barnes — lucasbarnes.cc
   Minimal, Apple-inspired single-page site
   ────────────────────────────────────────── */

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

/* ── Tokens ── */
:root {
    --bg: #fafafa;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --border: #e5e5e5;
    --link-hover: #000000;
    --toggle-bg: transparent;
    --toggle-border: #d4d4d4;
    --toggle-text: #666666;
    --blockquote-border: #d4d4d4;
    --blockquote-text: #555555;
}

html.dark {
    --bg: #111111;
    --text: #e5e5e5;
    --text-secondary: #999999;
    --border: #262626;
    --link-hover: #ffffff;
    --toggle-bg: transparent;
    --toggle-border: #333333;
    --toggle-text: #999999;
    --blockquote-border: #333333;
    --blockquote-text: #aaaaaa;
}

/* ── Base ── */
html {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--bg);
    transition: background-color 0.3s ease;
    padding: 48px 0 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ── Avatar ── */
.header-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ── Theme Toggle ── */
#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--toggle-border);
    border-radius: 50%;
    background: var(--toggle-bg);
    color: var(--toggle-text);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    line-height: 1;
}

#theme-toggle:hover {
    border-color: var(--text);
    color: var(--text);
}

/* Show/hide sun and moon */
.icon-moon {
    display: none;
}

html.dark .icon-sun {
    display: none;
}

html.dark .icon-moon {
    display: block;
}

/* ── Main ── */
main {
    padding-bottom: 96px;
}

/* ── Grid Container ── */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
}

#currently {
    grid-column: 1;
    grid-row: 1;
}

#previously {
    grid-column: 1;
    grid-row: 2;
}

#links {
    grid-column: 2;
    grid-row: 1 / span 2;
}

/* ── Sections ── */
section {
    padding: 0;
    /* Sections are side-by-side now, so we remove the bottom borders */
    border-bottom: none;
}

/* ── Typography ── */
h2 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* No longer limit top margin using :not(:first-child) on global h2, 
   instead handle rhythm within sections */
h2 {
    margin-top: 0;
}

h3 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 12px;
    margin-top: 32px;
}

h3:first-child,
h2+h3 {
    margin-top: 0;
}

.section-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ── Lists ── */
ul {
    list-style: none;
    padding: 0;
}

li {
    font-size: 0.9375rem;
    padding: 6px 0;
    line-height: 1.5;
}

/* ── Links ── */
a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

/* Dash separators in list items */
li a {
    font-weight: 500;
}

/* ── Responsive ── */

@media (max-width: 640px) {
    body {
        padding: 0 20px;
    }

    header {
        padding-top: 32px;
    }

    .avatar {
        width: 54px;
        height: 54px;
    }

    .header-identity {
        gap: 12px;
    }

    header h1 {
        font-size: 1.1rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    #currently,
    #previously,
    #links {
        grid-column: 1;
        grid-row: auto;
    }

    section {
        padding: 0;
        border-bottom: none;
    }

    h2 {
        margin-top: 0;
    }

    h3 {
        margin-top: 24px;
    }

    li {
        font-size: 0.875rem;
    }
}

/* ── Selection ── */
::selection {
    background: rgba(0, 0, 0, 0.08);
}

html.dark ::selection {
    background: rgba(255, 255, 255, 0.12);
}

/* ── Scroll ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

html.dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

/* ── Gift Proof ── */
body.gift-proof-page {
    max-width: none;
    min-height: 100vh;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(212, 247, 254, 0.95), transparent 30%),
        radial-gradient(circle at top right, rgba(219, 225, 253, 0.9), transparent 28%),
        radial-gradient(circle at bottom left, rgba(209, 251, 239, 0.92), transparent 30%),
        radial-gradient(circle at bottom right, rgba(253, 236, 212, 0.92), transparent 28%),
        #ffffff;
}

html.dark body.gift-proof-page {
    background:
        radial-gradient(circle at top left, rgba(122, 56, 46, 0.5), transparent 34%),
        radial-gradient(circle at top right, rgba(71, 36, 107, 0.5), transparent 30%),
        radial-gradient(circle at bottom left, rgba(32, 108, 77, 0.45), transparent 32%),
        radial-gradient(circle at bottom right, rgba(113, 34, 84, 0.45), transparent 30%),
        linear-gradient(180deg, #17212b 0%, #1c1c1e 100%);
}

.gift-proof-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 96px;
}

.gift-proof-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 48px;
}

.gift-proof-back {
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom-color: transparent;
}

.gift-proof-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.gift-proof-hero,
.gift-proof-grid,
.gift-proof-legal {
    display: grid;
    gap: 24px;
}

.gift-proof-hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    align-items: stretch;
}

.gift-proof-copy,
.gift-proof-card,
.gift-proof-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 107, 0.12);
    border-radius: 28px;
    background: rgba(248, 249, 250, 0.82);
    box-shadow: 0 20px 60px rgba(22, 28, 45, 0.08);
    backdrop-filter: blur(18px);
}

html.dark .gift-proof-copy,
html.dark .gift-proof-card,
html.dark .gift-proof-panel {
    background: rgba(44, 44, 46, 0.82);
    border-color: rgba(255, 107, 107, 0.18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.gift-proof-copy,
.gift-proof-card,
.gift-proof-panel {
    padding: 32px;
}

.gift-proof-kicker,
.gift-proof-eyebrow,
.gift-proof-badge,
.gift-proof-card-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.gift-proof-kicker,
.gift-proof-eyebrow,
.gift-proof-card-label {
    color: #ff6b6b;
}

.gift-proof-copy h1,
.gift-proof-section-heading h2,
.gift-proof-card h2 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    letter-spacing: -0.04em;
    line-height: 1.02;
    font-weight: 700;
}

.gift-proof-copy h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
    margin: 16px 0 18px;
    max-width: 12ch;
}

.gift-proof-lead,
.gift-proof-card-copy,
.gift-proof-panel p,
.gift-proof-updated {
    color: rgba(0, 0, 0, 0.66);
}

html.dark .gift-proof-lead,
html.dark .gift-proof-card-copy,
html.dark .gift-proof-panel p,
html.dark .gift-proof-updated {
    color: rgba(255, 255, 255, 0.7);
}

.gift-proof-lead {
    font-size: 1.1rem;
    max-width: 58ch;
    margin-bottom: 24px;
}

.gift-proof-benefits,
.gift-proof-text-list,
.gift-proof-legal-list {
    display: grid;
    gap: 12px;
}

.gift-proof-benefits li,
.gift-proof-text-list li,
.gift-proof-legal-list li {
    padding: 0;
    line-height: 1.6;
}

.gift-proof-benefits li::before {
    content: "•";
    color: #ff6b6b;
    margin-right: 10px;
}

.gift-proof-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 28px;
}

.gift-proof-cta,
.gift-proof-paywall-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: #ff6b6b;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 14px 32px rgba(255, 107, 107, 0.28);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.gift-proof-cta:hover,
.gift-proof-paywall-cta:hover {
    color: #ffffff;
    background: #ff8e8e;
    border-bottom-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(255, 107, 107, 0.3);
}

.gift-proof-cta-note,
.gift-proof-trust,
.gift-proof-monthly {
    font-size: 0.95rem;
}

.gift-proof-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gift-proof-badge {
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 107, 107, 0.14);
    color: #ff6b6b;
}

.gift-proof-card h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin: 12px 0;
}

.gift-proof-monthly {
    margin-bottom: 16px;
    color: #ff6b6b;
    font-weight: 600;
}

.gift-proof-card-copy {
    margin-bottom: 24px;
}

.gift-proof-trust {
    margin-top: 14px;
}

.gift-proof-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gift-proof-section-heading {
    max-width: 780px;
}

.gift-proof-section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin-top: 10px;
}

.gift-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gift-proof-stack {
    display: grid;
    gap: 20px;
}

.gift-proof-panel h3 {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.gift-proof-panel p + p,
.gift-proof-panel p + ul,
.gift-proof-panel ul + p,
.gift-proof-panel ol + p {
    margin-top: 14px;
}

.gift-proof-legal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gift-proof-legal-list {
    padding-left: 20px;
}

.gift-proof-legal-list li p {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .gift-proof-hero,
    .gift-proof-grid,
    .gift-proof-legal {
        grid-template-columns: 1fr;
    }

    .gift-proof-copy h1 {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .gift-proof-shell {
        padding: 24px 16px 72px;
    }

    .gift-proof-header {
        margin-bottom: 32px;
    }

    .gift-proof-copy,
    .gift-proof-card,
    .gift-proof-panel {
        padding: 24px;
        border-radius: 24px;
    }

    .gift-proof-copy h1,
    .gift-proof-section-heading h2,
    .gift-proof-card h2 {
        line-height: 1.08;
    }
}
