@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --gold:       #C7A24F;
    --gold-light: #D9B76A;
    --cream:      #FAF9F6;
    --panel:      #F4F2EC;
    --navy:       #0F1419;
    --ink:        #33373D;   /* body text */
    --muted:      #6B7178;
    --rule:       #E2DED4;

    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          Helvetica, Arial, sans-serif;
    
    --measure: 44rem;
    --pad: clamp(1.25rem, 5vw, 3rem);
    
    --shadow-gold-md: 0 8px 24px rgba(199, 162, 79, 0.3);
    --shadow-gold-xl: 0 24px 64px rgba(199, 162, 79, 0.5);
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


.site-bar {
  background: var(--navy);
  color: var(--cream);
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--gold);
}
.site-bar .brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.005em;
}

.site-bar .tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B7BBC0;
}

/* ---- Page shell ------------------------------------------------------- */
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 4.5rem;
}

/* ---- Header ----------------------------------------------------------- */
.doc-head {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.25rem;
}
h1 {
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ---- Lede ------------------------------------------------------------- */
.lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--navy);
  margin: 0 0 2.5rem;
}

/* ---- Sections --------------------------------------------------------- */
section { margin-bottom: 2.25rem; }

h2 {
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

p { margin: 0 0 1rem; }
section p:last-child { margin-bottom: 0; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.15s ease;
}
a:hover { color: #000; }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Contact panel ---------------------------------------------------- */
.contact {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.1rem 1.4rem;
  margin-top: 0.75rem;
  font-weight: 500;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition-smooth);
  text-decoration: none;
}
.btn-primary-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: white;
  box-shadow: var(--shadow-gold-md);
}
.btn-primary-cta:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold-xl);
  color: white;
  text-decoration: none;
}

/* ---- Footer ----------------------------------------------------------- */
.site-foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem var(--pad) 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  text-align: center;
}
.site-foot .brand { 
    color: var(--navy); 
    font-weight: 600; 
}

/* ---- RTL support ------------------------------------------------------ */
[dir="rtl"] .site-bar .tag { 
    margin-left: 0; 
    margin-right: auto; 
}
[dir="rtl"] h2 .mark { 
    margin-right: 0; 
    margin-left: 0.4rem; 
}

/* ---- Accessibility ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
