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

/* Typography & Colors */
:root {
    --text: #000000;
    --background: #faf9f7;
    --accent: #2c2c2c;
    --border: #e0ddd8;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    letter-spacing: 0.01em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--background);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
}

.profile-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
}

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    border-bottom: none;
}

#hero h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

#hero .highlight {
    font-style: italic;
}

#hero p {
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
}

/* Section Headings */
h2 {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    text-align: center;
}

.about-photo {
    display: block;
    width: 100%;
    max-width: 500px;
    object-fit: cover;
    margin: 0 auto;
}

/* About - minimal */
.about-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

body.about-dark {
    background-color: var(--text);
}

body.about-dark header {
    background-color: var(--text);
    border-bottom-color: rgba(250, 249, 247, 0.1);
}

body.about-dark .logo,
body.about-dark .nav-links a {
    color: var(--background);
}

body.about-dark .about-content {
    color: var(--background);
}

body.about-dark .black-spacer {
    display: none;
}

/* About */
.about-content {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 2rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Crafts */
.crafts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.craft-card {
    display: block;
    position: relative;
    text-decoration: none;
    color: var(--text);
    text-align: center;
    padding: 2.5rem 1rem;
    border-bottom: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.craft-card:hover {
    color: transparent;
}

.craft-card:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background-color: var(--text);
}

/* Words - spill */
.craft-card:nth-child(1):hover::before {
    width: 28px;
    height: 22px;
    transform: translate(-50%, -50%) rotate(-12deg);
    border-radius: 60% 35% 50% 42% / 40% 65% 38% 55%;
}

/* Shots - big grape */
.craft-card:nth-child(2):hover::before {
    width: 32px;
    height: 36px;
    transform: translate(-50%, -50%);
    border-radius: 45% 50% 48% 52% / 40% 42% 55% 50%;
}

/* Knits - yarn blob */
.craft-card:nth-child(3):hover::before {
    width: 24px;
    height: 26px;
    transform: translate(-50%, -50%) rotate(15deg);
    border-radius: 55% 45% 50% 48% / 52% 40% 58% 44%;
}

/* Sewn - thread drop */
.craft-card:nth-child(4):hover::before {
    width: 28px;
    height: 32px;
    transform: translate(-50%, -50%) rotate(10deg);
    border-radius: 48% 52% 44% 56% / 42% 46% 54% 50%;
}

/* Beads - small pebble */
.craft-card:nth-child(5):hover::before {
    width: 20px;
    height: 18px;
    transform: translate(-50%, -50%) rotate(8deg);
    border-radius: 48% 52% 42% 58% / 55% 45% 52% 48%;
}

/* Clay - lump */
.craft-card:nth-child(6):hover::before {
    width: 30px;
    height: 20px;
    transform: translate(-50%, -50%) rotate(-6deg);
    border-radius: 40% 55% 45% 60% / 55% 38% 62% 45%;
}

/* Crafts - light section */
#work {
    text-align: center;
    padding: 6rem 2rem 8rem;
    padding-top: 120px;
    background-color: var(--background);
    color: var(--text);
}

/* About page */
.about-page {
    padding-top: 120px;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.about-page #about {
    text-align: center;
    padding: 4rem 0 6rem;
    border-bottom: none;
}


/* Contact */
#contact {
}

#contact > p {
    margin-bottom: 2.5rem;
    font-style: italic;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    text-decoration: none;
    color: var(--background);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--background);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--background);
    color: var(--text);
}

/* Writing Page */
.writing-page {
    padding-top: 120px;
}

.page-header {
    text-align: center;
    padding: 4rem 0;
    border-bottom: none;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
}

