/* ============================================================
   yongzoon.com — Editorial Personal Site
   Colors: #faf5ee, #3d3028, #c8b898, #d4918e, #7a8b6f, #1a1510, #b8a8c8
   Fonts: Bitter (display), Source Serif 4 (body), Karla (annotation)
   ============================================================ */

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

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

body {
    background-color: #faf5ee;
    color: #3d3028;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3 {
    font-family: 'Bitter', Georgia, serif;
    color: #1a1510;
    font-weight: 700;
    line-height: 1.15;
}

a {
    color: #d4918e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

em, i {
    font-style: italic;
}

/* ---- Shake Animation ---- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.shake-trigger:hover {
    animation: shake 200ms ease-in-out;
}

/* ============================================================
   MASTHEAD / HERO
   ============================================================ */
.masthead {
    min-height: 90vh;
    background-color: #faf5ee;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #c8b898;
}

.masthead-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 4rem 4rem;
    position: relative;
}

.masthead-halftone {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='4' cy='4' r='1.5' fill='%23c8b898'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.5;
}

.masthead-content {
    position: relative;
    z-index: 1;
    max-width: 60%;
}

.masthead-edition {
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a8b6f;
    margin-bottom: 1.5rem;
}

.masthead-title {
    font-family: 'Bitter', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: #1a1510;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.title-accent {
    color: #d4918e;
}

.masthead-tagline {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.1rem;
    font-variant: small-caps;
    letter-spacing: 0.08em;
    color: #3d3028;
    margin-bottom: 1.5rem;
}

.masthead-rule {
    border: none;
    border-top: 1px solid #3d3028;
    width: 100%;
    margin-bottom: 1.5rem;
}

.masthead-byline {
    font-family: 'Karla', sans-serif;
    font-size: 0.85rem;
    color: #7a8b6f;
    letter-spacing: 0.04em;
}

/* ============================================================
   EDITORIAL BODY
   ============================================================ */
.editorial-body {
    width: 100%;
}

/* ============================================================
   THREE-ZONE EDITORIAL SECTION
   ============================================================ */
.editorial-section {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(200, 184, 152, 0.4);
}

.zone-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Left margin zone */
.zone-left {
    padding-top: 0.5rem;
}

.margin-note {
    font-family: 'Karla', sans-serif;
    font-size: 0.8rem;
    color: #7a8b6f;
    letter-spacing: 0.04em;
    line-height: 1.5;
    border-left: 2px solid #c8b898;
    padding-left: 0.75rem;
}

.margin-note:hover {
    animation: shake 200ms ease-in-out;
}

.sticky-note {
    position: sticky;
    top: 2rem;
}

.note-label {
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    color: #c8b898;
    margin-bottom: 0.4rem;
}

.note-text {
    display: block;
    font-style: italic;
}

/* Center content zone */
.zone-center {
    min-width: 0;
}

/* Right decoration zone */
.zone-right {
    padding-top: 0.5rem;
}

.editorial-photo {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 1px;
}

