/* Shared public design: magazine structure, comfortable reading, quiet cards. */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300..900;1,300..900&family=Inter:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  --gr-ink: #142b40;
  --gr-paper: #f7f6f2;
  --gr-line: #e3e5e5;
  --gr-red: #a6192e;
  --gr-gold: #c79640;
}

*, *::before, *::after {
  border-radius: 0 !important;
}

body {
  background: var(--gr-paper);
  color: var(--gr-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: white;
  padding: 1rem;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.site-skip:focus { top: 1rem; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #be8d45;
  outline-offset: 4px;
}

body > header.bg-primary {
  background: var(--gr-ink);
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
  box-shadow: none;
  border-bottom: 4px solid #bb965a;
}
body > header aside {
  border-radius: 0;
  max-width: 440px;
  background: #ffffff08;
}
body > nav {
  box-shadow: 0 4px 18px #142b4010;
}
body > main {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
body > main h1, body > main h2, body > main h3 {
  font-family: 'Hanken Grotesk', sans-serif;
  text-wrap: balance;
}
body > main h2.border-t-2 {
  border-top-color: var(--gr-ink);
  letter-spacing: .08em;
  font-size: .85rem;
  padding-top: 1rem;
  font-weight: 850;
}

/* Premium Card Architecture */
.story-card {
  border-radius: 0;
  border: 1px solid #e2e8f0;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.story-card:hover {
  transform: translateY(-3px);
  border-color: var(--gr-red);
  box-shadow: 0 12px 24px -6px rgba(20, 43, 64, 0.12);
}
.story-card > a > div:first-child {
  position: relative;
}
.story-card > a > div:first-child:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--gr-gold);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.story-card:hover > a > div:first-child:after {
  width: 100%;
  background: var(--gr-red);
}
.story-card h3 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.story-card > a > div:last-child {
  padding: 1.35rem;
}
.story-card .text-gray-400 {
  color: #64748b;
}

.front-lead {
  border-radius: 0;
  box-shadow: 0 12px 28px #142b4018;
}
.front-lead h1 {
  font-family: 'Hanken Grotesk', sans-serif;
  letter-spacing: -0.03em;
}
.front-ticker {
  border-radius: 0;
}
.front-picks, .front-trending {
  background: white;
  border: 1px solid var(--gr-line);
  border-radius: 0;
  padding: 1.25rem;
}
.front-resources {
  border-radius: 0;
  background: #f1f3f0;
}
.front-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 1.6rem;
}
.front-intro p {
  color: #a6192e;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.front-intro h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.front-intro > span {
  max-width: 280px;
  font-size: .85rem;
  line-height: 1.65;
  color: #64748b;
}

body > main section.bg-white,
body > main form.bg-white,
body > main aside > section,
body > main input,
body > main textarea,
body > main select,
body > main button,
body > main a.inline-block {
  border-radius: 0 !important;
}

.article-body {
  overflow-wrap: anywhere;
  display: flow-root;
}
.article-body img {
  max-width: 100%;
  height: auto;
}
body > footer {
  border-top: 4px solid #bb965a;
}
body > main [class*="rounded"],
body > footer [class*="rounded"] {
  border-radius: 0 !important;
}
[data-menu-panel] {
  max-width: calc(100vw - 2rem);
}
[data-menu-panel] > div, [data-menu-panel] > form {
  border-radius: 0 !important;
}
.animate-marquee:focus-within {
  animation-play-state: paused;
}

/* ==========================================================================
   Editorial Cover Architecture (Cards without photos)
   Inspired by Swiss graphic design, typographic posters, and geometric grids
   ========================================================================== */
.story-visual {
  width: 100%;
  height: 100%;
  min-height: inherit;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}
.story-visual-image {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}
a:hover .story-visual-image {
  transform: scale(1.04);
}

.story-cover {
  --cover-bg: #0f1f2e;
  --cover-accent: #d4af37;
  --cover-ink: #ffffff;
  --cover-sub: #94a3b8;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  color: var(--cover-ink);
  background: var(--cover-bg);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.08), transparent 60%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s;
}

