/* =========================================================
   masonapostol.com — Minimal stylesheet
   =========================================================
   Colors and fonts live in the :root variables below.
   Change those if you ever want to retune the look.
   ========================================================= */

:root {
  --ink: #1a1a1a;        /* main text */
  --muted: #6b6b6b;      /* dates, captions, secondary text */
  --line: #e6e3dc;       /* faint dividers */
  --bg: #faf8f4;         /* page background (warm off-white) */
  --accent: #8a3324;     /* link hover color (deep red) */
  --max-width: 1080px;
}

/* Reset basics */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Georgia", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ HERO ============ */
header.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.hero .tag {
  color: var(--muted);
  font-style: italic;
  font-size: 19px;
  margin: 0 0 28px;
}
.hero p {
  max-width: 640px;
  margin: 0 0 14px;
}
.hero .links {
  margin-top: 24px;
  font-size: 15px;
}
.hero .links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  margin-right: 22px;
  padding-bottom: 2px;
  font-family: -apple-system, system-ui, sans-serif;
}
.hero .links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ FEEDS LAYOUT ============ */
main.feeds {
  display: grid;
  grid-template-columns: 1.6fr 1fr; /* blog wider than shared */
  gap: 64px;
  padding: 64px 0 96px;
}

section h2, aside h2 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 28px;
  font-family: -apple-system, system-ui, sans-serif;
}

/* ============ BLOG POSTS ============ */
article.post {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
article.post:first-of-type { padding-top: 0; }

article.post .meta {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

article.post h3 {
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
article.post h3 a { color: var(--ink); text-decoration: none; }
article.post h3 a:hover { color: var(--accent); }

article.post p.excerpt {
  margin: 0;
  color: #333;
}

/* ============ SHARED (INOREADER) ITEMS ============ */
.shared-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: -apple-system, system-ui, sans-serif;
}
.shared-item:first-of-type { padding-top: 0; }

.shared-item .source {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.shared-item a.title {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  display: block;
}
.shared-item a.title:hover { color: var(--accent); }
.shared-item .when {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* ============ LOADING/ERROR STATES ============ */
.loading, .error {
  color: var(--muted);
  font-style: italic;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 14px;
}
.error { color: var(--accent); font-style: normal; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 13px;
  font-family: -apple-system, system-ui, sans-serif;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
footer a:hover { color: var(--accent); border-color: var(--accent); }

/* ============ INDIVIDUAL POST PAGE ============ */
article.full {
  padding: 64px 0 96px;
  max-width: 700px;
  margin: 0 auto;
}
article.full .back {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--muted);
  text-decoration: none;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 14px;
}
article.full .back:hover { color: var(--accent); }

article.full .meta {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
article.full h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
article.full .body {
  font-size: 18px;
  line-height: 1.7;
}
article.full .body h2 {
  font-family: inherit;
  font-size: 26px;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
  margin: 40px 0 12px;
  font-weight: 500;
}
article.full .body h3 {
  font-size: 21px;
  margin: 32px 0 10px;
  font-weight: 500;
}
article.full .body p { margin: 0 0 18px; }
article.full .body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
article.full .body a:hover { border-color: var(--accent); }
article.full .body blockquote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-style: italic;
}
article.full .body img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 4px;
}
article.full .body code {
  background: #f0ede5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
article.full .body pre {
  background: #f0ede5;
  padding: 18px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 14px;
}
article.full .body pre code { background: none; padding: 0; }

/* ============ MOBILE ============ */
@media (max-width: 800px) {
  main.feeds {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero h1 { font-size: 40px; }
  header.hero { padding: 64px 0 48px; }
  article.full h1 { font-size: 32px; }
  .wrap { padding: 0 22px; }
}
