/*
 * Revluma updates (/updates): the public build log.
 * Deliberately plain: white page, black ink, one blue (#2563eb, the
 * dashboard's active-nav blue) for links, dates and the few accents.
 */
:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #2e2e2e;
  --muted: #6b6b6b;
  --line: #e7e7e7;
  --wash: #f6f6f6;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.up-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.up-header__inner { max-width: 1040px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.up-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: 'Schibsted Grotesk', 'Instrument Sans', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.up-brand:hover { color: var(--ink); }
.up-brand img { width: 26px; height: 26px; }
.up-nav { display: flex; align-items: center; gap: 4px; }
.up-nav a { padding: 7px 12px; border-radius: 999px; color: var(--ink-soft); font-size: 14px; font-weight: 600; text-decoration: none; }
.up-nav a:hover { background: var(--wash); color: var(--ink); }
.up-nav a[aria-current="page"] { color: var(--ink); background: var(--wash); }
.up-nav .up-nav__cta { margin-left: 6px; background: var(--ink); color: #fff; }
.up-nav .up-nav__cta:hover { background: #262626; color: #fff; }
@media (max-width: 520px) { .up-nav .up-nav__optional { display: none; } }

/* Layout */
.up-main { max-width: 1040px; margin: 0 auto; padding: 56px 24px 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 920px) { .up-main { grid-template-columns: minmax(0, 680px) 272px; justify-content: space-between; } }

/* Intro */
.up-eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.up-title { margin: 0; font-family: 'Schibsted Grotesk', 'Instrument Sans', sans-serif; font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; }
.up-lede { margin: 16px 0 0; max-width: 60ch; color: var(--ink-soft); font-size: 1.08rem; }

/* Days and entries */
.up-day { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.up-day__date { margin: 0 0 4px; color: var(--muted); font-size: 14px; font-weight: 600; }
.up-entry { margin-top: 22px; scroll-margin-top: 84px; }
.up-entry + .up-entry { margin-top: 34px; }
.up-entry__title { margin: 0; font-family: 'Schibsted Grotesk', 'Instrument Sans', sans-serif; font-size: 1.32rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; }
.up-entry__title a { color: inherit; text-decoration: none; }
.up-entry__title a:hover { text-decoration: underline; text-decoration-color: var(--blue); }
.up-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; padding: 0; list-style: none; }
.up-tags li { padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.up-tags li.is-blue { border-color: #c7d7fb; color: var(--blue-deep); background: #f3f7ff; }
.up-entry p { margin: 0 0 12px; color: var(--ink-soft); }
.up-entry ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-soft); }
.up-entry li { margin: 4px 0; }
.up-entry strong { color: var(--ink); }

/* Side rail */
.up-rail__inner { display: grid; gap: 16px; }
@media (min-width: 920px) { .up-rail__inner { position: sticky; top: 92px; } }
.up-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.up-card h2 { margin: 0 0 8px; font-family: 'Schibsted Grotesk', 'Instrument Sans', sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.up-card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 14.5px; }
.up-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.up-card li a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.up-card li a span { color: var(--muted); font-weight: 500; font-size: 13px; }
.up-card li a:hover { text-decoration: underline; }
.up-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.up-btn:hover { background: #262626; color: #fff; }

/* Footer */
.up-footer { border-top: 1px solid var(--line); }
.up-footer__inner { max-width: 1040px; margin: 0 auto; padding: 28px 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.up-footer a { color: var(--ink-soft); text-decoration: none; }
.up-footer a:hover { color: var(--ink); text-decoration: underline; }
.up-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
