/*
Theme Name: envtori-prime
Author: envtori-sys
Version: 1.10.4
Description: envtori
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

html {scroll-behavior: smooth;}
html, body {overflow-x:hidden;}
a {display: inline-block; text-align: center;}

:root {
  --bg: #f6f5f0;
  --bg-alt: #edece6;
  --text: #1c1c1e;
  --text-muted: #6b6b6f;
  --accent: #c0392b;
  --accent-light: rgba(192,57,43,0.08);
  --border: #d5d4ce;
  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'IBM Plex Sans', sans-serif;
  --max-w: 1120px;
  --radius: 2px;
}

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 2rem;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover { color: var(--accent); }

.site-nav { display: flex; gap: 1.8rem; align-items: center; }

.site-nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.breadcrumbs {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: 0 2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  text-align: left;
  display: inline;
}

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

.breadcrumbs span { margin: 0 0.4rem; opacity: 0.5; }

.hero-img {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 2rem;
}

.hero-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(20%) contrast(1.05);
}

.article-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3.5rem;
  align-items: start;
}

.article-main { min-width: 0; }

.article-title {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.article-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 2.8rem 0 1rem;
  color: var(--text);
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.article-body h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.article-body p { margin-bottom: 1.4rem; }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-light);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
}

.data-point {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.data-point .number {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.data-point .label {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.movement-card {
  background: var(--bg-alt);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.movement-card:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--accent);
}

.movement-card .mv-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.movement-card .mv-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sidebar {
  position: sticky;
  top: 5rem;
}

.sidebar-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

.sidebar-box h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}

.stat-row:last-child { border-bottom: none; }

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--accent);
}

.read-also {
  background: var(--bg-alt);
  padding: 2.5rem;
  margin: 3rem 0;
  border-radius: var(--radius);
}

.read-also h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.read-also-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.read-also-card {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.read-also-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.read-also-card .ra-cat {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.read-also-card .ra-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.subscribe-section {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  padding: 3rem 2rem;
}

.subscribe-inner {
  background: var(--text);
  color: var(--bg);
  padding: 3rem;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.subscribe-inner h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.subscribe-inner p {
  font-size: 0.9rem;
  color: #a0a0a0;
}

.subscribe-form {
  display: flex;
  gap: 0.8rem;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: 1px solid #444;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-form input[type="email"]:focus { border-color: var(--accent); }

.subscribe-form button {
  padding: 0.9rem 1.8rem;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.subscribe-form button:hover { opacity: 0.85; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.6;
  text-align: right;
}

/* Legal pages */
.legal-page {
  max-width: 780px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
}

.legal-page h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-page .legal-updated {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.legal-page p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

/* Success page */
.success-page {
  max-width: 600px;
  margin: 8rem auto;
  padding: 0 2rem;
  text-align: center;
}

.success-page h1 {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.success-page p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.btn-home {
  padding: 1rem 2.5rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.btn-home:hover { opacity: 0.8; }

/* 404 */
.page-404 {
  max-width: 600px;
  margin: 8rem auto;
  padding: 0 2rem;
  text-align: center;
}

.page-404 .err-code {
  font-family: var(--mono);
  font-size: 8rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.page-404 h1 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text);
  color: var(--bg);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  max-width: 380px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  font-size: 0.85rem;
  line-height: 1.6;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-modal p { margin-bottom: 1rem; }

.cookie-modal a { color: var(--accent); display: inline; text-align: left; }

.cookie-btns { display: flex; gap: 0.6rem; }

.cookie-btns button {
  padding: 0.6rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.cookie-accept { background: var(--accent); color: #fff; }
.cookie-decline { background: #444; color: #ccc; }

.cookie-btns button:hover { opacity: 0.8; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-main { animation: fadeIn 0.6s ease; }
.sidebar { animation: fadeIn 0.6s ease 0.15s both; }

/* Responsive */
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar { position: static; }
  .read-also-grid { grid-template-columns: 1fr; }
  .subscribe-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-disclaimer { text-align: left; max-width: 100%; }
  .article-title { font-size: 2rem; }
  .hero-img img { height: 260px; }
  .header-inner { flex-direction: column; gap: 0.8rem; }
}

@media (max-width: 540px) {
  .subscribe-form { flex-direction: column; }
  .cookie-modal { left: 1rem; right: 1rem; max-width: none; }
}
