/* ============================================================
   Aster Press — editorial design system
   Palette: cream #F5F3F0 · rose #EFA7C1 · ink #2B2326
   Type: Fraunces (display serif) · Pinyon Script · Karla (UI)
   ============================================================ */
:root {
    --cream: #F5F3F0;
    --paper: #FFFDFB;
    --rose: #EFA7C1;
    --rose-deep: #D97B9E;
    --ink: #2B2326;
    --ink-soft: rgba(43, 35, 38, 0.64);
    --ink-faint: rgba(43, 35, 38, 0.4);
    --hairline: rgba(43, 35, 38, 0.14);
    --hairline-strong: rgba(43, 35, 38, 0.32);
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-script: 'Pinyon Script', 'Brush Script MT', cursive;
    --font-ui: 'Karla', 'Helvetica Neue', Arial, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--rose); color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--rose-deep);
    outline-offset: 2px;
}

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Read link */
.read-link {
    font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    text-decoration: none; color: var(--ink);
    padding-bottom: 3px; border-bottom: 1px solid var(--ink-faint);
    transition: border-color 0.24s var(--ease), color 0.24s var(--ease);
}
.read-link:hover { border-color: var(--rose-deep); color: var(--rose-deep); }

/* Section head row above grids */
.section-head-row {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; padding: 30px 0 16px; border-bottom: 1px solid var(--hairline-strong);
}

/* ---------- Masthead ---------- */
.masthead { background: var(--cream); border-bottom: 1px solid var(--hairline-strong); }
.masthead-top {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 10px 0; border-bottom: 1px solid var(--hairline);
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}
.masthead-brand { display: block; text-align: center; text-decoration: none; padding: 26px 0 16px; }
.masthead-script { font-family: var(--font-script); font-size: clamp(22px, 3vw, 30px); line-height: 1; color: var(--rose-deep); }
.masthead-title {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(44px, 7vw, 78px); line-height: 0.95; letter-spacing: -0.015em;
    margin-top: 8px;
}
.masthead-title em { font-style: italic; color: var(--rose-deep); }
.masthead-tag { margin-top: 10px; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); }
.site-nav {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 6px 30px; padding: 14px 0 16px; border-top: 1px solid var(--hairline);
}
.site-nav a {
    font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none; color: var(--ink); padding: 3px 0; border-bottom: 1px solid transparent;
    transition: border-color 0.24s var(--ease), color 0.24s var(--ease);
}
.site-nav a:hover { border-color: var(--rose-deep); color: var(--rose-deep); }

/* ---------- Cover (first screen) ---------- */
.cover { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); background: var(--paper); }
.cover-media { position: relative; height: clamp(430px, 74vh, 800px); overflow: hidden; }
.cover-media img { width: 100%; height: 100%; object-fit: cover; }
.cover-badge {
    position: absolute; top: 20px; left: 20px; z-index: 1;
    background: var(--rose); color: var(--ink);
    font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    padding: 9px 14px;
}
.cover-copy {
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(36px, 5vw, 76px) clamp(28px, 4.5vw, 72px);
}
.cover-label { color: var(--rose-deep); }
.cover-title {
    font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em;
    font-size: clamp(34px, 4.6vw, 60px); margin: 18px 0 18px;
}
.cover-dek { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 46ch; }
.cover-meta {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px;
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.cover-read { margin-top: 26px; }

/* Restrained first-screen rise (content visible by default) */
.cover-copy > * { animation: kb-rise 620ms var(--ease) both; }
.cover-copy > *:nth-child(2) { animation-delay: 70ms; }
.cover-copy > *:nth-child(3) { animation-delay: 140ms; }
.cover-copy > *:nth-child(4) { animation-delay: 210ms; }
.cover-copy > *:nth-child(5) { animation-delay: 280ms; }
@keyframes kb-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Story grid (asymmetric) ---------- */
.stories { background: var(--paper); }
.story-grid {
    display: grid; grid-template-columns: repeat(12, 1fr);
    gap: 1px; background: var(--hairline);
    border-top: 1px solid var(--hairline-strong);
    border-bottom: 1px solid var(--hairline-strong);
}
.story-tile {
    grid-column: span 4;
    background: var(--paper);
    padding: clamp(22px, 2.8vw, 38px);
    display: flex; flex-direction: column; gap: 14px;
    text-decoration: none; color: inherit;
    transition: background 0.28s var(--ease);
}
.story-grid .story-tile:nth-child(1) {
    grid-column: span 8;
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 40px); align-items: center;
}
.story-grid .story-tile:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.story-img { overflow: hidden; }
.story-grid .story-tile:nth-child(1) .story-img { aspect-ratio: 16 / 10; }
.story-grid .story-tile:nth-child(2) .story-img { aspect-ratio: 3 / 4; }
.story-tile .story-img { aspect-ratio: 4 / 3; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.story-tile:hover .story-img img { transform: scale(1.035); }
.story-tile:hover { background: #FAF7F4; }
.story-section { color: var(--rose-deep); }
.story-title {
    font-family: var(--font-display); font-weight: 500; line-height: 1.14;
    font-size: clamp(20px, 1.9vw, 26px);
    text-underline-offset: 5px; text-decoration-color: var(--rose);
}
.story-grid .story-tile:nth-child(1) .story-title { font-size: clamp(26px, 2.7vw, 36px); }
.story-grid .story-tile:nth-child(2) .story-title { font-size: clamp(24px, 2.2vw, 30px); }
.story-tile:hover .story-title { text-decoration: underline; }
.story-dek { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.story-meta {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto;
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---------- Section tiles ---------- */
.sections { background: var(--cream); }
.sections-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border-bottom: 1px solid var(--hairline-strong); }
.section-tile { background: var(--cream); padding: 18px 16px 24px; text-decoration: none; color: inherit; }
.section-img { aspect-ratio: 4 / 5; overflow: hidden; }
.section-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.section-tile:hover .section-img img { transform: scale(1.03); }
.section-name {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px);
    margin-top: 14px;
}
.section-tile:hover .section-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rose); }
.section-count { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-faint); }

