/* Keystone Partners preview. System fonts only.
   Charcoal plaid is a fixed full-viewport watermark behind content,
   a 72px band under the hero (40px on small screens), and a 12px footer strip.
   logo.png is white artwork: the header darkens it with a filter so it
   reads on white. The file itself is not redrawn. */
:root {
  --ink: #0B0B0C;
  --charcoal: #242426;
  --graphite: #4A4A4D;
  --silver: #A8A8AC;
  --mist: #E8E8EB;
  --white: #FFFFFF;

  --font: "Helvetica Neue", "Avenir Next", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

  --content: 1200px;
  --pad: 24px;
  --section: 4.5rem;
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--white); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px — within 16–18 on a phone */
  font-weight: 400;
  line-height: 1.6;
  color: var(--graphite);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Full-viewport charcoal/silver/mist plaid. Behind content, not the hero photo.
   z-index 0 sits above the white canvas; header, main, and footer stack above it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/plaid-charcoal.png");
  background-repeat: repeat;
  background-size: 480px auto;
  opacity: 0.07;
}
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: .18em; }
p { margin: 0 0 1rem; }
h1, h2, h3 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: 2.375rem; line-height: 1.05; } /* 38px */
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; font-weight: 400; margin-bottom: .35rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--content) + (var(--pad) * 2));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 20;
  background: var(--white); color: var(--ink); padding: .75rem 1rem; font-weight: 600;
}
.skip-link:focus { top: .5rem; }

:focus { outline: none; }
:focus-visible { box-shadow: var(--focus); border-radius: 1px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--mist);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: 1.1rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img {
  width: 200px;
  height: auto;
  /* Supplied wordmark is white. Render it as ink on the white header. */
  filter: brightness(0);
}
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.15rem;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-list a:hover { text-decoration: underline; text-underline-offset: .35em; }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--ink);
  background-image: url("assets/hero-field.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left center;
  color: var(--white);
}
.hero-inner { padding-block: 80px; }
.hero-copy { max-width: 100%; }
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.hero-sub {
  color: var(--white);
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0 0 1.75rem;
  max-width: 28rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.4rem;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
}
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--mist); }

/* Charcoal plaid, under the hero only. Wordmark is not in this asset. */
.plaid-band {
  height: 40px;
  background-color: var(--charcoal);
  background-image: url("assets/plaid-charcoal.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn:disabled,
.btn[disabled] {
  background: var(--silver);
  color: var(--white);
  cursor: not-allowed;
  opacity: 1;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); background: transparent; }
.section-mist { background: rgba(232, 232, 235, 0.55); }

.offer-cards {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.offer-cards li {
  margin: 0;
  min-height: 8.5rem;
  padding: 1.5rem;
  border: 1px solid var(--silver);
  background: var(--white);
  color: var(--graphite);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: .45rem;
  text-align: left;
  font-size: 1rem;
}
.offer-cards h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.offer-cards p { margin: 0; line-height: 1.45; }
.offer-note {
  margin: 1.25rem 0 0;
  max-width: 40rem;
  color: var(--graphite);
  font-size: .9375rem;
}
.help-title {
  margin: 2.5rem 0 0;
  font-size: 1.5rem;
  font-weight: 300;
}
.help-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.help-list li {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--silver);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.4;
}

.band-photo { margin: 2rem 0 0; }
.band-photo img,
.limestone-band img,
.about-photo img,
.envelope-photo img {
  width: 100%;
  object-fit: cover;
}
.band-photo-shallow img { height: 140px; object-position: center 62%; }
.band-photo-stones { margin-top: 0; }
.band-photo-stones img { height: 200px; object-position: center; }
.arch-photo { margin: 0 0 1.75rem; }
.arch-photo img { width: 100%; height: 200px; object-fit: cover; object-position: center 40%; }
.stairs-photo { margin-top: 1.5rem; }
.stairs-photo img { width: 100%; height: 280px; object-fit: cover; object-position: center 42%; }
.keys-photo { margin: 0 0 1.15rem; max-width: 220px; }
.keys-photo img { width: 100%; height: 148px; object-fit: cover; object-position: center; }

/* ---------- About ---------- */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.about-photo { margin: 0; }
.about-photo img { height: 240px; object-position: center; }
.about-lead {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 400;
}
.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.portrait {
  aspect-ratio: 4 / 5;
  margin-bottom: .9rem;
  background: var(--white);
  border: 1px solid var(--silver);
  display: flex;
  align-items: flex-end;
  padding: .9rem;
  color: var(--graphite);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
img.portrait {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  object-fit: cover;
  object-position: center 28%;
  letter-spacing: normal;
  text-transform: none;
  font-size: inherit;
  font-weight: inherit;
}
.person p { margin: 0 0 .2rem; color: var(--graphite); }

/* ---------- Process ---------- */
.steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--silver);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: .6rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--graphite);
}
.pending-note {
  margin: 1.25rem 0 0;
  color: var(--graphite);
  font-size: .9375rem;
}

