/* Foreclosure Helper
   Quiet counsel. A private client letter set on bone paper: one narrow reading
   column, a calm serif, generous leading, and soft domestic photographs laid
   in as wide bands between the sections. */

:root {
  --slate: #2C3E50;
  --sage: #8FA89B;
  --bone: #F6F4EF;
  --clay: #B98B6E;
  --ink: #1D2327;

  /* derived tones, kept inside the palette */
  --bone-deep: #EEEAE2;
  --paper: #FFFFFF;
  --ink-soft: #46515A;
  --sage-ink: #52695D;
  --clay-ink: #86593F;
  --rule: rgba(44, 62, 80, 0.15);
  --rule-firm: rgba(44, 62, 80, 0.38);
  --on-slate: #E9ECE8;
  --on-slate-soft: #B7C2C4;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 56px);
  --frame: 84rem;
}

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

html {
  background: var(--bone);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hanging-punctuation: first allow-end last;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-kerning: normal;
  font-feature-settings: "kern", "liga";
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  body { font-size: 1.125rem; }
}

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

::selection { background: rgba(143, 168, 155, 0.38); color: var(--ink); }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--slate);
  font-optical-sizing: auto;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 1.6rem + 3.4vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.008em;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.3;
}

p { margin: 0 0 1.15em; text-wrap: pretty; }

a {
  color: var(--slate);
  text-decoration-line: underline;
  text-decoration-color: rgba(185, 139, 110, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
a:hover { text-decoration-color: var(--slate); }

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  border-radius: 1px;
}

strong { font-weight: 500; color: var(--ink); }
em { font-style: italic; }

.num, .tel {
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
}

.smallcaps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.07em;
  font-feature-settings: "c2sc", "smcp";
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--slate);
  color: var(--bone);
  padding: 0.6rem 1rem;
  z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

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

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--bone);
  position: relative;
  z-index: 20;
}

.masthead__inner {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 1.35rem var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.005em;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.wordmark:hover { color: var(--ink); }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(1.1rem, 1.8vw, 2rem);
  align-items: baseline;
}

.nav a {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--slate); border-bottom-color: var(--rule-firm); }
.nav a[aria-current="page"] { color: var(--slate); border-bottom-color: var(--clay); }
@media (min-width: 960px) { .nav .nav__call { display: none; } }

.menu-toggle {
  display: none;
  font: 500 0.85rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--rule-firm);
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  border-radius: 0;
}

@media (max-width: 959px) {
  .masthead__inner { align-items: center; padding-top: 1rem; padding-bottom: 1rem; }
  .menu-toggle { display: inline-block; }
  .js .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bone);
    border-bottom: 1px solid var(--rule-firm);
    padding: 0.5rem var(--gutter) 1.5rem;
    min-height: calc(100vh - 4.4rem);
    min-height: calc(100dvh - 4.4rem);
    overflow-y: auto;
  }
  .js .masthead.is-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-top: 1px solid var(--rule); }
  .nav li:first-child { border-top: 0; }
  .nav a {
    display: block;
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--slate);
    padding: 0.8rem 0;
    border-bottom: 0;
  }
  .nav a[aria-current="page"] { color: var(--clay-ink); border-bottom: 0; }
  .nav li.nav__call { border-top: 1px solid var(--rule-firm); margin-top: 1.75rem; padding-top: 1.25rem; }
  .nav .nav__call a { font: 400 1rem/1.4 var(--sans); color: var(--slate); white-space: normal; text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 0.3em; }
  .nav a[aria-current="page"]::after { content: "  \00B7  you are here"; font: 400 0.8rem var(--sans); color: var(--ink-soft); }
  html:not(.js) .masthead__inner { flex-wrap: wrap; }
  html:not(.js) .menu-toggle { display: none; }
}

/* ---------- page grid ---------- */

.page { display: block; }

