/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #252525;
    background: #fff;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


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

.hero {
    padding: 90px 0 85px;
    background: #f5f3ef;
}

.hero .container {
    max-width: 900px;
    margin-left: max(20px, calc((100% - 1120px) / 2));
}

.eyebrow {
    margin: 0 0 18px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 28px;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.hero-lead {
    margin: 0 0 12px;
    font-size: 1.45rem;
    font-weight: 600;
}

.hero-copy {
    max-width: 720px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* ---------- General sections ---------- */

main section {
    padding: 80px 0;
}

main section:nth-child(even) {
    background: #f7f7f7;
}


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

footer {
    padding: 40px 0;
    font-size: 0.9rem;
}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

    body {
        font-size: 17px;
    }

    .container {
        width: min(100% - 30px, 1120px);
    }

    .hero {
        padding: 60px 0 55px;
    }

    .hero .container {
        width: min(100% - 30px, 1120px);
        margin: 0 auto;
    }

    .hero h1 {
        margin-bottom: 22px;
    }

    main section {
        padding: 55px 0;
    }
}

/* ---------- Featured Work ---------- */

.featured-work h2 {
    margin: 0 0 45px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.featured-project {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    gap: 70px;
    align-items: center;
}

.featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.project-type {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.featured-content h3 {
    margin: 0 0 24px;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.project-intro {
    font-size: 1.25rem;
    line-height: 1.55;
}

.project-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.project-link:hover {
    text-decoration-thickness: 2px;
}

@media (max-width: 700px) {

    .featured-work h2 {
        margin-bottom: 30px;
    }

    .featured-project {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .featured-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ---------- Writing ---------- */

.section-heading {
    margin-bottom: 45px;
}

.section-label {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-card h3 {
    margin: 0 0 20px;
    font-size: 1.65rem;
    line-height: 1.15;
}

.project-card p {
    margin-top: 0;
}

.big-number {
    margin: 0 !important;
    font-size: clamp(3.8rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.microfiction-card h3 {
    margin-top: 8px;
}

.project-links {
    margin-top: auto;
}

.project-links .project-link {
    display: block;
    width: fit-content;
    margin-top: 10px;
}

@media (max-width: 800px) {

    .project-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .project-card {
        max-width: 650px;
    }
}

/* ---------- Books & Guides ---------- */

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 55px;
    align-items: start;
}

.book-card img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: contain;
    object-position: left bottom;
    margin: 0 0 30px;
}

.book-content h3 {
    margin: 0 0 18px;
    font-size: 1.55rem;
    line-height: 1.2;
}

.book-content p {
    margin-top: 0;
}

@media (max-width: 800px) {

    .book-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .book-card {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 30px;
        align-items: start;
    }

    .book-card img {
        width: 200px;
        height: 280px;
        object-fit: contain;
        object-position: center top;
        margin: 0;
    }
}

@media (max-width: 520px) {

    .book-card {
        grid-template-columns: 1fr;
    }

    .book-card img {
        width: 100%;
        max-width: 240px;
        height: 330px;
        margin: 0 auto 25px;
    }
}

/* ---------- Design ---------- */

.design-feature {
    display: grid;
    grid-template-columns: minmax(280px, 520px) 1fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 80px;
}

.design-image img {
    display: block;
    width: 100%;
    height: auto;
}

.design-content h3,
.haiku-design-intro h3 {
    margin: 0 0 20px;
    font-size: 2rem;
    line-height: 1.15;
}

.design-content p,
.haiku-design-intro p {
    margin-top: 0;
}

.haiku-designs {
    padding-top: 60px;
    border-top: 1px solid #ccc;
}

.haiku-design-intro {
    max-width: 650px;
    margin-bottom: 35px;
}

.design-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.design-thumbnails img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: contain;
}

@media (max-width: 800px) {

    .design-feature {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 60px;
    }

    .design-image {
        max-width: 550px;
    }

    .design-thumbnails {
        gap: 15px;
    }

    .design-thumbnails img {
        height: 220px;
    }
}

@media (max-width: 520px) {

    .design-thumbnails {
        grid-template-columns: 1fr;
    }

    .design-thumbnails img {
        height: auto;
        max-height: 350px;
    }
}

/* ---------- Design ---------- */

.design .section-heading {
    margin-bottom: 30px;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.design-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-bottom: 25px;
}

.design-card h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    line-height: 1.2;
}

.design-card p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 900px) {

    .design-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 45px 25px;
    }
}

@media (max-width: 520px) {

    .design-grid {
        grid-template-columns: 1fr;
    }

    .design-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ---------- About ---------- */

.about-inner {
    max-width: 900px;
}

.about h2 {
    max-width: 750px;
    margin: 10px 0 35px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.about-copy {
    max-width: 720px;
}

.about-copy p {
    margin: 0 0 22px;
}

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

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

footer {
    padding: 55px 0 35px;
    background: #252525;
    color: #fff;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
    padding-bottom: 40px;
}

.footer-identity p {
    margin: 0;
}

.footer-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.footer-links a {
    color: inherit;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.footer-links a:hover {
    text-decoration-thickness: 2px;
}

.copyright {
    margin: 0;
    padding-top: 25px;
    border-top: 1px solid #555;
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 600px) {

    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        gap: 12px 22px;
    }
}