@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap");

:root {
  --ink: #071a3d;
  --muted: #5d6a80;
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: #d8deea;
  --green: #c8102e;
  --mint: #edf2f9;
  --amber: #c8102e;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.shell-narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 20; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { min-height: 76px; padding: 0 max(20px, calc((100vw - 1160px)/2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: white; font-family: var(--serif); }
.main-nav { display: flex; gap: 2rem; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.menu-button { display: none; border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: .45rem .8rem; }

.hero { padding: 7rem 0 4.7rem; max-width: 970px; }
.eyebrow, .category { margin: 0 0 .75rem; color: var(--green); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(3rem, 7.5vw, 6.7rem); letter-spacing: -.045em; margin-bottom: 1.5rem; font-weight: 500; }
.hero-copy { max-width: 690px; color: var(--muted); font-size: 1.2rem; }
.featured { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 470px; background: var(--ink); color: white; }
.feature-visual, .article-hero {
  background:
    radial-gradient(circle at 70% 25%, #ffffff 0 7%, transparent 7.4%),
    linear-gradient(145deg, transparent 49%, #c8102e 49.5% 64%, transparent 64.5%),
    linear-gradient(35deg, #0d2b5d 0 25%, transparent 25.5%),
    linear-gradient(155deg, #ffffff 0 19%, #d82442 19.3% 39%, #19447e 39.3% 63%, #071a3d 63.3%);
}
.feature-copy { padding: clamp(2.5rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.feature-copy h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); margin-bottom: 1rem; }
.feature-copy h2 a, .article-card h3 a { text-decoration: none; }
.feature-copy h2 a:hover, .article-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.feature-copy > p:not(.category) { color: #dce4f1; }
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; color: #8c9ab2; font-size: .78rem; margin: .75rem 0 1.5rem; }
.text-link { color: inherit; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.latest { padding: 7rem 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section-heading h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 0; }
.search input { width: min(320px, 70vw); padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: inherit; }
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin: 2.4rem 0; }
.filter { padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; color: var(--muted); }
.filter:hover, .filter.active { border-color: var(--green); background: var(--green); color: white; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.article-card { background: var(--white); border: 1px solid var(--line); }
.card-image { aspect-ratio: 16/10; }
.image-technology { background: linear-gradient(135deg, #ffffff 0 45%, #19447e 45.5% 57%, #c8102e 57.5%); }
.image-culture { background: radial-gradient(circle at 68% 40%, #ffffff 0 10%, transparent 10.5%), linear-gradient(30deg, #071a3d 0 36%, #d82442 36.5% 60%, #e7ebf2 60.5%); }
.image-ideas { background: linear-gradient(120deg, #edf2f9 0 30%, #0d2b5d 30.5% 52%, #c8102e 52.5% 70%, #ffffff 70.5%); }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.75rem; margin-bottom: .75rem; }
.card-body > p:not(.category) { color: var(--muted); }
.no-results { padding: 2rem; text-align: center; color: var(--muted); }
.newsletter { background: var(--mint); padding: 5rem 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.newsletter h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: .5rem; }
.newsletter p { margin-bottom: 0; color: var(--muted); }
.subscribe-form { display: flex; }
.subscribe-form input { min-width: 260px; border: 1px solid #b8c2d3; border-radius: 4px 0 0 4px; padding: .9rem 1rem; font: inherit; }
.subscribe-form button { border: 0; border-radius: 0 4px 4px 0; background: var(--green); color: white; padding: .9rem 1.2rem; font-weight: 700; cursor: pointer; }
.site-footer { background: var(--ink); color: #c9d0cc; padding: 2.7rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; font-size: .82rem; }
.footer-brand { color: white; }

.article-header { padding: 7rem 0 4rem; text-align: center; }
.article-header h1 { font-size: clamp(3.2rem, 7vw, 6rem); }
.standfirst { font-family: var(--serif); color: var(--muted); font-size: 1.4rem; }
.byline { display: flex; justify-content: center; align-items: center; gap: .8rem; margin-top: 2rem; font-size: .85rem; text-align: left; }
.byline span { color: var(--muted); }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: .7rem; font-weight: 700; }
.avatar.large { width: 70px; height: 70px; flex: 0 0 70px; }
.article-hero { height: min(610px, 62vw); }
.article-layout { display: grid; grid-template-columns: 90px minmax(0, 720px); justify-content: center; gap: 3rem; padding-block: 5rem; }
.share { display: flex; flex-direction: column; align-items: center; gap: .7rem; color: var(--muted); font-size: .75rem; }
.share a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font-weight: 700; }
.prose { font-family: var(--serif); font-size: 1.25rem; line-height: 1.75; }
.prose h2 { font-size: 2.4rem; margin: 3rem 0 1rem; }
.prose blockquote { margin: 2.5rem 0; padding-left: 1.5rem; border-left: 4px solid var(--amber); color: var(--green); font-size: 1.75rem; line-height: 1.4; }
.drop-cap::first-letter { float: left; font-size: 4.2rem; line-height: .8; padding: .2rem .55rem 0 0; color: var(--green); }
.article-tags { display: flex; gap: .6rem; flex-wrap: wrap; margin: 3rem 0; }
.article-tags a { padding: .35rem .8rem; border-radius: 999px; background: var(--mint); font-family: var(--sans); font-size: .75rem; text-decoration: none; }
.author-box { display: flex; gap: 1.25rem; align-items: center; border-top: 1px solid var(--line); padding-top: 2rem; }
.author-box h3, .author-box p { margin: .15rem 0; }
.author-box p:last-child { color: var(--muted); font-size: 1rem; }

.page { padding-block: 7rem; min-height: 70vh; }
.page h1, .about-hero h1 { font-size: clamp(3.5rem, 7vw, 6rem); }
.page-intro, .about-hero p:last-child { max-width: 700px; color: var(--muted); font-size: 1.2rem; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.category-panel { min-height: 260px; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: transform .2s; }
.category-panel:hover { transform: translateY(-4px); }
.category-panel span { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; }
.category-panel strong { max-width: 420px; font-family: var(--serif); font-size: 2rem; line-height: 1.15; }
.technology-panel { background: #dce7f5; }.society-panel { background: var(--mint); }.culture-panel { background: #f8dce1; }.ideas-panel { background: #e7ebf2; }
.about-hero { background: var(--mint); padding: 8rem 0; }
.about-copy { padding-block: 5rem; }
.contact-box { margin-top: 4rem; padding: 2.5rem; background: white; border: 1px solid var(--line); }

@media (max-width: 800px) {
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 75px; padding: 1.2rem 20px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; gap: 1rem; }
  .main-nav.open { display: flex; }
  .hero { padding-top: 4.5rem; }
  .featured, .newsletter-inner { grid-template-columns: 1fr; }
  .feature-visual { min-height: 330px; }
  .article-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .article-layout { display: block; padding-block: 3.5rem; }
  .share { flex-direction: row; justify-content: center; margin-bottom: 2rem; }
  .category-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: start; }
}

@media (max-width: 520px) {
  h1 { font-size: 3.2rem; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input, .subscribe-form button { width: 100%; border-radius: 4px; }
  .subscribe-form button { margin-top: .5rem; }
  .prose { font-size: 1.1rem; }
}
