:root {
  --parchment: #f1e3c4;
  --parchment-light: #f6ecd2;
  --parchment-dark: #d9c590;
  --parchment-shadow: #b8a06a;
  --ink: #2a1c0d;
  --ink-soft: #4a3318;
  --sepia: #6b4423;
  --oxblood: #7a2410;
  --teal: #1a3d4d;
  --rule: #8a6f3e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--ink);
  background: var(--parchment);
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(180, 140, 70, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(140, 90, 40, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(220, 200, 150, 0.4) 0%, transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0 0.1 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-blend-mode: multiply, multiply, normal, multiply;
  line-height: 1.62;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(70, 40, 10, 0.25) 100%);
  z-index: 100;
}

a { color: var(--oxblood); text-decoration: none; border-bottom: 1px solid rgba(122, 36, 16, 0.3); transition: all 0.2s; }
a:hover { color: var(--ink); border-bottom-color: var(--ink); background: rgba(122, 36, 16, 0.06); }

.wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  position: relative;
}

/* Masthead */
.masthead {
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-bottom: 3px double var(--rule);
  position: relative;
}
.masthead .eyebrow {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--sepia);
  margin-bottom: 0.8rem;
}
.masthead h1 {
  font-family: 'IM Fell English', serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.6rem;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.04);
}
.masthead h1 a { color: inherit; border: none; }
.masthead h1 a:hover { background: transparent; }
.masthead h1 .amp {
  font-style: italic;
  color: var(--oxblood);
  font-family: 'IM Fell English', serif;
  font-weight: 400;
}
.masthead .tagline {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sepia);
  margin-bottom: 1.2rem;
}
.masthead .est {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.masthead .est::before,
.masthead .est::after {
  content: '';
  width: 50px;
  height: 1px;
  background: var(--rule);
}

/* Compact masthead for inner pages */
.masthead.compact {
  padding: 1rem 0 1.2rem;
}
.masthead.compact h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.2rem;
}
.masthead.compact .eyebrow { margin-bottom: 0.5rem; }
.masthead.compact .tagline { font-size: 0.95rem; margin-bottom: 0; }

/* Navigation */
nav.primary {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  padding: 1.2rem 0;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
  font-family: 'IM Fell English SC', serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  flex-wrap: wrap;
}
nav.primary a {
  color: var(--ink-soft);
  border-bottom: none;
  padding-bottom: 2px;
  position: relative;
}
nav.primary a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--oxblood);
  transform: scaleX(0);
  transition: transform 0.25s;
}
nav.primary a:hover { color: var(--oxblood); background: transparent; }
nav.primary a:hover::after { transform: scaleX(1); }
nav.primary a.current { color: var(--oxblood); }
nav.primary a.current::after { transform: scaleX(1); }

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3.5rem;
}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; gap: 2rem; }
  nav.primary { gap: 1.2rem; font-size: 0.85rem; }
}

/* Compass divider */
.compass-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0;
  gap: 1.5rem;
}
.compass-divider .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule) 30%, var(--rule) 70%, transparent);
}
.compass-divider svg { flex-shrink: 0; }

/* Featured / lead article (homepage) */
article.featured { margin-bottom: 1rem; }
article.featured .meta {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--sepia);
  margin-bottom: 0.8rem;
}
article.featured .meta .red { color: var(--oxblood); margin-right: 0.5rem; }
article.featured h2 {
  font-family: 'IM Fell English', serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
}
article.featured h2 a { color: inherit; border-bottom: none; }
article.featured h2 a:hover { color: var(--oxblood); background: transparent; }
article.featured .deck {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
}
article.featured .body p { margin-bottom: 1rem; font-size: 1.05rem; }
article.featured .body p:first-of-type::first-letter {
  font-family: 'IM Fell English', serif;
  font-size: 4.2rem;
  float: left;
  line-height: 0.85;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--oxblood);
  font-weight: 400;
}
article.featured .continue {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: 'IM Fell English SC', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--oxblood);
  border: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--oxblood);
}
article.featured .continue:hover { color: var(--ink); border-bottom-color: var(--ink); background: transparent; }

