/* HowOftenCleanGuttersNashville.com — v2.1 composition
   Ink cover + straddling answer card + standalone section surfaces.
   Mobile-first. No JavaScript. System fonts only. */

:root {
  --ink: #13202a;
  --ink-2: #33434f;
  --muted: #55636e;
  --paper: #ffffff;
  --page: #e5e9eb;
  --line: #d5dbdf;
  --line-2: #b9c2c8;
  --accent: #0f6470;
  --accent-2: #0b4a54;
  --tint: #f1f6f6;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --pad: 20px;
  --measure: 66ch;
}

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

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

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

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--ink); }

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

/* ---------- Cover: ink slab the answer card straddles ---------- */

.cover {
  background: linear-gradient(var(--ink) 0 calc(100% - 72px), transparent calc(100% - 72px));
}

.cover__inner {
  max-width: 848px;
  margin: 0 auto;
  padding: 40px var(--pad) 24px;
}

h1 {
  margin: 0 0 28px;
  color: var(--paper);
  font-size: clamp(1.85rem, 1.25rem + 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 18ch;
}

h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 20px;
  background: var(--accent);
}

/* The card's outer edges match the sheet below it; its text column matches the
   H1 above it, so the cover and the sheet share one alignment system. */
.answer {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-top: 4px solid var(--accent);
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
  padding: 24px var(--pad) 22px;
}

.answer__direct {
  margin: 0;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.005em;
  max-width: 58ch;
}

.answer__next {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* ---------- Standalone section surfaces ---------- */

.sheet {
  max-width: 848px;
  margin: 14px auto 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.sec {
  margin: 0;
  padding: 28px var(--pad) 30px;
  background: var(--paper);
  border: 1px solid var(--line-2);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 650;
  max-width: 24ch;
}

h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 14px;
  background: var(--accent);
}

.sec__answer {
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.2em;
}

.sec > p:not(.sec__answer) { color: var(--ink-2); }

/* ---------- Schedule table ---------- */

.sched {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 26px;
  text-align: left;
}

.sched thead th {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 14px 10px 0;
  border-bottom: 2px solid var(--ink);
  vertical-align: bottom;
}

.sched tbody th,
.sched tbody td {
  vertical-align: top;
  padding: 16px 14px 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sched tbody th {
  width: 30%;
  font-weight: 650;
  color: var(--ink);
  background: var(--tint);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  padding-right: 16px;
}

.sched tbody td { color: var(--ink-2); }
.sched tbody td:last-child { padding-right: 0; }

/* ---------- Signs list ---------- */

.signs {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  max-width: var(--measure);
  border-top: 1px solid var(--line);
}

.signs li {
  position: relative;
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.signs li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.55em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Provider units ---------- */

.provider {
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--ink);
  background: var(--paper);
  padding: 22px var(--pad);
  margin-top: 20px;
}

.provider h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.provider p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */

.pagefoot {
  max-width: 848px;
  margin: 0 auto;
  padding: 22px var(--pad) 44px;
}

.pagefoot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  max-width: none;
}

/* ---------- Phone table records ---------- */

@media (max-width: 719px) {
  .sched thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .sched,
  .sched tbody,
  .sched tr,
  .sched th,
  .sched td {
    display: block;
    width: auto;
  }

  .sched tr {
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--accent);
    margin-bottom: 14px;
    padding: 6px 0 10px;
  }

  .sched tbody th,
  .sched tbody td {
    background: none;
    border: 0;
    padding: 10px 14px 0;
    width: auto;
  }

  .sched tbody th::before,
  .sched tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 3px;
  }
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  :root { --pad: 40px; }

  body { font-size: 17.5px; }

  .cover { background: linear-gradient(var(--ink) 0 calc(100% - 96px), transparent calc(100% - 96px)); }
  .cover__inner { padding: 72px var(--pad) 40px; }
  h1 { margin-bottom: 40px; }

  .answer { padding: 34px 40px 32px; }

  .sheet { margin-top: 20px; gap: 20px; }

  .sec { padding: 40px; }

  .provider { padding: 28px 32px; margin-top: 24px; }

  .pagefoot { padding: 26px 40px 56px; }
}

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