/* =========
   Theme tokens
   ========= */
:root {
    /* Brand */
    --accent: #b38b9d;

    /* Global */
    --radius: 16px;
    --maxw: 1120px;
    --space: 1rem;

    /* Logo */
    --logo-size: 1.6rem;
    --logo-script-shift: 0.06em;

    /* Light (default) */
    --bg: #f9f9f9;
    --panel: #f9f9f9;
    --text: #111827;
    --muted: #4b5563;
    --border: #e5e7eb;

    --accent-2: #d8d8d8;
    --tag-bg: #eef2f7;
    --button-bg: #f3f4f6;
    --button-fg: #111827;
    --hover-bg: #eaeef3;
}

:root.dark {
    /* Dark overrides */
    --bg: #0e1116;
    --panel: #151923;
    --text: #e6e9ef;
    --muted: #a3adc2;
    --border: #242a38;

    --accent-2: #e8b08f;
    --tag-bg: #1b2030;
    --button-bg: #1a1f2b;
    --button-fg: var(--text);
    --hover-bg: #1c2231;
}

/* =========
   Base
   ========= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Smooth theme switch */
html,
body,
header,
section,
footer,
.card {
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* =========
   Header / Nav
   ========= */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: color-mix(in oklab, var(--bg), transparent 35%);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    font-size: var(--logo-size);
}

.logo-script {
    font-family: 'Allura', cursive;
    position: relative;
    top: var(--logo-script-shift);
    font-weight: 600;
    color: var(--text);
}

.slash {
    color: var(--accent);
    font-weight: 600;
}

.primary-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.primary-nav ul {
    display: flex;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    padding: .5rem .75rem;
    border-radius: 10px;
    color: var(--muted);
}

.primary-nav a:hover,
.primary-nav a:focus {
    color: var(--text);
    background: var(--hover-bg);
    outline: none;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: background-color .2s ease, transform .05s ease;
}

.theme-btn:hover {
    background: color-mix(in oklab, var(--accent) 12%, transparent);
}

.theme-btn:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--accent), white 30%);
    outline-offset: 2px;
}

.theme-btn:active {
    transform: scale(.97);
}

.theme-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text);
}

.theme-btn svg * {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 520px) {
    .primary-nav {
        gap: .5rem;
    }

    .primary-nav ul {
        gap: .5rem;
    }
}

/* =========
   Buttons
   ========= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--button-bg);
    color: var(--button-fg);
    cursor: pointer;
    transition: filter .15s ease;
}

.btn:hover {
    filter: brightness(1.08);
}

.btn.primary {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
}

/* =========
   Sections / Typography
   ========= */
section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
}

.eyebrow {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
}

h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.15;
    margin: .5rem 0 1rem;
}

h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0 0 1rem;
}

p.lead {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 65ch;
    margin: 0 0 1.1rem;
}

.muted {
    color: var(--muted);
}

/* =========
   Layout helpers
   ========= */
.two-col {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 900px) {
    .two-col {
        grid-template-columns: 1.1fr .9fr;
    }
}

@media (max-width: 900px) {
    #hero .two-col {
        grid-template-columns: 1fr;
        height: auto;
        align-items: start;
        gap: 1.25rem;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    #hero .two-col>div:first-child {
        order: 2;
    }

    #hero .two-col>div:last-child {
        order: 1;
    }

    .hero-graphic {
        height: auto;
        min-height: 0;
        justify-content: center;
    }

    .hero-graphic img {
        max-height: 48vh;
        width: auto;
    }

    #hero h1 {
        margin-top: .25rem;
    }
}

/* =========
   Hero / Social
   ========= */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

#hero h1 {
    font-family: 'Send Flowers', 'Inter', 'Source Sans Pro', system-ui, sans-serif;
    margin: .2rem 0 .8rem;
}

#hero .two-col {
    height: 100%;
    align-items: center;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2.2rem;
}

