:root {
  --bg: #EDEEE8;        /* lime plaster */
  --text: #2B1D14;      /* teak */
  --muted: #6B5C4F;
  --accent: #2E5A4C;    /* Athangudi oxide green */
  --ochre: #B8862B;
  --rule: #D3D2C8;
  --measure: 36rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1510;
    --text: #E8E5DB;
    --muted: #A99B8B;
    --accent: #8DBBA8;
    --ochre: #D2A24C;
    --rule: #3A2E24;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-size: 1.125rem;
  line-height: 1.65;
  padding: 0 1.25rem;
}
main, .site-header, .site-footer { max-width: 44rem; margin: 0 auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; padding: 2rem 0 1.5rem;
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.mark { width: 1.9rem; height: 1.9rem; color: var(--text); flex: none; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--ochre); }

/* Home intro: the one large moment */
.intro { padding: 3.5rem 0 3rem; }
.intro p {
  margin: 0; max-width: 30ch;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem);
  line-height: 1.25; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72;
}

/* Lists */
.list-heading { font-size: 1rem; font-weight: 600; color: var(--muted); margin: 2.5rem 0 .5rem; }
.entries { list-style: none; margin: 0; padding: 0; }
.entry {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: .25rem 1.5rem;
  padding: 1.1rem 0; border-top: 1px solid var(--rule);
}
.entry time { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; padding-top: .2rem; }
.entry-title { font-size: 1.2rem; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.35; }
.entry-title:hover { color: var(--accent); }
.entry-source, .entry-desc { margin: .25rem 0 0; font-size: 1rem; color: var(--muted); }
.entry-source cite { font-style: italic; }

/* Pages */
.page-head { padding: 3rem 0 1.5rem; }
.page-head h1 {
  margin: 0; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.15;
  font-weight: 600; letter-spacing: -0.015em; max-width: 22ch;
  font-variation-settings: "opsz" 72;
}
.meta { margin: .75rem 0 0; color: var(--muted); font-size: .95rem; }
.source { margin: 1.25rem 0 0; padding-left: 1rem; border-left: 3px solid var(--ochre); color: var(--muted); max-width: var(--measure); }
.lede { color: var(--muted); max-width: var(--measure); }
.lede p { margin: .75rem 0 0; }

.prose { max-width: var(--measure); padding-bottom: 3rem; }
.prose h2 { font-size: 1.4rem; margin: 2.5rem 0 .5rem; line-height: 1.3; }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--rule); color: var(--muted); font-style: italic; }
.prose img { max-width: 100%; height: auto; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: .4rem .75rem; text-align: left; }
.prose code { font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.site-footer { border-top: 1px solid var(--rule); padding: 1.5rem 0 3rem; margin-top: 2rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 34rem) {
  body { font-size: 1.0625rem; }
  .entry { grid-template-columns: 1fr; }
  .entry time { padding-top: 0; }
}
