/* Gutter Cleaning and Maintenance in Nashville — one-page guide
   Composition: a maintenance-cycle spine. Each H2 is one station on the loop —
   inspect (checks), record (writing), decide the boundary, compare providers,
   verify in the rain — and every station gets its own surface. */

:root {
  --page: #EDF1F4;
  --paper: #FFFFFF;
  --wash: #F4F8FA;
  --trough: #E3EBF0;
  --ink: #14202A;
  --ink-deep: #1A2B37;
  --body: #2B3A44;
  --muted: #56666F;
  --line: #C9D6DE;
  --line-soft: #DCE5EA;
  --accent: #1F5F7E;
  --accent-deep: #17485F;
  --clay: #9A5A32;
  --radius: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --pad: 18px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
}

@media (min-width: 700px) {
  body { font-size: 18px; }
}

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

a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--clay); }
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3 {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin: 0;
  text-wrap: balance;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 20;
  font-family: var(--sans);
}
.skip:focus {
  left: 8px;
  top: 8px;
}

.hold {
  width: min(100% - (var(--pad) * 2), 1120px);
  margin-inline: auto;
}

/* ---------- masthead + navigation ---------- */

.bar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.bar__in {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  border-right-color: transparent;
  flex: 0 0 auto;
}
.mark i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

.drawer { margin-left: auto; }

.drawer summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.drawer summary::-webkit-details-marker { display: none; }

.burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.burger i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.drawer__panel {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  margin-top: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(20, 32, 42, 0.14);
  z-index: 10;
}
.drawer__panel ul {
  list-style: none;
  margin: 0;
  padding: 6px;
}
.drawer__panel a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
}
.drawer__panel a:hover { background: var(--wash); color: var(--accent-deep); }

.jump { display: none; }

@media (min-width: 900px) {
  .drawer { display: none; }
  .jump {
    display: block;
    margin-left: auto;
  }
  .jump ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .jump a {
    display: block;
    padding: 7px 11px;
    font-family: var(--sans);
    font-size: 14.5px;
    letter-spacing: -0.01em;
    color: var(--muted);
    text-decoration: none;
    border-radius: 999px;
  }
  .jump a:hover {
    color: var(--accent-deep);
    background: rgba(31, 95, 126, 0.09);
  }
}

.mast__in {
  padding: clamp(30px, 6vw, 62px) 0 clamp(28px, 5vw, 52px);
}

h1 {
  font-size: clamp(1.72rem, 1.14rem + 2.5vw, 3rem);
  max-width: 19ch;
}
@media (min-width: 900px) {
  h1 { max-width: 26ch; }
}

.answer {
  margin-top: clamp(20px, 3vw, 30px);
  padding-left: clamp(14px, 2vw, 22px);
  border-left: 4px solid var(--accent);
  max-width: 68ch;
}

.answer__lead {
  font-size: clamp(1.06rem, 1rem + 0.5vw, 1.28rem);
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- shared station parts ---------- */

.stage {
  margin: clamp(26px, 4.5vw, 50px) 0;
}

.lead {
  position: relative;
  max-width: 74ch;
}

.lead h2 {
  font-size: clamp(1.28rem, 1.06rem + 0.98vw, 1.86rem);
  max-width: 24ch;
}

.lead__answer {
  margin-top: 0.85em;
  font-size: 1.04em;
  color: var(--ink);
}

/* the spine: a node above each station heading, with the line that arrives from
   the station before it */
.node {
  display: block;
  width: 15px;
  height: 15px;
  margin-bottom: 16px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--paper);
  position: relative;
}
.node::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  width: 3px;
  height: clamp(14px, 3vw, 30px);
  margin-left: -1.5px;
  background: linear-gradient(to bottom, rgba(31, 95, 126, 0), var(--accent));
}
.node--onink {
  border-color: #7FB6CE;
  background: var(--ink-deep);
}
.node--onink::before {
  background: linear-gradient(to bottom, rgba(127, 182, 206, 0), #7FB6CE);
}

.panel {
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 46px);
}

/* ---------- station 1: what the visit checks (paper, checklist grid) ---------- */

.panel--paper {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 2px rgba(20, 32, 42, 0.05), 0 16px 34px -26px rgba(20, 32, 42, 0.4);
}

