:root {
  --paper: #fffdfa;
  --ink: #181818;
  --muted: #62615c;
  --line: #dedbd2;
  --accent: #0f766e;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-header,
main,
footer {
  width: min(780px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  font-family: Arial, sans-serif;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero,
.page-title {
  padding: 78px 0 42px;
}

.kicker,
.meta {
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.7;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 34px;
}

.topics a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  padding: 8px 11px;
  text-decoration: none;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

h2 {
  font-size: 1.4rem;
}

.post {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.post h3 {
  margin: 4px 0 8px;
  font-size: 1.75rem;
  line-height: 1.2;
}

.post p:last-child,
.about p,
.newsletter p,
footer,
.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.7;
}

.about,
.newsletter,
.longform {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.longform {
  border-top: 1px solid var(--line);
}

label {
  display: block;
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

form div {
  display: flex;
  gap: 10px;
}

input,
button {
  min-height: 44px;
  border-radius: 6px;
  font: inherit;
}

input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 0 12px;
}

button {
  border: 0;
  padding: 0 18px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

.form-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

footer {
  padding: 32px 0;
}

.archive {
  padding-bottom: 48px;
}

.article {
  padding: 58px 0;
}

.article h1 {
  margin-top: 18px;
}

.back-link {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.prose {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 28px;
}

.prose h2 {
  margin-top: 34px;
}

.prose code {
  background: #f1eee7;
  border-radius: 4px;
  padding: 2px 5px;
}

@media (max-width: 640px) {
  .site-header,
  form div {
    align-items: flex-start;
    flex-direction: column;
  }

  button,
  input {
    width: 100%;
  }
}
