:root {
  --bg: #f5f1ea;
  --paper: #fffdf9;
  --ink: #1e2328;
  --muted: #596068;
  --line: #ded8ce;
  --accent: #134f46;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f3ed 0%, #f1ece4 100%);
  font-family: var(--sans);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.page-shell {
  width: min(920px, calc(100% - 28px));
  margin: 24px auto;
  padding: 20px 22px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
}

.site-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.site-nav a:hover {
  color: var(--ink);
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.12;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.lead {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #faf7f1;
  text-decoration: none;
}

.compact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.8fr);
  gap: 22px;
}

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

.section p:last-child,
.work-item p:last-child {
  margin-bottom: 0;
}

.sidebar-card {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.facts {
  margin: 0;
}

.facts dt {
  margin-top: 12px;
  font-weight: 700;
}

.facts dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.work-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.work-item:first-of-type {
  padding-top: 4px;
  border-top: 0;
}

.work-item p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.contact-section {
  border-bottom: 0;
  padding-bottom: 8px;
}

@media (max-width: 760px) {
  .site-header,
  .compact-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    padding-left: 0;
    border-left: 0;
  }

  h1 {
    max-width: 100%;
  }
}
