:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --ink: #161310;
  --muted: #5f584f;
  --rule: #d8cebd;
  --accent: #6d2e1f;
  --focus: #1c3d66;
  --header-h: 4.5rem;
  --measure: 42rem;
  --wide: 72rem;
  --gutter: clamp(1.75rem, 6vw, 2.75rem);
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(22, 19, 16, 0.03), transparent 12rem),
    var(--paper);
}

h1,
h2,
.brand-name {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

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

.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  min-height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.5px solid var(--accent);
}

.brand-type {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.brand-name {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-entity {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

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

.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

main {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem var(--gutter) 4.5rem;
}

.hero {
  max-width: 48rem;
  padding: 3.2rem 0 2.4rem;
}

.hero.compact {
  padding-top: 2.2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
}

.lede {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 38rem;
}

.prose {
  max-width: var(--measure);
  padding: 0.5rem 0 1.5rem;
}

.prose h2 {
  font-size: 1.55rem;
  margin: 0 0 0.7rem;
}

.prose p {
  margin: 0 0 1rem;
  color: #2a261f;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.text-link {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.work-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
  counter-reset: work;
}

.work-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.5rem 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  counter-increment: work;
}

.work-list li::before {
  content: counter(work, decimal-leading-zero);
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.2rem;
  color: var(--accent);
  padding-top: 0.15rem;
  grid-row: 1 / span 2;
}

.work-list h2 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  grid-column: 2;
}

.work-list p {
  margin: 0;
  grid-column: 2;
  max-width: 38rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}

.contact-panel h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.email-large {
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}

.site-footer {
  position: relative;
  z-index: 2;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1rem;
}

.footer-grid p {
  margin: 0;
}

.footer-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  :root {
    --gutter: max(1.75rem, env(safe-area-inset-left, 0px) + 1.35rem);
  }

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

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    padding: 0.85rem var(--gutter) 1.2rem;
    z-index: 10;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .work-list li {
    grid-template-columns: 2.4rem 1fr;
  }

  .hero,
  .prose,
  .cta-row,
  .contact-panel,
  .work-list {
    padding-left: 0;
    padding-right: 0;
  }
}

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

  .stage {
    display: none;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .site-nav,
  .skip,
  .cta-row,
  .stage {
    display: none !important;
  }

  body {
    background: white;
  }
}