/* Full article page */
article.essay { max-width: 720px; margin: 0 auto; }
article.essay .meta {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--sepia);
  margin-bottom: 0.8rem;
  text-align: center;
}
article.essay h1 {
  font-family: 'IM Fell English', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 1rem;
}
article.essay .deck {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 600px;
  line-height: 1.4;
}
article.essay .byline {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--sepia);
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--rule);
}
article.essay .prose p {
  margin-bottom: 1.1rem;
  font-size: 1.08rem;
  line-height: 1.7;
}
article.essay .prose p:first-of-type::first-letter {
  font-family: 'IM Fell English', serif;
  font-size: 4.6rem;
  float: left;
  line-height: 0.85;
  padding: 0.4rem 0.7rem 0 0;
  color: var(--oxblood);
  font-weight: 400;
}
article.essay .prose h2 {
  font-family: 'IM Fell English', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 2rem 0 0.8rem;
  color: var(--ink);
}
article.essay .prose h2::before {
  content: '§ ';
  color: var(--oxblood);
  font-style: italic;
}
article.essay .prose blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid var(--rule);
  font-style: italic;
  color: var(--ink-soft);
}
article.essay .prose blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: 'IM Fell English SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--sepia);
  font-style: normal;
}
article.essay .endnote {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
}
article.essay .endnote h3 {
  font-family: 'IM Fell English SC', serif;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--oxblood);
  margin-bottom: 0.6rem;
}
article.essay .related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px double var(--rule);
}
article.essay .related h3 {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--oxblood);
  margin-bottom: 1rem;
  text-align: center;
}
article.essay .related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  article.essay .related-grid { grid-template-columns: 1fr; }
}
article.essay .related-grid a {
  border: none;
  display: block;
  padding: 1rem;
  background: rgba(255, 248, 220, 0.4);
  border: 1px solid var(--rule);
}
article.essay .related-grid a:hover {
  background: rgba(122, 36, 16, 0.08);
  border-color: var(--oxblood);
}
article.essay .related-grid h4 {
  font-family: 'IM Fell English', serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
article.essay .related-grid p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Recent entries grid */
.recent-heading {
  font-family: 'IM Fell English SC', serif;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--sepia);
  text-align: center;
  margin-bottom: 1.5rem;
}
.entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
  margin-top: 1rem;
}
@media (max-width: 600px) { .entries { grid-template-columns: 1fr; } }
.entry { position: relative; }
.entry .meta {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--sepia);
  margin-bottom: 0.5rem;
}
.entry h3 {
  font-family: 'IM Fell English', serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.entry h3 a { color: var(--ink); border-bottom: none; }
.entry h3 a:hover { color: var(--oxblood); background: transparent; }
.entry .excerpt { font-size: 1rem; color: var(--ink-soft); margin-bottom: 0.7rem; }
.entry .tag-row {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--sepia);
}
.entry .tag-row span:not(:last-child)::after {
  content: '·';
  margin: 0 0.5rem;
  color: var(--rule);
}

/* Sidebar */
aside { font-size: 0.95rem; }
.sidebar-section {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--rule);
}
.sidebar-section:last-child { border-bottom: none; }
.sidebar-section h4 {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--oxblood);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.about-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 0.8rem;
  background: var(--parchment-dark);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-text {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.about-sig {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--sepia);
  font-size: 1.1rem;
  text-align: right;
}
.sidebar-section ul { list-style: none; }
.sidebar-section li {
  padding: 0.4rem 0;
  border-bottom: 1px dotted rgba(138, 111, 62, 0.4);
  font-size: 0.92rem;
}
.sidebar-section li:last-child { border-bottom: none; }
.sidebar-section li a { border: none; color: var(--ink); }
.sidebar-section li a:hover { color: var(--oxblood); background: transparent; }
.archive-year { display: flex; justify-content: space-between; font-family: 'EB Garamond', serif; }
.archive-year .count {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--sepia);
}
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags a {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-family: 'IM Fell English SC', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--sepia);
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.15);
}
.tags a:hover { background: var(--oxblood); color: var(--parchment-light); border-color: var(--oxblood); }
.bilge {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  margin-top: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-left: 2px solid var(--oxblood);
  background: rgba(255, 248, 220, 0.3);
}

