/* ==== PressTag shared brand stylesheet ====
   Pulled from the homepage so About / Legal / Migration / Docs pages
   stay pixel-consistent with the marketing site. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --ink-3: #6b6b6b;
  --ink-4: #9b9b9b;
  --paper: #fafaf7;
  --paper-2: #f2f2ed;
  --paper-3: #e8e8e0;
  --accent: #1a472a;
  --accent-light: #2d6a4f;
  --accent-bright: #52b788;
  --accent-glow: #b7e4c7;
  --red: #c0392b;
  --gold: #c9a84c;
  --border: rgba(10,10,10,0.1);
  --border-strong: rgba(10,10,10,0.2);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
  --r: 10px;
  --r-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow); }
.nav-logo { display:flex; align-items:center; text-decoration:none; }
.logo-full { height:46px; width:auto; display:block; }
.footer-brand .logo-full { height:44px; width:auto; }
.nav-links { display:flex; align-items:center; gap:2rem; list-style:none; margin:0; padding:0; }
.nav-links li { list-style:none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--ink-3); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: var(--r);
  font-size: 0.875rem; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; text-decoration: none; transition: all 0.2s; border: none;
}
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,71,42,0.3); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--r-lg); }

/* PAGE HEADER (inner pages, replaces full hero) */
.page-header {
  padding: 9rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-header-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(82,183,136,0.12) 0%, transparent 70%);
}
.page-header .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem; background: var(--accent-glow); color: var(--accent);
  border-radius: 100px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 1.5rem; border: 1px solid rgba(82,183,136,0.3); position: relative;
}
.page-header h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.1; letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 1.25rem; position: relative;
}
.page-header h1 em { font-style: italic; color: var(--accent-light); }
.page-header p {
  font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-3);
  max-width: 640px; margin: 0 auto; font-weight: 300; line-height: 1.7; position: relative;
}

section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }

.section-label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 1rem; }
.section-title { font-family: 'Instrument Serif', serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 1rem; }
.section-title em { font-style: italic; color: var(--accent-light); }
.section-sub { font-size: 1.05rem; color: var(--ink-3); max-width: 560px; line-height: 1.7; font-weight: 300; }

/* FOOTER */
footer { background: var(--ink); color: var(--paper); padding: 4rem 2rem 2rem; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-desc { font-size: 0.85rem; color: rgba(250,250,247,0.4); line-height: 1.7; font-weight: 300; margin-bottom: 1.5rem; }
.footer-col h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,250,247,0.3); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col ul a { font-size: 0.875rem; color: rgba(250,250,247,0.6); text-decoration: none; transition: color 0.2s; font-weight: 300; }
.footer-col ul a:hover { color: var(--paper); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: rgba(250,250,247,0.3); flex-wrap: wrap; gap: 0.75rem; }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  section { padding: 3.5rem 1rem; }
  .page-header { padding: 7rem 1rem 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
}