/* Creative Value Monitor — Updates section
   Shared styles for the Updates index and article pages.
   Palette and base treatment mirror the homepage (index.html). */

:root {
  --cream: #E8E8D1;
  --cream-2: #F3F0D8;
  --bluegrey: #7D99A5;
  --slate: #546285;
  --navy: #082546;
  --ink: #082546;
  --muted: rgba(8,37,70,.66);
  --line: rgba(8,37,70,.16);
  --line-strong: rgba(8,37,70,.34);
  --max: 920px;
  --measure: 700px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(125,153,165,.20), transparent 25%),
    radial-gradient(circle at 88% 30%, rgba(84,98,133,.10), transparent 32%),
    linear-gradient(180deg, #E8E8D1 0%, #F0EED6 52%, #E8E8D1 100%);
  background-attachment: fixed;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

::selection { background: var(--navy); color: var(--cream); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(8,37,70,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,37,70,.04) 1px, transparent 1px),
    radial-gradient(rgba(8,37,70,.12) .55px, transparent .55px);
  background-size: 48px 48px, 48px 48px, 6px 6px;
  mix-blend-mode: multiply;
}

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav (shared with homepage idiom) */
.nav {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 4px;
  width: 32px;
  flex: none;
}

.brand-mark i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  display: block;
}

.brand-mark i:nth-child(2), .brand-mark i:nth-child(5), .brand-mark i:nth-child(8) { background: var(--bluegrey); }
.brand-mark i:nth-child(3), .brand-mark i:nth-child(6) { background: var(--slate); }

.nav-link {
  display: inline-flex;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 13px;
  border: 1px solid var(--navy);
  background: rgba(232,232,209,.54);
  transition: background .2s ease, color .2s ease;
}

.nav-link:hover { background: var(--navy); color: var(--cream); }

/* Current section */
.nav-link.is-current {
  background: var(--navy);
  color: var(--cream);
}

/* Page shell */
.shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  flex: 1;
  padding: 40px 0 72px;
}

/* Back link */
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.back:hover { color: var(--navy); border-bottom-color: var(--line-strong); }
.back svg { width: 13px; height: 13px; flex: none; }

/* Section / page heads */
.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0;
}

.page-head {
  border-top: 1px solid var(--line-strong);
  padding-top: 34px;
  margin-top: 26px;
}

.page-head h1 {
  font-family: "Inter Tight", Inter, sans-serif;
  margin: 16px 0 0;
  font-weight: 600;
  letter-spacing: -.04em;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: .98;
  max-width: 820px;
  text-wrap: balance;
}

.page-head .lead {
  margin: 22px 0 0;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.4;
  color: rgba(8,37,70,.78);
  font-weight: 500;
  letter-spacing: -.012em;
  max-width: var(--measure);
  text-wrap: pretty;
}

/* ---------- Updates index list ---------- */
.entries {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.entry {
  display: block;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left .22s ease;
}

.entry:hover { padding-left: 10px; }

.entry-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  gap: 14px;
  align-items: center;
}

.entry-tag {
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  color: var(--navy);
}

.entry h2 {
  font-family: "Inter Tight", Inter, sans-serif;
  margin: 12px 0 0;
  font-weight: 600;
  letter-spacing: -.025em;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.08;
  max-width: 760px;
  text-wrap: balance;
}

.entry p {
  margin: 10px 0 0;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Article ---------- */
.article {
  margin-top: 38px;
  max-width: var(--measure);
}

.article > * { max-width: var(--measure); }

.article p {
  font-size: 18.5px;
  line-height: 1.62;
  margin: 0 0 24px;
  letter-spacing: -.006em;
  color: rgba(8,37,70,.9);
  text-wrap: pretty;
}

.article p.intro {
  font-size: clamp(20px, 2vw, 23px);
  line-height: 1.46;
  font-weight: 500;
  letter-spacing: -.014em;
  color: var(--ink);
  margin-bottom: 30px;
}

.article h2 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -.028em;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.1;
  margin: 46px 0 20px;
}

.article a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.article a:hover {
  color: var(--slate);
  border-bottom-color: var(--slate);
}

/* Editorial notes (italic asides) */
.article .note {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
  border-left: 2px solid var(--line-strong);
  padding-left: 18px;
  margin: 0 0 24px;
  font-style: italic;
}

.article .note a { border-bottom-color: var(--line); }

/* References */
.refs {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
  max-width: var(--measure);
}

.refs h2 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 20px;
  font-weight: 600;
}

.refs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ref;
}

.refs li {
  position: relative;
  padding: 0 0 14px 30px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  counter-increment: ref;
}

.refs li::before {
  content: counter(ref);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--slate);
}

.refs a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
  transition: color .18s ease, border-color .18s ease;
}

.refs a:hover { color: var(--navy); border-bottom-color: var(--line-strong); }

/* Footer (shared idiom) */
footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 38px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--slate);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

footer a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

footer a:hover { color: var(--navy); border-bottom-color: var(--line-strong); }

@media (max-width: 620px) {
  footer { flex-direction: column; gap: 8px; }
  .article p { font-size: 17.5px; }
}