.essay {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.essay:last-of-type {
    border-bottom: none;
}

.essay-header {
    text-align: center;
    margin-bottom: 3rem;
}

.essay-header h2 {
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.essay-header time {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* Article List */
.article-list {
    list-style: none;
    padding: 0;
    margin-left: 12%;
    margin-right: 2rem;
}

.article-list li {
    border-bottom: none;
    padding: 1.2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    position: relative;
    transition: color 0.3s ease;
}

.article-list li {
    padding-left: 2rem;
}

.article-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    background-color: var(--text);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.article-list li:nth-child(1)::before {
    width: 14px;
    height: 12px;
    transform: translateY(-50%) rotate(-8deg);
    border-radius: 55% 42% 50% 48% / 45% 60% 40% 52%;
}

.article-list li:nth-child(2)::before {
    width: 16px;
    height: 13px;
    transform: translateY(-50%) rotate(5deg);
    border-radius: 48% 52% 44% 56% / 42% 46% 54% 50%;
}

.article-list li:nth-child(3)::before {
    width: 13px;
    height: 14px;
    transform: translateY(-50%) rotate(-12deg);
    border-radius: 60% 35% 50% 42% / 40% 65% 38% 55%;
}

.article-list li:nth-child(4)::before {
    width: 15px;
    height: 11px;
    transform: translateY(-50%) rotate(10deg);
    border-radius: 40% 55% 45% 60% / 55% 38% 62% 45%;
}

.article-list li:nth-child(5)::before {
    width: 12px;
    height: 13px;
    transform: translateY(-50%) rotate(-5deg);
    border-radius: 45% 50% 48% 52% / 40% 42% 55% 50%;
}

.article-list li:nth-child(6)::before {
    width: 14px;
    height: 11px;
    transform: translateY(-50%) rotate(7deg);
    border-radius: 52% 44% 56% 40% / 48% 55% 42% 50%;
}

.article-list li:hover::before {
    opacity: 1;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list a {
    text-decoration: none;
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.article-list a:hover {
    opacity: 1;
}

.article-list time {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    white-space: nowrap;
}

/* Single Article Page */
.article-page {
    padding-top: 120px;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.article-page header.article-heading {
    position: static;
    background: none;
    border-bottom: none;
    text-align: center;
    padding: 4rem 0 3rem;
}

.article-page header.article-heading h1 {
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.article-page header.article-heading time {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
}

.article-hero {
    display: block;
    max-width: 400px;
    width: 100%;
    margin: 0 auto 3rem;
    object-fit: cover;
}

.article-figure {
    margin: 2.5rem 0;
    text-align: center;
}

.article-figure img {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    object-fit: cover;
}

.article-figure figcaption {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-top: 0.75rem;
    font-style: italic;
}

.article-body {
    padding-bottom: 4rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.article-body h2 {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.article-body blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border);
    font-style: italic;
    opacity: 0.85;
}

.article-body strong {
    font-weight: 600;
}

.article-body em {
    font-style: italic;
}

.back-link {
    display: inline-block;
    text-decoration: none;
    color: var(--text);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2rem 0;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.5;
}

.essay-content {
    max-width: 650px;
    margin: 0 auto;
}

.essay-content p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.essay-content p:last-child {
    margin-bottom: 0;
}

.essay-content em {
    font-style: italic;
}

/* Gallery Page */
.gallery-page {
    padding-top: 120px;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.image-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Scattered Gallery */
.scattered-gallery {
    padding: 2rem 0 6rem;
}

.float-img {
    margin-bottom: 4rem;
}

.float-img img {
    width: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .float-img {
        width: 70% !important;
        margin-left: 15% !important;
        margin-bottom: 3rem;
    }
}

/* Black Spacer */
.black-spacer {
    background-color: var(--text);
    height: 0;
}

/* Footer */
footer {
    text-align: left;
    padding: 1rem 2rem;
    background-color: var(--text);
    color: var(--background);
    border-top: none;
}

footer p {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.4;
}

.footer-about-link {
    text-decoration: none;
    color: var(--background);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-about-link:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.6rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--background);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a svg {
    width: 18px;
    height: 18px;
    fill: var(--background);
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    #hero {
        padding-top: 120px;
    }

    #hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .craft-card {
        padding: 2rem 1rem;
        font-size: 1.4rem;
    }

}
