/* Nova Ohio Telephone — novaohiotelephone.com
   One stylesheet, no external requests. System fonts only.
   Light/dark follows the visitor's system setting (prefers-color-scheme). */

:root {
  --paper: #eef2ee;
  --surface: #ffffff;
  --ink: #15302f;
  --ink-2: #3f5655;
  --ink-3: #5d7170;
  --teal: #0e5a5e;
  --teal-strong: #0a4447;
  --on-teal: #ffffff;
  --wheat: #b8892c;
  --wheat-soft: #f4e7c4;
  --rule: #cdd8d3;
  --leader: #9fb1ac;
  --sky: #e3ece8;
  --hill-far: #c9d8cc;
  --hill-mid: #a9c1a8;
  --hill-near: #86a585;
  --furrow: #769675;
  --pole: #4b3b2a;
  --wire: #0e5a5e;
  --focus: #b8892c;
  --sun: #f4e7c4;

  --serif: Rockwell, "Rockwell Nova", "Roboto Slab", "Zilla Slab", "Clarendon", "DejaVu Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 36rem;
  --wide: 68rem;
  --gutter: 1rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1d1e;
    --surface: #152829;
    --ink: #e3ebe8;
    --ink-2: #b9c8c5;
    --ink-3: #93a6a3;
    --teal: #6cc3c1;
    --teal-strong: #8fd6d3;
    --on-teal: #07292b;
    --wheat: #dcb65f;
    --wheat-soft: #3a3120;
    --rule: #2a4142;
    --leader: #4c6564;
    --sky: #132425;
    --hill-far: #1b3232;
    --hill-mid: #20403b;
    --hill-near: #264b41;
    --furrow: #2f5a4d;
    --pole: #a88a63;
    --wire: #6cc3c1;
    --focus: #dcb65f;
    --sun: #c8c09a;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

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

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--surface); color: var(--ink); padding: 0.5rem 0.9rem; z-index: 10;
}
.skip:focus { top: 0.5rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--ink-2); }

