/* Voxcanto — voxcanto.net
   One stylesheet for every page. No external fonts, scripts or trackers. */

:root {
  --paper: #fbfcfa;
  --ink: #14262e;
  --ink-soft: #4a5d66;
  --gulf: #0f5c6e;
  --gulf-deep: #0a3f4c;
  --shallows: #dcefeb;
  --rule: #cfdcd9;
  --lamp-green: #2f9e5b;
  --lamp-amber: #e8b23a;
  --alert: #b3261e;
  --alert-tint: #fbeceb;

  --display: "Bahnschrift", "DIN Alternate", "DIN Next", "D-DIN", "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 66ch;
  --wide: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
}

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

a { color: var(--gulf); text-underline-offset: 0.18em; }
a:hover { color: var(--gulf-deep); }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font: 600 1.375rem/1 var(--display);
  letter-spacing: 0.01em;
}
.brand svg { width: 1.75rem; height: 1.75rem; flex: none; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font: 500 1rem/1 var(--display);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--gulf); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.25rem; margin-top: 1.75rem; }

p, ul, ol, dl, table { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40ch; }
.small { font-size: 0.9rem; color: var(--ink-soft); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ---------- Home: hero ---------- */

.hero { padding: 4rem 0 3.5rem; border-bottom: 1px solid var(--rule); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}
.hero h1 { max-width: 14ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

.button {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  font: 600 1rem/1 var(--display);
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--gulf);
}
.button.primary { background: var(--gulf); color: #fff; }
.button.primary:hover { background: var(--gulf-deep); border-color: var(--gulf-deep); color: #fff; }
.button.secondary { color: var(--gulf); background: transparent; }
.button.secondary:hover { background: var(--shallows); }

/* The line-key strip: the side panel of a desk phone, with a lamp per key. */
.keystrip {
  background: #1d2f37;
  color: #e9f1ef;
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: inset 0 0 0 1px #2e444d;
  font-family: var(--display);
  max-width: 24rem;
  justify-self: end;
  width: 100%;
}
.keystrip-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9fb6b2;
  margin: 0 0 0.75rem;
  font-variant-numeric: tabular-nums;
}
.keystrip ol { list-style: none; margin: 0; padding: 0; }
.keystrip li {
  display: grid;
  grid-template-columns: 0.75rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.25rem;
  border-top: 1px solid #2e444d;
  font-size: 1.05rem;
}
.keystrip li:first-child { border-top: 0; }
.keystrip .ext { color: #9fb6b2; font-variant-numeric: tabular-nums; }
.lamp {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #3a5059;
}
.lamp.idle { background: var(--lamp-green); }
.lamp.busy { background: #d8483e; }
.lamp.ringing { background: var(--lamp-amber); animation: ring 1.1s steps(2, jump-none) infinite; }
@keyframes ring { 50% { background: #5a4a20; } }
.keystrip-note { margin: 0.75rem 0 0; font-size: 0.8rem; color: #9fb6b2; font-family: var(--body); }

@media (prefers-reduced-motion: reduce) {
  .lamp.ringing { animation: none; }
}

/* ---------- Home: sections ---------- */

.section { padding: 3.5rem 0; border-bottom: 1px solid var(--rule); }
.section > .wrap > p,
.section > .wrap > ul { max-width: var(--measure); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 3rem;
}

.included {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 0;
}
.included div { padding: 1rem 0; border-top: 1px solid var(--rule); }
.included dt { font: 600 1.1rem/1.3 var(--display); margin-bottom: 0.25rem; }
.included dd { margin: 0; color: var(--ink-soft); }

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.plan { padding: 1.75rem; background: #fff; }
.plan + .plan { border-left: 2px solid var(--ink); }
.plan h3 { margin-top: 0; }
.price { font: 600 3rem/1 var(--display); font-variant-numeric: tabular-nums; margin: 0.5rem 0 0.25rem; }
.price span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.plan p:last-child { margin-bottom: 0; }

.addons { border-collapse: collapse; width: 100%; max-width: 40rem; }
.addons caption { text-align: left; caption-side: top; padding-bottom: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.addons th,
.addons td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.addons td:last-child { text-align: right; white-space: nowrap; font-family: var(--display); font-variant-numeric: tabular-nums; }

.steps { counter-reset: step; list-style: none; padding: 0; max-width: var(--measure); }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.25rem 3.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 2px solid var(--gulf);
  color: var(--gulf);
  display: grid;
  place-items: center;
  font: 600 1rem/1 var(--display);
}
.steps strong { display: block; font-family: var(--display); font-size: 1.1rem; }

.contact-block { font-size: 1.15rem; }
.contact-block p { margin-bottom: 0.4rem; }

/* ---------- Document pages (terms, e911, support, privacy) ---------- */

.doc { padding: 3rem 0 4rem; }
.doc .wrap > * { max-width: var(--measure); }
.doc .wrap > .wide { max-width: none; }
.doc h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.doc h1 + .small { margin-top: -0.25rem; }
.doc li { margin-bottom: 0.35rem; }

.callout {
  border-left: 4px solid var(--gulf);
  background: var(--shallows);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.alert { border-left-color: var(--alert); background: var(--alert-tint); }

.datatable { border-collapse: collapse; width: 100%; }
.datatable th,
.datatable td { text-align: left; padding: 0.55rem 1rem 0.55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.datatable thead th { font-family: var(--display); font-weight: 600; border-bottom: 2px solid var(--ink); }
.datatable.holidays { max-width: 40rem; }
.datatable td.num,
.datatable th.num { white-space: nowrap; }

/* E911 label sheet (Avery 5163: ten 2" x 4" labels per letter sheet) */
.labels-intro { margin-top: 2.5rem; }
.label-sheet {
  display: grid;
  grid-template-columns: repeat(2, 4in);
  gap: 0 0.1875in;
  margin: 1.5rem 0;
}
.e911-label {
  width: 4in;
  height: 2in;
  border: 1px dashed #9aa9ad;
  padding: 0.12in 0.16in;
  font: 7.4pt/1.22 var(--body);
  color: #000;
  background: #fff;
  overflow: hidden;
}
.e911-label strong.head {
  display: block;
  font: 700 9.5pt/1.1 var(--display);
  color: var(--alert);
  margin-bottom: 0.05in;
}
.e911-label p { margin: 0 0 0.04in; }

.print-button {
  font: 600 1rem/1 var(--display);
  padding: 0.75rem 1.2rem;
  border-radius: 4px;
  border: 2px solid var(--gulf);
  background: var(--gulf);
  color: #fff;
  cursor: pointer;
}
.print-button:hover { background: var(--gulf-deep); }

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

.site-footer {
  background: var(--ink);
  color: #c9d6d3;
  padding: 2.5rem 0 3rem;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem;
}
.site-footer p { margin: 0 0 0.4rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-911 { border-left: 3px solid var(--lamp-amber); padding-left: 1rem; }
.footer-name { font: 600 1.1rem/1.2 var(--display); color: #fff; }

/* ---------- Small screens ---------- */

@media (max-width: 52rem) {
  .hero { padding-top: 2.5rem; }
  .hero .wrap,
  .split,
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .keystrip { justify-self: start; }
  .included { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 2px solid var(--ink); }
  .label-sheet { grid-template-columns: 4in; overflow-x: auto; }
}

/* ---------- Print ---------- */

@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header nav,
  .skip,
  .print-button,
  .hero-actions { display: none; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a { color: #000; }
  a { color: #000; }
}

@page { margin: 0.5in; }
