:root {
  --bg: #faf7f0;
  --ink: #1a1a1d;
  --ink-soft: #4a4a52;
  --muted: #8c8c93;
  --line: #e4dfd2;
  --accent: #d94b2f;
  --gold: #e0a526;
  --green: #3a9f5e;
  --paper: #fff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Iowan Old Style", "Palatino", ui-serif, Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  max-width: 1080px; margin: 0 auto; padding: 32px 24px 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
}
.site-header .brand {
  font-family: "Iowan Old Style", "Palatino", "Hoefler Text", ui-serif, Georgia, serif;
  font-size: 28px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--ink); line-height: 1;
}
.site-header .brand:hover { text-decoration: none; color: var(--accent); }
.site-nav {
  display: flex; gap: 18px;
  font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.2px;
}
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 640px) {
  .site-header { padding: 20px 18px 0; }
  .site-header .brand { font-size: 22px; }
}

main { display: block; }

.site-footer {
  max-width: 720px; margin: 60px auto 40px; padding: 20px 24px 0;
  border-top: 1px solid var(--line);
  font-family: "Inter", sans-serif; font-size: 12px; color: var(--muted);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.site-footer .sep { color: var(--line); }

/* ---------- Home ---------- */

.home-wrap { max-width: 720px; margin: 0 auto; padding: 60px 24px 60px; }
.home-wrap .intro h1 {
  font-size: 34px; line-height: 1.15; letter-spacing: -0.5px;
  margin: 0 0 14px; font-weight: 700;
}
.home-wrap .intro p {
  font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 10px;
}

/* Featured (top) post — live artefact preview as the hook */
.featured {
  display: block;
  margin-top: 44px;
  padding: 24px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.03);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.featured:hover {
  text-decoration: none;
  border-color: var(--ink);
  box-shadow: 0 4px 0 rgba(0,0,0,0.04);
}
.featured-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: "Inter", sans-serif; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 8px;
}
.featured-kicker {
  color: var(--accent); font-weight: 800;
}
.featured-date { color: var(--muted); font-weight: 600; }
.featured-title {
  font-size: 28px; line-height: 1.18; letter-spacing: -0.4px;
  margin: 0 0 8px; font-weight: 700; color: var(--ink);
}
.featured-summary {
  font-size: 16px; line-height: 1.55; color: var(--ink-soft);
  margin: 0 0 18px;
}
.featured-artefact {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 16px;
  pointer-events: none; /* the whole card is the link */
}
.featured-artefact iframe {
  width: 100%; height: 360px; border: 0; display: block;
  transition: height 0.3s ease;
}
.featured-artefact-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--paper));
  pointer-events: none;
}
.featured-image {
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.featured-image img { width: 100%; height: auto; display: block; }
.featured-cta {
  font-family: "Inter", sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.3px; color: var(--accent);
}
.featured:hover .featured-cta { color: var(--ink); }

/* Posts 2-3 — two-up grid with optional thumb */
.post-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  list-style: none; padding: 0; margin: 28px 0 0;
}
.post-grid li { margin: 0; }
.post-grid a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.post-grid a:hover { text-decoration: none; border-color: var(--ink); }
.post-grid .post-grid-img {
  margin: -16px -18px 8px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.post-grid .post-grid-img img { width: 100%; height: auto; display: block; }
.post-grid .date {
  font-family: "Inter", sans-serif; font-size: 10px; color: var(--muted);
  letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
}
.post-grid .title {
  font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -0.2px;
  color: var(--ink);
}
.post-grid .summary {
  font-size: 14px; line-height: 1.5; color: var(--ink-soft);
}
@media (max-width: 640px) {
  .featured { padding: 18px 16px 16px; border-radius: 10px; }
  .featured-title { font-size: 22px; }
  .featured-summary { font-size: 15px; }
  .featured-artefact iframe { height: 260px; }
  .post-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
}

.post-list {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
  list-style: none; padding-left: 0;
}
.post-list li { margin-bottom: 22px; }
.post-list .date {
  font-family: "Inter", sans-serif; font-size: 11px; color: var(--muted);
  letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 3px;
}
.post-list a.title {
  font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px;
}
.post-list a.title:hover { color: var(--accent); text-decoration: none; }
.post-list .summary {
  font-size: 15px; line-height: 1.55; color: var(--ink-soft);
  margin-top: 2px; max-width: 620px;
}

/* ---------- Post ---------- */

/* Narrow header */
.post-head {
  max-width: 720px; margin: 0 auto; padding: 48px 24px 20px;
}
.post-kicker {
  font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); font-weight: 700;
  margin-bottom: 8px;
}
.post-head h1 {
  font-size: 40px; line-height: 1.1; letter-spacing: -0.6px;
  margin: 0 0 10px; font-weight: 700;
}
.post-meta {
  font-family: "Inter", sans-serif; font-size: 12px; color: var(--muted);
  letter-spacing: 0.3px;
}

/* Wide artefact stage */
.post-artefact {
  max-width: 1080px; margin: 24px auto 8px; padding: 0 24px;
}
.post-artefact iframe {
  width: 100%; border: 0; display: block; background: var(--bg);
}
.artefact-caption {
  font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted); text-align: center;
  margin-top: 10px;
}
.artefact-caption a { color: var(--muted); }
.artefact-caption a:hover { color: var(--accent); text-decoration: none; }

/* Narrow essay body */
.post-body {
  max-width: 680px; margin: 40px auto 40px; padding: 0 24px;
}
.post-body p {
  font-size: 18px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 20px;
}
.post-body p em { color: var(--ink); font-style: italic; font-weight: 600; }
.post-body p strong { color: var(--ink); font-weight: 700; }
.post-body h2 {
  font-family: "Inter", sans-serif; font-size: 13px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
  margin: 36px 0 12px;
}
.post-body blockquote {
  margin: 28px 0; padding: 18px 22px; background: #f1ede2;
  border-left: 3px solid var(--ink); border-radius: 4px;
}
.post-body blockquote p { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.6; }

/* ---------- About ---------- */

.about-wrap { max-width: 680px; margin: 0 auto; padding: 60px 24px 60px; }
.about-head h1 {
  font-size: 40px; line-height: 1.1; letter-spacing: -0.6px;
  margin: 0 0 24px; font-weight: 700;
}
.about-body p {
  font-size: 18px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 18px;
}
.about-body h2 {
  font-family: "Inter", sans-serif; font-size: 12px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
  margin: 36px 0 12px;
}
.about-body .dot { color: var(--line); margin: 0 8px; }
@media (max-width: 640px) {
  .about-wrap { padding: 28px 18px 40px; }
  .about-head h1 { font-size: 30px; }
  .about-body p { font-size: 16px; }
}