/* Category Tone Variations */
.tone-olive .story-cover {
  --cover-bg: #14261f;
  --cover-accent: #6ee7b7;
  --cover-sub: #a7f3d0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse at 80% 20%, rgba(110, 231, 183, 0.08), transparent 60%);
}
.tone-wine .story-cover {
  --cover-bg: #2d111a;
  --cover-accent: #f43f5e;
  --cover-sub: #fecdd3;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse at 80% 20%, rgba(244, 63, 94, 0.08), transparent 60%);
}
.tone-earth .story-cover {
  --cover-bg: #251a13;
  --cover-accent: #fbbf24;
  --cover-sub: #fde68a;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse at 80% 20%, rgba(251, 191, 36, 0.08), transparent 60%);
}

.story-cover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.story-cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cover-accent);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.55rem;
}
.story-cover-star {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.1rem;
  color: var(--cover-accent);
  line-height: 1;
}

.story-cover-body {
  margin: auto 0;
  padding: 0.5rem 0;
}
.story-cover-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cover-accent);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.story-cover-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 850;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.story-cover-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
  width: 100%;
}
.story-cover-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cover-sub);
}
.story-cover-read {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--cover-accent);
  transition: transform 0.2s;
}
a:hover .story-cover-read {
  transform: translateX(3px);
}

/* Hero Variant of the Editorial Cover */
.story-visual--hero {
  position: absolute;
  inset: 0;
}
.story-visual--hero .story-cover {
  padding: 2.5rem;
}
.story-visual--hero .story-cover-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
}
.story-visual--hero .story-cover-star {
  font-size: 1.8rem;
}
.story-visual--hero .story-cover-icon {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}
.story-visual--hero .story-cover-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

/* Reading Collection section */
.reading-collection {
  margin-top: 3.5rem;
  padding: 2rem;
  background: white;
  border: 1px solid var(--gr-line);
  border-top: 4px solid var(--gr-red);
}
.reading-collection header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.reading-collection header p {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: .7rem;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--gr-red);
  margin-bottom: .4rem;
}
.reading-collection h2 {
  font: 900 clamp(1.3rem, 2.6vw, 1.85rem)/1.25 'Hanken Grotesk', sans-serif;
  letter-spacing: -0.025em;
}
.reading-collection header > a {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: .8rem;
  font-weight: 800;
  color: var(--gr-red);
  white-space: nowrap;
}
.reading-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
.reading-item {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-top: 1px solid var(--gr-line);
  border-right: 1px solid var(--gr-line);
  transition: background 0.15s, border-color 0.15s;
}
.reading-item:nth-child(5n) {
  border-right: 0;
}
.reading-number {
  font: 900 1.6rem/1 'Hanken Grotesk', sans-serif;
  color: var(--gr-gold);
  margin-bottom: .65rem;
  letter-spacing: -0.03em;
}
.reading-item small {
  color: #37657f;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .62rem;
  font-weight: 800;
}
.reading-item h3 {
  font: 750 .92rem/1.45 'Hanken Grotesk', sans-serif;
  margin: .5rem 0 1rem;
  letter-spacing: -0.015em;
  color: #111827;
}
.reading-item:hover {
  background: #f7f6f2;
}
.reading-item:hover h3 {
  color: var(--gr-red);
}
.reading-item > span:last-child {
  margin-top: auto;
  color: #64748b;
  font-size: .7rem;
  font-weight: 600;
}

footer#newsletter a[aria-label] {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
footer#newsletter a[aria-label]:hover {
  background: var(--gr-red);
  color: #fff;
  border-color: var(--gr-red);
}
footer#newsletter .text-gray-500 {
  color: #94a3b8;
}

