/* Brendan Carey - mobile-first, high contrast, no chrome */
:root {
  --bg: #f4efe6;
  --ink: #14120f;
  --muted: #534d44;
  --rule: #c9c0b0;
  --link: #123a62;
  --link-hover: #0a2240;
  --card: #fffdf8;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3.5rem;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: block;
  line-height: 0;
}

.header-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--ink);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

main {
  padding-top: 1.75rem;
}

.kicker,
.meta,
.footer-inner {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

h1 {
  margin: 0.15rem 0 0.85rem;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.tagline {
  margin: 0 0 2rem;
  font-size: 1.15rem;
}

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

.post-list li {
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.post-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.post-list a:hover {
  color: var(--link);
  text-decoration: underline;
}

.post-list .meta {
  display: block;
  margin-top: 0.25rem;
}

.lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.prose figure {
  margin: 1.15rem 0;
}

.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.prose figcaption {
  margin-top: 0.4rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.prose p {
  margin: 0 0 1rem;
}

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

.site-footer {
  margin-top: 2.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

.footer-inner a {
  color: var(--muted);
}

@media (min-width: 640px) {
  html {
    font-size: 118.75%;
  }

  .wrap {
    padding-top: 1.75rem;
  }

  h1 {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
