/*
File Name: style.css
Relative Path: blog/src/assets/style.css
Purpose: Style the responsive StormTome development journal.
Detailed Overview: Shared dark surfaces, gold accents, editorial typography, article
layout, visible focus states, and mobile rules support reading without JavaScript.
*/
:root { color-scheme: dark; --bg: #101820; --text: #e9edf0; --muted: #abb7c2; --gold: #eac078; --line: #35414c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.7 system-ui, sans-serif; }
a { color: var(--gold); text-underline-offset: .24em; }
a:hover { color: #fff0cd; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.7rem; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--text); font: bold 1.75rem Georgia, serif; text-decoration: none; }
.wordmark span { color: var(--gold); }
nav { display: flex; gap: 1.5rem; font-size: .9375rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current] { color: var(--gold); text-decoration: underline; }
.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2.5rem; padding-block: 4rem; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: .8125rem; font-weight: 650; margin: 0 0 1.2rem; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: normal; line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 0 0 1.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
p { margin-block: 0 1.2rem; }
.muted, time, .post-row p { color: var(--muted); }
.hero-art { display: block; width: 100%; height: auto; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.section-heading a { font-size: .9375rem; }
.post-row { display: grid; grid-template-columns: 12rem 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.post-row time { font-size: .9375rem; padding-top: .2rem; }
.post-row h2, .post-row h3 { margin: 0 0 .65rem; font-size: 1.7rem; }
.post-row h2 a, .post-row h3 a { color: var(--text); text-decoration: none; }
.post-row a:hover { color: var(--gold); text-decoration: underline; }
.post-row p { margin: 0; }
.page-heading { padding-block: 4rem 2rem; }
.article { max-width: 740px; margin: 3rem auto 5rem; }
.back { font-size: .9375rem; }
.article-header { margin: 3rem 0 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.prose { overflow-wrap: anywhere; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose img { max-width: 100%; height: auto; }
.prose blockquote { border-left: 3px solid var(--gold); margin-inline: 0; padding-left: 1.5rem; color: var(--muted); }
.prose pre { padding: 1rem; background: #080e14; overflow-x: auto; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose td, .prose th { padding: .5rem; border: 1px solid var(--line); }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-block: 2rem; margin-top: 5rem; color: var(--muted); font-size: .875rem; }
.empty { padding-block: 2rem; }
.skip { position: absolute; top: -10rem; left: 1rem; background: var(--bg); padding: 1rem; z-index: 1; }
.skip:focus { top: 1rem; }
@media (max-width: 700px) {
  .intro { grid-template-columns: 1fr; gap: 1rem; padding-block: 2.5rem; }
  .hero-art { max-width: 440px; margin-inline: auto; }
  .post-row { grid-template-columns: 1fr; gap: .65rem; }
  .site-header, .site-footer { flex-wrap: wrap; }
  .site-footer { margin-top: 3rem; }
}