@media(max-width: 1023px) {
  .reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading-item:nth-child(5n) { border-right: 1px solid var(--gr-line); }
  .reading-item:nth-child(2n) { border-right: 0; }
}
@media(max-width: 520px) {
  .reading-collection { padding: 1rem; }
  .reading-collection header { align-items: flex-start; flex-direction: column; }
  .reading-item { padding: .85rem; }
}
@media(max-width: 640px) {
  body > header { padding-top: 1.7rem; padding-bottom: 1.7rem; }
  body > header aside { min-height: 70px; }
  .front-intro { align-items: flex-start; flex-direction: column; }
  .front-intro > span { max-width: none; }
  .front-picks, .front-trending { padding: 1rem; }
  .front-resources { border-radius: 0; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .animate-marquee { white-space: normal; flex-wrap: wrap; }
  .story-card:hover { transform: none; }
}

/* Image-free resources use locally served Lucide artwork. */
#subscription-modal > div { max-height:calc(100dvh - 2rem); overflow-y:auto; overscroll-behavior:contain; }
#subscription-modal #category-options { max-height:240px; overflow-y:auto; }
#subscription-close { min-width:44px; min-height:44px; top:0; right:0; background:white; }
.resource-art { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; background:#e8eff4; color:#254b67; overflow:hidden; }
.tone-olive .resource-art { background:#e6eee9; color:#355b4d; }
.tone-wine .resource-art { background:#f3e7ec; color:#893d56; }
.tone-earth .resource-art { background:#f3ede2; color:#78613b; }
.resource-art:after { content:''; position:absolute; width:65%; height:160%; right:-40%; top:-20%; border:1px solid currentColor; transform:rotate(24deg); opacity:.12; }
.resource-art-line { position:absolute; left:0; top:0; bottom:0; width:4px; background:currentColor; opacity:.55; }
.resource-art-icon { width:clamp(28px,4.5vw,60px); height:clamp(28px,4.5vw,60px); opacity:.7; }
.resource-art-label { max-width:85%; font-size:clamp(.6rem,.85vw,.78rem); text-align:center; text-transform:uppercase; letter-spacing:.1em; font-weight:750; line-height:1.4; }
.story-visual { container-type:inline-size; }
@container(max-width:150px) { .resource-art-label { display:none; } .resource-art-icon { width:30px; height:30px; } }
.story-visual--hero .resource-art { justify-content:flex-start; align-items:flex-start; padding:2rem; background:#25465b; color:#dce8ed; }
.story-visual--hero .resource-art-icon { filter:invert(1); width:64px; height:64px; opacity:.8; }
.story-visual--hero .resource-art-label { text-align:left; }
.front-ticker .animate-marquee { font-size:.9rem; }
.front-layout { align-items:stretch; }
.front-layout > div:nth-child(2) { display:flex; flex-direction:column; min-width:0; }
.front-layout .front-lead { flex:1; }
.front-trending > article { flex:1; }
.trending-thumbnail { isolation:isolate; padding:2px!important; }
.trending-thumbnail > .story-visual { z-index:0; }
.trending-thumbnail > .trending-rank { z-index:2; }
.reading-collection { background:#f4f1eb; border:0; border-top:3px solid #162d40; padding:1.5rem 0 0; }
.reading-collection header { padding:0 0 1.25rem; border-bottom:1px solid #d6d4ce; margin-bottom:1.5rem; }
.reading-collection h2 { font-size:clamp(1.5rem,2.5vw,2rem); line-height:1.15; }
.reading-grid { gap:1.25rem; border:0; }
.reading-item, .reading-item:nth-child(5n), .reading-item:nth-child(2n) { min-width:0; padding:0; border:1px solid var(--gr-ink); background:#fff; box-shadow:none; transition:border-color .2s; }
.reading-item:hover { transform:none; box-shadow:none; background:#ebe7de; }
.reading-item:focus-visible { outline:3px solid #a6192e; outline-offset:4px; }
.reading-image { position:relative; height:auto; aspect-ratio:4/3; overflow:hidden; }
.reading-image .resource-art { background:#e5e6df; color:#162d40; }
.reading-image .resource-art img { filter:none; opacity:.75; }
.reading-number { position:absolute; left:0; top:0; bottom:auto; background:#a6192e; color:white; padding:.4rem .65rem; margin:0; font-size:.8rem; z-index:1; }
.reading-copy { display:flex; flex-direction:column; flex:1; padding:1.1rem; border-top:1px solid var(--gr-line); }
.reading-copy small { color:#a6192e; font-size:.68rem; font-weight:750; letter-spacing:.08em; }
.reading-copy h3 { margin:.45rem 0 .75rem; font-size:1.1rem; line-height:1.3; letter-spacing:-.015em; }
.reading-deck { color:#52616b; font-size:.85rem; line-height:1.5; margin:0 0 1rem; }
.reading-copy > span { margin-top:auto; padding-top:.75rem; display:flex; justify-content:space-between; align-items:center; color:#52616b; font-size:.75rem; }
.reading-copy b { color:#a6192e; font-size:1.15rem; }
.watch-nav { display:flex; align-items:center; justify-content:center; gap:8px; padding:0 14px; background:#ffffff0a; border-inline:1px solid #ffffff15; font-size:12px; }
.watch-nav-play { display:grid; place-items:center; width:25px; height:25px; background:#bb965a; color:#142b40; font-size:10px; }
.watch-nav:hover { background:#315069; }
.watch-heading { background:#142b40; color:white; padding:2rem; border-left:5px solid #bb965a; margin-bottom:2rem; }
.watch-heading h1 { color:white; margin:.7rem 0; }
.watch-heading p { color:#c9d8e1; }
.watch-heading > div { color:#dcc89f; }
.video-player-frame { position:relative; aspect-ratio:16/9; background:#111; }
.video-player { position:absolute; inset:0; width:100%; height:100%; border:0; object-fit:contain; }
@media(max-width:1023px) { .front-trending > article { flex:initial; } .reading-grid { grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; } .reading-image { aspect-ratio:2/1; } .reading-item:last-child:nth-child(odd) { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; } }
@media(max-width:600px) {
  .reading-collection { padding:1.25rem 0 0; }
  .reading-collection header { gap:.75rem; margin-bottom:0; }
  .reading-grid { display:flex; flex-direction:column; gap:1rem; padding-top:1rem; }
  .reading-item { display:grid; grid-template-columns:minmax(0,1fr) 80px; align-items:start; gap:.85rem; padding:1rem!important; }
  .reading-image { grid-column:2; grid-row:1; width:80px; aspect-ratio:1; }
  .reading-copy { grid-column:1; grid-row:1; padding:0; border:0; }
  .reading-copy h3 { font-size:1.1rem; margin:.4rem 0; }
  .reading-copy > span { padding-top:.5rem; }
  .reading-deck { display:none; }
  .reading-number { padding:.2rem .4rem; font-size:.65rem; }
  .reading-item:last-child:nth-child(odd) { grid-template-columns:minmax(0,1fr) 80px; }
}

.social-links { display:flex; align-items:center; gap:.65rem; }
.social-link { display:inline-flex; align-items:center; justify-content:center; color:#fff; width:36px; height:36px; }
.social-links-header .social-link { width:28px; height:28px; }
.social-links-footer .social-link { border:1px solid #fff; }
.social-link:hover, .social-link:focus-visible { color:#fff; background:var(--gr-red); outline:2px solid #fff; outline-offset:2px; }
.social-icon { flex:none; display:block; }
.policy-page { max-width:760px; margin:auto; border:1px solid var(--gr-ink); padding:clamp(1.25rem,4vw,3rem); background:#fff; line-height:1.75; }
.policy-page header { border-bottom:3px solid var(--gr-red); margin-bottom:1.75rem; padding-bottom:1rem; }
.policy-page h1 { font-size:clamp(2rem,5vw,3rem); line-height:1.15; font-weight:800; }
.policy-page h2 { font-size:1.25rem; font-weight:750; margin:1.75rem 0 .5rem; }
.policy-page p { margin-bottom:1rem; }
.policy-eyebrow { color:var(--gr-red); font-size:.7rem; font-weight:750; text-transform:uppercase; letter-spacing:.1em; }
.policy-page a { color:var(--gr-red); text-decoration:underline; overflow-wrap:anywhere; }
.policy-page nav { display:flex; flex-wrap:wrap; gap:1rem; border-top:1px solid var(--gr-line); margin-top:2rem; padding-top:1rem; }
@media(max-width:640px) { .front-layout > div:nth-child(2) { order:-1; } .front-ticker > div:first-child { padding-inline:.65rem; font-size:.6rem; } .front-lead h1 { font-size:1.75rem; } .watch-heading { padding:1.5rem; } }
