/* Dreluna Reporta — research-publication / academic-stone */

:root {
  --primary: #35413E;
  --accent: #8A6F3D;
  --bg: #F7F4EA;
  --text: #202421;
  --muted: #8C8371;
  --border: #D4CEC0;
  --white: #FDFCF8;

  --space-xs: 12px;
  --space-sm: 24px;
  --space-md: 36px;
  --space-lg: 48px;
  --space-xl: 72px;

  --radius: 1px;
  --container: 1140px;
  --serif: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  margin-top: 0;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: var(--space-xs); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-xs); }

.container {
  width: min(100% - var(--space-sm), var(--container));
  margin-inline: auto;
}

.page-main {
  padding-block: var(--space-lg);
}

/* —— Header: centered-logo + horizontal-underline nav —— */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  padding-block: var(--space-sm);
}

.site-header__inner {
  width: min(100% - var(--space-sm), var(--container));
  margin-inline: auto;
  text-align: center;
}

.site-logo {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}

.site-logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  margin-inline: auto var(--space-xs);
  position: absolute;
  right: var(--space-xs);
  top: var(--space-xs);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* —— Tags: bracket-label —— */

.tag {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.tag::before { content: '['; }
.tag::after { content: ']'; }

/* —— Buttons: text-link-only —— */

.text-link {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.text-link:hover { color: var(--primary); }

/* —— Hero: text-only-lead + featured-story —— */

.featured-story {
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.featured-story__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.featured-story h2 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  max-width: 18ch;
  margin-bottom: var(--space-sm);
}

.featured-story h2 a {
  color: inherit;
  text-decoration: none;
}

.featured-story h2 a:hover { color: var(--accent); }

.featured-story__lead {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary);
  max-width: 42rem;
  line-height: 1.55;
  margin-bottom: var(--space-sm);
}

.featured-story__excerpt {
  max-width: 38rem;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.byline {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.byline a { color: var(--primary); }

/* —— Research panels (bordered cards) —— */

.research-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.research-card {
  grid-column: span 4;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  background: var(--white);
}

.research-card--wide {
  grid-column: span 8;
}

.research-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.research-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* —— Feed: vertical-cards —— */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feed-card {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  background: var(--white);
}

.feed-card__thumb {
  grid-column: span 3;
}

.feed-card__thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feed-card__body {
  grid-column: span 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feed-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 6px;
}

.feed-card__date {
  font-size: 0.82rem;
  color: var(--muted);
}

.feed-card__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.feed-card__title a {
  color: var(--primary);
  text-decoration: none;
}

.feed-card__title a:hover { color: var(--accent); }

.feed-card__excerpt {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* —— Prose —— */

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: var(--space-md);
}

.prose blockquote {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  border-left: 3px solid var(--accent);
  margin: var(--space-sm) 0;
  padding: var(--space-xs) var(--space-sm);
  color: var(--primary);
}

.mt-section { margin-top: var(--space-lg); }

.page-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.page-header .lead {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  max-width: 38rem;
  margin: var(--space-xs) 0 0;
}

/* —— Article: pull-quote-led + sticky-toc + author-bio —— */

.article-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.article-main {
  grid-column: span 8;
}

.article-sidebar {
  grid-column: span 4;
  position: sticky;
  top: var(--space-sm);
}

.article-header {
  margin-bottom: var(--space-sm);
}

.article-header h1 {
  margin-bottom: var(--space-xs);
}

.article-updated {
  font-size: 0.85rem;
  color: var(--muted);
}

.pull-quote-lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
  border: none;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  padding: var(--space-sm) 0;
  margin: var(--space-sm) 0 var(--space-md);
  background: none;
}

.article-hero {
  margin: 0 0 var(--space-md);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-hero figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  background: var(--white);
  margin-bottom: var(--space-sm);
}

.toc h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.toc li { margin-bottom: 6px; }

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover,
.toc a.is-active {
  color: var(--accent);
  text-decoration: underline;
}

.author-bio {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  background: var(--white);
}

.author-bio__avatar {
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-xs);
}

.author-bio h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.author-bio__role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.author-bio p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.related-block {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.related-block h2 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

/* —— Articles listing —— */

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.article-list-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  background: var(--white);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-sm);
}

.article-list-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-list-item h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.article-list-item h2 a {
  color: var(--primary);
  text-decoration: none;
}

.article-list-item h2 a:hover { color: var(--accent); }

.note-item {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-sm);
  background: var(--white);
  margin-bottom: var(--space-sm);
}

.note-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

/* —— Contact —— */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
}

.contact-card {
  grid-column: span 4;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  background: var(--white);
}

.contact-card h2 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

/* —— Footer: editorial-masthead —— */

.site-footer {
  border-top: 3px double var(--border);
  background: var(--primary);
  color: var(--bg);
  padding-block: var(--space-lg);
  margin-top: var(--space-xl);
}

.site-footer a { color: var(--bg); }
.site-footer a:hover { color: #E8DFC8; }

.masthead {
  text-align: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(247, 244, 234, 0.2);
}

.masthead__name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.masthead__tagline {
  font-family: var(--sans);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 244, 234, 0.7);
  max-width: 32rem;
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-col {
  grid-column: span 3;
}

.footer-col h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 234, 0.55);
  margin-bottom: var(--space-xs);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 6px; }

.footer-col a {
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer__bottom {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(247, 244, 234, 0.55);
  margin: 0;
}

/* —— Cookie: inline-footer-note —— */

.cookie-note {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(247, 244, 234, 0.15);
  font-size: 0.82rem;
  color: rgba(247, 244, 234, 0.65);
  text-align: center;
}

.cookie-note.is-hidden { display: none; }

.cookie-note button {
  font-family: inherit;
  font-size: inherit;
  color: var(--bg);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* —— Responsive —— */

@media (max-width: 960px) {
  .research-card,
  .research-card--wide { grid-column: span 12; }

  .article-main,
  .article-sidebar { grid-column: span 12; }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .feed-card__thumb { grid-column: span 4; }
  .feed-card__body { grid-column: span 8; }

  .contact-card { grid-column: span 12; }
  .footer-col { grid-column: span 6; }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }

  .site-header__bar {
    flex-direction: column;
    align-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-top: var(--space-xs);
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .feed-card {
    grid-template-columns: 1fr;
  }

  .feed-card__thumb,
  .feed-card__body { grid-column: span 12; }

  .article-list-item {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .footer-col { grid-column: span 12; }
}
