/* Cab & Ledger stylesheet. Self-hosted fonts only; nothing loads from outside the domain. */

@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:400;font-display:swap;src:url('/fonts/source-serif-4-italic-400.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 Serif 4';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/source-serif-4-normal-400-700.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:'Barlow Semi Condensed';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/barlow-semi-condensed-normal-500.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:'Barlow Semi Condensed';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/barlow-semi-condensed-normal-600.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 {
  --paper: #f6f3ec;
  --paper-2: #ece7db;
  --ink: #1c2420;
  --muted: #4b544f;
  --green: #24493a;
  --rule: #cfc8b8;
  --hl: #fff1a8;
  --hl-ink: #3a2a00;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --label: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;

  --measure: 36rem;
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-wrap: break-word;
}

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

h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 600; }
h2 { font-size: 1.75rem; letter-spacing: -0.005em; margin-bottom: .75rem; }
h3 { font-size: 1.125rem; margin-bottom: .25rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: .5rem; top: -4rem;
  background: var(--paper); color: var(--green);
  padding: .5rem .75rem; font-family: var(--label); font-weight: 600;
  border: 1px solid var(--green);
}
.skip:focus { top: .5rem; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 40em) { .wrap { padding: 0 2rem; } }

.measure { max-width: var(--measure); }

.placeholder {
  background: var(--hl);
  color: var(--hl-ink);
  padding: 0 .2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.small { font-size: .9rem; color: var(--muted); }

/* Header */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .5rem 1.5rem;
  padding-top: 1.1rem; padding-bottom: 1rem;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-family: var(--label); font-weight: 500; font-size: 1.05rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--green); text-decoration: underline; }

/* Hero */

.hero { padding: 2.5rem 0 3rem; }
.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 14em;
  margin-bottom: 1rem;
}
.lede { max-width: var(--measure); font-size: 1.1em; margin-bottom: 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.25rem 0 0; }
.hero-side { margin-top: 2.25rem; border-bottom: 1px solid var(--rule); padding-bottom: .75rem; }

/* Wide screens: a main column plus a narrow side column for short asides. */

.side { max-width: 22rem; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.side p { margin-bottom: .75rem; }

@media (min-width: 60em) {
  .hero { padding: 4.5rem 0 4rem; }
  .hero-grid, .split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4rem; }
  /* Nudges the aside's first line onto the H1's first line. */
  .hero-side { margin-top: .4rem; align-self: start; }
}

.btn {
  display: inline-block;
  background: var(--green); color: var(--paper);
  font-family: var(--label); font-weight: 600; font-size: 1.1rem;
  padding: .6rem 1.15rem .65rem;
  border-radius: 2px;
  text-decoration: none;
}
.btn:hover { background: var(--ink); }

/* Sections */

/* Spacing differs by section: tight between related ones, more air before Prices and Contact. */

.letter   { padding: 0 0 3.5rem; }
.services { padding: 0 0 3rem; }
.band     { padding: 2.75rem 0; }
.how      { padding: 2.25rem 0 0; }
.pricing  { padding: 4.5rem 0 0; }
.faq      { padding: 3.5rem 0 0; }
.contact  { margin-top: 4.5rem; padding: 2.5rem 0 3.5rem; }

@media (min-width: 60em) {
  .letter   { padding-bottom: 5rem; }
  .services { padding-bottom: 4rem; }
  .band     { padding: 3.75rem 0 4rem; }
  .how      { padding-top: 3rem; }
  .pricing  { padding-top: 7rem; }
  .faq      { padding-top: 5rem; }
  .contact  { margin-top: 6.5rem; padding: 3.5rem 0 5rem; }
}

/* A note from Michael: set as a letter, not a section */

.letter-body { border-top: 1px solid var(--green); padding-top: 2rem; }
.letter h2 { font-size: 1.4rem; font-style: italic; font-weight: 400; margin-bottom: 1.25rem; }
.letter-body p { font-size: 1.08em; line-height: 1.62; margin-bottom: 1.15rem; }
.letter-body .sig { font-style: italic; font-size: 1.6rem; line-height: 1.2; margin: 2.25rem 0 0; }
.letter .side { margin-top: 2rem; }
@media (min-width: 40em) {
  .letter-body .sig { padding-left: 55%; }
}
@media (min-width: 60em) {
  .letter .side { margin-top: 0; padding-top: calc(2rem + 1px); }
}

/* Services: definition list, full content width */

