:root {
  --bg: #faf8f5;
  --bg-panel: #ffffff;
  --text-main: #2c2c2c;
  --text-muted: #6b6b6b;
  --accent: #8b4513;
  --accent-alt: #1e3a5f;
  --border: #e8e6e1;
  --font-heading: "Playfair Display", serif;
  --font-body: "Crimson Pro", "Libre Baskerville", serif;
  --font-mono: "Menlo", monospace;
}

* { 
  box-sizing: border-box; 
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.7;
  font-size: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

a { 
  color: var(--accent-alt); 
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-alt);
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent);
  border-bottom-style: solid;
}

img { 
  max-width: 100%; 
  display: block; 
  border-radius: 2px;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* Header & Footer */
.masthead {
  padding-bottom: 32px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.brand {
  margin-bottom: 24px;
}

.brand strong {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 600;
  display: block;
}

.brand small {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.nav a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  border: none;
  color: var(--text-main);
}
.nav a:hover {
  color: var(--accent);
}

.footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}
.footer .meta {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer .nav {
  margin-top: 24px;
}

/* Hero */
.hero {
  margin-bottom: 80px;
}

.hero img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 500;
  text-align: center;
  margin: 0 0 16px 0;
  line-height: 1.1;
}

.lede {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero p {
  font-size: 1.15rem;
}

/* First paragraph drop cap */
.hero > div > p:nth-of-type(2)::first-letter {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  float: left;
  line-height: 0.8;
  margin-right: 8px;
  margin-top: 8px;
  color: var(--accent);
}

.route-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.pill, .button {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  padding: 8px 16px;
  border: 1px solid var(--border);
  color: var(--text-main);
  background: var(--bg-panel);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pill:hover, .button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button.primary {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}
.button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Sections */
.panel {
  margin-bottom: 64px;
}

h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 24px 0;
  text-align: center;
  position: relative;
}
h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 16px auto 0;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

/* Entries */
.grid, .entries, .columns {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.entry {
  padding: 32px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  border-radius: 4px;
}

.entry .meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-alt);
  margin-bottom: 16px;
  display: block;
}

.entry p {
  margin-bottom: 16px;
}
.entry p:last-child {
  margin-bottom: 0;
}

.article-body pre {
  padding: 24px;
  background: #fdfdfd;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  overflow: auto;
  border-radius: 4px;
}