:root {
  --paper: #f6f3ee;
  --paper-2: #fffdfb;
  --paper-3: #efeae3;
  --ink: #161616;
  --ink-soft: #2c2a27;
  --muted: #4a453e;
  --line: #ddd6cb;
  --line-strong: #cfc6b8;
  --accent: #1b3f46;
  --accent-dark: #122e34;
  --max: 1120px;
  --header: 4rem;
  --sans: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

p,
dd,
li {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--paper-2);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  z-index: 30;
  border: 1px solid var(--ink);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.eyebrow,
.kicker,
.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.65;
}

.note,
.field-help,
.colophon,
.frame-figure figcaption,
.card-relation {
  color: var(--muted);
}

.note {
  max-width: 42rem;
  margin-top: 0.85rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.wordmark:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  padding-block: 0.15rem;
}

.site-nav a:not(.button):hover,
.site-nav a[aria-current="true"] {
  border-bottom-color: currentColor;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font: inherit;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.button,
.text-button {
  font: inherit;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.75rem 1.05rem;
  line-height: 1.2;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--paper);
}

.text-link,
.text-button {
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.text-button {
  font-size: 0.95rem;
}

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

.hero {
  padding-block: clamp(3.25rem, 8vw, 6.25rem) clamp(3rem, 7vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  margin-top: 0.85rem;
  font-size: clamp(2.45rem, 5.6vw, 4.15rem);
  max-width: 16ch;
}

.frame {
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
}

.frame-bar {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  height: 2.25rem;
  padding-inline: 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-3);
}

.frame-bar span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.frame-body {
  min-height: 16rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.frame-block {
  flex: 1;
  min-height: 7rem;
  background: #ebe4da;
  border: 1px solid var(--line);
}

.frame-body i {
  display: block;
  height: 0.45rem;
  width: 86%;
  background: #e3dcd1;
  font-style: normal;
}

.frame-body i.short {
  width: 48%;
}

.frame-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.875rem;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 5.75rem);
}

.section-rule {
  border-block: 1px solid var(--line);
}

.section h2 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.work-grid,
.service-grid,
.steps {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.steps li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 1.25rem 1.2rem 1.35rem;
  min-width: 0;
}

.card h3,
.steps h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-top: 0.45rem;
}

.service-grid h3 {
  margin-top: 0;
}

.card h3 + p,
.steps h3 + p {
  margin-top: 0.65rem;
}

.card p + p,
.card .card-label,
.card .card-relation,
.card .text-link,
.steps p {
  margin-top: 0.75rem;
}

.card-label {
  display: block;
  margin-top: 1.1rem;
}

.card-relation,
.steps p,
.card p {
  font-size: 1rem;
  line-height: 1.55;
}

.card .text-link {
  display: inline-block;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.steps {
  counter-reset: step;
}

.steps li {
  display: flex;
  flex-direction: column;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.steps .kicker {
  margin-top: 0.7rem;
}

.steps h3 {
  margin-top: 0.55rem;
}

.steps .is-later {
  background: transparent;
  border-style: dashed;
}

.contact {
  background: var(--paper-3);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: start;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.35rem;
  min-width: 0;
}

legend,
.notes-field label {
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0;
  margin-bottom: 0.65rem;
}

.choices {
  display: grid;
  gap: 0.55rem;
}

.choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
}

.choice:has(input:checked) {
  background: var(--paper-2);
  border-color: var(--accent);
}

.choice input {
  margin-top: 0.28rem;
  accent-color: var(--accent);
}

.choice input:focus-visible {
  outline: none;
}

.choice-title,
.choice-hint {
  display: block;
}

.choice-title {
  font-weight: 600;
  color: var(--ink);
}

.choice-hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.1rem;
}

.notes-field label {
  display: block;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 8rem;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  padding: 0.75rem 0.8rem;
}

.field-help {
  margin-top: 0.55rem;
  font-size: 0.92rem;
}

.sheet {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  padding: 1.25rem 1.2rem 1.35rem;
  position: sticky;
  top: calc(var(--header) + 1rem);
}

.sheet h3 {
  margin-top: 0.4rem;
  font-size: 1.45rem;
}

.sheet dl {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.55rem 0.75rem;
}

.sheet dt {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#out-limits {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

#out-limits p,
#checklist-reading {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

#checklist-reading {
  margin-top: 1rem;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.25rem;
}

html:not(.js) .js-only {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.25rem 2.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto minmax(14rem, 22rem);
  gap: 1.5rem 2rem;
  align-items: start;
}

.footer-grid p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.footer-grid nav {
  display: flex;
  gap: 1rem;
}

.footer-grid nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-grid nav a:hover {
  border-bottom-color: currentColor;
}

.colophon {
  margin-top: 0;
  font-size: 0.92rem;
}

:focus {
  outline: none;
}

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

.choice:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .hero-grid,
  .work-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 18ch;
  }

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

  .frame-body {
    min-height: 12rem;
  }

  .sheet {
    position: static;
  }

  .footer-grid nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 0.7rem;
  }

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .nav-cta {
    margin-top: 0.4rem;
  }

  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js .site-nav {
    display: none;
    position: static;
    border-top: 1px solid var(--line);
    margin-top: 0.35rem;
    padding: 0.35rem 0 0.15rem;
  }

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

  html.js .site-nav a:not(.button) {
    padding-block: 0.65rem;
  }

  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .sheet dl {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }

  .sheet dt {
    margin-top: 0.65rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .button,
  .card,
  .steps li,
  .choice,
  .frame,
  .sheet,
  .nav-toggle {
    border: 1px solid CanvasText;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .actions,
  .sheet-actions {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .card,
  .steps li,
  .sheet {
    break-inside: avoid;
  }
}
