/* What's Happening at Pinnacle — newsletter site
   Brand: ink #030213, red #ED1C24, Poppins. */

:root {
  --red: #ED1C24;
  --red-text: #d5121a;          /* AA on white for small text */
  --ink: #030213;
  --ink-2: #3d3c4c;
  --muted: #6e6d7a;
  --bg: #ffffff;
  --bg-2: #f4f4f6;
  --rule: #e4e4ea;
  --panel: #030213;
  --panel-ink: #ffffff;
  --scrim: rgba(3, 2, 19, .93);
  --radius: 10px;
  --wrap: 1160px;
  --narrow: 720px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red-text: #ff4a50; --ink: #f6f6f8; --ink-2: #cfcfd8; --muted: #a3a2b2;
    --bg: #07061a; --bg-2: #100f26; --rule: #26253d; --panel: #15142e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red-text: #ff4a50; --ink: #f6f6f8; --ink-2: #cfcfd8; --muted: #a3a2b2;
  --bg: #07061a; --bg-2: #100f26; --rule: #26253d; --panel: #15142e; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Poppins", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: var(--narrow); }
.dot { color: var(--red); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* logos swap in dark mode */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* ---------------------------------------------------------------- header / footer */
.topbar { height: 6px; background: var(--red); }
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .logo { width: 150px; height: auto; }
.brand-sub { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
             padding-left: 14px; border-left: 1px solid var(--rule); line-height: 1.2; }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--bg-2); }
.site-footer { margin-top: 96px; border-top: 1px solid var(--rule); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 32px 40px; font-size: 14px; color: var(--muted); }
.footer-row .logo { width: 110px; height: auto; }
.footer-row a { font-weight: 600; text-decoration: none; }
.footer-row a:hover { color: var(--red-text); }

/* ---------------------------------------------------------------- masthead */
.notice { margin-top: 20px; padding: 12px 18px; border-radius: var(--radius); background: var(--bg-2); font-size: 15px; }
.notice a { font-weight: 600; color: var(--red-text); text-decoration: none; margin-left: 4px; }
.notice-sample { background: #fff4c2; color: #3b3000; }
.notice-sample strong { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin-right: 8px; }
.notice + .notice { margin-top: 8px; }
.masthead { padding-top: 56px; padding-bottom: 8px; }
.issue-tag { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); font-weight: 500; }
.pill { background: var(--red); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
        padding: 5px 12px; border-radius: 999px; }
.issue-title { margin: 0; font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; max-width: 14em; }
.issue-intro { margin-top: 20px; max-width: 40em; font-size: 19px; color: var(--ink-2); }
.year-jump { margin-top: 18px; color: var(--muted); }
.year-jump a { font-weight: 600; color: var(--ink); margin-left: 8px; }

.block { margin-top: 64px; }
.section-heading { margin: 0 0 24px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.section-heading.small { font-size: 22px; }
.section-copy { color: var(--ink-2); max-width: 40em; margin: -8px 0 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); }
.more { font-weight: 600; color: var(--red-text); text-decoration: none; }
a.more:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- video stories */
.block-video { display: grid; gap: 0; }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
         padding-block: 36px; border-top: 1px solid var(--rule); }
.block-video .story:first-child { border-top: 0; padding-top: 0; }
.story-headline { margin: 0; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.story-copy { margin: 14px 0 0; color: var(--ink-2); }
.story-link { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
              font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red-text); }
.story-link:hover { text-decoration: underline; }
.story-link:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 4px; }
.tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.story-media { all: unset; cursor: pointer; position: relative; display: block; border-radius: var(--radius); overflow: hidden;
               aspect-ratio: 16 / 9; background: var(--bg-2); }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story-media:hover img { transform: scale(1.03); }
.story-media:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
        background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='white'/%3E%3C/svg%3E") 56% 50% / 34px no-repeat;
        box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .2s ease; }
.story-media:hover .play { transform: scale(1.08); }