/* ---------- Limestone ---------- */
.limestone-band {
  height: 24px;
  overflow: hidden;
  background: #e4e2dc;
}
.limestone-band img { height: 24px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-panel { order: 1; }
.envelope-photo { order: 2; margin: 0; }
.envelope-photo img { height: 240px; object-position: center; }

.notice {
  margin: 0 0 .75rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--silver);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
.inbox-pending {
  margin: 0 0 1.25rem;
  color: var(--graphite);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.field { margin-bottom: 1.1rem; }
label {
  display: block;
  margin-bottom: .4rem;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
}
.optional { font-weight: 400; color: var(--graphite); }
input, textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: 0;
}
textarea { resize: vertical; min-height: 9rem; }
input:focus-visible, textarea:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
}
.form-fine { margin: 0; font-size: .875rem; color: var(--graphite); }

/* ---------- Privacy prose ---------- */
.prose { max-width: 44rem; }
.prose h1 { font-size: 2.375rem; font-weight: 300; }
.prose h2 { font-size: 1.5rem; font-weight: 400; margin-top: 2.5rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .35rem; }
.page-kicker {
  margin: 0 0 .75rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ---------- Footer ---------- */
.site-footer {
  color: var(--mist);
  background-color: var(--charcoal);
  background-image:
    linear-gradient(rgba(36, 36, 38, 0.9), rgba(36, 36, 38, 0.9)),
    url("assets/texture-stone.png");
  background-size: cover;
  background-position: center;
  padding-block: 0;
}
.site-footer::before {
  content: "";
  display: block;
  height: 12px;
  background-color: var(--charcoal);
  background-image: url("assets/plaid-charcoal.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.footer-inner {
  display: grid;
  gap: 1.25rem;
  padding-block: 3rem;
}
.footer-logo { width: 200px; height: auto; }
.domain {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: .02em;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--white);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: .3em; }
.disclosure {
  margin: 0;
  max-width: 42rem;
  color: var(--silver);
  font-size: .875rem;
  line-height: 1.55;
}

/* ---------- Desktop ---------- */
@media (min-width: 48rem) {
  :root { --pad: 64px; --section: 6rem; }
  body { font-size: 1.125rem; } /* 18px */
  .brand img, .footer-logo { width: 240px; }
  .header-inner { padding-block: 1.25rem; }
  h1 { font-size: 3.75rem; font-weight: 300; } /* 60px */
  h2 { font-size: 2.5rem; }
  .hero-inner { padding-block: 120px; }
  .plaid-band { height: 72px; }
  .hero-copy { max-width: 45%; }
  .hero-sub { font-size: 1.2rem; }
  .offer-cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .offer-cards li { min-height: 10rem; }
  .help-title { font-size: 1.75rem; }
  .help-list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
  .help-list li { font-size: 1.2rem; }
  .band-photo-shallow img { height: 200px; }
  .band-photo-stones img { height: 320px; }
  .arch-photo img { height: 340px; }
  .stairs-photo img { height: 440px; }
  .about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "photo text"
      "photo people";
    column-gap: 3rem;
    row-gap: 1.75rem;
    align-items: start;
  }
  .about-photo { grid-area: photo; align-self: start; }
  .about-photo img { height: auto; aspect-ratio: 4 / 3; min-height: 0; object-position: center; }
  .about-text { grid-area: text; }
  .people { grid-area: people; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .about-lead { font-size: 1.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
  .steps li { font-size: 1.35rem; padding-top: 1.15rem; }
  .limestone-band, .limestone-band img { height: 48px; }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: stretch;
  }
  .contact-panel, .envelope-photo { order: 0; }
  .envelope-photo { height: 100%; }
  .envelope-photo img { height: 100%; min-height: 420px; }
  .footer-inner { padding-block: 3.5rem; }
}

@media (max-width: 22rem) {
  body { font-size: 1rem; }
  h1 { font-size: 2.25rem; } /* 36px */
  .brand img { width: 168px; }
}
