/* IkigAI Skills — Base CSS v3 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
  --ink:        #1c1a14;
  --ink-soft:   #2e2b20;
  --ink-faint:  #4a4738;
  --gold:       #b8973a;
  --gold-lt:    #d4b96a;
  --gold-pale:  #f5edda;
  --gold-wash:  #faf6ed;
  --moss:       #3d5c3a;
  --moss-pale:  #e8f0e7;
  --washi:      #fdfaf4;
  --border:     rgba(28,26,20,0.10);
  --border-md:  rgba(28,26,20,0.18);
  --muted:      #7a7565;
  --alert:      #c0392b;
  --alert-bg:   #fef3f2;
  --success:    #2d7a4f;
  --r:          10px;
  --r-lg:       16px;
  --r-xl:       24px;
  --font-d:     'Cormorant Garamond', Georgia, serif;
  --font-b:     'DM Sans', sans-serif;
  --shadow:     0 2px 16px rgba(28,26,20,0.06);
  --shadow-md:  0 4px 24px rgba(28,26,20,0.10);
  --nav-h:      57px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: var(--font-b);
  background: var(--washi);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-d); font-weight: 300; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p  { line-height: 1.7; font-weight: 300; }
em { font-style: italic; color: var(--gold); }

/* ── Nav ────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(253,250,244,0.97);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
}
.nav-logo {
  font-family: var(--font-d);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo .ai { color: var(--gold); font-style: italic; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-badge {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-md);
  padding: 3px 10px;
  border-radius: 50px;
}

/* ── Section labels ─────────────────────────────────────────────── */
.kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}
.kicker::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
}

/* ── Utility ────────────────────────────────────────────────────── */
.hidden   { display: none !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-muted { color: var(--muted); }
.text-gold  { color: var(--gold); }
.text-moss  { color: var(--moss); }

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse   { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.fade-in { animation: fadeIn 0.35s ease forwards; }

.spinner {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(184,151,58,.25);
  border-top-color: var(--gold);
  animation: spin 1.4s linear infinite;
  margin: 0 auto;
}

/* ── Scrollbar personalizzata ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 3px; }

/* ── Mobile base ────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .nav { padding: 0.9rem 1.25rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}