.socials {
    display: flex;
    gap: .75rem;
    margin-top: 2.1rem;
    margin-left: 0.5rem;
}

.social svg {
    width: 24px;
    height: 24px;
    fill: var(--muted);
    transition: fill .2s ease;
}

.social:hover svg {
    fill: var(--text);
}

.hero-graphic {
    height: 100%;
    width: 100%;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic img {
    max-height: 90vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .14));

}

/* =========
   About
   ========= */
#about h2 {
    margin-bottom: 1rem;
}

#about p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* =========
   Tech Icons
   ========= */
.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 70px;
}

.icon-item i {
    font-size: 3rem;
    transition: transform 0.2s ease;
}

.icon-item i:hover {
    transform: scale(1.2);
}

.icon-item span {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted-color, #666);
}

.tech-icons img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.tech-icons .icon-item img:hover {
    transform: scale(1.2);
}

/* =========
   Work cards
   ========= */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 780px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin-top: 0.75rem;
}

.thumb {
    height: 180px;
    border-radius: 12px;
    background: linear-gradient(135deg,
            color-mix(in oklab, var(--accent) 40%, transparent),
            color-mix(in oklab, var(--accent-2) 60%, transparent));
    border: 1px solid var(--border);
}

/* =========
   Contact list
   ========= */
.contact-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 680px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .8rem;
    border-radius: 10px;
    color: var(--text);
    text-align: center;
}

.contact-link:hover,
.contact-link:focus-visible {
    background: var(--hover-bg);
    outline: none;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--muted);
    transition: fill .2s ease;
}

.contact-link:hover .contact-icon svg {
    fill: var(--text);
}

.contact-text {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
}

/* =========
   Footer
   ========= */
.footer {/* =========
   Theme tokens
   ========= */
:root {
    /* Brand */
    --accent: #b38b9d;

    /* Global */
    --radius: 16px;
    --maxw: 1120px;
    --space: 1rem;

    /* Logo */
    --logo-size: 1.6rem;
    --logo-script-shift: 0.06em;

    /* Light (default) */
    --bg: #f9f9f9;
    --panel: #f9f9f9;
    --text: #111827;
    --muted: #4b5563;
    --border: #e5e7eb;

    --accent-2: #d8d8d8;
    --tag-bg: #eef2f7;
    --button-bg: #f3f4f6;
    --button-fg: #111827;
    --hover-bg: #eaeef3;
}

:root.dark {
    /* Dark overrides */
    --bg: #0e1116;
    --panel: #151923;
    --text: #e6e9ef;
    --muted: #a3adc2;
    --border: #242a38;

    --accent-2: #e8b08f;
    --tag-bg: #1b2030;
    --button-bg: #1a1f2b;
    --button-fg: var(--text);
    --hover-bg: #1c2231;
}

/* =========
   Base
   ========= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1rem;
}

html,
body,
header,
section,
footer,
.card {
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* =========
   Header / Nav
   ========= */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: color-mix(in oklab, var(--bg), transparent 35%);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    font-size: var(--logo-size);
}

.logo-script {
    font-family: 'Allura', cursive;
    position: relative;
    top: var(--logo-script-shift);
    font-weight: 600;
    color: var(--text);
}

.slash {
    color: var(--accent);
    font-weight: 600;
}

.primary-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.primary-nav ul {
    display: flex;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    padding: .5rem .75rem;
    border-radius: 10px;
    color: var(--muted);
}

.primary-nav a:hover,
.primary-nav a:focus {
    color: var(--text);
    background: var(--hover-bg);
    outline: none;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: background-color .2s ease, transform .05s ease;
}

.theme-btn:hover {
    background: color-mix(in oklab, var(--accent) 12%, transparent);
}

.theme-btn:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--accent), white 30%);
    outline-offset: 2px;
}

.theme-btn:active {
    transform: scale(.97);
}

.theme-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text);
}