.checks {
  list-style: none;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 760px) {
  .checks {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.check {
  background: var(--wash);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.97em;
}
.check strong {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.limit {
  margin-top: clamp(20px, 3vw, 30px);
  padding: 16px 18px;
  background: rgba(154, 90, 50, 0.07);
  border-left: 4px solid var(--clay);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
  max-width: 74ch;
}

.after {
  margin-top: 1.2em;
  max-width: 74ch;
}

/* ---------- station 2: the record (full-bleed ink field) ---------- */

.stage--writing {
  background: var(--ink-deep);
  color: #D9E5EC;
  padding: clamp(34px, 6vw, 68px) 0;
  margin: clamp(30px, 5vw, 60px) 0;
}
.stage--writing h2 { color: #FFFFFF; }
.stage--writing .lead__answer { color: #EAF2F6; }
.stage--writing a { color: #A8D2E6; }
.stage--writing a:hover { color: #F0C9AC; }
.stage--writing a:focus-visible { outline-color: #F0C9AC; }

.writing__in {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}
@media (min-width: 900px) {
  .writing__in {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
    gap: clamp(34px, 5vw, 64px);
  }
}

.writing__body {
  border-top: 1px solid rgba(168, 210, 230, 0.32);
  padding-top: clamp(18px, 2.5vw, 26px);
  max-width: 66ch;
}
@media (min-width: 900px) {
  .writing__body {
    border-top: 0;
    border-left: 1px solid rgba(168, 210, 230, 0.32);
    padding-top: 6px;
    padding-left: clamp(24px, 3vw, 40px);
  }
}

/* ---------- station 3: the boundary (tinted trough, split by the line) ---------- */

.panel--trough {
  background: var(--trough);
  border: 1px solid #CFDDE6;
}

.split {
  margin-top: clamp(20px, 3vw, 30px);
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}
.split__side { max-width: 66ch; }

.split__side--far {
  border-top: 3px solid var(--accent);
  padding-top: clamp(20px, 3vw, 28px);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(34px, 4vw, 56px);
  }
  .split__side--far {
    border-top: 0;
    padding-top: 0;
    border-left: 3px solid var(--accent);
    padding-left: clamp(30px, 4vw, 52px);
  }
}

/* ---------- station 4: the two providers (sand field, equal panels) ---------- */

.stage--providers {
  background: #E9E3DA;
  padding: clamp(34px, 6vw, 68px) 0;
  margin: clamp(30px, 5vw, 60px) 0;
}
.stage--providers .node { background: #E9E3DA; }

/* the three points, as labelled records on phones and a real table above 940px */

.cmp {
  margin-top: clamp(24px, 3.5vw, 38px);
  background: var(--paper);
  border: 1px solid #D8CFC2;
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 28px);
}
.cmp table { width: 100%; border-collapse: collapse; }
.cmp caption {
  caption-side: top;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.9em;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: clamp(14px, 2vw, 20px);
  max-width: 64ch;
}

.cmp thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cmp table, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }

.cmp tbody tr {
  border-top: 2px solid var(--accent);
  padding-top: 14px;
}
.cmp tbody tr + tr { margin-top: 22px; }
.cmp tbody th {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding-bottom: 10px;
}
.cmp tbody td { padding-top: 12px; font-size: 0.97em; }
.cmp tbody td + td {
  border-top: 1px solid var(--line-soft);
  margin-top: 12px;
}
.cmp tbody td::before {
  content: attr(data-label);
  display: block;
  font-family: var(--sans);
  font-size: 0.94em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

@media (min-width: 940px) {
  .cmp table { display: table; table-layout: fixed; }
  .cmp thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    display: table-header-group;
  }
  .cmp tbody { display: table-row-group; }
  .cmp tr { display: table-row; }
  .cmp th, .cmp td { display: table-cell; }
  .cmp tbody tr { border-top: 0; padding-top: 0; }
  .cmp tbody tr + tr { margin-top: 0; }
  .cmp thead th {
    text-align: left;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    padding: 0 18px 12px 0;
    border-bottom: 2px solid var(--accent);
    vertical-align: bottom;
    width: 34%;
  }
  .cmp thead th:first-child {
    width: 32%;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom-color: var(--line);
  }
  .cmp tbody th {
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    padding: 18px 20px 18px 0;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
  }
  .cmp tbody td {
    padding: 18px 18px 18px 0;
    border-top: 0;
    margin-top: 0;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
    font-size: 0.95rem;
  }
  .cmp tbody td:last-child { padding-right: 0; }
  .cmp tbody td::before { display: none; }
  .cmp tbody tr:last-child th,
  .cmp tbody tr:last-child td { border-bottom: 0; padding-bottom: 0; }
}

.cos {
  margin-top: clamp(24px, 3.5vw, 38px);
  display: grid;
  gap: clamp(18px, 2.5vw, 26px);
}
@media (min-width: 940px) {
  .cos { grid-template-columns: 1fr 1fr; }
}

.co {
  background: var(--paper);
  border: 1px solid #D8CFC2;
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
}
.co h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem);
  margin-bottom: 0.7em;
}
.co p { font-size: 0.98em; }

.co__fit {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
}

/* ---------- station 5: the rain check (wash panel, numbered route) ---------- */

.panel--wash {
  background: linear-gradient(180deg, var(--wash), var(--paper) 62%);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}

.route {
  list-style: none;
  counter-reset: step;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 0;
}
.route li {
  counter-increment: step;
  position: relative;
  padding: 0 0 clamp(18px, 2.4vw, 24px) 52px;
  max-width: 68ch;
}
.route li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
}
.route li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.route li:last-child { padding-bottom: 0; }
.route li:last-child::after { display: none; }

.closer {
  margin-top: clamp(20px, 3vw, 30px);
  padding: 18px 20px;
  background: var(--trough);
  border-radius: 12px;
  color: var(--ink);
  max-width: 74ch;
}

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

.foot {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.foot__in {
  padding: 26px 0 34px;
}
.foot p {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 78ch;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
