/* ── Ravens of Odin — Editorial template ────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --t-bg: #faf8f4;
  --t-bg-subtle: #f0ece4;
  --t-text: #1c1917;
  --t-text-muted: #78716c;
  --t-border: #e7e0d5;
  --t-accent: #92400e;
  --t-nav-bg: #faf8f4;
  --t-nav-text: #1c1917;
  --t-nav-active: #92400e;
  --t-nav-padding: 0 1.5rem;
  --t-nav-justify: flex-start;
  --t-font-body: 'Lora', Georgia, serif;
  --t-font-ui: 'Inter', sans-serif;
  --t-font-size-base: 18px;
  --t-line-height: 1.75;
  --t-content-width: 700px;
  --story-pad: 1.5rem;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* Italic story title — editorial character */
.story-title {
  font-style: italic;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */

.rvns-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 0 1.5rem;
  height: 60px;
  background: var(--t-nav-bg);
  border-bottom: 1px solid var(--t-border);
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: var(--t-font-ui);
}

.rvns-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  height: 100%;
}

.rvns-nav-link:hover {
  color: var(--t-text);
}

.rvns-nav-link.active {
  color: var(--t-nav-active);
  border-bottom-color: var(--t-nav-active);
}

.rvns-nav-brand {
  margin-right: 12px;
}

.rvns-nav-site-name {
  font-family: var(--t-font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--t-text);
  letter-spacing: 0.02em;
}

.rvns-nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.rvns-nav-home {
  color: var(--t-text);
}

/* ── Editorial home page ─────────────────────────────────────────────────── */

body {
  background: var(--t-bg);
  color: var(--t-text);
  font-family: var(--t-font-body);
}

.rvns-editorial-home {
  min-height: 100vh;
}

/* Masthead */
.rvns-ed-masthead {
  text-align: center;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px) 0;
  border-bottom: 2px solid var(--t-text);
}

.rvns-ed-dateline {
  font-family: var(--t-font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-text-muted);
  margin: 0 auto;
  margin-bottom: 16px;
  text-align: center;
}

.rvns-ed-masthead-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  margin-bottom: 16px;
}

.rvns-ed-rule {
  flex: 1;
  display: block;
  height: 1px;
  background: var(--t-text);
  max-width: 120px;
}

.rvns-ed-site-name {
  font-family: var(--t-font-ui);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--t-text);
  margin: 0;
}

/* Feature story */
.rvns-ed-feature {
  border-bottom: 1px solid var(--t-border);
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px);
  max-width: 1300px;
  margin: 0 auto;
}

.rvns-ed-feature-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  text-decoration: none;
  color: var(--t-text);
}

.rvns-ed-feature-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--t-bg-subtle);
  transition: opacity 0.2s;
}

.rvns-ed-feature-link:hover .rvns-ed-feature-img {
  opacity: 0.9;
}

.rvns-ed-feature-body {
  padding: 8px 0;
}

.rvns-ed-kicker {
  font-family: var(--t-font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-accent);
  margin: 0 0 14px;
}

.rvns-ed-feature-title {
  font-family: var(--t-font-body);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--t-text);
  margin: 0 0 16px;
  transition: color 0.15s;
}

.rvns-ed-feature-link:hover .rvns-ed-feature-title {
  color: var(--t-accent);
}

.rvns-ed-feature-desc {
  font-family: var(--t-font-ui);
  font-size: 15px;
  line-height: 1.65;
  color: var(--t-text-muted);
  margin: 0 0 20px;
  max-width: 52ch;
}

.rvns-ed-feature-meta {
  font-family: var(--t-font-ui);
  font-size: 12px;
  color: var(--t-text-muted);
  margin: 0 0 20px;
  letter-spacing: 0.03em;
}

.rvns-ed-cta {
  font-family: var(--t-font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-accent);
  border-bottom: 1px solid var(--t-accent);
  padding-bottom: 1px;
}

/* Secondary featured row */
.rvns-ed-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--t-border);
  max-width: 1300px;
  margin: 0 auto;
}

.rvns-ed-secondary-card {
  display: block;
  text-decoration: none;
  color: var(--t-text);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 64px);
  border-right: 1px solid var(--t-border);
  transition: background 0.15s;
}

.rvns-ed-secondary-card:last-child {
  border-right: none;
}

.rvns-ed-secondary-card:hover {
  background: var(--t-bg-subtle);
}

.rvns-ed-secondary-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
  background-color: var(--t-bg-subtle);
  margin-bottom: 14px;
}

.rvns-ed-secondary-title {
  font-family: var(--t-font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--t-text);
}

