/* Anchor Hill — understated premium.
   Three colours, system fonts, inline SVG only, no JS, no external requests. */

:root {
  --ink: #1e2226;
  --ink-soft: #4b545e;
  --ink-faint: #7b8590;
  --ground: #faf8f5;
  --ground-deep: #f2eee7;
  --ground-dark: #1e2226;
  --accent: #6b5b3e;
  --accent-bright: #a08a5e;
  --rule: #e2dbd0;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;

  --measure: 36rem;
  --wide: 58rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 2rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- masthead ---------- */

.masthead {
  padding: 1.75rem 0;
  position: relative;
  z-index: 3;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark svg {
  display: block;
  flex: 0 0 auto;
}

.masthead a.nav {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.5rem 1.05rem;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.masthead a.nav:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 5.5rem;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.contours {
  position: absolute;
  top: -6rem;
  right: -10rem;
  width: 46rem;
  height: 46rem;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.05rem, 5vw, 3.15rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin: 0 0 1.5rem;
  max-width: 19ch;
}

.subhead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 2.5rem;
}

/* ---------- sections ---------- */

section {
  padding: 4.5rem 0;
}

section.tinted {
  background: var(--ground-deep);
}

section + section:not(.tinted):not(.dark) {
  border-top: 1px solid var(--rule);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 1.5rem;
  max-width: none;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 5rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.24;
  letter-spacing: -0.012em;
  margin: 0 0 1.5rem;
  max-width: 24ch;
}

h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1.35rem;
  max-width: var(--measure);
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- phases ---------- */

.phases {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 46rem) {
  .phases {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .phases p {
    max-width: none;
  }
}

.phase {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
}

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
  line-height: 1.45;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 1.75rem;
  max-width: 34rem;
  margin: 0;
}

/* ---------- operator ---------- */

.operator {
  display: flex;
  align-items: flex-start;
  gap: 2.25rem;
  margin-bottom: 2rem;
}

.operator p {
  margin: 0;
}

.portrait-frame {
  flex: 0 0 auto;
  position: relative;
  padding: 0 0 0.6rem 0.6rem;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent);
  border-radius: 2px;
}

.portrait {
  position: relative;
  display: block;
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 2px;
}

.ledger {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  max-width: var(--measure);
  border-top: 1px solid var(--rule);
}

.ledger li {
  position: relative;
  padding: 1.05rem 0 1.05rem 2.25rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}

.ledger li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.85rem;
  width: 1.25rem;
  height: 1px;
  background: var(--accent-bright);
}

/* ---------- imagery ---------- */

/* Full-bleed band. Fixed display height keeps the crop consistent and stops
   the page reflowing as the image decodes. */
.band {
  margin: 0;
}

.band img {
  display: block;
  width: 100%;
  height: clamp(200px, 28vw, 360px);
  object-fit: cover;
  object-position: center 60%;
}

.inset {
  margin: 0 0 2.75rem;
  max-width: 30rem;
}

.inset img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.steps > li:first-child {
  border-top: 1px solid var(--rule);
}

.steps > li::before {
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent-bright);
  line-height: 1.2;
  grid-row: span 2;
}

.steps .step-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.steps p {
  margin: 0;
}

@media (max-width: 34rem) {
  .steps > li {
    grid-template-columns: 2.5rem 1fr;
  }
  .steps > li::before {
    font-size: 1.25rem;
  }
}

/* ---------- fit ---------- */

.fit {
  display: grid;
  gap: 2rem;
}

@media (min-width: 46rem) {
  .fit {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .fit p {
    max-width: none;
  }
}

.fit .col {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

.fit .col.yes {
  border-top-color: var(--accent);
}

/* ---------- links + buttons ---------- */

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

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--ground);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent);
}

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

.quiet-link {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.quiet-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

/* ---------- closing block ---------- */

section.dark {
  background: var(--ground-dark);
  color: var(--ground);
  position: relative;
  overflow: hidden;
}

section.dark .wrap {
  position: relative;
  z-index: 2;
}

section.dark h2 {
  color: var(--ground);
}

section.dark p {
  color: #b9c0c8;
}

section.dark .eyebrow {
  color: var(--accent-bright);
}

section.dark .eyebrow::after {
  background: #3a4149;
}

section.dark .btn {
  background: var(--ground);
  color: var(--ink);
}

section.dark .btn:hover {
  background: var(--accent-bright);
}

section.dark a {
  color: var(--accent-bright);
}

.dark .contours-dark {
  position: absolute;
  right: -8rem;
  bottom: -14rem;
  width: 38rem;
  height: 38rem;
  opacity: 0.22;
  z-index: 1;
  pointer-events: none;
}

section.dark .actions {
  margin-top: 2rem;
}

.email-direct {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
}

/* ---------- footer ---------- */

footer.site {
  padding: 3rem 0;
  font-size: 0.875rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
}

footer.site .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  margin-bottom: 2.5rem;
}

footer.site p {
  margin: 0 0 0.35rem;
  max-width: none;
}

footer.site .label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

footer.site a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

footer.site a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

footer.site .legal-links a {
  margin-right: 1.25rem;
}

footer.site .spaced {
  margin-top: 1.25rem;
}

footer.site .baseline {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

/* ---------- long-form documents ---------- */

.doc {
  padding: 1rem 0 2rem;
  max-width: var(--measure);
}

.doc h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
  max-width: none;
}

.doc h2 {
  font-size: 1.1875rem;
  margin: 2.5rem 0 0.75rem;
  max-width: none;
}

.doc .updated {
  color: var(--ink-faint);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.doc ul {
  padding-left: 1.125rem;
  max-width: var(--measure);
}

.doc li {
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}

.notice {
  background: var(--ground-deep);
  border-left: 2px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.notice p {
  margin: 0;
}

@media (max-width: 34rem) {
  .wrap {
    padding: 0 1.5rem;
  }
  section {
    padding: 3rem 0;
  }
  .hero {
    padding: 2rem 0 3.5rem;
  }
  .contours {
    top: -3rem;
    right: -16rem;
    opacity: 0.35;
  }
  .operator {
    flex-direction: column;
    gap: 1.5rem;
  }
  .masthead a.nav {
    padding: 0.45rem 0.9rem;
  }
}
