:root {
  --paper: #f2f4f1;
  --ink: #17221f;
  --muted: #55625c;
  --line: #c9d2cb;
  --moss: #2f4a3e;
  --moss-soft: #a9bdb2;
  --saffron: #e3a33b;

  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

p, dl, dd, ul { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: .5rem 1rem;
  z-index: 10;
}

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
}

.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand-mark rect { fill: var(--moss); }
.brand-mark path {
  fill: none;
  stroke: var(--saffron);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.site-header nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 7.5rem) var(--gutter) clamp(3.5rem, 9vw, 6.5rem);
}

.hero h1 {
  font-size: clamp(2.75rem, 7.5vw, 6.25rem);
  letter-spacing: -0.035em;
  max-width: 13ch;
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}

.lede {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: 1.25rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  background: var(--saffron);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: .875rem 1.375rem;
  border-radius: 999px;
}
.button:hover { background: #d4932b; }

.text-link {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--saffron);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(.4em); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; }
}

/* Section headings */
.work h2, .services h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* Work */
.work {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 9vw, 6.5rem);
}

.work-list { list-style: none; padding: 0; }

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 1.5rem 2.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.work-item:last-child { border-bottom: 1px solid var(--line); }

.work-item h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.work-item p { max-width: 38rem; }

.stack {
  color: var(--muted);
  font-size: .9375rem;
}

/* Services */
.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 9vw, 6.5rem);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 3rem;
}

.service-list dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: .375rem;
}

.service-list dd { color: var(--muted); max-width: 30rem; }

/* Company and contact */
.company {
  background: var(--moss);
  color: var(--paper);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  /* Full-bleed band, content aligned with the 72rem column above */
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 3rem;
}

.company h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.company-intro > p { color: var(--moss-soft); max-width: 26rem; }

.contact-lines {
  margin-top: 1.75rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.5;
}
.contact-lines a {
  color: var(--paper);
  text-decoration-color: var(--saffron);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.contact-lines .place {
  font-family: var(--body);
  font-size: .9375rem;
  font-weight: 400;
  color: var(--moss-soft);
  margin-left: .375rem;
}

.register {
  border-left: 3px solid var(--saffron);
  padding-left: 1.75rem;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.register dt {
  color: var(--moss-soft);
  font-size: .9375rem;
}

.register dd {
  font-weight: 500;
  font-size: 1.125rem;
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .9375rem;
}

/* Privacy page */
.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) 4rem;
}
.prose h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  margin-bottom: .75rem;
}
.prose h2 {
  font-size: 1.375rem;
  margin: 2.25rem 0 .625rem;
}
.prose p, .prose ul { margin-bottom: 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose .updated { color: var(--muted); }

/* Narrow screens */
@media (max-width: 52rem) {
  .work-item { grid-template-columns: 1fr; gap: .625rem; }
  .company { grid-template-columns: 1fr; }
}

@media (max-width: 36rem) {
  .service-list { grid-template-columns: 1fr; }
  .site-header nav { gap: 1.125rem; }
  .lede { font-size: 1.125rem; }
}