.theme-btn svg * {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 520px) {
    .primary-nav {
        gap: .5rem;
    }

    .primary-nav ul {
        gap: .5rem;
    }
}

/* =========
   Buttons
   ========= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--button-bg);
    color: var(--button-fg);
    cursor: pointer;
    transition: filter .15s ease;
}

.btn:hover {
    filter: brightness(1.08);
}

.btn.primary {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
}

/* =========
   Sections / Typography
   ========= */
section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
}

.eyebrow {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
}

h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.15;
    margin: .5rem 0 1rem;
}

h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0 0 1rem;
}

p.lead {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 65ch;
    margin: 0 0 1.1rem;
}

.muted {
    color: var(--muted);
}

/* =========
   Layout helpers
   ========= */
.two-col {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 900px) {
    .two-col {
        grid-template-columns: 1.1fr .9fr;
    }
}

@media (max-width: 900px) {
    #hero .two-col {
        grid-template-columns: 1fr;
        height: auto;
        align-items: start;
        gap: 1.25rem;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    #hero .two-col>div:first-child {
        order: 2;
    }

    #hero .two-col>div:last-child {
        order: 1;
    }

    .hero-graphic {
        height: auto;
        min-height: 0;
        justify-content: center;
    }

    .hero-graphic img {
        max-height: 48vh;
        width: auto;
    }

    #hero h1 {
        margin-top: .25rem;
    }
}

/* =========
   Hero / Social
   ========= */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

#hero h1 {
    font-family: 'Send Flowers', 'Inter', 'Source Sans Pro', system-ui, sans-serif;
    margin: .2rem 0 .8rem;
}

#hero .two-col {
    height: 100%;
    align-items: center;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2.2rem;
}

.socials {
    display: flex;
    gap: .75rem;
    margin-top: 2.1rem;
    margin-left: 0.5rem;
}

.social svg {
    width: 24px;
    height: 24px;
    fill: var(--muted);
    transition: fill .2s ease;
}

.social:hover svg {
    fill: var(--text);
}

.hero-graphic {
    height: 100%;
    width: 100%;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic img {
    max-height: 90vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .14));

}

/* =========
   About
   ========= */
#about h2 {
    margin-bottom: 1rem;
}

#about p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* =========
   Tech Icons
   ========= */
.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 70px;
}

.icon-item i {
    font-size: 3rem;
    transition: transform 0.2s ease;
}

.icon-item i:hover {
    transform: scale(1.2);
}

.icon-item span {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted-color, #666);
}

/* =========
   Work cards
   ========= */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 780px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin-top: 0.75rem;
}

.thumb {
    height: 180px;
    border-radius: 12px;
    background: linear-gradient(135deg,
            color-mix(in oklab, var(--accent) 40%, transparent),
            color-mix(in oklab, var(--accent-2) 60%, transparent));
    border: 1px solid var(--border);
}

/* =========
   Contact list
   ========= */
.contact-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 680px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .8rem;
    border-radius: 10px;
    color: var(--text);
    text-align: center;
}

.contact-link:hover,
.contact-link:focus-visible {
    background: var(--hover-bg);
    outline: none;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--muted);
    transition: fill .2s ease;
}

.contact-link:hover .contact-icon svg {
    fill: var(--text);
}

.contact-text {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
}

/* =========
   Footer
   ========= */
.footer {
    padding: 32px 0;
    color: var(--muted);
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: baseline;
    font-size: var(--logo-size);
    margin-bottom: 0.5rem;
}

.footer small {
    display: block;
    margin: 0.25rem 0;
}

.slash {
    color: var(--accent);
    font-weight: 600;
}
    padding: 32px 0;
    color: var(--muted);
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: baseline;
    font-size: var(--logo-size);
    margin-bottom: 0.5rem;
}

.footer small {
    display: block;
    margin: 0.25rem 0;
}

.slash {
    color: var(--accent);
    font-weight: 600;
}

