:root {
  --primary: #0d9488;
  --primary-dark: #115e59;
  --primary-light: #ccfbf1;
  --accent: #f59e0b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-body: #ffffff;
  --bg-subtle: #f8fafc;
  --border: #e2e8f0;

  --nav-height: 70px;
  --container-width: 1000px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-title {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Nav */
nav a {
  margin-left: 8px;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Main Content */
main {
  min-height: calc(100vh - var(--nav-height) - 100px);
  padding: 60px 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-top: 0.5em;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.5em;
  color: #475569;
  font-size: 1.05rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
}

.hero-section {
  text-align: center;
  padding: 20px 0;
  background: radial-gradient(circle at 50% 50%, var(--bg-subtle) 0%, #fff 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  border: 1px solid var(--border);
}

/* Code Blocks */
pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 2em 0;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* "Mac" dots for code blocks */
pre::before {
  content: " ";
  display: block;
  position: absolute;
  top: 15px;
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-subtle);
  color: var(--primary-dark);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  display: block;
  margin-top: 15px;
  /* Space for the dots */
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--bg-subtle);
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent);
  margin: 2em 0;
  padding: 1em 2em;
  background: #fffbeb;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-main);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0;
  background: var(--bg-subtle);
  text-align: center;
  color: var(--text-muted);
}