.col {
  width: min(var(--measure), 100% - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}

.wide {
  width: min(var(--frame), 100% - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}

/* opening of each page */
.opening {
  padding-top: clamp(3.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.opening h1 { margin-bottom: 1.6rem; }
.opening .lede { margin-bottom: 0; }
.opening .lede--gap { margin-bottom: 1.25rem; }

.opening--home { padding-top: clamp(4rem, 10vw, 9rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.opening--home h1 { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.9rem); }

.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--sage-ink);
  margin: 0 0 1.4rem;
}

/* the one primary action */
.call {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.5rem;
}
.call__button {
  display: inline-block;
  background: var(--slate);
  color: var(--bone);
  text-decoration: none;
  padding: 0.95rem 1.5rem 0.95rem;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--slate);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.call__button:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.call__button .num { margin-left: 0.35em; }
.call__note { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* sections: rhythm varies on purpose */
.section { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 0; }
.section--tight { padding-top: clamp(2rem, 4vw, 3rem); }
.section--roomy { padding-top: clamp(4.5rem, 9vw, 7.5rem); padding-bottom: clamp(0.5rem, 1.5vw, 1.25rem); }
.section h2 { margin-bottom: 1.1rem; }
.section h3 { margin: 2rem 0 0.6rem; }
.section > .col > h2:first-child { margin-top: 0; }
.section > .col > h2:not(:first-child) { margin-top: clamp(3rem, 6vw, 4.25rem); }
.section > .col > .qa:first-child { padding-top: 0.25rem; }

.prose ul, .prose ol:not(.timeline) { padding-left: 1.2rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.45em; padding-left: 0.2rem; }
.prose li::marker { color: var(--clay); }

.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0;
}

.fleuron {
  text-align: center;
  font-family: var(--serif);
  color: var(--clay);
  font-size: 1.1rem;
  letter-spacing: 0.9em;
  padding-left: 0.9em;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
}

/* photographs laid in as bands */
.band { margin: clamp(2.5rem, 6vw, 5rem) 0 0; }
.band img { width: 100%; object-fit: cover; background: var(--bone-deep); }
.band--full img { aspect-ratio: 21 / 9; max-height: 82vh; }
.band--wide { width: min(var(--frame), 100% - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.band--wide img { aspect-ratio: 16 / 8; }
.band--panorama img { aspect-ratio: 5 / 2; }
.band figcaption {
  width: min(var(--frame), 100% - 2 * var(--gutter));
  margin: 0.7rem auto 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.band--wide figcaption { width: auto; }
.band--full figcaption { text-align: right; }

@media (max-width: 700px) {
  .band--full img { aspect-ratio: 4 / 3; }
  .band--wide img, .band--panorama img { aspect-ratio: 4 / 3; }
  .band--wide { width: 100%; }
  .band--wide figcaption { padding: 0 var(--gutter); }
}

/* compliance aside near the top of the informational pages */
.notice {
  margin: 2.25rem 0 0;
  padding: 1.1rem 0 1.15rem 1.25rem;
  border-left: 2px solid var(--sage);
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.notice p { margin: 0; }
.notice strong { color: var(--slate); }

/* table of contents on long pages */
.contents {
  margin: 2.75rem 0 0;
  padding: 1.4rem 0 0.4rem;
  border-top: 1px solid var(--rule-firm);
}
.contents h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.prose .contents ol, .contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
}
.contents li, .prose .contents li { margin: 0 0 0.45rem; padding-left: 0; break-inside: avoid; }
.contents a {
  font-family: var(--serif);
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--slate);
}
.contents a:hover { text-decoration: underline; text-decoration-color: var(--clay); }
@media (max-width: 560px) { .contents ol { columns: 1; } }

/* options: each one set like an entry in a letter */
.option { padding-top: clamp(2.75rem, 5vw, 4rem); }
.option + .option { border-top: 1px solid var(--rule); margin-top: clamp(2.25rem, 4vw, 3rem); }
.option h2 { margin-bottom: 0.4rem; }
.option .gist {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--sage-ink);
  margin-bottom: 1.2rem;
}
.label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay-ink);
  margin: 1.6rem 0 0.35rem;
}

/* options: the turn from keeping the house to leaving it well */
.interlude {
  width: min(70rem, 100% - 2 * var(--gutter));
  margin: clamp(4rem, 8vw, 7rem) auto clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}
.interlude__fig { margin: 0; }
.interlude__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.interlude__text h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); line-height: 1.12; margin-bottom: 1.25rem; }
.interlude__text p { max-width: 30rem; }
.interlude__text p:last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .interlude { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6rem); }
  .interlude__text { padding-bottom: 1rem; border-bottom: 1px solid var(--rule-firm); }
}
@media (max-width: 859px) {
  .interlude__fig img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
}