/* ---------- Press bar ---------- */
.press { background: var(--paper); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline-strong); }
.press-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; padding: 20px 0; }
.press-label { color: var(--ink-faint); }
.press-name { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--ink-soft); }
.press-sep { color: var(--rose); font-size: 14px; }

/* ---------- Newsletter band ---------- */
.newsletter { background: var(--rose); padding: 60px 0; }
.newsletter-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.newsletter .eyebrow { color: rgba(43, 35, 38, 0.55); }
.newsletter-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; margin: 14px 0 14px; }
.newsletter-dek { font-size: 16.5px; line-height: 1.7; color: rgba(43, 35, 38, 0.72); }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 26px auto 0; }
.newsletter-form input {
    flex: 1; min-width: 0; background: rgba(255, 253, 251, 0.55); border: 1px solid rgba(43, 35, 38, 0.35);
    padding: 13px 16px; font-size: 15px;
}
.newsletter-form input::placeholder { color: rgba(43, 35, 38, 0.5); }
.newsletter-form button {
    background: var(--ink); color: var(--cream); border: 0; padding: 13px 24px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer;
    transition: opacity 0.24s var(--ease);
}
.newsletter-form button:hover { opacity: 0.85; }
.newsletter-note { margin-top: 18px; font-family: var(--font-display); font-style: italic; font-size: 18px; }
.newsletter-error { color: #7A2E4A; font-family: var(--font-ui); font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.newsletter-page { padding: 90px 0; border-bottom: 1px solid var(--hairline-strong); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .masthead-script { color: var(--rose); }
.footer-name { font-family: var(--font-display); font-weight: 500; font-size: 34px; margin-top: 6px; }
.footer-name em { font-style: italic; color: var(--rose); }
.footer-note { margin-top: 14px; font-size: 14px; line-height: 1.7; color: rgba(245, 243, 240, 0.6); max-width: 34ch; }
.site-footer h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245, 243, 240, 0.45); margin-bottom: 16px; }
.site-footer a { display: block; font-size: 14.5px; color: rgba(245, 243, 240, 0.82); text-decoration: none; margin-bottom: 9px; transition: color 0.24s var(--ease); }
.site-footer a:hover { color: var(--rose); }
.footer-issue { font-family: var(--font-display); font-size: 19px; font-style: italic; }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(245, 243, 240, 0.16);
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 243, 240, 0.45);
}

/* ---------- Article ---------- */
.article { background: var(--paper); }
.article-hero { overflow: hidden; }
.article-hero img { width: 100%; height: clamp(360px, 60vh, 640px); object-fit: cover; }
.article-meta-row {
    display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
    padding: 20px 0; border-bottom: 1px solid var(--hairline);
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.article-meta-row .eyebrow { color: var(--rose-deep); }
.article-header { max-width: 820px; margin: 0 auto; padding: 44px 0 6px; text-align: center; }
.article-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -0.012em; }
.article-dek { font-family: var(--font-display); font-style: italic; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--ink-soft); margin-top: 20px; }
.article-body { max-width: 660px; margin: 36px auto 90px; }
.article-body p { font-size: 17.5px; line-height: 1.78; margin-bottom: 24px; }
.article-body p:first-of-type::first-letter {
    font-family: var(--font-display); font-weight: 500; color: var(--rose-deep);
    font-size: 3.3em; line-height: 0.85; float: left; padding: 5px 12px 0 0;
}

