/* electricalprep.sesinit.com — one sheet for the three pages.
   Nothing from third parties: both faces are hosted here (Barlow Condensed for
   headings, Barlow for text; OFL, licence in OFL-Barlow.txt). Since site-2 the text
   is Barlow too, not the system face (encargo ui-ux-pro-max, 7-nov-2026). The number in the file name is the version:
   bump it (site-2.css) and the links when this changes, so no cache serves an old
   sheet with new HTML. Palette from the app icon: amber book on navy. */

@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url("barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap;
  src: url("barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap;
  src: url("barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap;
  src: url("barlow-600.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #f1ede4;
  --ink: #15181f;
  --muted: #4b515d;
  --rule: rgba(21, 24, 31, .12);
  --navy: #0d2350;
  --amber: #fab026;
  --link: #8f4a00;          /* amber deepened until it reads on the paper: 6.4:1 */
  --frame: rgba(21, 24, 31, .14);
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --text: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #141b31;
    --ink: #eef0f5;
    --muted: #aab1c2;
    --rule: rgba(255, 255, 255, .12);
    --link: #fab026;
    --frame: rgba(255, 255, 255, .14);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--navy); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
@media (prefers-reduced-motion: no-preference) {
  a { transition: color .2s ease-out, text-decoration-thickness .2s ease-out; }
  .button { transition: background-color .2s ease-out; }
}
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 32px; } }

/* ── top bar ───────────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 18px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 700 1.3rem/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.mark img { width: 36px; height: 36px; border-radius: 22.5%; }
.top nav { display: flex; gap: 16px; font-size: .95rem; }
.top nav a { color: var(--muted); text-decoration: none; padding-block: 10px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* ── type ──────────────────────────────────────────────────── */
h1, h2 { font-family: var(--display); text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.1rem, 10.5vw, 4.6rem); line-height: .98;
  letter-spacing: -.01em; margin: 0 0 18px; }
@media (min-width: 640px) { h1 { font-size: clamp(3rem, 8vw, 4.6rem); } }  /* 2 lines on a tablet too */
h2 { font-weight: 600; font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.05;
  margin: 64px 0 14px; }
h3 { font-size: 1.05rem; line-height: 1.35; margin: 32px 0 6px; }
p, li { margin: 0 0 14px; }
p, li, dd { text-wrap: pretty; }
.lead { font-size: 1.15rem; line-height: 1.55; max-width: 34rem; }
.muted { color: var(--muted); }
.read { max-width: 35rem; }

/* ── home: hero ────────────────────────────────────────────── */
.hero { display: grid; gap: 18px; padding-block: 28px 8px; align-items: center; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; column-gap: 56px; row-gap: 8px; padding-block: 56px 24px; }
  .hero h1 { grid-column: 1 / -1; }   /* the whole width: two lines at 1440, not three */
}
.hero h1 { margin: 0; }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border-radius: 999px; background: var(--amber); color: var(--navy); text-decoration: none;
  font-weight: 600; font-size: 1.02rem; }
.button:hover { background: #ffc24a; }
.button svg { width: 20px; height: 20px; flex: none; }
.get small { color: var(--muted); font-size: .9rem; }

.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 30rem; margin-top: 22px;
  margin-inline: auto; width: 100%; }
.phones figure { margin: 0; }
.phones figure:last-child { margin-top: 44px; }
@media (prefers-color-scheme: dark) { .phones img.light-only { filter: brightness(.82); } }
.phones img { border-radius: 26px; border: 1px solid var(--frame); background: var(--surface);
  aspect-ratio: 600 / 1304; width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .phones figure { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
  .phones figure:last-child { animation-delay: .12s; }
  @keyframes rise { from { translate: 0 18px; opacity: .001; } }
  @supports (animation-timeline: view()) {
    .inside div { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}

/* ── home: contents list ───────────────────────────────────── */
.inside { margin: 0; padding: 0; display: grid; gap: 2px; border-radius: 16px; overflow: hidden; max-width: 46rem; }
.inside div { background: var(--surface); padding: 16px 18px; display: grid; gap: 4px; }
.inside dt { font-weight: 600; font-variant-numeric: tabular-nums; }
.inside dd { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .inside div { grid-template-columns: 13rem 1fr; gap: 20px; padding: 18px 22px; } }

.note { background: var(--surface); border-radius: 16px; padding: 18px 20px; margin: 28px 0; max-width: 35rem; }
.note p:last-child { margin-bottom: 0; }

/* ── documents (support, privacy) ──────────────────────────── */
.doc { padding-block: 24px 8px; }
.doc h1 { font-size: clamp(2.4rem, 11vw, 4rem); }
.doc .date { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.doc h2:first-of-type { margin-top: 48px; }
.contact { background: var(--surface); border-radius: 16px; padding: 18px 20px; margin: 24px 0 8px; max-width: 35rem; }
.contact a { font-weight: 600; font-size: 1.1rem; }
.contact p:last-child { margin-bottom: 0; }

/* the privacy policy is long: index beside it on wide screens, under the date on phones */
.toc { font-size: .95rem; margin: 0 0 8px; }
.toc p { font-weight: 600; margin-bottom: 6px; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc.side { display: none; }
@media (min-width: 520px) { .toc.inline ol { columns: 2; column-gap: 24px; } }
@media (min-width: 1000px) {
  .with-toc { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 64px; align-items: start; }
  .toc.inline { display: none; }
  .toc.side { display: block; position: sticky; top: 24px; margin-top: 48px; }
}
h2[id] { scroll-margin-top: 20px; }

/* ── footer ────────────────────────────────────────────────── */
footer { margin-top: 96px; padding-block: 0 48px;
  color: var(--muted); font-size: .9rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
footer .links a { color: var(--ink); }
footer p { max-width: 31rem; }

/* ── closing call to action (home) ─────────────────────────── */
.closing { margin-top: 88px; background: var(--navy); color: #eef0f5; border-radius: 20px;
  padding: 32px 22px; display: grid; gap: 18px; align-items: center; }
.closing h2 { margin: 0; color: #fff; }
.closing p { margin: 10px 0 0; color: #c9cfdc; max-width: 30rem; }
@media (min-width: 760px) { .closing { grid-template-columns: 1fr auto; padding: 40px 44px; } }
@media (prefers-color-scheme: dark) { .closing { background: var(--surface); } }

/* Touch targets: 44 px where a finger is the pointer. Links inside running text are
   exempt (WCAG 2.5.8 inline exception); everything that stands alone is not. */
@media (pointer: coarse) {
  .top nav a, footer .links a, .toc a, .mark { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
  .toc a { display: flex; }
}