/* process timeline down the left of the column */
.timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.6rem;
  bottom: 2.5rem;
  width: 1px;
  background: var(--sage);
}
.timeline > li {
  position: relative;
  padding: 0 0 clamp(2.75rem, 5vw, 3.75rem) 2.6rem;
}
.timeline > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--bone);
  border: 1px solid var(--slate);
}
.timeline > li.is-mark::before { background: var(--clay); border-color: var(--clay); }
@media (max-width: 600px) {
  .timeline > li { padding-left: 1.85rem; }
  .timeline::before { left: 0.35rem; }
  .timeline > li::before { width: 0.7rem; height: 0.7rem; top: 0.5rem; }
}
.timeline .stage {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--sage-ink);
  margin-bottom: 0.3rem;
}
@media (min-width: 1100px) {
  .timeline .stage {
    position: absolute;
    right: calc(100% + 1.75rem);
    top: 0.55rem;
    width: 11.5rem;
    text-align: right;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-variant-caps: normal;
    font-size: 1.02rem;
    letter-spacing: 0;
    line-height: 1.35;
    color: var(--sage-ink);
    margin: 0;
  }
}
.timeline h2 { margin-bottom: 0.9rem; }
.timeline .arrives {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.timeline > li:last-child { padding-bottom: 0.5rem; }

/* home: a short preview of the process timeline */
.timeline--brief { margin-top: 2.25rem; }
.timeline--brief::before { bottom: 1.25rem; }
.timeline--brief > li { padding-bottom: clamp(1.75rem, 3.5vw, 2.4rem); }
.timeline--brief h3 { font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.45rem); margin: 0 0 0.45rem; }
.timeline--brief p { font-size: 1rem; line-height: 1.7; margin: 0; }
.timeline--brief > li:last-child { padding-bottom: 0.25rem; }
.timeline-after { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.98rem; }

/* worked arithmetic, set like a ledger */
.ledger {
  margin: 1.75rem 0 1.75rem;
  border-top: 1px solid var(--rule-firm);
  border-bottom: 1px solid var(--rule-firm);
  padding: 0.6rem 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.ledger div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 0;
  font-size: 0.98rem;
  border-bottom: 1px dotted var(--rule);
}
.ledger div:last-child { border-bottom: 0; }
.ledger dt { color: var(--ink); }
.ledger dd { margin: 0; color: var(--ink-soft); text-align: right; font-style: italic; font-family: var(--serif); font-size: 1.05rem; }
.ledger .total dt { font-weight: 500; color: var(--slate); }
.ledger .total dd { color: var(--slate); font-style: normal; }

/* a pulled line, used once or twice per page at most */
.pull {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
  line-height: 1.35;
  color: var(--slate);
  margin: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--clay);
  max-width: 34ch;
}

/* home: the note from Austin, set on the page itself like a signed client letter */
.letter {
  border-top: 1px solid var(--clay);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.letter__place {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  color: var(--sage-ink);
  margin: 0 0 1.6rem;
}
.letter .letter__re {
  font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem);
  margin: 0 0 1.4rem;
}
.letter > p:not([class]) { font-family: var(--serif); font-size: 1.22rem; line-height: 1.62; color: var(--ink); }
@media (max-width: 600px) { .letter > p:not([class]) { font-size: 1.14rem; } }
.signoff {
  display: flex;
  align-items: flex-end;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: 2.5rem;
}
.signoff__portrait {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(5.75rem, 16vw, 7.25rem);
  background: var(--paper);
  padding: 0.45rem 0.45rem 0;
  outline: 1px solid var(--rule);
}
.signoff__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}
.signoff__text p { margin: 0; }
.signoff__close { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); line-height: 1.3; }
.signoff__text .signoff__sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--slate);
  margin: 0.15rem 0 0.4rem;
}
.signoff__role { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.signoff__role .nw { white-space: nowrap; }
.signoff__role a { color: var(--ink-soft); }
@media (max-width: 520px) {
  .signoff__role .sep { display: none; }
  .signoff__role .nw, .signoff__role a { display: block; }
}

/* about: portrait on a white panel */
.portrait {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 2.5vw, 1.5rem) 0;
  margin: 0 0 2.5rem;
  max-width: 24rem;
}
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.portrait figcaption {
  padding: 0.9rem 0 1rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.portrait figcaption strong { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: var(--slate); display: block; }

@media (min-width: 1100px) {
  .about-open {
    display: grid;
    grid-template-columns: 20rem min(var(--measure), 100%);
    gap: clamp(3rem, 5vw, 5rem);
    justify-content: center;
    align-items: start;
    width: min(var(--frame), 100% - 2 * var(--gutter));
    margin: 0 auto;
  }
  .about-open .col { width: auto; margin: 0; }
  .about-open .portrait { margin: 0.6rem 0 0; position: sticky; top: 2rem; }
}
@media (max-width: 1099px) {
  .about-open .portrait {
    width: min(18rem, 100% - 2 * var(--gutter));
    margin-left: max(var(--gutter), calc(50% - var(--measure) / 2));
    margin-right: 0;
  }
}

.is-isnt {
  margin: 1.5rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.25rem;
}
.is-isnt h3 { margin: 0 0 0.5rem; font-size: 1.15rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule-firm); }
.is-isnt ul { list-style: none; padding: 0; margin: 0; }
.is-isnt li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); font-size: 0.97rem; line-height: 1.55; }
@media (max-width: 620px) {
  .is-isnt { grid-template-columns: 1fr; gap: 2rem; }
}

