/* AI Impacts Reports Hub — styles */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1a1d23;
  --ink-soft: #4a4f57;
  --ink-faint: #767b84;
  --accent: #0f6e7d;       /* deep teal */
  --accent-dark: #0a525d;
  --accent-soft: #e3f0f1;
  --line: #e4e2da;
  --shadow: 0 1px 2px rgba(20, 24, 31, .04), 0 8px 24px rgba(20, 24, 31, .06);
  --shadow-lift: 0 4px 10px rgba(20, 24, 31, .08), 0 18px 40px rgba(20, 24, 31, .12);
  --radius: 14px;
  --maxw: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, .85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nav { display: flex; gap: 22px; font-size: .92rem; }
.nav a { color: var(--ink-soft); font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav a.ext { color: var(--accent); font-weight: 600; }
.nav a.ext:hover { color: var(--accent-dark); }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(900px 360px at 78% -10%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, #fbfaf7, var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  max-width: 16ch;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.section-head p { margin: 0; color: var(--ink-faint); max-width: 60ch; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #d4d1c7;
}
.card .thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--accent-soft);
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 999px; align-self: flex-start;
}
.card h3 { font-size: 1.12rem; margin: 2px 0 0; letter-spacing: -.01em; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card .go { font-weight: 600; font-size: .92rem; margin-top: 6px; }
.card .go::after { content: " →"; transition: margin .15s ease; }
.card:hover .go::after { margin-left: 4px; }

/* ---------- Featured ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.featured .media { background: var(--accent-soft); min-height: 280px; }
.featured .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured .content { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.featured .tag {
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); align-self: flex-start;
}
.featured h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; letter-spacing: -.015em; }
.featured p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; max-width: 48ch; }
@media (max-width: 820px) { .featured { grid-template-columns: 1fr; } .featured .media { min-height: 200px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  align-self: flex-start;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Survey list ---------- */
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 980px) { .docs { grid-template-columns: 1fr; } }
.doc {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.doc:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d4d1c7; }
.doc .ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: .72rem; letter-spacing: .04em;
}
.doc .meta { flex: 1; min-width: 0; }
.doc .meta .t { font-weight: 600; color: var(--ink); }
.doc .meta .s { font-size: .85rem; color: var(--ink-faint); }
.doc .actions { display: flex; gap: 8px; flex: 0 0 auto; }
.doc .actions a {
  font-size: .85rem; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); background: #fff;
}
.doc .actions a.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.doc .actions a:hover { border-color: var(--accent); color: var(--accent); }
.doc .actions a.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.doc.pending { opacity: .72; }
.doc.pending:hover { box-shadow: none; transform: none; border-color: var(--line); }
.doc.pending .ico { background: var(--line); color: var(--ink-faint); }
.doc .actions .soon { font-size: .85rem; font-weight: 600; color: var(--ink-faint); padding: 7px 2px; white-space: nowrap; }
@media (max-width: 560px) {
  .doc { align-items: flex-start; flex-wrap: wrap; }
  .doc .actions {
    flex: 1 0 100%;
    flex-wrap: wrap;
    padding-left: 60px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fbfaf7;
  padding: 40px 0;
  color: var(--ink-faint);
  font-size: .9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); font-weight: 500; }
.site-footer a:hover { color: var(--accent); }
