/* Cozmos Blog — Exact match to cozmos.io */

/* Fonts: Syne (display/headings) + Inter (body) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  /* Cozmos Gold Palette (oklch converted to hex approximations) */
  --cozmos-gold-100: #ede0c4;
  --cozmos-gold-200: #ccb07a;
  --cozmos-gold-300: #c6a76d;
  --cozmos-gold-400: #a88450;
  --cozmos-gold-500: #866c46;
  --cozmos-gold-600: #6b553a;

  /* Rolex Green */
  --rolex-green-light: #3d9a6e;
  --rolex-green: #1e7a4e;
  --rolex-green-dark: #0f5a36;

  /* Core colors from globals.css */
  --background: #131313;       /* oklch(0.09 0 0) */
  --foreground: #ede0c4;       /* oklch(0.93 0.02 85) */
  --card: #1c1c1c;             /* oklch(0.12 0 0) */
  --muted: #242424;            /* oklch(0.15 0 0) */
  --muted-foreground: #866c46; /* oklch(0.58 0.07 80) */
  --primary: #c6a76d;          /* oklch(0.78 0.08 85) */
  --border: #866c46;           /* oklch(0.58 0.07 80) */

  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 0.625rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  font-size: 16px;
  font-feature-settings: "rlig" 1, "calt" 1;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cozmos-gold-200); }

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Header ─── */
.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
  padding: 1.2rem 0;
  background: linear-gradient(
    90deg,
    var(--background) 0%,
    color-mix(in srgb, var(--cozmos-gold-300) 8%, var(--background)) 50%,
    var(--background) 100%
  );
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-decoration: none;
}
.logo img {
  height: 28px;
  width: auto;
}
.site-header nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--primary); }

/* ─── Hero ─── */
.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
  margin-bottom: 2rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--cozmos-gold-300) 0%, var(--cozmos-gold-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.6;
}

/* ─── Post Cards (Index) ─── */
.post-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 20%, transparent);
  transition: all 0.3s ease;
}
.post-card:hover {
  padding-left: 0.5rem;
}
.post-card time {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.3rem 0 0.4rem;
}
.post-card h2 a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}
.post-card h2 a:hover { color: var(--primary); }
.post-card > p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

/* ─── Tags ─── */
.post-tags { margin-top: 0.5rem; }
.tag {
  display: inline-block;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-right: 0.4rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Single Post ─── */
.post-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
  margin-bottom: 2rem;
}
.post-header time {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.post-header h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.5rem 0;
  color: var(--foreground);
}
.post-description {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ─── Post Content ─── */
.post-content {
  padding-bottom: 2rem;
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
  color: var(--foreground);
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.5rem;
  color: var(--foreground);
}
.post-content p {
  margin-bottom: 1.2rem;
  color: var(--foreground);
  line-height: 1.75;
}
.post-content strong {
  color: var(--primary);
  font-weight: 600;
}
.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent);
}
.post-content a:hover {
  text-decoration-color: var(--primary);
}
.post-content ul, .post-content ol {
  margin: 0 0 1.2rem 1.5rem;
}
.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted-foreground);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content code {
  background: var(--card);
  color: var(--primary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.post-content pre {
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: var(--foreground);
}
.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid color-mix(in srgb, var(--border) 20%, transparent);
}
.post-content hr {
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
  margin: 2rem 0;
}

/* ─── Post Footer ─── */
.post-footer {
  padding: 2rem 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
}
.post-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.post-footer a:hover { color: var(--cozmos-gold-200); }

/* ─── Site Footer ─── */
.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}
.site-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.6rem; }
  .post-header h1 { font-size: 1.6rem; }
  .container { padding: 0 1rem; }
  .site-header .container { flex-wrap: wrap; gap: 0.5rem; }
}