/* ---------------------------------------------------------------- articles */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; text-decoration: none; }
.feature-img, .card-img { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1200 / 628; background: var(--bg-2); }
.feature-img img, .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature:hover img, .card:hover img { transform: scale(1.03); }
.feature-text { display: flex; flex-direction: column; gap: 12px; }
.feature-headline { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.feature-dek, .card-dek { color: var(--ink-2); }
.feature:hover .feature-headline, .card:hover .card-headline { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.card-body { display: flex; flex-direction: column; gap: 8px; }
.card-headline { font-size: 22px; line-height: 1.2; font-weight: 800; }
.card-dek { font-size: 15px; }

/* ---------------------------------------------------------------- news */
.news { color: var(--ink); border-top: 1px solid var(--rule); padding: 48px 0 8px; }
.news-heading { margin: 0 0 18px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.news-list + .news-heading { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--rule); font-size: clamp(22px, 2.6vw, 30px); }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; }
.news-list li { border-top: 1px solid var(--rule); }
.news-list li:first-child { border-top: 0; }
.news-list a { display: block; padding: 14px 0; font-size: 18px; font-weight: 600; text-decoration: none; }
.news-list a span { color: var(--red); transition: margin .2s ease; }
.news-list a:hover span { margin-left: 6px; }
.news { --logo-col: 180px; }
.news-feature { display: grid; grid-template-columns: var(--logo-col) 1fr; gap: 32px; align-items: start; padding: 10px 0 6px; }
.news-feature-img { width: 132px; height: 132px; border-radius: 50%; box-shadow: 0 0 0 1px var(--rule); }
.news-feature-title { margin: 0 0 14px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; max-width: 30ch; }
.news-feature-body { color: var(--ink); font-size: 16px; line-height: 1.65; max-width: 68ch; }
.news-feature-body p { margin: 0 0 14px; }
.news-list a.news-feature-link { display: inline-block; padding: 4px 0 0; font-size: 16px; }
.news-logo { display: grid; grid-template-columns: var(--logo-col) 1fr; gap: 32px; align-items: center; padding: 6px 0; }
.news-logo-img { width: 100%; height: auto; margin-top: 4px; }
.news-logo { align-items: start; }
.news-logo-body { font-size: 16px; line-height: 1.65; max-width: 62ch; }
.news-logo-body p { margin: 0 0 6px; }
.news-list .news-logo a { padding: 4px 0 0; font-size: 16px; display: inline-block; }
.news-note { display: block; margin: -8px 0 14px; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- people + gallery */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.person { margin: 0; }
.person img, .person-blank { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); display: block; }
.person figcaption { display: flex; flex-direction: column; margin-top: 12px; }
.person strong { font-size: 19px; font-weight: 800; }
.person-role { color: var(--red-text); font-size: 14px; font-weight: 600; text-transform: capitalize; }
.person-text { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.photo { all: unset; cursor: zoom-in; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo:hover img { transform: scale(1.04); }
.photo-cap { position: absolute; inset: auto 0 0 0; padding: 24px 12px 10px; font-size: 13px; color: #fff;
             background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* ---------------------------------------------------------------- prose (articles + text blocks) */
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 22px; line-height: 1.25; font-weight: 800; margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose a { color: var(--red-text); font-weight: 500; }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 4px solid var(--red); font-size: 21px; font-weight: 500; }
.prose figure { margin: 1.6em 0; }
.prose img { border-radius: var(--radius); }
.block-text .prose { margin-inline: 0; padding-inline: 0; }

/* ---------------------------------------------------------------- article page */
.article-head { padding-top: 48px; }
.crumb { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--red-text); }
.crumb:hover { text-decoration: underline; }
.article-title { margin: 18px 0 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.article-dek { margin: 18px 0 0; font-size: 20px; color: var(--ink-2); }
.article-meta { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.article-hero { margin-top: 36px; margin-bottom: 40px; max-width: 980px; }
.article-hero img { width: 100%; border-radius: var(--radius); }
.article .prose { margin-top: 36px; }
.article-hero + .prose { margin-top: 0; }
.back { margin-top: 40px; }
.more-in { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rule); }
.more-in ul { margin: 0; padding: 0; list-style: none; }
.more-in li { padding: 10px 0; border-top: 1px solid var(--rule); }
.more-in a { font-weight: 600; text-decoration: none; }
.more-in a:hover { color: var(--red-text); }

/* ---------------------------------------------------------------- issue cards / archive */
.past { margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--rule); }
.past-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.issue-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--rule); border-radius: calc(var(--radius) + 2px);
              overflow: hidden; background: var(--bg); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.issue-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(3,2,19,.12); border-color: transparent; }
