@import url("https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:wght@400;500&display=swap");

:root {
  --bg: #fcfcfc;
  --ink: #1a1a1a;
  --ink-muted: #6b6b6b;
  --ink-faint: #9a9a9a;
  --accent: #2c2c2c;
  --border: #e5e5e5;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  font-family: "Crimson Pro", Georgia, serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.page-header {
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}

.site-title:hover {
  color: var(--ink-muted);
}

.site-subtitle {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 1rem;
  font-style: italic;
}

.nav-link {
  display: inline-block;
  margin-top: 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--ink);
}

.card {
  background: transparent;
}

h1,
h2,
h3,
h4 {
  font-family: "Crimson Pro", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 2.4rem;
  line-height: 1.2;
}

h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

p {
  margin: 0 0 1.5rem;
  color: var(--ink);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

a:hover {
  text-decoration-color: var(--ink);
}

ul,
ol {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--ink);
}

li ul,
li ol {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--border);
  color: var(--ink-muted);
  font-style: italic;
}

blockquote p {
  color: var(--ink-muted);
}

code {
  font-family: "SF Mono", "Monaco", "Inconsolata", monospace;
  font-size: 0.9rem;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
}

pre {
  margin: 2rem 0;
  padding: 20px 24px;
  background: #f8f8f8;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow-x: auto;
}

pre code {
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

.highlight {
  color: #b45309;
  font-weight: 600;
}

/* Footer-style text */
p:last-child em {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  .page {
    padding: 48px 20px 80px;
  }

  .page-header {
    margin-bottom: 48px;
  }

  h1 {
    font-size: 2rem;
  }
}

/* Lightbox */
article img {
  cursor: zoom-in;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
  border-radius: 2px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
}

/* Print styles */
@media print {
  body {
    background: white;
  }

  .page {
    max-width: 100%;
    padding: 0;
  }

  .nav-link {
    display: none;
  }
}