/* questions page */
.qa { padding-top: clamp(2.25rem, 4vw, 3rem); }
.qa + .qa { border-top: 1px solid var(--rule); margin-top: clamp(1.75rem, 3vw, 2.25rem); }
.qa h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin-bottom: 0.8rem; }
.qa .answer-first { font-family: var(--serif); font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.4rem); line-height: 1.5; color: var(--ink); }

/* contact */
.contact-grid {
  width: min(68rem, 100% - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}
@media (min-width: 980px) {
  .contact-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(3.5rem, 6vw, 6rem); align-items: start; }
}
.phone-line {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  line-height: 1.1;
  color: var(--slate);
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem 0 0.35rem;
  font-variant-numeric: lining-nums tabular-nums;
  border-bottom: 1px solid var(--clay);
}
.phone-line:hover { color: var(--ink); }
.contact-grid .lede { text-wrap: balance; }
.contact-meta { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.65; margin-top: 1.5rem; }
.contact-meta a { color: var(--slate); }
.contact-photo { margin: 0; }
@media (min-width: 980px) { .contact-photo { position: sticky; top: 2rem; margin-top: 0.75rem; } }
.contact-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 60%; }
@media (min-width: 980px) { .contact-photo img { aspect-ratio: 2 / 3; object-position: 66% 60%; } }
.contact-photo figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.6rem; }