/* ---------- Magazine / archive ---------- */
.mag-hero { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); background: var(--paper); border-bottom: 1px solid var(--hairline-strong); }
.mag-cover { height: clamp(420px, 68vh, 720px); overflow: hidden; }
.mag-cover img { width: 100%; height: 100%; object-fit: cover; }
.mag-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 80px); }
.mag-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 5vw, 64px); line-height: 1.03; margin: 16px 0 18px; }
.mag-title em { font-style: italic; color: var(--rose-deep); }
.mag-dek { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 48ch; }
.mag-meta { margin-top: 22px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

.archive { background: var(--paper); }
.archive-list { border-bottom: 1px solid var(--hairline-strong); }
.archive-row {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 24px; align-items: baseline;
    padding: 24px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; color: inherit;
    transition: background 0.24s var(--ease);
}
.archive-row:hover { background: #FAF7F4; }
.archive-num { font-family: var(--font-display); font-style: italic; font-size: 21px; color: var(--rose-deep); }
.archive-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.archive-section { color: var(--ink-faint); }
.archive-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.12; }
.archive-row:hover .archive-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--rose); }
.archive-meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); text-align: right; }

/* ---------- Section landing ---------- */
.section-head { padding: 48px 0 22px; border-bottom: 1px solid var(--hairline-strong); }
.section-head .eyebrow { color: var(--rose-deep); }
.section-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6vw, 68px); line-height: 1; margin-top: 10px; }
.section-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border-bottom: 1px solid var(--hairline-strong); }
.section-grid .story-tile { grid-column: span 1 !important; grid-row: auto !important; display: flex; }

/* ---------- Contributors ---------- */
.page-head { padding: 52px 0 30px; border-bottom: 1px solid var(--hairline-strong); }
.page-head .eyebrow { color: var(--rose-deep); }
.page-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6vw, 68px); line-height: 1; margin-top: 10px; }
.page-dek { margin-top: 16px; font-size: 17px; color: var(--ink-soft); max-width: 52ch; }
.contributors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border-bottom: 1px solid var(--hairline-strong); }
.contributor { background: var(--paper); padding: 28px 26px 34px; }
.contributor img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.contributor-name { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin-top: 18px; }
.contributor-role { color: var(--rose-deep); margin-top: 6px; }
.contributor-bio { margin-top: 12px; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-script { font-size: clamp(26px, 3.4vw, 38px); text-align: center; padding-top: 60px; }
.about-title {
    font-family: var(--font-display); font-weight: 500; text-align: center;
    font-size: clamp(34px, 5vw, 58px); line-height: 1.08; max-width: 22ch; margin: 16px auto 40px;
}
.about-title em { font-style: italic; color: var(--rose-deep); }
.about-prose { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 880px; margin: 0 auto 60px; }
.about-prose p { font-size: 16.5px; line-height: 1.75; }
.about-values { border-top: 1px solid var(--hairline-strong); padding: 40px 0 70px; }
.about-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); }
.about-value { background: var(--paper); padding: 26px 22px 30px; }
.about-value .eyebrow { color: var(--rose-deep); }
.about-value p:last-child { margin-top: 12px; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .cover, .mag-hero { grid-template-columns: 1fr; }
    .cover-media, .mag-cover { height: clamp(360px, 52vh, 540px); }
    .cover-copy { padding: 34px 24px 44px; }
    .story-grid { grid-template-columns: repeat(2, 1fr); }
    .story-grid .story-tile, .story-grid .story-tile:nth-child(1), .story-grid .story-tile:nth-child(2), .story-grid .story-tile:nth-child(n+3) { grid-column: span 1; grid-row: auto; }
    .story-grid .story-tile:nth-child(1) { grid-column: span 2; grid-template-columns: 1fr 1fr; }
    .sections-grid { grid-template-columns: repeat(2, 1fr); }
    .section-grid { grid-template-columns: repeat(2, 1fr); }
    .contributors-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .about-prose { grid-template-columns: 1fr; }
    .about-values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .masthead-top .masthead-top-hide { display: none; }
    .story-grid { grid-template-columns: 1fr; }
    .story-grid .story-tile:nth-child(1) { grid-column: span 1; grid-template-columns: 1fr; }
    .sections-grid, .section-grid, .contributors-grid, .about-values-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .archive-row { grid-template-columns: 40px minmax(0, 1fr); }
    .archive-meta { grid-column: 2; text-align: left; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { width: 100%; }
    .site-nav { gap: 6px 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}
