/*
 * The look of blog.krasnerteam.com: same colours, type, header, footer and
 * marker-pen highlight, so a visitor moving between the two sees one brand.
 * The blog's own theme documents these tokens; keep them in step with it.
 *
 * Constraints that shape this file:
 *  - One stylesheet, no @import, nothing from another origin (the CSP allows
 *    only 'self', and the privacy page promises no third-party requests).
 *    The fonts and logo are files on this site, not loaded from the blog.
 *  - No inline styles anywhere in the markup - the CSP forbids them.
 *  - Light only, like the blog. `color-scheme: light` keeps form controls light.
 *  - Mobile first: it works at 320px, and the card only appears when there is room.
 */

/* ---------- Fonts: the blog's own, served from this site (Latin subset) ----------
   Poppins for headings, Open Sans for text; both SIL Open Font License 1.1
   (see fonts/LICENSE-OFL.txt). The CSP allows font-src 'self' and nothing else. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/fonts/poppins-latin-800-normal.woff2") format("woff2"); }
/* Open Sans is one variable font: every weight from 300 to 800. */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/open-sans-latin-wght-normal.woff2") format("woff2"); }

/* ---------- Brand tokens ---------- */
:root {
  --kt-navy: #2e466e;
  --kt-navy-deep: #1a263a;
  --kt-navy-band: #243352;
  --kt-sky: #41add5;
  --kt-sky-deep: #1f7fa3;          /* text-safe blue, about 4.5:1 on white */
  --kt-sky-wash: rgba(65, 173, 213, 0.16);
  --kt-orange: #fc833c;
  --kt-orange-press: #ea6f22;
  --kt-gray: #f4f4f4;
  --kt-ink: #2f3a4c;
  --kt-ink-soft: #566173;

  --ring: rgba(46, 70, 110, 0.12);
  --ring-strong: rgba(46, 70, 110, 0.32);
  --divider: rgba(46, 70, 110, 0.14);
  --shadow-card: rgba(26, 38, 58, 0.06) 0 1px 2px, rgba(26, 38, 58, 0.12) 0 8px 22px -10px;

  --radius: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --display: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --sans: "Open Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;

  --error-bg: #fdeceb;
  --error-fg: #8a1c14;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  line-height: 1.6;
  color: var(--kt-ink);
  background: #ffffff;
}

/* ---------- Skip link, pilot banner, header ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--kt-navy); color: #ffffff; padding: .6rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

.banner {
  background: var(--kt-navy-band); color: #ffffff;
  padding: .5rem 1.1rem; text-align: center; font-size: .85rem; line-height: 1.5;
}
.banner p { margin: 0 auto; max-width: 46rem; }

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--divider);
}
.site-header__inner {
  max-width: 64rem; margin: 0 auto; padding: .35rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-block; line-height: 0; }
.brand img { height: 52px; width: auto; display: block; }

.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  font-family: var(--display); font-size: .9rem; font-weight: 600;
  color: var(--kt-navy); text-decoration: none; letter-spacing: 0;
  padding: .78rem .6rem; line-height: 1.3;   /* 44px tall: a comfortable thumb target */
}
.site-nav a:hover { background: var(--kt-gray); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--kt-orange); }

/* ---------- The page: flat on a phone, a card when there is room ---------- */
.wrap {
  width: 100%; max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.1rem 2.5rem;
  flex: 1 0 auto;
}
@media (min-width: 40rem) {
  .wrap {
    margin: 2rem auto 3rem; padding: 2.5rem;
    background: #ffffff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--ring);
  }
}

/* ---------- Headings and text ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--kt-navy); }

h1 {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 2.4vw + 1rem, 2.85rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
}

/* Marker-pen highlight. Once per page, on the heading, and never the whole of it. */
.swipe {
  background: linear-gradient(transparent 62%, rgba(65, 173, 213, 0.5) 62% 90%, transparent 90%);
  padding-inline: .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede { font-size: 1.1rem; color: var(--kt-ink-soft); margin: 0 0 1.25rem; line-height: 1.7; }

p, li { line-height: 1.75; }

/* Section headings: a short orange rule below, as on the blog. */
main h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25;
  margin: 2.25rem 0 .9rem;
}
main h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: .6rem;
  border-radius: 2px; background: var(--kt-orange);
}
form + h2 { margin-top: 2.25rem; }
main ul { padding-left: 1.2rem; }
main li { margin-bottom: .4rem; }
strong, b { font-weight: 700; }

a {
  color: var(--kt-sky-deep);
  text-decoration-color: var(--kt-sky); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
a:hover { color: var(--kt-navy); text-decoration-color: var(--kt-orange); }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }

/* ---------- Errors and notices ---------- */
.errors {
  background: var(--error-bg); color: var(--error-fg);
  border: 1px solid var(--error-fg); border-radius: var(--radius);
  padding: .8rem 1rem; margin: 1rem 0;
}
.errors ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* A "key takeaway" box, as the blog uses for blockquotes. */
.notice {
  background: var(--kt-gray); border-left: 5px solid var(--kt-orange);
  padding: 1rem 1.25rem; margin: 1.4rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.notice p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--kt-ink); }

/* ---------- The form ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { display: flex; flex-direction: column; margin: .7rem 0; }
.field:nth-child(3), .field:nth-child(6) { grid-column: 1 / -1; }
@media (max-width: 34rem) {
  .grid { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1 !important; }
}

label { font-weight: 600; color: var(--kt-navy); margin-bottom: .3rem; }
.hint { font-size: .85rem; color: var(--kt-ink-soft); margin-top: .25rem; line-height: 1.5; }

input[type="text"], input[type="email"], input[type="tel"], select {
  font: inherit; color: var(--kt-ink); background: #ffffff;
  border: 1px solid var(--ring-strong); border-radius: var(--radius);
  padding: .65rem .8rem; width: 100%;
}
input[aria-invalid="true"] { border-color: var(--error-fg); border-width: 2px; }

:focus-visible { outline: 3px solid var(--kt-sky-deep); outline-offset: 2px; }
input:focus, select:focus, button:focus, a:focus { outline: 3px solid var(--kt-sky-deep); outline-offset: 2px; }
input:focus:not(:focus-visible), select:focus:not(:focus-visible),
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
input:focus-visible, select:focus-visible { border-color: var(--kt-navy); }
.errors:focus { outline: 3px solid var(--kt-sky-deep); outline-offset: 2px; }

/* Consent. Shown in full, never in a small scrolling box: on a phone that box
   hid most of the wording, and a disclosure has to be clear and conspicuous. */
.consent {
  border: 1px solid var(--ring-strong); border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem; margin: 1.5rem 0;
}
.consent legend {
  font-family: var(--display); font-weight: 600; color: var(--kt-navy); padding: 0 .5rem;
}
.consent-text {
  background: var(--kt-gray); border-radius: var(--radius);
  padding: .8rem 1rem; margin-bottom: 1rem;
  font-size: .92rem; color: var(--kt-ink);
}
.consent-text p { margin: .5rem 0; line-height: 1.65; }
.checkbox { margin: .5rem 0; }
/* The whole label is the tap target; the text is one span so it wraps as a line. */
.checkbox label {
  font-weight: 400; color: var(--kt-ink); display: flex; gap: .7rem;
  align-items: flex-start; padding: .4rem 0; cursor: pointer; margin: 0;
}
.checkbox input { flex: none; width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; accent-color: var(--kt-navy); }

.privacy-link { margin: 1.25rem 0; }

/* ---------- Buttons: pills, navy by default, orange for the call to action ---------- */
.btn, button[type="submit"] {
  display: inline-block; font-family: var(--display); font-size: 1rem; font-weight: 600;
  letter-spacing: .01em; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer;
  padding: .85rem 1.75rem; border: 0; border-radius: 9999px;
  color: #ffffff; background: var(--kt-navy);
}
.btn:hover, button[type="submit"]:hover { background: var(--kt-navy-deep); color: #ffffff; }
/* Written with the element too, so it out-ranks the button[type="submit"] rules above. */
.btn.btn-cta, button.btn-cta { background: var(--kt-orange); color: var(--kt-navy-deep); }
.btn.btn-cta:hover, button.btn-cta:hover { background: var(--kt-orange-press); color: var(--kt-navy-deep); }
#submit-btn { width: 100%; }
button[type="submit"][aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer { background: var(--kt-navy-deep); color: #dbe3ef; font-size: .92rem; }
.site-footer__inner {
  max-width: 64rem; margin: 0 auto; padding: 1.75rem 1.1rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.site-footer p { margin: 0; line-height: 1.7; flex: 1 1 18rem; }
.site-footer a { color: #ffffff; font-weight: 500; text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-footer a:hover { color: #ffffff; text-decoration-color: var(--kt-orange); }
.site-footer :focus-visible, .site-footer a:focus { outline-color: #ffffff; }
/* The navy logo, in white on the dark footer. */
.brand--footer img { height: 72px; filter: brightness(0) invert(1); }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Honeypot: off-screen rather than display:none, so bots that skip hidden
   fields still fill it. No inline styles anywhere - the CSP forbids them. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