.form { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--rule-firm); }
.form h2 { margin-bottom: 0.5rem; }
.form .hint { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.field { margin: 0 0 1.35rem; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1.02rem/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-firm);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--slate); outline-offset: 1px; border-color: var(--slate); }
.field [aria-invalid="true"] { border-color: var(--clay-ink); }
.field-error { font-size: 0.86rem; color: var(--clay-ink); margin: 0.35rem 0 0; }
.form-error { font-size: 0.86rem; color: var(--clay-ink); margin: 0 0 1rem; }
.form-error:empty { display: none; }
.form-error a { color: inherit; }
.submit:disabled { opacity: 0.6; cursor: default; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.submit {
  font: 400 1rem/1 var(--sans);
  letter-spacing: 0.01em;
  background: var(--slate);
  color: var(--bone);
  border: 1px solid var(--slate);
  padding: 1rem 1.6rem;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.2s ease;
}
.submit:hover { background: var(--ink); }
.form .fine { font-size: 0.84rem; color: var(--ink-soft); margin: 1rem 0 0; line-height: 1.55; }
.thanks { margin-top: 2.5rem; padding: 2rem 0 0; border-top: 1px solid var(--rule-firm); }
.thanks h2 { margin-bottom: 0.8rem; }
.thanks:focus { outline: none; }

/* closing call, the same quiet action at the foot of every page */
.closing {
  background: var(--slate);
  color: var(--on-slate);
  margin-top: clamp(4.5rem, 9vw, 8rem);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.closing h2 { color: var(--bone); font-size: clamp(1.8rem, 1.4rem + 1.7vw, 2.7rem); margin-bottom: 1.1rem; }
.closing p { color: var(--on-slate); }
.closing a { color: var(--bone); text-decoration-color: rgba(185, 139, 110, 0.9); }
.closing .phone-big {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  line-height: 1.1;
  text-decoration: none;
  color: var(--bone);
  border-bottom: 1px solid var(--clay);
  margin: 0.6rem 0 1.1rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.closing .phone-big:hover { border-bottom-color: var(--bone); }
.closing .quiet { font-size: 0.93rem; color: var(--on-slate-soft); margin: 0; }

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

.footer {
  background: var(--bone-deep);
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
}
.footer__grid {
  width: min(var(--frame), 100% - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
}
.footer .wordmark { font-size: 1.35rem; display: inline-block; margin-bottom: 0.9rem; }
.footer h2 {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.35rem 0 0.9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.4rem; }
.footer a { color: var(--slate); text-decoration-color: rgba(44, 62, 80, 0.25); }
.footer a:hover { text-decoration-color: var(--slate); }
.footer p { margin: 0 0 0.7rem; }
.footer__legal {
  width: min(var(--frame), 100% - 2 * var(--gutter));
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-firm);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-soft);
  display: grid;
  gap: 0.35rem;
}
.footer__legal p { margin: 0; max-width: 62rem; }
.footer__legal .id { color: var(--ink); }
.footer__legal .id span { white-space: nowrap; }
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .opening > * { animation: rise 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  .opening > *:nth-child(2) { animation-delay: 0.08s; }
  .opening > *:nth-child(3) { animation-delay: 0.16s; }
  .opening > *:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .masthead nav, .menu-toggle, .closing, .band { display: none; }
  body { background: #fff; }
}

/* about page headings sit inside the opening column */
.about-open h2 { margin: clamp(2.75rem, 5vw, 3.75rem) 0 1rem; }
.about-open .lede { margin-bottom: 0; }

@media (max-width: 480px) {
  .call__button { display: block; text-align: left; }
  .call__button .num { display: block; margin: 0.2rem 0 0; font-size: 1.15rem; }
}

/* Blog */

/* an article in the Guides section keeps its nav item marked */
.nav a[aria-current="true"] { color: var(--slate); border-bottom-color: var(--clay); }
@media (max-width: 959px) {
  .nav a[aria-current="true"] { color: var(--clay-ink); border-bottom: 0; }
}

.post-meta {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.01em;
  margin: 0;
}
.post-meta .sep { color: var(--clay); }

/* breadcrumb, set small above the headline */
.crumbs { margin: 0 0 2rem; }
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.crumbs li { display: inline; }
.crumbs li + li::before { content: "/"; color: var(--clay); margin: 0 0.6rem; }
.crumbs a { color: var(--ink-soft); text-decoration-color: rgba(44, 62, 80, 0.25); }
.crumbs a:hover { color: var(--slate); text-decoration-color: var(--slate); }
.crumbs [aria-current] { color: var(--ink); }

/* article opening */
.post-head h1 { font-size: clamp(2.1rem, 1.55rem + 2.5vw, 3.35rem); line-height: 1.1; margin-bottom: 2.25rem; }
.post-answer {
  border-top: 1px solid var(--clay);
  padding-top: 1.35rem;
}
.post-answer__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--sage-ink);
  margin: 0 0 0.6rem;
}
.post-answer p:last-child {
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1.1rem + 0.5vw, 1.42rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.byline__portrait {
  margin: 0;
  flex: 0 0 auto;
  width: 3.4rem;
  background: var(--paper);
  padding: 0.25rem 0.25rem 0;
  outline: 1px solid var(--rule);
}
.byline__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.byline__text p { margin: 0; }
.byline__name { font-size: 0.93rem; line-height: 1.45; color: var(--ink); }

.post-photo { margin-top: clamp(1rem, 3vw, 2rem); }
.post-photo img { aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .post-photo img { aspect-ratio: 3 / 2; } }

/* article body */
.post-body > h2 { margin: clamp(2.75rem, 5vw, 3.75rem) 0 1rem; }
.post-body > h2:first-child { margin-top: 0; }
.post-body > h3 { margin: 2rem 0 0.5rem; font-size: clamp(1.18rem, 1.1rem + 0.3vw, 1.3rem); }
.post-body > h2 + h3 { margin-top: 1.25rem; }
.post-body > p:last-child { margin-bottom: 0; }

.table-wrap {
  margin: 1.75rem 0 1.9rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--rule-firm);
  border-bottom: 1px solid var(--rule-firm);
}
.table-wrap:focus-visible { outline-offset: 4px; }
.table-wrap table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums tabular-nums;
}
.table-wrap th {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  vertical-align: bottom;
  padding: 0.85rem 1.1rem 0.6rem 0;
  border-bottom: 1px solid var(--rule-firm);
}
.table-wrap td {
  vertical-align: top;
  padding: 0.7rem 1.1rem 0.7rem 0;
  border-bottom: 1px dotted var(--rule);
  color: var(--ink);
}
.table-wrap th:last-child, .table-wrap td:last-child { padding-right: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-family: var(--serif); font-size: 1.02rem; color: var(--slate); }
.table-wrap strong { color: var(--slate); }

