:root {
  --bg: #0d0d10;
  --surface: #17171c;
  --border: #2a2a32;
  --text: #ececec;
  --muted: #9a9aa2;
  /* --accent is injected per-site in head.html (site.Params.accent) */
  --max: 860px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.9rem 1.5rem;
  background: rgba(13, 13, 16, .95);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand img { height: 48px; width: auto; display: block; }
.brand-text {
  font-family: "Oswald", sans-serif; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: .1em; font-size: 1.15rem;
}
.brand-text:hover { color: var(--accent); text-decoration: none; }
.site-nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--text); font-family: "Oswald", sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em; font-size: .9rem;
  padding: .5rem .9rem; border-radius: 6px; border: 1px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); border-color: var(--border); text-decoration: none; }

/* Hero */
/* main + hero flex so a hero photo shrinks to whatever space is left,
   keeping a single-page site on one screen at any viewport height. */
main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.hero {
  flex: 0 1 auto; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem 1.25rem;
}
.hero-title {
  font-family: "Oswald", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(2rem, 6vw, 3.25rem);
}
.tagline { color: var(--muted); max-width: 44ch; margin: 1rem auto 0; font-size: 1.1rem; }

/* Optional hero photo (site.Params.hero_image), centered under the tagline.
   max-height is in vh so the whole page stays within one screen (no scroll)
   on a single-page/placeholder site. */
.hero-image {
  display: block;
  margin: 1.5rem auto 0;
  max-width: min(460px, 86%);
  /* Keep a single-page site on one screen: cap the photo against the height
     of everything around it (header + title + tagline + footer ≈ 500px). */
  max-height: calc(100vh - 500px);
  flex: 0 1 auto;
  min-height: 0;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-block; margin-top: 1.75rem; background: var(--accent); color: #fff;
  font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: .8rem 1.8rem; border-radius: 6px;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }

/* Prose / content */
.prose { max-width: var(--max); margin: 0 auto; }
.prose h1, .prose h2, .prose h3 { font-family: "Oswald", sans-serif; font-weight: 700; line-height: 1.2; }
.page-title, .prose h1 { font-size: 2.1rem; margin-bottom: 1rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; color: var(--accent); }
.prose h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.prose p { margin: 0 0 1rem; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }
.prose li { margin: .3rem 0; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose strong { color: #fff; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }

/* Post list */
.post-list { list-style: none; margin-left: 0; }
.post-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--border);
}

/* Footer */
.site-footer {
  margin-top: auto; text-align: center; color: var(--muted);
  padding: 2.5rem 1.25rem; border-top: 1px solid var(--border); font-size: .9rem;
}
.footer-name { font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; color: var(--text); letter-spacing: .06em; }
.site-footer p { margin: .2rem 0; }
.copy { margin-top: .75rem; font-size: .8rem; }

@media (max-width: 560px) {
  .site-header { justify-content: center; }
}
