/* SuperStories Proprietary — minimal editorial styling */

:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --accent: #c8554d;
  --rule: #e6e2d8;
  --max-width: 720px;
  --max-width-wide: 1080px;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.85);
}

.header-inner {
  max-width: var(--max-width-wide);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-mark {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

.site-nav a.active {
  color: var(--accent);
  font-weight: 500;
}

/* Main / prose */
main {
  padding: 64px 24px 96px;
}

.prose {
  font-size: 17px;
  line-height: 1.7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 24px;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 64px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.prose h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  margin: 40px 0 12px;
}

.prose h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--text);
}

.prose p {
  margin: 0 0 18px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose strong { font-weight: 600; color: var(--text); }
.prose em { font-style: italic; }

.prose ul, .prose ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 6px;
}

.prose li > p { margin-bottom: 8px; }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 19px;
}

.prose blockquote p { margin-bottom: 8px; }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--rule);
  padding: 2px 6px;
  border-radius: 3px;
}

.prose pre {
  background: #1a1a1a;
  color: #e8e6e0;
  padding: 20px 24px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 24px -24px;
  font-size: 13px;
  line-height: 1.55;
}

.prose pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.prose th, .prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}

.prose th {
  font-weight: 600;
  background: var(--surface);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 64px;
}

/* Responsive */
@media (max-width: 640px) {
  .prose h1 { font-size: 34px; }
  .prose h2 { font-size: 26px; }
  .prose pre { margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  main { padding: 40px 0 64px; }
}
