/* Theo Jones - Personal Website Styles */
/* Matches the resume site's warm editorial design */

:root {
  --bg: #f8f5f0;
  --ink: #1a1814;
  --ink-mid: #5c5a55;
  --ink-light: #9a9790;
  --accent: #b87333;
  --accent-light: #f0e6d8;
  --card: #ffffff;
  --border: #e0dbd3;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --max-width: 800px;
  --border-radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── TOP BAND WRAPPER ── */
.top-band-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2.5rem 0;
}

/* ── TOP BAND ── */
.top-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  background: var(--accent);
  border-radius: 16px;
  overflow: hidden;
}

.top-name {
  padding: 1.75rem 2.5rem;
}

.top-name h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 0.6rem;
  font-weight: normal;
}

.top-name h1 a {
  color: inherit;
  text-decoration: none;
}

.top-name h1 a:hover { opacity: 0.85; }

.top-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

.top-nav {
  background: #1a1814;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.top-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-nav a:hover { color: #fff; }
.top-nav a::before { content: '→'; color: var(--accent); font-size: 0.75rem; }

/* ── OUTER WRAPPER ── */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2.5rem 4rem;
}

/* ── HERO IMAGE ── */
.hero-image-wrap {
  margin-bottom: 1.25rem;
}

.hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
}

/* ── HOME INTRO ── */
.home-intro {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.25rem;
}

.home-intro p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.7;
  font-weight: 300;
}

.home-intro a { color: var(--accent); text-decoration: underline; }

/* ── BLUESKY SECTION ── */
.bluesky-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.25rem;
}

.bluesky-section h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
  text-align: center;
}

/* ── BADGES ── */
.badges-section {
  margin-top: 1rem;
}

.badges-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.badges-row img {
  height: 15px;
  width: 88px;
  object-fit: contain;
  border-radius: 2px;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0 1rem;
}

.section-bar {
  width: 4px;
  height: 24px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--ink);
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── ARTICLE CARDS ── */
article.h-entry {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.75rem;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card-warning {
  font-size: 0.78rem;
  color: #8a6d3b;
  font-weight: 400;
  margin-bottom: 0.5rem;
  font-style: italic;
}

article.h-entry:hover {
  box-shadow: 0 4px 16px rgba(26,24,20,0.06);
  border-color: var(--accent);
}

article.h-entry h2.p-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

article.h-entry h2.p-name a {
  color: var(--ink);
  text-decoration: none;
}

article.h-entry h2.p-name a:hover { color: var(--accent); }

article.h-entry .meta {
  font-size: 0.8rem;
  color: var(--ink-light);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

article.h-entry .meta a { color: var(--ink-light); text-decoration: none; }
article.h-entry .meta a:hover { color: var(--accent); }

article.h-entry .e-content {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.8;
  font-weight: 400;
}

article.h-entry .e-content p { margin-bottom: 0.75rem; }
article.h-entry .e-content p:last-child { margin-bottom: 0; }
article.h-entry .e-content a { color: var(--accent); text-decoration: underline; }
article.h-entry .e-content ul,
article.h-entry .e-content ol { margin: 0.75rem 0 0.75rem 1.5rem; }
article.h-entry .e-content li { margin-bottom: 0.3rem; }
article.h-entry .e-content blockquote,
article.post blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--accent-light);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--ink-mid);
}

article.h-entry .e-content blockquote p,
article.post blockquote p {
  margin-bottom: 0.5rem;
}

article.h-entry .e-content blockquote p:last-child,
article.post blockquote p:last-child {
  margin-bottom: 0;
}
article.h-entry .e-content code {
  background: #f0ede8;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--ink-mid);
}
article.h-entry .e-content pre {
  background: #1a1814;
  color: #f0ede8;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}
article.h-entry .e-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.85rem;
}
article.h-entry .e-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0.5rem 0;
}

/* ── ARTICLE PAGE (single post) ── */
.post-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-left: 4px solid #b87333;
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: #5c5a55;
  line-height: 1.6;
}

.post-warning strong { color: var(--ink); }

article.post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
}

article.post h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  margin-bottom: 0.6rem;
  line-height: 1.2;
  color: var(--ink);
}

article.post .meta {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-bottom: 2rem;
  font-weight: 400;
}

article.post h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

article.post h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
}

article.post p { margin-bottom: 1rem; font-size: 1rem; color: var(--ink-mid); line-height: 1.85; font-weight: 400; }
article.post ul, article.post ol { margin: 1rem 0 1rem 1.5rem; font-size: 0.95rem; color: var(--ink-mid); }
article.post li { margin-bottom: 0.3rem; }
article.post a { color: var(--accent); text-decoration: underline; }
article.post code {
  background: #f0ede8;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}
article.post pre {
  background: #1a1814;
  color: #f0ede8;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.25rem 0;
}
article.post pre code { background: none; padding: 0; color: inherit; font-size: 0.85rem; }
article.post blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--accent-light);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--ink-mid);
}
article.post img { max-width: 100%; height: auto; border-radius: 6px; margin: 0.5rem 0; }

/* ── PAGE TEMPLATE ── */
.page-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.75rem;
  margin-bottom: 0.75rem;
}

.page-header h1 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--ink);
}

.about-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.75rem;
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.8;
  font-weight: 300;
}

.about-content p { margin-bottom: 1rem; }
.about-content a { color: var(--accent); text-decoration: underline; }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1rem 0;
}

.pagination-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--card);
  background: var(--accent);
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.pagination-link:hover { background: #9a5f20; }
.pagination-info { font-size: 0.82rem; color: var(--ink-light); font-weight: 400; }

/* ── FOOTER ── */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-light);
  font-weight: 300;
  border-top: 1px solid var(--border);
  line-height: 1.8;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .top-band-wrap { padding: 1rem 1.25rem 0; }
  .top-band { grid-template-columns: 1fr; border-radius: 12px; }
  .top-name { padding: 1.5rem 1.5rem; }
  .top-nav { padding: 1.25rem 1.5rem; flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
  .wrap { padding: 1rem 1.25rem 3rem; }
  article.post { padding: 1.5rem; }
  article.h-entry { padding: 1.25rem 1.5rem; }
}

/* ── PRINT ── */
@media print {
  body { background: #fff; }
  .top-band { border-radius: 0; }
  article.h-entry, article.post { break-inside: avoid; }
}