.photo-1 {
    background: linear-gradient(135deg, #c8b898 0%, #d4918e 40%, #b8a8c8 70%, #faf5ee 100%);
}

.photo-2 {
    background: linear-gradient(170deg, #b8a8c8 0%, #7a8b6f 35%, #c8b898 65%, #faf5ee 100%);
}

.right-deco {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.halftone-block {
    width: 100%;
    aspect-ratio: 1;
}

.coarse-halftone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='6' cy='6' r='2.5' fill='%23c8b898'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-color: #faf5ee;
}

.right-note {
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    color: #7a8b6f;
    letter-spacing: 0.04em;
    font-style: italic;
}

/* ============================================================
   DROP CAPS
   ============================================================ */
.drop-cap-para {
    margin-bottom: 1.5rem;
}

.drop-cap {
    float: left;
    font-family: 'Bitter', Georgia, serif;
    font-size: 3em;
    font-weight: 700;
    line-height: 0.85;
    margin-right: 0.1em;
    margin-top: 0.05em;
    color: #1a1510;
    border-bottom: 1px solid #c8b898;
    padding-bottom: 0.05em;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
    font-family: 'Bitter', Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #1a1510;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* ============================================================
   PULL QUOTES
   ============================================================ */
.pull-quote {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #3d3028;
    border-left: 4px solid #d4918e;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='4' cy='4' r='1.5' fill='%23c8b898'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-color: rgba(200, 184, 152, 0.08);
    line-height: 1.6;
}

/* ============================================================
   FEATURE SPREADS
   ============================================================ */
.feature-spread {
    background-color: #b8a8c8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Ccircle cx='3' cy='3' r='1' fill='%23faf5ee'/%3E%3C/svg%3E");
    background-repeat: repeat;
    padding: 5rem 0;
    border-bottom: 1px solid rgba(61, 48, 40, 0.15);
}

.feature-spread--alt {
    background-color: #faf5ee;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Ccircle cx='3' cy='3' r='1' fill='%23c8b898'/%3E%3C/svg%3E");
}

.spread-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: center;
}

.spread-grid--reverse {
    direction: rtl;
}

.spread-grid--reverse > * {
    direction: ltr;
}

.gradient-photo {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 1px;
}

.photo-feature-1 {
    background: linear-gradient(135deg, #c8b898 0%, #d4918e 40%, #b8a8c8 70%, #faf5ee 100%);
}

.photo-feature-2 {
    background: linear-gradient(160deg, #d4918e 0%, #b8a8c8 35%, #7a8b6f 60%, #c8b898 100%);
}

.spread-photo {
    position: relative;
}

.spread-photo-caption {
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #7a8b6f;
    text-transform: uppercase;
    margin-top: 0.75rem;
}

.spread-text {
    padding: 1rem 0;
}

/* ---- Project List ---- */
.project-list {
    list-style: none;
    margin-top: 1.5rem;
}

.project-item {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(200, 184, 152, 0.5);
}

.project-item:last-child {
    border-bottom: none;
}

.project-year {
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    color: #7a8b6f;
    letter-spacing: 0.06em;
    grid-row: 1;
    align-self: center;
}

.project-title {
    font-family: 'Bitter', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1510;
    grid-column: 2;
    grid-row: 1;
}

.project-desc {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.9rem;
    color: #3d3028;
    line-height: 1.6;
    grid-column: 2;
    grid-row: 2;
    margin-top: 0.25rem;
}

/* ---- Writing List ---- */
.writing-list {
    list-style: none;
    margin-top: 1.5rem;
}

.writing-item {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(200, 184, 152, 0.5);
    align-items: baseline;
}

.writing-item:last-child {
    border-bottom: none;
}

.writing-date {
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    color: #7a8b6f;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.writing-link {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.95rem;
    color: #3d3028;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 145, 142, 0.4);
    transition: color 0.15s ease;
    line-height: 1.5;
}

.writing-link:hover {
    color: #d4918e;
    text-decoration: none;
    animation: shake 200ms ease-in-out;
    border-bottom-color: #d4918e;
}

/* ---- Contact ---- */
.contact-link {
    font-family: 'Bitter', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #d4918e;
    text-decoration: none;
    border-bottom: 2px solid rgba(212, 145, 142, 0.4);
    display: inline-block;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    transition: color 0.15s ease;
}

.contact-link:hover {
    color: #1a1510;
    text-decoration: none;
}

.contact-secondary {
    font-size: 0.9rem;
    color: #7a8b6f;
    margin-top: 1rem;
    font-style: italic;
}

/* ============================================================
   COLOPHON / FOOTER
   ============================================================ */
.colophon {
    background-color: #3d3028;
    color: #c8b898;
    padding: 4rem 0 3rem;
    margin-top: 0;
}

.colophon-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.colophon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.colophon-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-right: 2rem;
    border-right: 1px solid rgba(200, 184, 152, 0.25);
}

.colophon-block:last-child {
    border-right: none;
}

.colophon-label {
    font-family: 'Karla', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7a8b6f;
}

.colophon-value {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.9rem;
    color: #c8b898;
}

.colophon-link {
    color: #c8b898;
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 184, 152, 0.3);
    transition: color 0.15s ease;
}

.colophon-link:hover {
    color: #d4918e;
    text-decoration: none;
}

.colophon-rule {
    border: none;
    border-top: 1px solid rgba(200, 184, 152, 0.25);
    margin-bottom: 1.5rem;
}

.colophon-mark {
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #7a8b6f;
    text-transform: uppercase;
}

/* ============================================================
   BODY PARAGRAPH SPACING
   ============================================================ */
.zone-center p {
    margin-bottom: 1.25rem;
}

.spread-text p {
    margin-bottom: 1.25rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: two zones (margin + content) */
@media (max-width: 1024px) {
    .zone-grid {
        grid-template-columns: 180px 1fr;
        gap: 2rem;
    }

    .zone-right {
        display: none;
    }

    .masthead-content {
        max-width: 80%;
    }

    .colophon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .colophon-block:nth-child(2) {
        border-right: none;
    }
}

/* Mobile: single column */
@media (max-width: 680px) {
    .masthead-inner {
        padding: 3rem 1.5rem 3rem;
    }

    .masthead-content {
        max-width: 100%;
    }

    .masthead-title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .masthead-halftone {
        width: 50%;
        opacity: 0.3;
    }

    .zone-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .zone-left {
        display: none;
    }

    .zone-right {
        display: none;
    }

    .spread-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .spread-grid--reverse {
        direction: ltr;
    }

    .spread-photo {
        order: -1;
    }

    .feature-spread {
        padding: 3rem 0;
    }

    .editorial-section {
        padding: 3rem 0;
    }

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

    .colophon-block {
        border-right: none;
        padding-right: 0;
    }

    .writing-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .project-item {
        grid-template-columns: 1fr;
    }

    .project-year {
        grid-column: 1;
    }

    .project-title {
        grid-column: 1;
    }

    .project-desc {
        grid-column: 1;
    }
}