.rvns-ed-secondary-date {
  font-family: var(--t-font-ui);
  font-size: 11px;
  color: var(--t-text-muted);
  margin: 0;
  letter-spacing: 0.03em;
}

/* Table of contents */
.rvns-ed-toc {
  max-width: 1300px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px);
}

.rvns-ed-toc-heading {
  font-family: var(--t-font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-text-muted);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--t-border);
}

.rvns-ed-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rvns-ed-toc-item {
  display: grid;
  grid-template-columns: 40px 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--t-border);
}

.rvns-ed-toc-thumb {
  width: 56px;
  height: 40px;
  background-size: cover;
  background-position: center;
  background-color: var(--t-bg-subtle);
  flex-shrink: 0;
}

.rvns-ed-toc-thumb--empty {
  background-color: var(--t-bg-subtle);
}

.rvns-ed-toc-item:last-child {
  border-bottom: none;
}

.rvns-ed-toc-num {
  font-family: var(--t-font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--t-text-muted);
  letter-spacing: 0.05em;
}

.rvns-ed-toc-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--t-text);
}

.rvns-ed-toc-link:hover .rvns-ed-toc-title {
  color: var(--t-accent);
}

.rvns-ed-toc-title {
  font-family: var(--t-font-body);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  transition: color 0.15s;
}

.rvns-ed-toc-desc {
  font-family: var(--t-font-ui);
  font-size: 13px;
  color: var(--t-text-muted);
  line-height: 1.5;
}

.rvns-ed-toc-date {
  font-family: var(--t-font-ui);
  font-size: 11px;
  color: var(--t-text-muted);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* Footer */
.rvns-ed-footer {
  text-align: center;
  padding: 32px;
  border-top: 2px solid var(--t-text);
  font-family: var(--t-font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-text-muted);
  margin-top: 0;
}

/* Empty state */
.rvns-ed-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  font-family: var(--t-font-ui);
  font-size: 15px;
  color: var(--t-text-muted);
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .rvns-ed-feature-link {
    grid-template-columns: 1fr;
  }

  .rvns-ed-secondary {
    grid-template-columns: 1fr;
  }

  .rvns-ed-secondary-card {
    border-right: none;
    border-bottom: 1px solid var(--t-border);
  }

  .rvns-ed-secondary-card:last-child {
    border-bottom: none;
  }

  .rvns-ed-toc-item {
    grid-template-columns: 32px 48px 1fr;
  }

  .rvns-ed-toc-thumb {
    width: 48px;
    height: 34px;
  }

  .rvns-ed-toc-date {
    display: none;
  }
}
/* ── .rvns-toc — auto-generated home content list ──────────────────────── */
/* Magazine table-of-contents feel: serif italic titles, hairline rules
 * between rows, accent-color on hover. Grid uses cream cards with a thin
 * border so the list feels like cuttings on a layout sheet. */
.rvns-toc {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.rvns-toc.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

.rvns-toc.grid figure {
  margin: 0;
  background: var(--t-bg-subtle);
  border: 1px solid var(--t-border);
  border-radius: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.rvns-toc.grid a {
  display: block;
  text-decoration: none;
  color: var(--t-text);
}

.rvns-toc.grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.rvns-toc.grid figcaption {
  position: static;
  background: transparent;
  color: var(--t-text);
  padding: 1rem 1.25rem 1.25rem;
  font-family: var(--t-font-body);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  transition: color 0.2s;
}

.rvns-toc.grid a:hover figcaption {
  color: var(--t-accent);
}

.rvns-toc.grid figure:hover,
.rvns-toc.grid figure:hover img {
  transform: none;
}

.rvns-toc.list {
  max-width: 760px;
}

.rvns-toc.list figure {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--t-border);
  border-radius: 0;
  padding: 1.5rem 0;
  margin: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.75rem;
  align-items: center;
  min-height: 0;
}

.rvns-toc.list img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.rvns-toc.list figcaption {
  color: var(--t-text);
  font-family: var(--t-font-body);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  background: transparent;
  position: static;
  padding: 0;
  text-align: left;
}

.rvns-toc.list a {
  text-decoration: none;
}

.rvns-toc.list a:hover figcaption {
  color: var(--t-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rvns-toc.masonry {
  columns: 3 240px;
  column-gap: 1.5rem;
}

.rvns-toc.masonry figure {
  break-inside: avoid;
  margin: 0 0 1.5rem;
  background: var(--t-bg-subtle);
  border: 1px solid var(--t-border);
  border-radius: 0;
}

.rvns-toc.masonry img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.rvns-toc.masonry figcaption {
  background: transparent;
  position: static;
  color: var(--t-text);
  font-family: var(--t-font-body);
  font-style: italic;
  padding: 0.85rem 1rem 1rem;
  text-align: left;
}
