/* Paths are relative to this stylesheet. */

@font-face {
  font-family: "Fraunces Local";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces Local";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans Local";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans Local";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sand: #f3eadc;
  --sand-deep: #e6d5bf;
  --paper: #fffaf3;
  --ink: #241f1b;
  --muted: #51483f;
  --graphite: #2a2826;
  --graphite-2: #3c3834;
  --copper: #8a451c;
  --copper-dark: #6b3014;
  --line: #dccbb6;
  --focus: #9a4e1e;
  --danger: #7a1d1d;
  --ok: #1d4a34;
  --serif: "Fraunces Local", Georgia, "Times New Roman", serif;
  --sans: "Source Sans Local", "Segoe UI", sans-serif;
  --wrap: 72rem;
  --measure: 68ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--copper-dark);
}

a:hover {
  color: var(--copper);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  z-index: 10;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 1.5rem));
  margin-inline: auto;
}

.site-header,
.site-footer {
  background: var(--sand);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: min(var(--wrap), calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.85rem 0 0.4rem;
}

.logo {
  flex: 1 1 14rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  line-height: 1.15;
}

.header-call,
.nav-toggle,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  border-radius: 999px;
}

.header-call {
  margin-left: auto;
  background: var(--graphite);
  color: #f6efe6;
  font-weight: 600;
}

.header-call:hover,
.header-call:focus-visible {
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 2px solid var(--graphite);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle .when-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .when-closed {
  display: none;
}

.nav-toggle[aria-expanded="true"] .when-open {
  display: inline;
}

#site-nav {
  flex: 1 0 100%;
  width: 100%;
  padding-bottom: 0.75rem;
}

#site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
  border-top: 1px solid var(--line);
}

#site-nav li {
  list-style: none;
}

#site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

#site-nav a[aria-current="page"] {
  color: var(--copper-dark);
  box-shadow: inset 0 -2px 0 var(--copper);
}

html.js .nav-toggle {
  display: none;
}

@media (max-width: 860px) {
  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js #site-nav {
    display: none;
  }

  html.js #site-nav.is-open {
    display: block;
  }

  .header-call {
    margin-left: 0;
  }
}

.hero {
  display: grid;
  gap: 0;
  background: var(--graphite);
  color: #f6efe6;
}

.hero-copy,
.hero-photo {
  min-width: 0;
}

.hero-copy {
  padding: 1.5rem 1rem 1.75rem;
}

.hero-copy h1,
.hero-copy p,
.hero-copy a {
  color: #f6efe6;
}

.eyebrow {
  margin: 0 0 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e0b089;
}

.hero-copy .eyebrow {
  color: #e7b48a;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  scroll-margin-top: 0.75rem;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.28rem;
  scroll-margin-top: 0.75rem;
}

.lede,
.lead {
  font-size: 1.2rem;
  max-width: var(--measure);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.btn {
  background: var(--copper-dark);
  color: #fffaf3;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn:hover,
.btn:focus-visible {
  background: #54260f;
  color: #fff;
}

.btn-quiet {
  background: transparent;
  color: inherit;
  border: 2px solid currentColor;
}

.hero .btn-quiet {
  color: #f6efe6;
}

.section {
  padding: 2.2rem 0;
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 1.2rem;
}

.card-grid,
.media-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  padding: 0.85rem;
  min-width: 0;
}

.card h2,
.card h3 {
  margin-top: 0.7rem;
}

.card p {
  margin-top: 0;
}

.card .text-link {
  font-weight: 700;
}

.prose {
  max-width: 75ch;
}

.prose > * + * {
  margin-top: 0.9rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.note,
.callout {
  background: var(--paper);
  border-left: 4px solid var(--copper);
  padding: 0.9rem 1rem;
}

.crumbs {
  padding-top: 1rem;
  font-size: 0.98rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--muted);
}

.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.8rem 1rem;
  margin: 1rem 0 1.4rem;
  max-width: 40rem;
}

.toc ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.steps {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--paper);
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
}

.steps strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 560;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--muted);
  font-size: 0.98rem;
  padding-top: 0.35rem;
}

.gallery {
  display: block;
  background: var(--graphite);
}

.gallery img {
  width: 100%;
}

.policy-identity {
  font-weight: 700;
  margin: 0 0 0.25rem;
  overflow-wrap: anywhere;
}

dl.factors {
  margin: 0;
}

dl.factors div {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

dl.factors dt {
  font-weight: 700;
}

dl.factors dd {
  margin: 0;
}

.quote-form {
  display: grid;
  gap: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem;
}

.quote-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border: 1px solid #b7a794;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.quote-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-help,
.fine {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.form-result {
  margin: 0;
  padding: 0.75rem 0.85rem;
}

.form-result.is-ok {
  background: #e5f2ea;
  color: var(--ok);
}

.form-result.is-note {
  background: #fff4e4;
  color: #5c3b16;
}

.form-result.is-error {
  background: #f8e6e2;
  color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-weight: 700;
  margin: 0.2rem 0 0;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: var(--graphite);
  color: #f3eadc;
  padding: 1.6rem 0 2rem;
  margin-top: 1rem;
}

.site-footer a {
  color: #f3d2b6;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.15rem 0;
}

.scope-line {
  max-width: 62ch;
}

dialog {
  max-width: min(60rem, calc(100vw - 1.5rem));
  width: 100%;
  border: 0;
  padding: 0.6rem;
  background: var(--graphite);
  color: #f6efe6;
}

dialog::backdrop {
  background: rgba(22, 18, 14, 0.78);
}

dialog img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-close {
  margin-bottom: 0.4rem;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero-copy {
    padding: 2.5rem 2rem;
  }

  .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.2rem;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2.2rem;
  }

  .card-grid.cards-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (max-width: 359px) {
  body {
    font-size: 1.05rem;
  }

  .wrap,
  .site-header {
    width: min(var(--wrap), calc(100% - 1rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
