:root {
  --bg: #fffcf5;
  --fg: #3e3e3c;
  --card: #fffef9;
  --primary: #3e3e3c;
  --on-primary: #fffcf5;
  --secondary: #f3eee4;
  --muted: #6f6c66;
  --accent: #8a847c;
  --border: #e0d9cc;
  --ridge: #c4bcb0;
  --peak: #a39c90;
  --peak-deep: #6f6c66;
  --paper-deep: #e8e1d4;
  --ink-soft: #5a5a56;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Palatino, serif;
  --shadow: 0 0 0 1px rgb(62 62 60 / 0.06), 0 1px 2px -1px rgb(62 62 60 / 0.06), 0 2px 8px 0 rgb(62 62 60 / 0.04);
  --shadow-hover: 0 0 0 1px rgb(62 62 60 / 0.1), 0 8px 24px -12px rgb(62 62 60 / 0.18);
  --title: clamp(1.75rem, 1.15rem + 2.2vw, 2.85rem);
  --section: clamp(1.35rem, 1.05rem + 1.1vw, 1.85rem);
  --radius: 0.75rem;
  --radius-lg: 1rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.55;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

img.mark {
  outline: none;
}

::selection {
  background: var(--ridge);
  color: var(--fg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 60;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgb(224 217 204 / 0.8);
  background: rgb(255 252 245 / 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  height: 4rem;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: cover;
  border-radius: 0.375rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 0.875rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--fg);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  border-radius: 0.375rem;
}

.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-mobile {
  position: fixed;
  inset: 4rem 0 0 0;
  z-index: 30;
  background: var(--bg);
  padding: 1.5rem 1.25rem;
}

.nav-mobile a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  border-bottom: 1px solid rgb(224 217 204 / 0.7);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.wrap-narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.measure {
  max-width: 42rem;
}

.hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.hero img {
  display: block;
  width: 100%;
  max-width: 48rem;
  height: auto;
  margin: 1.5rem auto 0;
}

.hero-title {
  max-width: 42rem;
  margin: 2rem auto 0;
  font-size: var(--title);
}

.title {
  margin: 0.75rem 0 0;
  font-size: var(--title);
}

.section-title {
  margin: 0.75rem 0 0;
  font-size: var(--title);
}

.lede {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.body {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.rule span.line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.rule span.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--peak);
}

.band {
  background: rgb(243 238 228 / 0.6);
  padding: 4rem 0;
}

.cta {
  background: var(--primary);
  color: var(--on-primary);
}

.cta-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta .kicker,
.cta .ridge {
  color: var(--ridge);
}

.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.card-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--peak-deep);
}

.card h3 {
  margin: 1.25rem 0 0;
  font-size: var(--section);
}

.card-teaser {
  margin: 0.75rem 0 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-more {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.btn-lg {
  min-height: 3rem;
  padding: 0 1.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--ink-soft);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
}

.btn-light {
  background: var(--bg);
  color: var(--fg);
}

.panel {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel-card {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.mail-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--section);
  font-weight: 500;
}

.project-hero {
  border-bottom: 1px solid var(--border);
  background: rgb(243 238 228 / 0.5);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.stack > * + * {
  margin-top: 1.25rem;
}

.split {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

dl {
  margin: 3rem 0 0;
}

dl div + div {
  margin-top: 2rem;
}

dd {
  margin: 0.5rem 0 0;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--secondary);
}

.footer-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  display: grid;
  gap: 2.5rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--section);
}

.site-footer ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

address {
  margin: 0.75rem 0 0;
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-bar {
  border-top: 1px solid rgb(224 217 204 / 0.8);
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-bar p {
  margin: 0;
}

.footer-bar a {
  margin-right: 1rem;
}

.intro-pad {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.space-y p + p {
  margin-top: 1.25rem;
}

.link-row {
  margin-top: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .header-inner,
  .hero,
  .wrap,
  .wrap-narrow,
  .cta-inner,
  .footer-grid,
  .footer-bar,
  .intro-pad {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .header-inner {
    height: 4.5rem;
  }

  .nav-mobile {
    top: 4.5rem;
  }

  .brand img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .lede {
    font-size: 1.25rem;
  }

  .card,
  .panel,
  .panel-card {
    padding: 2rem;
  }

  .grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .grid.three {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card {
    transition: none;
  }
}

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