/* ===========================================================
   SORSO VIEW — GLOBAL STYLESHEET
   All pages share this file. Update once, propagates everywhere.
   =========================================================== */

:root {
  color-scheme: light only;
}

html, body {
  background-color: #F5F2EB !important;
  color: #1A1D24 !important;
}

:root {
  --ink:          #1A1D24;
  --ink-soft:     #2D3340;
  --paper:        #F5F2EB;
  --paper-pure:   #FBFAF6;
  --rule:         #1A1D24;
  --rule-soft:    #C9C4B8;
  --accent:       #A8481A;
  --accent-soft:  #C99860;
  --data-pos:     #2E5D3F;
  --data-neg:     #8B2F2F;
  --muted:        #5A574E;

  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --serif:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', 'SF Mono', 'Menlo', monospace;

  --max-w: 1280px;
  --text-w: 680px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* Source Serif 4 optical sizing — display text at large optical, body at default */
.brand-name,
.footer-brand,
h1, h2, h3,
.headline,
.display {
  font-variation-settings: "opsz" 60;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ====== NAV ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink) !important;
}
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-name em { font-style: italic; color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--ink) !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent); }

/* ====== BUTTONS ====== */
.btn-primary {
  padding: 1rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary:hover { background: var(--accent); }

.btn-secondary {
  padding: 1rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  background: transparent;
  color: var(--ink) !important;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: all 0.2s;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover { background: var(--ink); color: var(--paper) !important; }

/* ====== FOOTER ====== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247, 245, 240, 0.15);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--paper);
}

.footer-brand em { font-style: italic; color: var(--accent-soft); }

.footer-tagline {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(247, 245, 240, 0.6);
  font-style: italic;
  max-width: 40ch;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.5);
  margin-bottom: 1.25rem;
}

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

.footer-col li { margin-bottom: 0.75rem; }

.footer-col a {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: rgba(247, 245, 240, 0.85) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent-soft) !important; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(247, 245, 240, 0.45);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
