/* AI Brief: the parts the main site's site.css doesn't have.
   site.css is a straight copy from chrisbcarlson-site (menu, sky photo, glass cards, footer).
   Class names here are picked so they don't clash with anything in site.css. */

/* Masthead: issue number, date, headline and summary in white over the sky */
.masthead { position: relative; z-index: 1; max-width: var(--w); margin: 0 auto; padding: calc(max(14px, env(safe-area-inset-top)) + 110px) max(20px, env(safe-area-inset-right)) 2.2rem max(20px, env(safe-area-inset-left)); color: var(--white); animation: fade 1s .2s both; }
.masthead h1 { margin: .9rem 0 .8rem; max-width: 18em; font-weight: 700; font-size: clamp(2.3rem, 6.4vw, 4.6rem); line-height: 1; letter-spacing: -.04em; text-wrap: balance; text-shadow: var(--name-shadow); }
.dek { max-width: 34em; margin: 0; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.45; text-shadow: 0 1px 14px rgba(21, 34, 59, .55); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; font-size: .9rem; font-weight: 600; }
.meta > * { display: inline-flex; align-items: center; min-height: 34px; padding: 0 .9rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.meta .issue { background: var(--white); color: var(--ink); border-color: transparent; }
.hero-fig { margin: 1.8rem 0 0; max-width: 900px; }
.hero-fig img { border-radius: 22px; box-shadow: 0 18px 50px rgba(21, 34, 59, .3); }

/* Small uppercase label above a headline */
.label { display: block; margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* Lead story */
.lead-story h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.lead-story .body { max-width: 38em; font-size: 1.12rem; }
.matters { max-width: 38em; margin: 1.2rem 0 0; padding: 1rem 1.2rem; border-radius: 18px; background: rgba(255, 255, 255, .6); }
.matters strong { color: var(--accent); }
.quote { max-width: 30em; margin: 1.8rem 0 0; padding: 0 0 0 1.1rem; border-left: 4px solid var(--accent); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }

/* "Also today": smaller stories in a grid */
.card > h2.small, .card-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1.2rem; }
.stories { display: grid; gap: 1rem; }
.story { display: flex; flex-direction: column; border-radius: 20px; background: rgba(255, 255, 255, .6); overflow: hidden; }
.story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story .in { padding: 1.1rem 1.2rem 1.2rem; }
.story h3 { margin: 0 0 .4rem; font-size: 1.25rem; line-height: 1.2; }
.story p { margin: 0; color: var(--steel); font-size: 1rem; }

/* Quick hits */
.hits { list-style: none; margin: 0; padding: 0; }
.hits li { padding: .85rem 0; border-bottom: 1px solid rgba(21, 34, 59, .12); font-size: 1.02rem; }
.hits li:last-child { border-bottom: 0; padding-bottom: 0; }
.hits .label { display: inline; margin: 0 .6rem 0 0; font-size: .75rem; }

/* For the trades: navy glass so it stands out */
.trades { background: rgba(21, 34, 59, .78); color: var(--white); }
.trades .label { color: #c9c2ff; }
.trades h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.trades p { max-width: 38em; margin: 0; color: rgba(255, 255, 255, .9); }
.trades .pick + .pick { margin-top: 1.4rem; }

/* Sources */
.src h2 { font-size: 1.2rem; letter-spacing: -.01em; margin: 0 0 .7rem; }
.src ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.src a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--ink); font-size: .92rem; text-decoration: none; }
.src a:hover { background: var(--white); color: var(--accent); }
.src .fine { margin: 1rem 0 0; font-size: .9rem; color: var(--steel); }

/* Older / newer brief buttons */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.pager a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.3rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--white); font-weight: 600; text-decoration: none; }
.pager a:hover { background: rgba(21, 34, 59, .7); }
.pager .all { background: var(--white); color: var(--ink); border-color: transparent; }

/* Archive page */
.archive { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.archive a { display: block; height: 100%; padding: 1.2rem 1.3rem; border-radius: 20px; background: rgba(255, 255, 255, .6); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.archive a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .82); }
.archive h3 { margin: 0 0 .4rem; font-size: 1.3rem; line-height: 1.2; }
.archive p { margin: 0; color: var(--steel); font-size: 1rem; }
.archive .newest a { padding: 1.6rem; }
.archive .newest h3 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -.03em; }
.archive .newest img { margin: 0 0 1rem; border-radius: 16px; }

@media (min-width: 800px) {
  .stories { grid-template-columns: repeat(2, 1fr); }
  .archive { grid-template-columns: repeat(2, 1fr); }
  .archive .newest { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .masthead { padding-top: calc(max(13px, env(safe-area-inset-top)) + 90px); }
}