.issue-card-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-2); }
.issue-card-img img { width: 100%; height: 100%; object-fit: cover; }
.issue-card-q { position: absolute; left: 12px; bottom: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: 15px;
                padding: 4px 10px; border-radius: 6px; }
.issue-card-body { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 20px; }
.issue-card-label { font-size: 20px; font-weight: 800; }
.issue-card-months { color: var(--muted); font-size: 14px; }
.issue-card-heads { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule); list-style: none; display: grid; gap: 6px;
                    font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.issue-card-heads li::before { content: "— "; color: var(--red); }
.year { margin-top: 56px; }
.year-heading { margin: 0 0 20px; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 16px; }
.year-heading::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.issue-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 96px; }
.issue-nav a { display: flex; flex-direction: column; gap: 2px; padding: 20px 24px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; }
.issue-nav a:hover { border-color: var(--red); }
.issue-nav span { font-size: 14px; color: var(--muted); }
.issue-nav strong { font-size: 20px; font-weight: 800; }
.issue-nav .next { text-align: right; }

/* ---------------------------------------------------------------- modal player */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
         gap: 16px; padding: 72px 16px 40px; background: var(--scrim); }
.modal[hidden] { display: none; }
.modal.is-open { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-stage { position: relative; width: min(1100px, 100%, calc((100vh - 180px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000;
               border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal-stage.is-image { aspect-ratio: auto; width: auto; max-width: min(1100px, 100%); background: transparent; box-shadow: none; }
.modal-stage.is-image img { max-height: calc(100vh - 180px); width: auto; margin: 0 auto; border-radius: var(--radius); }
.modal-stage video, .modal-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; accent-color: var(--red); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
               background: var(--red); color: #fff; font-size: 28px; line-height: 46px; }
.modal-close:hover { filter: brightness(1.1); }
.modal-close:focus-visible { outline: 3px solid #fff; }
.modal-caption { color: #fff; text-align: center; font-weight: 600; font-size: 16px; max-width: 900px; }
.modal-caption small { display: block; color: #ff6a70; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
body.is-locked { overflow: hidden; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 820px) {
  .wrap { padding-inline: 16px; }
  .story, .feature { grid-template-columns: 1fr; gap: 20px; }
  .story-text { order: 2; }
  .story-media { order: 1; }
  .story { padding-block: 28px; }
  .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; background-size: 28px; }
  .news { padding: 32px 0 4px; }
  .news-feature { grid-template-columns: 1fr; gap: 18px; }
  .news-feature-img { width: 88px; height: 88px; }
  .news-logo { grid-template-columns: 1fr; gap: 6px; }
  .news-logo-img { width: 180px; }
  .brand-sub { display: none; }
  .nav { gap: 0; }
  .nav a { font-size: 14px; padding: 8px 10px; white-space: nowrap; }
  .brand .logo { width: 128px; }
  .masthead { padding-top: 36px; }
  .block { margin-top: 48px; }
  .issue-nav { grid-template-columns: 1fr; }
  .issue-nav .next { text-align: left; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.nowrap { white-space: nowrap; }