/* ---------- Header ---------- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 1.9rem; height: 2.85rem; fill: var(--teal); color: var(--teal); flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.1; display: block; }
.brand-sub { font-size: 0.82rem; color: var(--ink-3); display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; align-items: center; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.97rem; padding: 0.35rem 0; display: inline-block; }
.site-nav a:hover { color: var(--teal); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--teal); }
.site-nav .nav-pay { background: var(--teal); color: var(--on-teal); padding: 0.4rem 0.9rem; border-radius: 999px; font-weight: 600; }
.site-nav .nav-pay:hover { background: var(--teal-strong); color: var(--on-teal); text-decoration: none; }
@media (max-width: 40rem) {
  .site-nav { width: 100%; border-top: 1px solid var(--rule); padding-top: 0.5rem; }
  .site-nav ul { gap: 0.1rem 1rem; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; margin: 1.6rem 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 650; font-size: 1.05rem; text-decoration: none;
  border: 2px solid var(--teal);
}
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-strong); border-color: var(--teal-strong); }
.btn-quiet { color: var(--teal); background: transparent; }
.btn-quiet:hover { background: var(--surface); }
.btn svg { width: 1.1rem; height: 1.1rem; margin-right: 0.5rem; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { background: var(--sky); position: relative; overflow: hidden; }
.hero .wrap { padding-top: clamp(2.5rem, 2rem + 4vw, 5rem); padding-bottom: 0; position: relative; z-index: 1; }
.hero-kicker { font-size: 1rem; color: var(--ink-2); margin-bottom: 0.9rem; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 32rem; }
.hero-call { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); color: var(--ink); text-decoration: none; white-space: nowrap; }
.hero-call:hover { color: var(--teal); text-decoration: underline; }
.landscape { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 440; min-height: 13rem; margin-top: 0.5rem; position: relative; z-index: 0; }
.landscape .far { fill: var(--hill-far); }
.landscape .mid { fill: var(--hill-mid); }
.landscape .near { fill: var(--hill-near); }
.landscape .furrow { fill: none; stroke: var(--furrow); stroke-width: 2; opacity: 0.7; }
.landscape .pole { stroke: var(--pole); stroke-width: 5; stroke-linecap: round; }
.landscape .arm { stroke: var(--pole); stroke-width: 4; stroke-linecap: round; }
.landscape .wire { fill: none; stroke: var(--wire); stroke-width: 2.5; }
.landscape .insulator { fill: var(--wheat); }
.landscape .barn { fill: var(--furrow); }

/* the wire draws itself once, on load, unless the visitor prefers no motion */
@media (prefers-reduced-motion: no-preference) {
  .landscape .wire { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: string-wire 2.4s 0.3s ease-out forwards; }
  @keyframes string-wire { to { stroke-dashoffset: 0; } }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: clamp(2.75rem, 2rem + 3vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-surface { background: var(--surface); }
.page-head { background: var(--sky); padding: clamp(2.25rem, 1.8rem + 2.5vw, 3.75rem) 0 clamp(1.75rem, 1.5rem + 1vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); max-width: 20ch; }
.page-head .lede { margin-bottom: 0; }

.split { display: grid; gap: 2rem 3.5rem; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }

/* ---------- Directory listing (dot leaders, like the old phone book) ---------- */
.directory { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.directory li { border-bottom: 1px solid var(--rule); }
.directory a {
  display: grid; grid-template-columns: auto minmax(1rem, 1fr) auto; column-gap: 0.6rem; align-items: baseline;
  padding: 0.95rem 0.1rem; text-decoration: none; color: var(--ink);
}
.directory a:hover .entry { color: var(--teal); text-decoration: underline; }
.directory .entry { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.directory .leader { border-bottom: 2px dotted var(--leader); transform: translateY(-0.3em); }
.directory .value { color: var(--ink-2); font-size: 0.98rem; text-align: right; white-space: nowrap; }
.directory .note { grid-column: 1 / -1; font-size: 0.93rem; color: var(--ink-3); margin-top: 0.1rem; }

/* ---------- Reasons (plain prose points) ---------- */
.reasons { display: grid; gap: 1.75rem 2.5rem; margin-top: 1.75rem; }
@media (min-width: 48rem) { .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reasons h3 { font-size: 1.15rem; margin-bottom: 0.4rem; padding-top: 0.9rem; border-top: 3px solid var(--teal); }
.reasons p { color: var(--ink-2); margin: 0; }

/* ---------- Contact card ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 1.5rem; }
.card h2, .card h3 { margin-top: 0; }
.card address { font-style: normal; line-height: 1.55; margin-bottom: 1rem; }
.big-phone { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.4rem); font-weight: 700; color: var(--teal); text-decoration: none; display: inline-block; margin: 0.1rem 0 0.4rem; }
.big-phone:hover { text-decoration: underline; }
.hours { width: 100%; max-width: 26rem; border-collapse: collapse; margin: 0.5rem 0 1rem; }
.hours th, .hours td { text-align: left; padding: 0.4rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.hours th { color: var(--ink-2); padding-right: 1rem; }
.hours td { white-space: nowrap; }

/* ---------- Rates / plans ---------- */
.plan { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.plan:first-of-type { border-top: 2px solid var(--ink); }
.plan-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; margin-bottom: 0.5rem; }
.plan-head h3 { margin: 0; font-size: 1.35rem; }
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--teal); white-space: nowrap; }
.price small { font-family: var(--sans); font-weight: 400; font-size: 0.9rem; color: var(--ink-3); }
.plan p { color: var(--ink-2); }
.features { columns: 2 12rem; column-gap: 2rem; padding-left: 1.2rem; margin: 0.5rem 0 1rem; }
.features li { margin: 0 0 0.35rem; break-inside: avoid; }
.fine { font-size: 0.93rem; color: var(--ink-3); }
.included { display: inline-block; background: var(--teal); color: var(--on-teal); font-weight: 650; font-size: 0.9rem; padding: 0.15rem 0.6rem; border-radius: 999px; }

/* ---------- Prose pages ---------- */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; max-width: var(--measure); }
.prose li { margin-bottom: 0.45rem; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 2.8rem; margin-bottom: 1.1rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.05rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--teal); color: var(--on-teal); font-family: var(--serif); font-weight: 700; display: grid; place-items: center;
}
.notice { background: var(--surface); border-left: 4px solid var(--teal); padding: 1.1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1rem 0 1.5rem; }
.notice p:last-child { margin-bottom: 0; }
.notice.verbatim p { font-size: 1rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--surface); border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; font-size: 0.95rem; color: var(--ink-2); }
.foot-grid { display: grid; gap: 1.75rem 3rem; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.site-foot address { font-style: normal; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 0.3rem; }
.site-foot .small { font-size: 0.85rem; color: var(--ink-3); margin-top: 1.75rem; max-width: none; }
.foot-brand { display: flex; gap: 0.7rem; align-items: flex-start; }
.foot-brand svg { width: 1.5rem; height: 2.25rem; fill: var(--teal); color: var(--teal); flex: none; margin-top: 0.1rem; }

/* ---------- 404 ---------- */
.lost { text-align: left; padding: clamp(3rem, 2rem + 6vw, 6rem) 0; }
.lost svg.big-mark { width: 5rem; height: 7.5rem; fill: var(--teal); color: var(--teal); margin-bottom: 1.25rem; }

@media print {
  .site-nav, .landscape, .actions { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Utilities ---------- */
.sr-only, .sr-sprite {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.after-actions { margin-top: 1.5rem; }

/* ---------- Hero scene: the candlestick standing in the fields, wired to the line ---------- */
.landscape .sun { fill: var(--sun); }
.landscape .phone { fill: var(--teal); color: var(--teal); }
.landscape { pointer-events: none; }
@media (min-width: 56rem) {
  .hero .landscape { margin-top: -9rem; }
  .hero .wrap { padding-bottom: 0; }
}
/* prose pages keep the page's left edge; only the text column narrows */
.wrap.prose { max-width: var(--wide); }
.wrap.prose > * { max-width: 42rem; }
address { font-style: normal; }
.split > div > h2:not(:first-child) { margin-top: 2.25rem; }
.lost h1 { max-width: 18ch; }

/* ---------- Sign-up form (signup.html) ---------- */
.form { max-width: 44rem; }
.form fieldset { border: 0; margin: 0 0 2.25rem; padding: 1.5rem 0 0; border-top: 2px solid var(--ink); min-width: 0; }
.form legend { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; padding: 0; margin: 0 0 0.25rem; color: var(--ink); }
.form .hint { font-size: 0.95rem; color: var(--ink-3); margin: 0 0 1rem; }
.field { margin: 0 0 1.1rem; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field .opt { font-weight: 400; color: var(--ink-3); font-size: 0.92rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--leader); border-radius: 8px; padding: 0.6rem 0.75rem; min-height: 2.9rem;
}
.form textarea { min-height: 6rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--teal); }
.row { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) { .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: 2fr 1fr 1fr; } }
.choices { display: grid; gap: 0.6rem; margin: 0 0 1.1rem; }
.choice {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.15rem 0.75rem; align-items: baseline;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 0.85rem 1rem; cursor: pointer;
}
.choice:hover { border-color: var(--teal); }
.choice:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.choice input { width: 1.15rem; height: 1.15rem; accent-color: var(--teal); margin: 0; transform: translateY(0.15rem); }
.choice .name { font-weight: 650; }
.choice .price { font-size: 1.05rem; }
.choice .desc { grid-column: 2 / -1; font-size: 0.93rem; color: var(--ink-3); }
.choices.compact .choice { padding: 0.6rem 0.9rem; }
.form details { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 0.75rem 1rem; margin: 0 0 1.1rem; }
.form details[open] { padding-bottom: 0.25rem; }
.form summary { cursor: pointer; font-weight: 600; color: var(--teal); }
.form details > .field:first-of-type { margin-top: 1rem; }
.agree { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; margin: 0 0 1.1rem; }
.agree input { width: 1.2rem; height: 1.2rem; accent-color: var(--teal); margin-top: 0.25rem; }
.signature { font-family: var(--serif); font-size: 1.3rem !important; }
.form button.btn { cursor: pointer; font-family: inherit; }
.trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Sign-up form, server-rendered parts (2026-10-15): the problem list and the rates block. */
.form-errors { background: var(--wheat-soft); border: 1px solid var(--wheat); border-left-width: 6px; border-radius: 10px; padding: 0.9rem 1.1rem; margin: 0 0 1.5rem; color: var(--ink); }
.form-errors p { margin: 0 0 0.4rem; font-weight: 650; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }
.form-errors a { color: var(--ink); }
.rates { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.1rem 0.6rem; margin: 0 0 1.4rem; }
.rates h3 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.5rem; }
.rates-h { font-weight: 650; margin: 0.9rem 0 0.35rem; }
.rates-list { list-style: none; margin: 0; padding: 0; }
.rates-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding: 0.35rem 0; border-top: 1px solid var(--rule); }
.rates-list li:first-child { border-top: 0; }
.rates-price { font-weight: 650; text-align: right; }
.rates-parts { grid-column: 1 / -1; font-size: 0.88rem; color: var(--ink-3); }
.rates .fine { margin: 0.6rem 0 0.4rem; }

/* ---------- Phones (2026-10-15) ---------- */
/* Tap targets: Apple's 44 pt minimum for the menu, the call link and the form's fold-out toggles. */
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-nav .nav-pay { min-height: 2.75rem; }
.hero-call { display: inline-flex; align-items: center; min-height: 2.75rem; }
.form summary { padding: 0.6rem 0; }
/* The narrowest phones (320 px): split columns may shrink, and cards give a little padding back. */
.split > * { min-width: 0; }
@media (max-width: 22rem) {
  .card { padding: 1.1rem; }
  .big-phone { font-size: 1.6rem; }
}
