/* SRAC Resources — distinct design system
   Palette and typography mirrors design mockup at
   private/social-rights-resources-page/. Self-contained:
   does not import or share styles with the main site. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,500;0,600;1,400;1,500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --r-ink: #0e2628;
  --r-ink-soft: #3a4448;
  --r-muted: #6c7479;
  --r-teal: #1f5b5e;
  --r-teal-deep: #144449;
  --r-terra: #9c2c1a;
  --r-brass: #c4a679;
  --r-bg: #efe9d8;
  --r-paper: #fbf7e9;
  --r-paper-glass: rgba(251, 247, 233, 0.92);
  --r-rule: #cdc5ad;
  --r-rule-soft: #dcd4ba;

  --r-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --r-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --r-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-shadow: 0 8px 24px rgba(14, 38, 40, 0.18);
  --r-shadow-strong: 0 8px 24px rgba(14, 38, 40, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--r-sans);
  font-size: 15px;
  color: var(--r-ink);
  background: var(--r-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------- Layout primitives ---------- */
.r-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.r-hero-bleed {
  position: relative;
  overflow: hidden;
}

.r-hero-bleed__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/seascape.jpg');
  background-size: cover;
  background-position: center;
}

.r-hero-bleed__bg--band {
  background-position: center 45%;
}

.r-hero-bleed__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 38, 40, 0.35) 0%, rgba(14, 38, 40, 0.25) 50%, rgba(14, 38, 40, 0.55) 100%);
}

.r-hero-bleed__veil--strong {
  background: linear-gradient(180deg, rgba(14, 38, 40, 0.45) 0%, rgba(14, 38, 40, 0.55) 100%);
}

.r-hero-bleed__veil--deep {
  background: linear-gradient(180deg, rgba(14, 38, 40, 0.45) 0%, rgba(14, 38, 40, 0.6) 100%);
}

.r-hero-bleed__content {
  position: relative;
}

/* ---------- Header ---------- */
.r-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.r-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: #fff;
}

.r-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.r-brand__name {
  font-family: var(--r-serif);
  font-size: 16px;
  font-weight: 500;
}

.r-mark {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.r-nav {
  display: flex;
  gap: 26px;
  flex: 1;
  justify-content: center;
}

.r-nav a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 400;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: color 120ms ease, border-color 120ms ease;
}

.r-nav a:hover {
  color: #fff;
}

.r-nav a.is-active {
  color: #fff;
  font-weight: 600;
  border-bottom-color: #fff;
}

.r-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 12px;
  border-radius: 6px;
  width: 240px;
  flex-shrink: 0;
}

.r-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}

.r-search input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Hero text ---------- */
.r-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 28px;
  color: #fff;
}

.r-hero--compact {
  padding: 40px 32px 16px;
}

.r-hero--band {
  padding: 40px 32px 36px;
}

