/* ------------------------------------------------
   thephotonbooth.com — astrophotography blog
   ------------------------------------------------ */

:root {
  --bg:           #080a12;
  --bg-surface:   #0e111c;
  --bg-elevated:  #12162a;
  --text:         #a8aebb;
  --text-bright:  #e4e6ef;
  --text-muted:   #6b7288;
  --accent:       #d4a574;
  --accent-hover: #e4b888;
  --accent-soft:  rgba(212, 165, 116, 0.15);
  --border:       #1a1d32;
  --code-bg:      #141828;
  --max-width:    680px;
  --font-heading: "Cormorant", Georgia, serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset --- */

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

/* --- Base --- */

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(26, 32, 58, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 100%, rgba(20, 24, 48, 0.3) 0%, transparent 40%),
    var(--bg);
  pointer-events: none;
  z-index: -1;
}

/* --- Container --- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */

.site-header {
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

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

.site-title .dot {
  color: var(--accent);
  font-weight: 700;
}

.site-header nav {
  display: flex;
  gap: 1.75rem;
}

.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--accent);
}

/* --- Main --- */

main {
  flex: 1;
  padding: 3rem 0 4rem;
}

/* --- Home: Post list --- */

.post-list {
  list-style: none;
}

.post-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s ease;
}

.post-list li:first-child {
  padding-top: 0;
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list time {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-list a {
  text-decoration: none;
}

.post-list h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
  line-height: 1.3;
}

.post-list a:hover h2 {
  color: var(--accent);
}

.post-list p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
}

/* --- Hero (home intro) --- */

.hero {
  margin-bottom: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 540px;
  line-height: 1.7;
}

/* --- Article --- */

.post-header {
  margin-bottom: 2.75rem;
}

.post-header time {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* --- Post content --- */

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 2.75rem 0 0.9rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-content h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 2.25rem 0 0.65rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(201, 151, 94, 0.35);
  transition: text-decoration-color 0.15s;
}

.post-content a:hover {
  text-decoration-color: var(--accent);
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.25rem 1.25rem;
}

.post-content li {
  margin-bottom: 0.35rem;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.35rem 0 0.35rem 1.35rem;
  margin: 1.75rem 0;
  color: var(--text);
  font-style: italic;
  background: var(--accent-soft);
  border-radius: 0 6px 6px 0;
}

.post-content code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.post-content pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.55;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.75rem 0;
  border: 1px solid var(--border);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* --- Divider --- */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0 2rem;
}

/* --- Comments --- */

.comments h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 1.25rem;
}

.utterances {
  max-width: 100% !important;
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* --- About page --- */

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.page-content p {
  margin-bottom: 1.25rem;
}

/* --- Responsive --- */

@media (max-width: 600px) {
  html { font-size: 16px; }

  .site-header .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-title { font-size: 1.2rem; }

  .hero h1 { font-size: 1.75rem; }
  .post-header h1 { font-size: 1.55rem; }
  .post-list h2 { font-size: 1.2rem; }

  main { padding: 2rem 0 3rem; }
}
