/* TekHow website. One stylesheet; colours only through the tokens below (light by default, dark from
   prefers-color-scheme). System fonts only: nothing to download. Touch targets are at least 48 px. */

/* Colours follow bits.tekhow.net (the Gitea theme, generated from the logo): the logo gradient #fad961 ->
   #f76b1c, Gitea's greys, and the logo's neutrals for the mark (#6f6f6f light, #aeaeae dark). Text and
   button colours use darker (light) or lighter (dark) steps of the same orange ramp for WCAG AA. */
:root {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --alt: #f1f3f5;
  --ink: #181c21;
  --muted: #5b6167;
  --line: #d0d7de;
  --accent: #bd4907;
  --on-accent: #ffffff;
  --accent-hover: #a43f06;
  --link: #a43f06;
  --status-bg: #fee8dc;
  --status-ink: #732c04;
  --todo-bg: #fef6d8;
  --todo-ink: #5c4400;
  --todo-line: #c9971a;
  --banner-bg: #181c21;
  --banner-ink: #f6f7fa;
  --brand-from: #fad961;
  --brand-to: #f76b1c;
  --mark-grey: #6f6f6f;
  --mark-edge: #9a4a00; /* thin outline under the mark's gold, for 3:1 on light surfaces (owner 2026-11-23) */
  --focus: #1b5fd1;
  --error: #b3261e;
  --shadow: 0 1px 2px rgba(24, 28, 33, 0.06), 0 6px 18px rgba(24, 28, 33, 0.06);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 4.5vw, 1.875rem);
  --step-3: clamp(2rem, 8vw, 3.25rem);

  --gutter: 16px;
  --measure: 62ch;
  --radius: 14px;
  --tap: 48px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1f20;
    --surface: #18191b;
    --alt: #1b1c1e;
    --ink: #d2d4d8;
    --muted: #969aa1;
    --line: #3f4248;
    --accent: #f76b1c;
    --on-accent: #1d0b01;
    --accent-hover: #f98a4c;
    --link: #fa9a64;
    --error: #ff8a80;
    --status-bg: #401802;
    --status-ink: #fcc9ac;
    --todo-bg: #33290f;
    --todo-ink: #f6dc9a;
    --todo-line: #a9842c;
    --banner-bg: #d2d4d8;
    --banner-ink: #1e1f20;
    --mark-grey: #aeaeae;
    --mark-edge: transparent;
    --focus: #8ab4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: var(--step-3); letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
[id] { scroll-margin-top: 1rem; }

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }

.skip-link {
  position: absolute; inset-inline-start: var(--gutter); top: -4rem; z-index: 10;
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1rem;
  background: var(--accent); color: var(--on-accent); border-radius: 8px;
}
.skip-link:focus { top: 0.5rem; }


/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; padding-block: 0.25rem; }
/* The mark is about 1.4x the wordmark's font size (34 px beside 24 px text; 30 px beside 21.6 px on phones). */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; min-height: var(--tap); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; }
.brand-mark { flex: none; width: 34px; height: 34px; color: var(--mark-grey); }
.brand-mark .mark-edge { stroke: var(--mark-edge); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 0.25rem; margin: 0 -0.75rem; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 0.75rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--link); text-decoration: underline; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 1.4rem;
  background: var(--accent); color: var(--on-accent); border-radius: 999px; font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--accent-hover); }
.button-quiet { background: transparent; color: var(--link); border: 2px solid currentColor; }
.button-quiet:hover { background: var(--alt); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 9vw, 5.5rem) clamp(2rem, 6vw, 3.5rem); }
.hero h1 { max-width: 20ch; text-wrap: balance; }
.hero h1::after { content: ""; display: block; width: 3.5rem; height: 6px; margin-top: 0.9rem; border-radius: 3px; background: linear-gradient(90deg, var(--brand-from), var(--brand-to)); }
.lead { max-width: 46ch; font-size: var(--step-1); color: var(--muted); }

/* Sections */
.section { padding-block: clamp(2rem, 7vw, 4rem); }
.section-alt { background: var(--alt); border-block: 1px solid var(--line); }

