/* ============================================================
   Neumorphism (Soft UI) — Base / Surface / Typography / Focus
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.625;
  font-size: var(--text-base);
  padding: 20px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
}
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--accent-foreground); }

/* --- focus states: 2px accent ring, 2px offset (mandatory) --- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- scrollbar (soft, flat) --- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--background); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb { background: rgb(163,177,198,0.7); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: rgb(163,177,198,0.9); }

/* --- layout shell: extruded, very round --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--background);
  border-radius: var(--radius-container);
  box-shadow: var(--shadow-extruded);
  overflow: hidden;
  position: relative;
}

.header {
  background: var(--background);
  color: var(--foreground);
  padding: 26px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-container) var(--radius-container) 0 0;
}

.header h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  text-align: center;
  flex-grow: 1;
  letter-spacing: -0.02em;
}

.header-right-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

#saveStatus {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--background);
  color: var(--muted-foreground);
  box-shadow: var(--shadow-inset-sm);
}
#saveStatus.unsaved { color: var(--warning-color); }
#saveStatus.saving { color: var(--accent); }
#saveStatus.saved { color: var(--success-color); }

/* --- primary navigation: extruded pills, active = inset --- */
.main-nav {
  padding: 14px 24px;
  background: var(--background);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-btn {
  background: var(--background);
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  cursor: pointer;
  box-shadow: var(--shadow-extruded-sm);
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
}
.nav-btn:hover {
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-extruded-hover);
}
.nav-btn.active {
  color: var(--accent);
  box-shadow: var(--shadow-inset-sm);
  transform: translateY(0.5px);
}

/* --- view switching --- */
.view-container { display: block; }
.view-container.hidden { display: none; }

.placeholder {
  text-align: center;
  padding: 50px 32px;
  color: var(--muted-foreground);
  font-size: var(--text-lg);
  font-style: italic;
}

.section-info { padding: 22px 28px; }
.divider { margin: 18px 0; border: none; height: 1px; background: rgb(163,177,198,0.35); border-radius: var(--radius-full); }
