:root {
  --teal-deep: #0a4d4f;
  --teal: #147a7c;
  --teal-bright: #14a098;
  --orange: #e76f33;
  --orange-light: #f4a261;
  --bg: #ffffff;
  --bg-muted: #faf6ee;
  --bg-warm: #f3ebda;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e8e3dc;

  --font-body: 'Iowan Old Style', 'Charter', 'Georgia', 'Cambria', serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;

  --reading-width: 38rem;
  --content-width: 56rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Site chrome ---------- */

.site-header {
  border-bottom: 2px solid var(--teal-deep);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--teal-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-title:hover {
  color: var(--orange);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s, color 0.15s;
}

.site-nav a:hover {
  color: var(--teal);
  border-bottom-color: var(--orange);
}

.site-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3.5rem 1.75rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.75rem;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Reading layout ---------- */

.essay,
.manifesto,
.update {
  max-width: var(--reading-width);
  margin: 0 auto;
}

.essay-header,
.manifesto-header,
.update-header {
  margin-bottom: 3rem;
  padding-bottom: 1.75rem;
  border-bottom: 3px solid var(--orange);
}

.essay-header h1,
.manifesto-header h1,
.update-header h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}

.essay-summary {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

.update-date {
  font-family: var(--font-heading);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.essay-body,
.manifesto-body,
.update-body {
  font-size: 1.05rem;
}

.essay-body h2,
.manifesto-body h2,
.update-body h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--teal-deep);
  font-size: 1.55rem;
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
}

.essay-body h3,
.manifesto-body h3,
.update-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--teal);
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.essay-body p,
.manifesto-body p,
.update-body p {
  margin: 0 0 1.4rem;
}

.essay-body a,
.manifesto-body a,
.update-body a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--orange-light);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.essay-body a:hover,
.manifesto-body a:hover,
.update-body a:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

.essay-body ol,
.essay-body ul,
.manifesto-body ol,
.manifesto-body ul,
.update-body ol,
.update-body ul {
  padding-left: 1.5rem;
  margin: 0 0 1.5rem;
}

.essay-body li,
.manifesto-body li,
.update-body li {
  margin-bottom: 0.7rem;
}

.essay-body strong,
.manifesto-body strong,
.update-body strong {
  color: var(--teal-deep);
  font-weight: 700;
}

.essay-body blockquote,
.manifesto-body blockquote,
.update-body blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 4px solid var(--orange);
  color: var(--text-muted);
  font-style: italic;
}

.essay-body code,
.manifesto-body code,
.update-body code {
  background: var(--bg-muted);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.92em;
}

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

.home-intro {
  max-width: var(--reading-width);
  margin: 0 auto 3.5rem;
  text-align: center;
}

.home-intro h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4rem);
  margin: 0 0 1.25rem;
  color: var(--teal-deep);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.home-intro .intro-content {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.home-intro p {
  margin: 0 0 1rem;
}

.home-intro p:last-child {
  margin-bottom: 0;
}

.home-feature {
  max-width: var(--reading-width);
  margin: 0 auto 4rem;
}

.feature-link {
  display: block;
  background: var(--bg-muted);
  border-left: 6px solid var(--orange);
  padding: 1.75rem 2rem;
  text-decoration: none;
  color: var(--text);
  border-radius: 0 6px 6px 0;
  transition: background 0.15s;
}

.feature-link:hover {
  background: var(--bg-warm);
}

.feature-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.feature-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--teal-deep);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.feature-summary {
  display: block;
  color: var(--text-muted);
  font-style: italic;
}

.home-index,
.home-updates {
  max-width: var(--reading-width);
  margin: 0 auto 3rem;
}

.home-index h2,
.home-updates h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.essay-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.essay-list-item {
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.essay-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.essay-list-item a {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.essay-list-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--teal-deep);
  margin-bottom: 0.4rem;
  transition: color 0.15s;
  letter-spacing: -0.01em;
}

.essay-list-item a:hover .essay-list-title {
  color: var(--orange);
}

.essay-list-summary {
  display: block;
  color: var(--text-muted);
  font-style: italic;
}

.update-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.update-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.update-list a {
  color: var(--teal-deep);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
}

.update-list a:hover {
  color: var(--orange);
}

.update-list time {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  .site-header {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav {
    gap: 1.25rem;
    font-size: 0.95rem;
  }

  .site-main {
    padding: 2.5rem 1.25rem;
  }

  .feature-link {
    padding: 1.4rem 1.5rem;
  }

  .essay-header,
  .manifesto-header,
  .update-header {
    margin-bottom: 2.25rem;
    padding-bottom: 1.25rem;
  }
}
