/* ============================================================
   THREADLINE — Fashion Editorial Magazine
   Palette: runway #F2EEE8 · ink #141414 · stitch #A85B5B · taupe #A89888
   ============================================================ */
:root {
    --runway: #F2EEE8;
    --paper: #F7F4EF;
    --ink: #141414;
    --stitch: #A85B5B;
    --taupe: #A89888;
    --hairline: rgba(20, 20, 20, 0.16);
    --hairline-soft: rgba(20, 20, 20, 0.08);
    --serif: 'Playfair Display', 'Times New Roman', serif;
    --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--runway);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--stitch); color: var(--runway); }

/* ---------- Masthead / Header ---------- */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--runway); }
.masthead { max-width: 1200px; margin: 0 auto; padding: 1.15rem 1.5rem 0; }
.masthead__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead__issue { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); flex: 1; }
.masthead__subscribe { flex: 1; text-align: right; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 0.15rem; transition: color 0.25s ease, border-color 0.25s ease; }
.masthead__subscribe:hover { color: var(--stitch); border-color: var(--stitch); }
.brand { display: inline-block; text-align: center; }
.brand__name { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.9rem; letter-spacing: 0.1em; line-height: 1; }
.brand__tag { display: block; font-size: 0.56rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--taupe); margin-top: 0.4rem; }
.site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem 2.1rem; padding: 1.05rem 1.5rem 1.15rem; }
.site-nav a { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.2rem 0; border-bottom: 1px solid transparent; transition: border-color 0.25s ease, color 0.25s ease; }
.site-nav a:hover { border-bottom-color: var(--stitch); color: var(--ink); }

/* ---------- Cover hero (mag-cover-crop) ---------- */
.cover { position: relative; min-height: 84vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ink); }
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.cover__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0.28) 0%, rgba(20,20,20,0.05) 42%, rgba(20,20,20,0.66) 100%); }
.cover__inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 7rem 1.5rem 8.5rem; text-align: center; color: #F5F1EA; }
.cover__eyebrow { display: inline-block; font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(245,241,234,0.92); border-top: 1px solid rgba(245,241,234,0.55); border-bottom: 1px solid rgba(245,241,234,0.55); padding: 0.55rem 1.2rem; margin-bottom: 1.7rem; }
.cover__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: 0.005em; text-shadow: 0 2px 30px rgba(20,20,20,0.35); }
.cover__dek { margin: 1.5rem auto 0; max-width: 540px; font-size: 1.02rem; line-height: 1.75; color: rgba(245,241,234,0.92); font-weight: 400; }
.cover__actions { display: flex; gap: 0.85rem; justify-content: center; margin-top: 2.4rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.95rem 1.7rem; border: 1px solid transparent; transition: all 0.25s ease; }
.btn--solid { background: #F5F1EA; color: var(--ink); }
.btn--solid:hover { background: transparent; color: #F5F1EA; border-color: #F5F1EA; }
.btn--ghost { border-color: rgba(245,241,234,0.55); color: #F5F1EA; }
.btn--ghost:hover { background: #F5F1EA; color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--runway); }
.btn--ink:hover { background: var(--stitch); color: var(--runway); }

/* ---------- Sections strip ---------- */
.sections-strip { border-bottom: 1px solid var(--hairline); background: var(--runway); }
.sections-strip__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: stretch; gap: 2.1rem; padding: 0 1.5rem; overflow-x: auto; }
.sections-strip__label { flex: none; display: flex; align-items: center; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--taupe); padding: 1rem 1.8rem 1rem 0; border-right: 1px solid var(--hairline-soft); margin-right: 0.4rem; }
.sections-strip a { flex: none; display: flex; align-items: center; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 1.05rem 0; border-bottom: 2px solid transparent; transition: border-color 0.25s ease, color 0.25s ease; }
.sections-strip a:hover { border-bottom-color: var(--stitch); }

/* ---------- Stories grid ---------- */
.stories { max-width: 1200px; margin: 0 auto; padding: 4.6rem 1.5rem 0; scroll-margin-top: 1rem; }
.stories__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--ink); padding-bottom: 0.8rem; margin-bottom: 2.5rem; }
.stories__label { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; }
.stories__count { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--taupe); }
.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2rem; row-gap: 3.4rem; }
.story-tile { position: relative; min-width: 0; }
.story-tile a { display: block; }
.story-tile__media { overflow: hidden; background: var(--ink); }
.story-tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease, opacity 0.4s ease; }
.story-tile a:hover .story-tile__img { transform: scale(1.025); opacity: 0.92; }
.story-tile__section { display: inline-block; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stitch); margin: 1.15rem 0 0.55rem; }
.story-tile__title { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.18; transition: transform 0.25s ease; }
.story-tile a:hover .story-tile__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.story-tile__dek { margin-top: 0.65rem; font-size: 0.92rem; line-height: 1.65; color: #4a4a46; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-tile__meta { margin-top: 0.9rem; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe); display: flex; align-items: center; gap: 0.55rem; }
.dot { color: var(--stitch); }

.story-tile--lead { grid-column: 1 / span 7; grid-row: 1 / span 2; display: flex; flex-direction: column; }
.story-tile--lead .story-tile__media { flex: 1; min-height: 340px; }
.story-tile--lead .story-tile__title { font-size: clamp(1.85rem, 3vw, 2.55rem); line-height: 1.1; }
.story-tile--lead .story-tile__dek { -webkit-line-clamp: 3; }
.story-tile--wide { grid-column: 8 / span 5; }
.story-tile--wide .story-tile__media { aspect-ratio: 4 / 5; }
.story-tile--third { grid-column: span 4; }
.story-tile--third .story-tile__media { aspect-ratio: 4 / 3; }
.story-tile--third .story-tile__title { font-size: 1.25rem; }

/* ---------- Issue band ---------- */
.issue-band { max-width: 1200px; margin: 5rem auto 0; padding: 0 1.5rem; }
.issue-band__inner { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 3.2rem; align-items: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 2.8rem 0; }
.issue-band__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.issue-band__label { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--taupe); }
.issue-band__issue { font-family: var(--serif); font-size: 1.05rem; color: var(--stitch); margin-top: 0.6rem; }
.issue-band__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.08; margin-top: 0.4rem; }
.issue-band__dek { margin-top: 1rem; max-width: 520px; color: #4a4a46; line-height: 1.7; }
.issue-band__season { margin-top: 0.8rem; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); }
.issue-band__body .btn { margin-top: 1.9rem; }

