:root {
  --paper: #FAF9F6;
  --ink: #17262B;
  --slate: #55656B;
  --stone: #DDD8CC;
  --teal: #236B6A;
  --teal-deep: #174E4D;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 100%; line-height: 1.55; -webkit-text-size-adjust: 100%; }
body { margin: 0; }

a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: var(--measure); }

/* Masthead */
.masthead {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem;
  padding: 1.5rem var(--gutter);
  border-bottom: 1px solid var(--stone);
}
.wordmark { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.95rem; }
.masthead nav a { color: var(--slate); text-decoration: none; }
.masthead nav a:hover { color: var(--ink); }

/* Sections */
main > section { padding: clamp(3rem, 8vw, 6rem) var(--gutter); border-bottom: 1px solid var(--stone); }
main > section:last-child { border-bottom: 0; }
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.section-sub { color: var(--slate); margin: 0.5rem 0 0; }

/* Hero */
.hero h1 { font-size: clamp(2.1rem, 6vw, 4.25rem); max-width: 18ch; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-top: 1.5rem; max-width: 52ch; color: var(--slate); }

.doors { display: grid; gap: 1px; background: var(--stone); border: 1px solid var(--stone); margin-top: 2.5rem; max-width: 56rem; }
@media (min-width: 720px) { .doors { grid-template-columns: 1fr 1fr; } }
.door { display: block; background: var(--paper); padding: 1.5rem 1.5rem 1.75rem; text-decoration: none; color: var(--ink); }
.door:hover { background: #fff; }
.door-who { display: block; color: var(--slate); font-size: 0.9rem; margin-bottom: 0.5rem; }
.door-what { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }

/* Featured product */
.featured { background: #fff; }
.prose p { font-size: 1.05rem; }
.sample { margin: 2.5rem 0 2rem; max-width: 56rem; }
.sample-report { display: grid; gap: 1.75rem; border: 1px solid var(--stone); background: var(--paper); padding: 1.5rem; }
@media (min-width: 720px) { .sample-report { grid-template-columns: minmax(0, 15rem) 1fr; gap: 2.25rem; padding: 2rem; } }
.sample-cover { display: block; max-width: 18rem; justify-self: center; }
.sample-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--stone); box-shadow: 0 8px 24px rgba(23, 38, 43, 0.14); }
.sample-cover:hover img { box-shadow: 0 10px 28px rgba(23, 38, 43, 0.2); }
.sample-text .eyebrow { color: var(--slate); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.4rem; }
.sample-text h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.sample-text p { max-width: 52ch; }
.sample-contents { margin: 0 0 1.25rem; padding-left: 1.1rem; max-width: 52ch; }
.sample-contents li { margin-bottom: 0.3rem; }
.sample-text .small { color: var(--slate); font-size: 0.85rem; margin-top: 1rem; margin-bottom: 0; }
figcaption { color: var(--slate); font-size: 0.9rem; margin-top: 0.75rem; max-width: var(--measure); }
.cta-line { margin-top: 1.5rem; }

.button {
  display: inline-block; font: 500 1rem var(--sans); color: #fff; background: var(--teal-deep);
  padding: 0.85rem 1.25rem; border: 0; border-radius: 3px; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--teal); color: #fff; }

/* Work list */
.work-list { margin: 0; max-width: 56rem; }
.work-item { padding: 1.5rem 0; border-top: 1px solid var(--stone); display: grid; gap: 0.5rem 2rem; }
@media (min-width: 720px) { .work-item { grid-template-columns: 18rem 1fr; } }
.work-item dt { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.25; }
.work-item dd { margin: 0; color: var(--slate); max-width: var(--measure); }

/* Timeline: the one loud element on the page */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 56rem; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--stone); align-items: start; }
.timeline .year { font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 600; line-height: 1; color: var(--teal-deep); }
.timeline h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.timeline p { color: var(--slate); margin: 0; }
@media (max-width: 480px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* Contact */
form { max-width: 34rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
label { font-size: 0.9rem; color: var(--slate); }
input, select, textarea {
  font: 1rem var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--stone); border-radius: 3px; padding: 0.65rem 0.75rem; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 2px rgba(35,107,106,0.2); }
.hidden-field { position: absolute; left: -10000px; }
.direct { margin-top: 1.5rem; color: var(--slate); }

/* Footer */
.colophon { padding: 2rem var(--gutter) 3rem; border-top: 1px solid var(--stone); color: var(--slate); font-size: 0.9rem; }
.colophon p { margin: 0 0 0.35rem; }

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