.values { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.value { padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.value h3 { color: var(--link); }
.value p { margin: 0; color: var(--muted); }

/* Product cards (data/products.json) */
.products { display: grid; gap: 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.product {
  display: flex; flex-direction: column; gap: 0.9rem; padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.product-head { display: flex; align-items: center; gap: 1rem; }
.product-icon { flex: none; width: 72px; height: 72px; border-radius: 16px; }
.product h3 { margin: 0 0 0.3rem; }
.product-status { display: inline-block; margin: 0; padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--status-bg); color: var(--status-ink); font-size: var(--step--1); font-weight: 600; line-height: 1.45; }
.product-summary { margin: 0; color: var(--muted); }
.product .button { align-self: flex-start; margin-top: auto; text-align: center; }

/* Contact placeholder */
.todo-note { max-width: var(--measure); padding: 0.75rem 1rem; background: var(--todo-bg); color: var(--todo-ink); border: 2px dashed var(--todo-line); border-radius: 10px; font-size: var(--step--1); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: var(--step--1); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; padding-block: 0.5rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 0.5rem; margin: 0 -0.6rem; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 0.6rem; }

@media (max-width: 30rem) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .brand { font-size: 1.35rem; }
  .brand-mark { width: 30px; height: 30px; }
}

/* Contact page and the shared support form (src/support-form/support-form.css, synced from the site repo). */
.form-panel { margin-top: 1.5rem; max-width: 44rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem var(--gutter) 1.5rem; }
.sf, .sf-result {
  --sf-ink: var(--ink); --sf-muted: var(--muted); --sf-line: var(--muted); --sf-field: var(--surface); --sf-surface: var(--alt);
  --sf-accent: var(--accent); --sf-on-accent: var(--on-accent); --sf-error: var(--error); --sf-focus: var(--focus);
  --sf-radius: 8px; --sf-frame-w: 1px;
}
.sf-send { border-color: transparent; border-radius: 999px; }
.sf-send:hover:not(:disabled) { background: var(--accent-hover); }
.sf fieldset { border-color: var(--line); }
.contact-fallback { color: var(--muted); font-size: var(--step--1); }
/* Support form (Task 14y). SHARED structure: canonical copy in simple-truth-bible-site/src/support-form/, synced
   into tekhow-site. Each site maps the --sf-* tokens onto its own theme (light and dark) and may add its own look
   after this file. Phone-first: one column at 320 px, 48 px targets, visible focus, reduced motion respected. */
.sf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; max-width: 40rem; margin: 0; }
.sf fieldset { margin: 0; padding: 0.9rem 1rem 1rem; border: var(--sf-frame-w) solid var(--sf-line); border-radius: var(--sf-radius); display: grid; gap: 1rem; min-width: 0; }
.sf legend { font-weight: 700; padding: 0 0.35rem; }
.sf-field { display: grid; gap: 0.35rem; min-width: 0; }
.sf-label { font-weight: 700; }
.sf-req { font-weight: 400; color: var(--sf-muted); font-size: 0.9em; }
.sf-hint, .sf-count, .sf-type-help { margin: 0; color: var(--sf-muted); font-size: 0.9375rem; }
.sf-type-help { margin-top: 0.15rem; }
.sf input[type="text"], .sf input[type="email"], .sf input[type="number"], .sf select, .sf textarea {
  font: inherit; color: var(--sf-ink); background: var(--sf-field); width: 100%; min-height: 48px;
  padding: 0.55rem 0.7rem; border: var(--sf-frame-w) solid var(--sf-line); border-radius: var(--sf-radius);
}
.sf textarea { resize: vertical; line-height: 1.5; }
.sf-short input { max-width: 12rem; }
.sf input:focus-visible, .sf select:focus-visible, .sf textarea:focus-visible, .sf button:focus-visible, .sf a:focus-visible { outline: 3px solid var(--sf-focus); outline-offset: 2px; }
.sf [aria-invalid="true"] { border-color: var(--sf-error); box-shadow: inset 0 0 0 1px var(--sf-error); }
.sf-error { margin: 0; color: var(--sf-error); font-weight: 700; }
.sf-error::before { content: "! "; }
.sf-summary { margin: 0; padding: 0.75rem 1rem; border: var(--sf-frame-w) solid var(--sf-error); border-radius: var(--sf-radius); color: var(--sf-error); background: var(--sf-field); font-weight: 700; }
.sf-row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .sf-row { grid-template-columns: 1fr 1fr; align-items: start; } }
.sf-check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
/* The form's own checkbox (not the platform's): the site's field, frame and accent tokens, a drawn tick. */
.sf-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; display: grid; place-content: center; cursor: pointer;
  width: 1.75rem; height: 1.75rem; margin: 0; border: var(--sf-frame-w) solid var(--sf-line);
  border-radius: calc(var(--sf-radius) / 2); background: var(--sf-field); transition: background-color 120ms ease;
}
.sf-check input[type="checkbox"]::before {
  content: ""; width: 1rem; height: 1rem; background: var(--sf-on-accent); transform: scale(0); transition: transform 120ms ease;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.sf-check input[type="checkbox"]:checked { background: var(--sf-accent); border-color: var(--sf-line); }
.sf-check input[type="checkbox"]:checked::before { transform: scale(1); }
.sf-check input[type="checkbox"]:focus-visible { outline: 3px solid var(--sf-focus); outline-offset: 2px; }
.sf-check label { padding-top: 0.15rem; cursor: pointer; }
@media (forced-colors: active) { .sf-check input[type="checkbox"]::before { background: CanvasText; } }
@media (prefers-reduced-motion: reduce) { .sf-check input[type="checkbox"], .sf-check input[type="checkbox"]::before { transition: none; } }
.sf-check .sf-error { grid-column: 2; }
.sf-files input[type="file"] { font: inherit; width: 100%; max-width: 100%; min-height: 48px; }
.sf-files input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; color: var(--sf-ink); background: var(--sf-surface); cursor: pointer;
  min-height: 48px; margin-right: 0.75rem; padding: 0.5rem 1rem; border: var(--sf-frame-w) solid var(--sf-line); border-radius: var(--sf-radius);
}
.sf-files input[type="file"]:focus-visible { outline: 3px solid var(--sf-focus); outline-offset: 2px; }
.sf-file-list, .sf-diag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.sf-file { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.5rem; border: 2px solid var(--sf-line); border-radius: var(--sf-radius); background: var(--sf-field); min-width: 0; }
.sf-file img { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; flex: none; }
.sf-file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sf-diag-row { display: grid; gap: 0.15rem; padding: 0.4rem 0; border-bottom: 1px solid var(--sf-line); }
.sf-diag-row dt { font-weight: 700; }
.sf-diag-row dd { margin: 0; display: flex; gap: 0.6rem; align-items: center; justify-content: space-between; }
.sf-diag-value { overflow-wrap: anywhere; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.875rem; min-width: 0; }
.sf-remove { font: inherit; font-size: 0.9375rem; min-height: 44px; min-width: 44px; padding: 0.3rem 0.7rem; color: var(--sf-ink); background: var(--sf-surface); border: 2px solid var(--sf-line); border-radius: var(--sf-radius); cursor: pointer; flex: none; }
.sf-actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.sf-send { font: inherit; font-weight: 700; font-size: 1.125rem; min-height: 48px; padding: 0.6rem 1.6rem; color: var(--sf-on-accent); background: var(--sf-accent); border: var(--sf-frame-w) solid var(--sf-line); border-radius: var(--sf-radius); cursor: pointer; }
.sf-send:disabled { opacity: 0.7; cursor: progress; }
.sf-status { color: var(--sf-muted); }
.sf-fallback { margin: 0; color: var(--sf-muted); font-size: 0.9375rem; }
.sf-fallback a { overflow-wrap: anywhere; }
.sf[hidden], .sf [hidden], .sf-result[hidden] { display: none !important; }
/* The honeypot: off screen for people, still a normal field for bots. */
.sf-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Without JavaScript every type's extra fields show under one note; with it only the chosen type's. */
.sf-js .sf-extras-note { display: none; }
.sf-js .sf-extras:not(:has(.sf-extra:not([hidden]))) { display: none; }
.sf-extras { display: grid; gap: 1rem; }
.sf-extras-note { margin: 0; color: var(--sf-muted); }
.sf-result { max-width: 40rem; padding: 1.25rem; border: var(--sf-frame-w) solid var(--sf-line); border-radius: var(--sf-radius); background: var(--sf-surface); }
.sf-result h2 { margin-top: 0; }
.sf-ref { font: 700 1.5rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.05em; display: inline-block; padding: 0.5rem 0.8rem; border: var(--sf-frame-w) dashed var(--sf-line); border-radius: var(--sf-radius); overflow-wrap: anywhere; }
/* STAGING ribbon (src/staging-ribbon/slot.mjs; shared, synced into tekhow-site). Appears only where the staging
   Caddy blocks render it. A thin bar in the page flow above the header (covers nothing), the same in light and
   dark (ink on amber, contrast about 14:1), never printed. */
.staging-ribbon {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.15rem 0.6rem;
  margin: 0; padding: 0.3rem 1rem; min-height: 1.75rem;
  background: repeating-linear-gradient(135deg, #ffcc00 0 14px, #f5b800 14px 28px);
  color: #111111; border-bottom: 2px solid #111111;
  font: 600 0.8125rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-align: center;
}
.staging-ribbon-label { font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; background: #111111; color: #ffcc00; padding: 0.05rem 0.45rem; border-radius: 3px; }
@media print { .staging-ribbon { display: none !important; } }
