:root {
  color-scheme: light;
  --background: #fbfaf7;
  --text: #171717;
  --muted: #63635f;
  --faint: #e4e0d7;
  --accent: #225f53;
  --accent-soft: #edf4f1;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body {
  min-height: 100%;
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

.site-shell {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.intro {
  padding-bottom: 42px;
  border-bottom: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 2rem + 1vw, 3rem);
  font-weight: 520;
  line-height: 1.08;
}

.statement {
  max-width: 650px;
  margin: 20px 0 0;
  color: #33332f;
  font-size: 1.08rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 24px;
}

.primary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--accent);
  font-style: italic;
  font-weight: 650;
}

.work-section {
  padding-top: 42px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.section-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.work-list {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--faint);
}

.work-item {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--faint);
}

.work-date {
  color: var(--muted);
  font-size: 0.92rem;
}

.work-main {
  min-width: 0;
}

.work-main h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 680;
  line-height: 1.35;
}

.work-main p {
  margin: 7px 0 0;
  color: #3c3c38;
}

.tags {
  color: var(--muted) !important;
  font-size: 0.9rem;
}

.post-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--faint);
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-meta {
  margin: 16px 0 0;
  color: var(--muted);
}

.post-body {
  max-width: 680px;
  padding-top: 30px;
}

.post-body h2 {
  margin-top: 34px;
}

.post-body p {
  color: #33332f;
}

.note {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--faint);
  border-radius: 6px;
  background: var(--accent-soft);
  color: #273c37;
}

@media (min-width: 720px) {
  .site-shell {
    padding-top: 84px;
  }

  .work-item {
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 28px;
    padding: 22px 0;
  }
}