/* Pull quote */
.pull-quote {
  margin: 2.5rem 0;
  padding: 1.8rem 2rem;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  background: rgba(255, 248, 220, 0.4);
  position: relative;
  text-align: center;
}
.pull-quote .mark {
  position: absolute;
  top: -0.5rem;
  left: 1.2rem;
  font-family: 'IM Fell English', serif;
  font-size: 4rem;
  color: var(--oxblood);
  line-height: 1;
  background: var(--parchment);
  padding: 0 0.5rem;
}
.pull-quote p {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.pull-quote cite {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--sepia);
  font-style: normal;
}

/* Archive page */
.archive-list {
  max-width: 760px;
  margin: 0 auto;
}
.archive-list h2 {
  font-family: 'IM Fell English', serif;
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.5rem;
}
.archive-list .summary {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--rule);
}
.archive-year-block {
  margin-bottom: 2.5rem;
}
.archive-year-block h3 {
  font-family: 'IM Fell English', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--oxblood);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
.archive-year-block ol { list-style: none; }
.archive-year-block li {
  padding: 0.6rem 0;
  border-bottom: 1px dotted rgba(138, 111, 62, 0.4);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
}
.archive-year-block li:last-child { border-bottom: none; }
.archive-year-block li .date {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--sepia);
  flex-shrink: 0;
  white-space: nowrap;
}
.archive-year-block li a {
  border: none;
  color: var(--ink);
  flex: 1;
}
.archive-year-block li a:hover { color: var(--oxblood); background: transparent; }

/* About page */
.about-page {
  max-width: 720px;
  margin: 0 auto;
}
.about-page h2 {
  font-family: 'IM Fell English', serif;
  font-size: 2.2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.5rem;
}
.about-page .subtitle {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--rule);
}
.about-page p {
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.about-page p:first-of-type::first-letter {
  font-family: 'IM Fell English', serif;
  font-size: 4.2rem;
  float: left;
  line-height: 0.85;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--oxblood);
}
.about-page h3 {
  font-family: 'IM Fell English', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin: 2rem 0 0.8rem;
  color: var(--ink);
}
.about-page h3::before {
  content: '§ ';
  color: var(--oxblood);
  font-style: italic;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 3px double var(--rule);
  text-align: center;
  font-family: 'IM Fell English SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--sepia);
  line-height: 2;
}
footer .anchor { margin: 0 auto 1rem; display: block; opacity: 0.6; }
footer .small {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.88rem;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* Page-load reveals */
.masthead, nav.primary, article.featured, .entries .entry, aside .sidebar-section,
article.essay, .archive-list, .about-page {
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) backwards;
}
.masthead { animation-delay: 0s; }
nav.primary { animation-delay: 0.12s; }
article.featured, article.essay, .archive-list, .about-page { animation-delay: 0.22s; }
.entries .entry:nth-child(1) { animation-delay: 0.32s; }
.entries .entry:nth-child(2) { animation-delay: 0.38s; }
.entries .entry:nth-child(3) { animation-delay: 0.44s; }
.entries .entry:nth-child(4) { animation-delay: 0.5s; }
aside .sidebar-section:nth-child(1) { animation-delay: 0.28s; }
aside .sidebar-section:nth-child(2) { animation-delay: 0.36s; }
aside .sidebar-section:nth-child(3) { animation-delay: 0.44s; }
aside .sidebar-section:nth-child(4) { animation-delay: 0.52s; }
aside .sidebar-section:nth-child(5) { animation-delay: 0.6s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