.post-notice { margin-top: clamp(3rem, 6vw, 4rem); }

/* the closing note and the one action */
.post-close {
  margin-top: clamp(3rem, 6vw, 4.25rem);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--clay);
}
.post-close h2 { margin-bottom: 1.1rem; }
.post-close__text { font-family: var(--serif); font-size: 1.22rem; line-height: 1.62; color: var(--ink); }
@media (max-width: 600px) { .post-close__text { font-size: 1.14rem; } }
.post-close .call { margin-top: 1.75rem; }

/* lists of guides, set like entries in an index */
.related__title {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule-firm);
}
.section .related__title { margin-bottom: 0; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item {
  display: grid;
  grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr);
  gap: 0 clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  padding: clamp(1.75rem, 3.5vw, 2.25rem) 0;
  border-bottom: 1px solid var(--rule);
}
.post-item__photo { display: block; overflow: hidden; background: var(--bone-deep); }
.post-item__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.post-item:hover .post-item__photo img { transform: scale(1.025); }
.post-item__title {
  font-size: clamp(1.3rem, 1.18rem + 0.5vw, 1.55rem);
  line-height: 1.22;
  margin: -0.15rem 0 0.55rem;
}
.post-item__title a { text-decoration: none; color: var(--slate); }
.post-item__title a:hover { text-decoration: underline; text-decoration-color: var(--clay); }
.post-item__dek { font-size: 0.98rem; line-height: 1.62; color: var(--ink-soft); margin: 0 0 0.6rem; }
@media (max-width: 620px) {
  .post-item { grid-template-columns: minmax(0, 1fr); }
  .post-item__photo { margin-bottom: 1.1rem; }
  .post-item__photo img { aspect-ratio: 3 / 2; }
}
.related__all { margin: 1.5rem 0 0; font-size: 0.95rem; }

/* Guides index: the lead guide, then the rest */
.blog-open .notice { margin-top: 2rem; }
.lead-post__photo { margin-top: clamp(1rem, 3vw, 2rem); }
.lead-post__photo a { display: block; }
.lead-post__photo img { aspect-ratio: 16 / 8; object-position: 50% 55%; }
@media (max-width: 700px) { .lead-post__photo img { aspect-ratio: 3 / 2; } }
.lead-post__text { padding-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.lead-post__title {
  font-size: clamp(1.9rem, 1.45rem + 2vw, 2.85rem);
  line-height: 1.12;
  margin: 0.6rem 0 1.1rem;
}
.lead-post__title a { text-decoration: none; color: var(--slate); }
.lead-post__title a:hover { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 1px; }
.lead-post__dek { font-family: var(--serif); font-size: clamp(1.18rem, 1.08rem + 0.4vw, 1.32rem); line-height: 1.55; color: var(--ink); }
.lead-post__by { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

@media print {
  .related, .post-close .call { display: none; }
}

/* Blog: small screens */
.table-wrap th:last-child { white-space: nowrap; }
@media (max-width: 600px) {
  .crumbs li:last-child { display: none; }
  .table-wrap { overflow-x: visible; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-wrap tr { display: block; padding: 0.9rem 0; border-bottom: 1px dotted var(--rule); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { display: block; padding: 0.15rem 0; border-bottom: 0; }
  .table-wrap td:first-child { font-size: 1.1rem; margin-bottom: 0.25rem; }
  .table-wrap td:empty { display: none; }
  .table-wrap td[data-label]:not(:first-child):not([data-label=""])::before {
    content: attr(data-label);
    display: block;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 0.35rem;
  }
}