.defs { margin: 1.75rem 0 2rem; }
.defs > div { padding: .9rem 0; border-top: 1px solid var(--rule); }
.defs > div:last-child { border-bottom: 1px solid var(--rule); }
.defs dt { font-weight: 700; }
.defs dd { margin: .15rem 0 0; }
@media (min-width: 48em) {
  .defs > div { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2rem; }
  .defs dd { margin: 0; max-width: 34rem; }
}
@media (min-width: 60em) {
  .defs > div { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; }
  .defs dd { max-width: 44rem; }
}

/* Do-it-yourself band */

.band { background: var(--paper-2); }
.diy-cols { margin: 2rem 0 2.25rem; }
.diy-cols > div + div { margin-top: 2rem; }
.cost { font-style: italic; color: var(--muted); }
.scam { max-width: var(--measure); }
@media (min-width: 48em) {
  .diy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .diy-cols > div + div { margin-top: 0; }
}
/* The scam check moves beside the two filings once there's room for three columns. */
@media (min-width: 70em) {
  .diy-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4rem; margin-top: 2rem; }
  .diy-cols { margin: 0; gap: 2.5rem; }
  .scam p { font-size: .95em; }
}

/* How it works */

.how h2 { font-size: 1.4rem; }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: .6rem; padding-left: .25rem; }

/* Prices */

.pricing h2, .contact h2 { font-size: 2.1rem; letter-spacing: -0.01em; }
.price-head .side { margin-top: .25rem; }
@media (min-width: 60em) {
  .price-head { align-items: last baseline; }
  .price-head h2 { margin-bottom: 0; }
  .price-head .side { margin: 0; }
}

.prices { width: 100%; border-collapse: collapse; margin: 1.75rem 0 2rem; font-variant-numeric: tabular-nums lining-nums; }
.prices th {
  font-family: var(--label); font-weight: 600; font-size: 1rem;
  text-align: left; color: var(--muted);
  padding: 0 1rem .4rem 0; border-bottom: 1px solid var(--ink);
}
.prices td { vertical-align: top; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--rule); }
.prices th:last-child, .prices td:last-child { text-align: right; padding-right: 0; }
.prices .svc { font-weight: 700; display: block; }
.prices .desc { display: block; font-size: .9rem; color: var(--muted); margin-top: .2rem; max-width: 30rem; }
.prices .amt { font-weight: 600; font-size: 1.15rem; white-space: nowrap; }
.prices .note { display: block; font-size: .85rem; color: var(--muted); margin-top: .1rem; }
.prices td.who { white-space: nowrap; }

@media (max-width: 39.99em) {
  .prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prices, .prices tbody, .prices tr, .prices td { display: block; width: 100%; }
  .prices tr { border-bottom: 1px solid var(--rule); padding: .9rem 0; }
  .prices tr:first-child { border-top: 1px solid var(--ink); }
  .prices td, .prices td:last-child { border: 0; padding: 0; text-align: left; }
  .prices td.who { white-space: normal; font-style: italic; margin: .2rem 0 .35rem; }
}

/* Questions */

.qa { margin-top: 1.75rem; }
.qa h3 { margin-top: 1.75rem; }
.qa h3:first-child { margin-top: 0; }

/* Contact */

.contact { border-top: 1px solid var(--rule); }
.contact dl { margin: 1.25rem 0; }
.contact dt { font-weight: 700; }
.contact dd { margin: 0 0 .75rem; }
.contact ul.include { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.contact ul.include li { margin-bottom: .3rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 1.5rem 0 2.5rem;
  font-family: var(--label); font-weight: 500; font-size: .95rem; line-height: 1.5;
  color: var(--muted);
}
.site-footer p { max-width: 44rem; margin-bottom: .6rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: .6rem; }

/* Privacy, terms, 404 */

.doc { padding: 2.5rem 0 3.5rem; }
.doc h1 { font-size: clamp(2.1rem, 1.6rem + 2.5vw, 3rem); letter-spacing: -0.015em; margin-bottom: .5rem; }
.doc h2 { font-size: 1.3rem; margin: 2rem 0 .4rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: .4rem; }
.draft { padding-bottom: .9rem; margin-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.draft strong { background: var(--hl); color: var(--hl-ink); padding: 0 .2em; }

.lost { padding: 4rem 0 5rem; }
.lost h1 { font-size: clamp(2.2rem, 1.5rem + 3.5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.25rem; }

/* Photos (real, self-hosted; see README credits) */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; background: var(--paper-2); }
.photo-wide { margin-top: 2.5rem; }
.photo-wide img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 55% 50%; }
@media (min-width: 40em) { .photo-wide img { aspect-ratio: 16 / 7; } }
.photo-side { margin-top: 1.5rem; max-width: 22rem; }
