/* Hackcove — design system
   Fonts: Space Grotesk (display) + Inter (body)
   Palette: cove-dark greens + teal accent, warm off-white paper */
:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #16201d;
  --ink-2: #55625d;
  --line: #e4e8e3;
  --cove-950: #081713;
  --cove-900: #0b201b;
  --cove-800: #123029;
  --accent: #0b7d67;        /* teal for light backgrounds (AA) */
  --accent-bright: #2be4c2; /* teal for dark backgrounds */
  --accent-tint: #e8f6f1;
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(11, 32, 27, .05), 0 4px 14px rgba(11, 32, 27, .06);
  --shadow-2: 0 2px 4px rgba(11, 32, 27, .08), 0 14px 34px rgba(11, 32, 27, .12);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  background: var(--cove-900);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.logo-word {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em;
}
.logo-word em { font-style: normal; color: var(--accent-bright); }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: rgba(255,255,255,.72); font-size: 14px; font-weight: 500; letter-spacing: .02em;
  transition: color .15s ease-out;
}
.site-nav a:hover { color: var(--accent-bright); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(43,228,194,.14), transparent 62%),
    radial-gradient(700px 380px at -8% 108%, rgba(43,228,194,.07), transparent 60%),
    var(--cove-900);
  color: #fff;
  padding: 84px 0 92px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43,228,194,.5), transparent);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-bright); margin: 0 0 18px;
}
.hero-kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent-bright); }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.05; margin: 0 0 20px; max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero p { color: rgba(255,255,255,.72); font-size: 18.5px; max-width: 54ch; margin: 0; }

/* ---------- section headings ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 6px 16px;
  margin: 72px 0 28px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: 26px; margin: 0;
}
.section-head span { color: var(--ink-2); font-size: 14px; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; padding-bottom: 88px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card a.card-link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card a.card-link:hover { text-decoration: none; }
.card-cover { aspect-ratio: 21 / 9; background: var(--cove-900); }
.card-cover svg { width: 100%; height: 100%; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint);
  padding: 4px 10px; border-radius: 999px;
}
.card h3 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em;
  font-size: 19.5px; line-height: 1.28; margin: 2px 0 0;
}
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.card-meta { margin-top: auto; padding-top: 14px; color: var(--ink-2); font-size: 13px; }

.card.featured { grid-column: span 2; flex-direction: row; }
.card.featured .card-cover { aspect-ratio: auto; flex: 1.15; min-height: 320px; }
.card.featured a.card-link { flex-direction: row; width: 100%; }
.card.featured .card-body { flex: 1; padding: 40px 44px; justify-content: center; }
.card.featured h3 { font-size: clamp(24px, 2.6vw, 32px); }
.card.featured p { font-size: 16px; }

/* ---------- about strip ---------- */
.about-strip {
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.about-strip .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-strip h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: 28px; margin: 0 0 14px;
}
.about-strip p { color: var(--ink-2); margin: 0 0 12px; }
.about-points { display: grid; gap: 14px; }
.about-points li {
  list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-size: 15px; display: flex; gap: 12px; align-items: baseline;
}
.about-points { margin: 0; padding: 0; }
.about-points li::before { content: "→"; color: var(--accent); font-weight: 700; }

/* ---------- article page ---------- */
.article-hero { background: var(--cove-900); color: #fff; padding: 64px 0 56px; }
.article-hero .tag { background: rgba(43,228,194,.12); color: var(--accent-bright); }
.article-hero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; margin: 18px 0 16px; max-width: 22ch;
}
.article-hero .standfirst { color: rgba(255,255,255,.72); font-size: 18px; max-width: 58ch; margin: 0 0 22px; }
.article-hero .byline { color: rgba(255,255,255,.5); font-size: 13.5px; }
.article-hero .byline strong { color: rgba(255,255,255,.8); font-weight: 600; }

.article-body { max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; }
.article-body p { margin: 0 0 22px; color: #222c29; }
.article-body h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: 25px; line-height: 1.25; margin: 44px 0 16px;
}
.article-body h3 { font-family: var(--font-display); font-size: 19px; margin: 32px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 26px; }
.article-body li { margin-bottom: 9px; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--ink); }

.cta-box {
  background: linear-gradient(135deg, var(--accent-tint), #f2fbf8);
  border: 1px solid #cdeae0; border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 24px 26px; margin: 36px 0;
}
.cta-box .cta-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}
.cta-box p { margin: 0; font-size: 15.5px; color: #2a3835; }
.cta-box a { font-weight: 600; }

.more-strip { border-top: 1px solid var(--line); padding: 48px 0 80px; }
.more-strip h2 { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; margin: 0 0 22px; }
.more-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 0; padding: 0; }
.more-list li { list-style: none; }
.more-list a {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; color: var(--ink); font-weight: 600; font-size: 15.5px; line-height: 1.4;
  font-family: var(--font-display); letter-spacing: -.01em;
  transition: border-color .15s ease-out, transform .15s ease-out;
}
.more-list a:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.more-list a span { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-2); font-size: 13px; margin-top: 6px; letter-spacing: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--cove-950); color: rgba(255,255,255,.65); padding: 56px 0 40px; font-size: 14.5px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; }
.site-footer .logo-word { font-size: 19px; }
.site-footer p { max-width: 46ch; line-height: 1.6; margin: 14px 0 0; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a { color: rgba(255,255,255,.65); }
.footer-links a:hover { color: var(--accent-bright); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px;
  font-size: 12.5px; color: rgba(255,255,255,.38);
}
.site-footer .wrap.footer-bottom { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .card.featured { flex-direction: column; }
  .card.featured a.card-link { flex-direction: column; }
  .card.featured .card-cover { min-height: 220px; aspect-ratio: 16/9; }
  .about-strip .wrap, .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .card.featured { grid-column: span 1; }
  .hero { padding: 60px 0 68px; }
  .site-nav { display: none; }
  .more-list { grid-template-columns: 1fr; }
  .card.featured .card-body { padding: 26px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
