/* EG hardening 2026-08-16: shared blog stylesheet — inverted palette of the
   main site (white background, navy text), same restrained typographic
   principles: no JS, no external fonts, no cards/shadows/gradients. */

:root {
  --navy: #062D5C;
  --muted: #55617a;
  --hair: #e3e7ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--navy);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: clamp(1.5rem, 5vw, 2rem);
  padding-right: clamp(1.5rem, 5vw, 2rem);
}

/* Site header, shared by index and articles */
.site-header {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.site-header .site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-header .site-title a {
  text-decoration: none;
}

.site-header nav {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--navy);
}

main {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

/* Index: chronological post list */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--hair);
}

.post-list li:last-child {
  border-bottom: 1px solid var(--hair);
}

.post-list time {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  order: 1;
  flex: 0 0 auto;
}

.post-list a {
  font-size: 1.05rem;
  text-decoration: none;
  order: 0;
  flex: 1 1 auto;
}

.post-list a:hover,
.post-list a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--hair);
}

/* Article */
article header.post-header {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

article header.post-header time {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

article header.post-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

article h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

article p {
  margin: 0 0 1.3rem;
}

article ul,
article ol {
  margin: 0 0 1.3rem;
  padding-left: 1.4rem;
}

article li + li {
  margin-top: 0.4rem;
}

article blockquote {
  margin: 1.75rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--hair);
  color: var(--muted);
  font-style: italic;
}

article code {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.88em;
  background: #f4f6f9;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

article hr {
  border: none;
  border-top: 1px solid var(--hair);
  margin: 2.5rem 0;
}

/* Footer */
.site-footer {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 6vw, 4rem);
  font-size: 0.8rem;
  color: var(--muted);
}