/* ---------- Page heads ---------- */
.page-head { padding: 0 0 2.6rem; }
.page-head__label { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--stitch); }
.page-head__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 4.5vw, 3.6rem); line-height: 1.05; margin-top: 0.9rem; }
.page-head__lede { margin-top: 1.1rem; max-width: 620px; font-size: 1.02rem; line-height: 1.75; color: #4a4a46; }

/* ---------- Magazine / TOC ---------- */
.toc { max-width: 1200px; margin: 0 auto; padding: 4.6rem 1.5rem 5rem; }
.magazine-hero { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 3rem; align-items: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 2.4rem 0; margin-bottom: 3.6rem; }
.magazine-hero__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.magazine-hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }
.magazine-hero__body .btn { margin-top: 1.6rem; }
.toc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem; border-top: 1px solid var(--ink); padding-top: 2.2rem; }
.toc__col h3 { font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--stitch); border-bottom: 1px solid var(--hairline); padding-bottom: 0.75rem; margin-bottom: 1.1rem; }
.toc__item { padding: 0.9rem 0; border-bottom: 1px solid var(--hairline-soft); }
.toc__item__title { font-family: var(--serif); font-size: 1.08rem; line-height: 1.32; }
.toc__item a:hover .toc__item__title { text-decoration: underline; text-underline-offset: 3px; }
.toc__item__byline { margin-top: 0.35rem; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe); }

/* ---------- Article detail ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 4.6rem 1.5rem 0; }
.article__eyebrow { display: flex; align-items: center; gap: 0.8rem; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--taupe); }
.article__eyebrow .sep { color: var(--stitch); }
.article__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.06; margin-top: 1.2rem; }
.article__dek { margin-top: 1.3rem; max-width: 640px; font-size: 1.13rem; line-height: 1.7; color: #4a4a46; }
.article__meta { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.5rem; padding-bottom: 1.7rem; border-bottom: 1px solid var(--hairline); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--taupe); }
.article__hero { max-width: 1080px; margin: 2.4rem auto 0; padding: 0 1.5rem; }
.article__hero img { width: 100%; max-height: 600px; object-fit: cover; }
.article__body { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 2rem; font-size: 1.06rem; line-height: 1.95; color: #23231f; }
.article__body p { margin-bottom: 1.6rem; }
.article__body p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.5em; float: left; line-height: 0.82; padding: 0.06em 0.14em 0 0; color: var(--ink); }
.article__body h2 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; margin: 2.3rem 0 0.9rem; line-height: 1.2; }
.article__body blockquote { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.5; border-left: 2px solid var(--stitch); padding: 0.2rem 0 0.2rem 1.5rem; margin: 2.4rem 0; color: var(--ink); }

/* ---------- Related ---------- */
.related { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 5rem; }
.related__label { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--taupe); }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid var(--ink); padding-top: 1.8rem; margin-top: 1rem; }
.related .story-tile__media { aspect-ratio: 4 / 3; }

