/* Synthesis Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f5f2;
  --bg-soft: #f1efea;
  --surface: #fcfbf8;
  --surface-2: #f3f1ec;
  --surface-3: #e9e5de;
  --border: #d8d2c8;
  --border-soft: #e6e1d8;
  --text: #2f312d;
  --text-soft: #5f625d;
  --text-faint: #8a8d87;
  --heading: #232522;
  --accent-navy: #334155;
  --accent-teal: #5f7c80;
  --accent-amber: #b88a52;
  --accent-plum: #6b5b6e;
  --link: var(--accent-navy);
  --link-hover: #223042;
  --success: #6d8372;
  --warning: #b88a52;
  --danger: #9b6a63;
  --shadow-sm: 0 1px 2px rgba(35,37,34,0.04);
  --shadow-md: 0 8px 24px rgba(35,37,34,0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, monospace;
}

html { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

h1,h2,h3,h4,h5,h6 {
  margin: 0 0 0.6em;
  color: var(--heading);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 3vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; color: var(--text-soft); }
small, .muted { color: var(--text-faint); }
a { color: var(--link); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* ── Site Header ── */
.site-header {
  background: rgba(252,251,248,0.92);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--heading); }
.brand-logo { height: 32px; width: auto; display: block; filter: drop-shadow(0 0 30px rgba(252,251,248,0.6)); }
.brand-name { font-size: 1.05rem; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--text-soft); font-weight: 500; font-size: 0.9rem; }
.nav a:hover, .nav a.active { color: var(--heading); text-decoration: none; }

/* ── Surfaces ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.section {
  background: transparent;
  border-top: 1px solid var(--border-soft);
  padding: 28px 0;
}

/* ── Buttons ── */
.button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: inline-block;
}
.button:hover { background: var(--surface-2); border-color: #c8c1b7; text-decoration: none; }
.button-primary { background: var(--accent-navy); color: #f8f7f4; border-color: var(--accent-navy); }
.button-primary:hover { background: #2b3848; border-color: #2b3848; color: #f8f7f4; }

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); }
th { background: var(--surface-2); color: var(--heading); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }

/* ── Tags ── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: #ebe7df; border: 1px solid #ddd6cb;
  color: var(--text-soft); font-size: 0.8rem; font-weight: 600;
}
.tag-navy { background: rgba(51,65,85,0.08); color: var(--accent-navy); border-color: rgba(51,65,85,0.14); }
.tag-amber { background: rgba(184,138,82,0.12); color: #8f693f; border-color: rgba(184,138,82,0.18); }
.tag-teal { background: rgba(95,124,128,0.12); color: #4f686b; border-color: rgba(95,124,128,0.18); }

/* ── Alerts ── */
.alert { border-radius: var(--radius-md); padding: 14px 16px; border: 1px solid var(--border); background: var(--surface); font-size: 0.875rem; }
.alert-info { border-color: rgba(51,65,85,0.16); background: rgba(51,65,85,0.05); color: var(--accent-navy); }
.alert-warning { border-color: rgba(184,138,82,0.18); background: rgba(184,138,82,0.08); color: #8f693f; }

/* ── Dividers ── */
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 24px 0; }
.accent-rule {
  height: 2px; border: 0;
  background: linear-gradient(90deg, var(--accent-amber) 0%, var(--accent-teal) 50%, var(--accent-plum) 100%);
  opacity: 0.45;
}

/* ── Code ── */
code, pre { font-family: var(--font-mono); }
code { background: #efebe4; color: #4c5049; padding: 0.15em 0.4em; border-radius: 6px; font-size: 0.875em; }
pre { background: #f0ede7; color: #3e413c; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; overflow: auto; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 24px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* ── Selection ── */
::selection { background: rgba(95,124,128,0.18); color: var(--heading); }
