/* News Intelligence · resources
   Tokens are canonical, taken from the News Intelligence brand guide v1.1.
   Layout structure is ported from resources.polders.media.
   Do not restyle without the brand guide. */

:root {
  /* core palette */
  --graphite:    #2A2825;
  --graphite-lt: #4A4642;
  --graphite-xl: #6B6560;
  --rust:        #8F4E29;
  --rust-d:      #6B3A1F;
  --rust-xl:     #F5E4D4;
  --teal:        #5BA3B4;
  --amber:       #E8B864;
  --amber-l:     #F7E4B8;
  --bone:        #FCF8EE;
  --parch:       #F0E9DC;
  --parch-d:     #E8DFD1;

  /* rules */
  --ink-hair:   rgba(42,40,37,0.12);
  --ink-rule:   rgba(42,40,37,0.22);

  /* reversed text on graphite */
  --rev-strong: #FCF8EE;
  --rev-body:   #C9C3B8;
  --rev-muted:  #A79F94;

  /* type — Georgia + Verdana are non-negotiable per brand guide */
  --serif: Georgia, "Times New Roman", serif;
  --sans:  Verdana, Geneva, Tahoma, sans-serif;
  --mono:  "Courier New", Courier, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--parch);
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: 1040px; margin: 0 auto; padding: 0 30px; }

/* ---------- header ---------- */
.site-header {
  background: var(--graphite);
  border-bottom: 3px solid var(--rust);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { display: block; flex: none; }
.wordmark {
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: .005em;
  color: var(--rev-strong); line-height: 1;
}
.wordmark i { font-style: italic; color: var(--amber); }
.header-tag {
  font-family: var(--sans); font-size: .62rem; font-weight: bold;
  letter-spacing: .2em; text-transform: uppercase; color: var(--amber);
}

/* ---------- intro ---------- */
.intro { background: var(--graphite); color: var(--rev-strong); padding: 64px 0 70px; }
.eyebrow {
  font-family: var(--sans); font-size: .63rem; font-weight: bold;
  letter-spacing: .2em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 16px;
}
.intro h1 {
  font-family: var(--serif); font-weight: normal;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.15; margin-bottom: 20px; color: var(--rev-strong);
}
/* italic lead sentence — permitted italic role 3 */
.intro .lede {
  font-family: var(--serif); font-style: italic;
  max-width: 640px; color: var(--rev-body); font-size: 1.12rem; line-height: 1.55;
}
.intro .lede-sub {
  max-width: 640px; margin-top: 14px;
  color: var(--rev-muted); font-size: .82rem;
}

/* ---------- library ---------- */
.library { padding: 60px 0 8px; }
.resource-list { display: flex; flex-direction: column; gap: 36px; }

.resource {
  display: grid; grid-template-columns: 220px 1fr; gap: 36px;
  background: var(--bone);
  border: 1px solid var(--ink-hair);
  padding: 32px;
}
.resource-cover img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--ink-rule);
}
.resource-body { display: flex; flex-direction: column; }
.resource-heading {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  margin-bottom: 12px;
}
.resource-eyebrow {
  font-family: var(--sans); font-size: .62rem; font-weight: bold;
  letter-spacing: .18em; text-transform: uppercase; color: var(--rust);
  margin: 0;
}
/* NI badge — rectangular, per brand guide component set */
.language-badge {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: .6rem; font-weight: bold;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  color: var(--rust-d); background: var(--rust-xl);
  padding: 4px 9px;
}
.resource h2 {
  font-family: var(--serif); font-weight: normal; font-size: 1.5rem;
  line-height: 1.2; margin-bottom: 8px;
}
.resource .subtitle {
  font-family: var(--serif); color: var(--graphite-lt);
  margin-bottom: 14px; font-size: 1.02rem; line-height: 1.45;
}
.resource .desc { color: var(--graphite-lt); font-size: .87rem; max-width: 58ch; }
.resource-meta {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .04em;
  color: var(--graphite-xl); margin-top: 18px;
}
.resource-actions { margin-top: 20px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: bold; font-size: .8rem;
  padding: 11px 22px; border: 1px solid var(--rust);
  background: var(--rust); color: var(--bone);
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--rust-d); border-color: var(--rust-d); }

.text-link {
  color: var(--rust); font-weight: bold; text-decoration: none;
  border-bottom: 1px solid var(--ink-rule);
}
.text-link:hover { color: var(--rust-d); border-bottom-color: var(--rust); }

/* ---------- tools ---------- */
.tools { padding: 54px 0 70px; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.tools .eyebrow { color: var(--rust); }
.tool-card { border: 1px solid var(--ink-hair); background: var(--bone); padding: 26px; }
.tool-card h3 {
  font-family: var(--serif); font-weight: normal; font-size: 1.15rem;
  line-height: 1.25; margin-bottom: 10px;
}
.tool-card p { color: var(--graphite-lt); font-size: .85rem; margin-bottom: 12px; }
.tool-card p:last-child { margin-bottom: 0; }

.noscript-note { font-size: .87rem; color: var(--graphite-lt); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--graphite); color: var(--rev-muted);
  padding: 26px 0; font-size: .78rem;
  border-top: 3px solid var(--rust);
}
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer b { color: var(--rev-body); }
.site-footer .text-link { color: var(--amber); border-bottom-color: transparent; }
.site-footer .text-link i { font-style: italic; }
.site-footer .text-link:hover { color: var(--rev-strong); }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rust); outline-offset: 2px;
}
.site-header a:focus-visible, .site-footer a:focus-visible {
  outline-color: var(--amber);
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .resource { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .resource-cover { max-width: 200px; }
  .tool-row { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
  .header-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