.r-eyebrow {
  font-family: var(--r-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.r-hero__title {
  font-family: var(--r-serif);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.05;
}

.r-hero__title--md {
  font-size: 44px;
  margin: 8px 0 0;
}

.r-hero__title--italic {
  font-style: italic;
  font-weight: 500;
  margin: 8px 0 0;
  font-size: 46px;
  line-height: 1.15;
}

.r-hero__lede {
  font-family: var(--r-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 14px 0 0;
  max-width: 720px;
  opacity: 0.92;
  line-height: 1.4;
}

.r-hero__sublede {
  font-size: 16px;
  margin: 8px 0 0;
  opacity: 0.88;
  max-width: 720px;
  line-height: 1.5;
}

.r-hero__sublede--lg {
  font-size: 17px;
  margin: 10px 0 0;
  opacity: 0.9;
  max-width: 760px;
}

/* ---------- Rooms grid (home) ---------- */
.r-rooms {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px 64px;
}

.r-rooms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.r-room {
  background: var(--r-paper-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 22px;
  color: var(--r-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--r-shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.r-room:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(14, 38, 40, 0.24);
}

.r-room__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.r-room__num {
  font-family: var(--r-mono);
  font-size: 11px;
  color: var(--r-teal);
  letter-spacing: 0.08em;
}

.r-room__count {
  font-family: var(--r-mono);
  font-size: 11px;
  color: var(--r-muted);
}

.r-room__title {
  font-family: var(--r-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.r-room__desc {
  font-size: 13px;
  color: #3a4448;
  line-height: 1.5;
  margin: 0;
}

.r-room__samples {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.r-room__samples li {
  font-size: 13px;
  color: #3a4448;
}

.r-room__cta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 91, 94, 0.18);
  font-size: 12px;
  color: var(--r-teal);
  font-family: var(--r-mono);
}

/* ---------- Filters ---------- */
.r-filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px 4px;
}

.r-filters--paper {
  max-width: none;
  margin: 0 0 20px;
  padding: 0;
}

.r-filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.r-filter-row__label {
  font-family: var(--r-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-width: 56px;
}

.r-filter-row--bleed .r-filter-row__label {
  color: rgba(255, 255, 255, 0.65);
}

.r-filter-row--paper .r-filter-row__label {
  color: var(--r-muted);
}

.r-chip {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: inherit;
  background: transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.r-chip--bleed {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.r-chip--bleed.is-active {
  background: #fff;
  color: var(--r-ink);
  border-color: #fff;
}

.r-chip--paper {
  border-color: var(--r-rule);
  background: var(--r-paper);
  color: var(--r-ink-soft);
}

.r-chip--paper.is-active {
  background: var(--r-teal);
  color: #fff;
  border-color: var(--r-teal);
}

/* ---------- Cases (paper variant) ---------- */
.r-paper-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

.r-paper-lede {
  font-family: var(--r-serif);
  font-size: 19px;
  color: var(--r-ink-soft);
  margin: 0 0 24px;
  max-width: 760px;
  line-height: 1.5;
}

.r-list-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--r-rule);
  font-family: var(--r-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-muted);
}

.r-case-row {
  display: grid;
  grid-template-columns: 80px 1fr 220px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--r-rule-soft);
  color: var(--r-ink);
  text-decoration: none;
  align-items: baseline;
}

.r-case-row:last-child { border-bottom: none; }

.r-case-row__year {
  font-family: var(--r-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--r-teal);
  line-height: 1;
}

.r-case-row__court {
  font-family: var(--r-mono);
  font-size: 11px;
  color: var(--r-muted);
  margin-top: 4px;
}

.r-case-row__name {
  font-family: var(--r-serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.r-case-row__excerpt {
  font-size: 14px;
  color: var(--r-ink-soft);
  margin-top: 8px;
  line-height: 1.55;
  max-width: 680px;
}

.r-case-row__meta {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--r-muted);
  font-family: var(--r-mono);
  letter-spacing: 0.04em;
}

.r-case-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.r-tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 500;
}

.r-tag--counsel {
  background: rgba(156, 44, 26, 0.1);
  color: var(--r-terra);
}

.r-tag--intervener {
  background: rgba(31, 91, 94, 0.12);
  color: var(--r-teal);
}

.r-tag--cited {
  background: rgba(108, 116, 121, 0.1);
  color: var(--r-muted);
}

.r-read-link {
  font-size: 12px;
  color: var(--r-teal);
  font-family: var(--r-mono);
  text-decoration: none;
}

/* ---------- Case detail ---------- */
.r-detail-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 64px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
}

.r-article {
  font-family: var(--r-serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--r-ink-soft);
  max-width: 700px;
}

.r-article__lede {
  font-size: 22px;
  line-height: 1.55;
  color: var(--r-ink);
  margin-top: 0;
}

.r-article h2 {
  font-family: var(--r-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--r-ink);
  margin: 32px 0 8px;
  letter-spacing: -0.01em;
}

.r-article h2 + p {
  margin-top: 0;
}

.r-article p { margin: 0 0 1em; }
.r-article em { font-style: italic; }

.r-aside {
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.r-card {
  background: var(--r-paper);
  border: 1px solid var(--r-rule);
  padding: 22px;
}

.r-card__label {
  font-family: var(--r-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-muted);
  margin-bottom: 14px;
}

.r-kv {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--r-rule-soft);
  font-size: 13px;
}

.r-kv:first-of-type { border-top: none; }

.r-kv__k {
  color: var(--r-muted);
  font-family: var(--r-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.r-kv__v { color: var(--r-ink); }

.r-dl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--r-rule-soft);
  color: var(--r-ink);
  text-decoration: none;
}

.r-dl:first-of-type { border-top: none; }

.r-dl__title {
  font-family: var(--r-serif);
  font-size: 15px;
}

.r-dl__meta {
  font-family: var(--r-mono);
  font-size: 11px;
  color: var(--r-muted);
}

.r-rel {
  display: block;
  padding: 8px 0;
  border-top: 1px solid var(--r-rule-soft);
  font-family: var(--r-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--r-teal);
  text-decoration: none;
}

.r-rel:first-of-type { border-top: none; }

/* ---------- Toolkit ---------- */
.r-featured-section {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 32px;
}

.r-featured {
  background: var(--r-paper);
  border: 1px solid var(--r-rule);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.r-featured__tag {
  font-family: var(--r-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-terra);
}

.r-featured__title {
  font-family: var(--r-serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 8px 0 12px;
  line-height: 1.15;
}

.r-featured__desc {
  font-size: 15px;
  color: var(--r-ink-soft);
  line-height: 1.6;
  margin: 0;
}

.r-featured__cta {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--r-teal);
  font-family: var(--r-mono);
  text-decoration: none;
}

.r-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.r-toc li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--r-rule-soft);
  font-family: var(--r-serif);
  font-size: 16px;
}

.r-toc li:last-child { border-bottom: none; }

.r-toc__time {
  font-family: var(--r-mono);
  font-size: 11px;
  color: var(--r-muted);
  align-self: center;
}

.r-chapters-section {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 32px 64px;
}

.r-chapters-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.r-chapters-head h3 {
  font-family: var(--r-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.r-chapters-head__count {
  font-family: var(--r-mono);
  font-size: 11px;
  color: var(--r-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.r-chapters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.r-chapter {
  background: var(--r-paper);
  border: 1px solid var(--r-rule);
  padding: 24px;
  color: var(--r-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.r-chapter:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(14, 38, 40, 0.1);
  border-color: var(--r-teal);
}

.r-chapter__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.r-chapter__num {
  font-family: var(--r-mono);
  font-size: 11px;
  color: var(--r-teal);
  letter-spacing: 0.08em;
}

.r-chapter__count {
  font-family: var(--r-mono);
  font-size: 11px;
  color: var(--r-muted);
}

.r-chapter__title {
  font-family: var(--r-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.r-chapter__desc {
  font-size: 14px;
  color: var(--r-ink-soft);
  line-height: 1.55;
  margin: 0;
}

.r-chapter__cta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--r-rule-soft);
  font-size: 12px;
  color: var(--r-teal);
  font-family: var(--r-mono);
}

/* ---------- Cases card list (home variant) ---------- */
.r-cases-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px 64px;
}

.r-cases-card__inner {
  background: var(--r-paper-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--r-shadow-strong);
}

.r-cases-card__head {
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(31, 91, 94, 0.18);
  font-family: var(--r-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-muted);
}

/* ---------- Footer ---------- */
.r-footer {
  margin-top: 0;
  padding: 36px 0 48px;
  background: transparent;
  color: var(--r-ink-soft);
  font-size: 13px;
}

.r-footer--paper {
  background: var(--r-paper);
  border-top: 1px solid var(--r-rule);
}

.r-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.r-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--r-serif);
  font-size: 14px;
  color: var(--r-ink);
  text-decoration: none;
}

.r-footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.r-footer__links a {
  color: var(--r-ink-soft);
  text-decoration: none;
  font-size: 13px;
}

.r-footer__links a:hover { color: var(--r-teal); }

.r-footer__meta {
  font-family: var(--r-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .r-rooms__grid,
  .r-chapters {
    grid-template-columns: repeat(2, 1fr);
  }
  .r-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .r-aside { position: static; }
  .r-featured {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .r-container,
  .r-header__inner,
  .r-hero,
  .r-rooms,
  .r-paper-section,
  .r-detail-grid,
  .r-featured-section,
  .r-chapters-section,
  .r-footer__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .r-header__inner {
    flex-wrap: wrap;
  }

  .r-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 18px;
  }

  .r-search {
    width: 200px;
  }

  .r-hero__title { font-size: 38px; }
  .r-hero__title--md { font-size: 32px; }
  .r-hero__title--italic { font-size: 32px; }
  .r-hero__lede { font-size: 18px; }

  .r-rooms__grid,
  .r-chapters {
    grid-template-columns: 1fr;
  }

  .r-case-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .r-case-row__side {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .r-cases-card__inner { overflow-x: auto; }

  .r-featured { padding: 24px; }
  .r-featured__title { font-size: 26px; }

  .r-article { font-size: 17px; }
  .r-article__lede { font-size: 19px; }
}