/* ---------- Section page ---------- */
.section-page { max-width: 1000px; margin: 0 auto; padding: 4.6rem 1.5rem 5rem; }
.section-page__label { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--stitch); }
.section-page__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.05; margin-top: 0.9rem; }
.section-page__lede { margin-top: 1.1rem; max-width: 620px; color: #4a4a46; }
.section-list { border-top: 1px solid var(--ink); margin-top: 2.8rem; }
.section-item { display: grid; grid-template-columns: 220px 1fr; gap: 2.2rem; padding: 2.2rem 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.section-item__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.section-item__meta { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--taupe); display: flex; gap: 0.55rem; align-items: center; }
.section-item__title { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.2; margin-top: 0.55rem; }
.section-item__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-item__dek { margin-top: 0.65rem; color: #4a4a46; line-height: 1.7; }
.section-item__more { display: inline-block; margin-top: 1rem; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 0.15rem; transition: color 0.25s ease, border-color 0.25s ease; }
.section-item__more:hover { color: var(--stitch); border-color: var(--stitch); }

/* ---------- Contributors ---------- */
.contributors { max-width: 1200px; margin: 0 auto; padding: 4.6rem 1.5rem 5rem; }
.contributors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem; border-top: 1px solid var(--ink); padding-top: 2.4rem; }
.contributor { border-top: 1px solid var(--hairline); padding-top: 1.5rem; }
.contributor__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.contributor__name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin-top: 1.1rem; }
.contributor__role { margin-top: 0.35rem; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stitch); }
.contributor__bio { margin-top: 0.7rem; font-size: 0.92rem; line-height: 1.7; color: #4a4a46; }

/* ---------- About ---------- */
.about { max-width: 860px; margin: 0 auto; padding: 5rem 1.5rem; }
.about__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.1; margin-top: 1rem; }
.about__lede { margin-top: 1.6rem; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.6; color: #3a3a36; }
.about__body { margin-top: 2.4rem; font-size: 1.02rem; line-height: 1.9; color: #3a3a36; }
.about__body p { margin-bottom: 1.4rem; }
.about__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 2.4rem 0; margin-top: 3.4rem; }
.about__stat span { display: block; font-family: var(--serif); font-weight: 600; font-size: 2.4rem; line-height: 1; }
.about__stat p { margin-top: 0.6rem; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--taupe); }
.about__principles { margin-top: 3rem; }
.about__principles h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.about__principles ul { margin-top: 1.4rem; }
.about__principles li { padding: 1rem 0; border-bottom: 1px solid var(--hairline-soft); font-size: 1rem; line-height: 1.7; }
.about__principles li::before { content: '—'; color: var(--stitch); margin-right: 0.9rem; }

/* ---------- Newsletter ---------- */
.newsletter { max-width: 660px; margin: 0 auto; padding: 5.5rem 1.5rem; text-align: center; }
.newsletter__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.08; margin-top: 1rem; }
.newsletter__dek { margin: 1.3rem auto 0; max-width: 480px; color: #4a4a46; line-height: 1.75; }
.newsletter__form { display: flex; border-bottom: 1px solid var(--ink); margin-top: 2.6rem; }
.newsletter__input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--sans); font-size: 1rem; padding: 0.9rem 0.2rem; color: var(--ink); }
.newsletter__input::placeholder { color: var(--taupe); }
.newsletter__button { background: transparent; border: none; cursor: pointer; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); padding: 0.9rem 0.2rem 0.9rem 1.4rem; transition: color 0.25s ease; }
.newsletter__button:hover { color: var(--stitch); }
.newsletter__note { margin-top: 1rem; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe); }
.newsletter__thanks { display: none; margin-top: 2.2rem; font-family: var(--serif); font-size: 1.3rem; color: var(--stitch); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--paper); margin-top: 5rem; }
.footer__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.6rem; padding: 3.4rem 1.5rem 2.8rem; }
.footer__brand { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; letter-spacing: 0.08em; }
.footer__tag { margin-top: 0.7rem; max-width: 280px; font-size: 0.86rem; line-height: 1.7; color: var(--taupe); }
.footer h4 { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--taupe); margin-bottom: 1.1rem; }
.footer li { margin-bottom: 0.6rem; }
.footer a { font-size: 0.88rem; transition: color 0.25s ease; }
.footer a:hover { color: var(--stitch); }
.footer__bottom { border-top: 1px solid var(--hairline-soft); }
.footer__bottom-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.5rem; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--taupe); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .story-tile--lead { grid-column: 1 / -1; grid-row: auto; }
    .story-tile--wide { grid-column: 1 / -1; }
    .story-tile--third { grid-column: span 6; }
    .toc__grid { grid-template-columns: repeat(2, 1fr); }
    .contributors__grid { grid-template-columns: repeat(2, 1fr); }
    .issue-band__inner { grid-template-columns: 1fr; max-width: 420px; }
    .magazine-hero { grid-template-columns: 1fr; max-width: 420px; }
    .section-item { grid-template-columns: 1fr; }
    .related__grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .about__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .story-tile--third { grid-column: 1 / -1; }
    .toc__grid, .contributors__grid { grid-template-columns: 1fr; }
    .masthead__issue { display: none; }
    .site-nav { gap: 0.9rem 1.4rem; }
    .story-grid { row-gap: 2.6rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .story-tile a:hover .story-tile__img { transform: none; }
}
