/* hardcode.tools — single stylesheet, no external fonts or scripts. */

:root {
  --navy: #313c7f;          /* logo wordmark */
  --blue: #659cd4;          /* logo accent */
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --text: #1c2233;
  --muted: #4f5a72;
  --border: #dde2ee;
  --accent: #2f5fa8;        /* link/button colour: 6.4:1 on white */
  --accent-hover: #234a86;
  --accent-text: #ffffff;
  --badge-ok-bg: #e3f3e8;
  --badge-ok-fg: #1d5e33;
  --badge-soon-bg: #fdf0d9;
  --badge-soon-fg: #7a4b00;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 4px 16px rgba(20, 30, 60, .06);
  --maxw: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1320;
    --bg-alt: #151a2b;
    --surface: #1a2033;
    --text: #e6e9f2;
    --muted: #a6aec4;
    --border: #2a3250;
    --accent: #8db8ec;      /* 8:1 on --bg */
    --accent-hover: #b3d0f3;
    --accent-text: #0f1320;
    --badge-ok-bg: #173723;
    --badge-ok-fg: #9be0b0;
    --badge-soon-bg: #3d2e10;
    --badge-soon-fg: #f5cf8a;
    --shadow: none;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-text); padding: .5em 1em; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap;
}
.brand { display: inline-flex; }
.brand img { width: 180px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--accent); }

/* ---- hero ---- */
.hero { padding: 56px 0 48px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero h1 { max-width: 20ch; color: var(--text); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.btn {
  display: inline-block; padding: .6em 1.15em; border-radius: 8px;
  font-weight: 600; text-decoration: none; border: 2px solid var(--accent);
  line-height: 1.3;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--bg-alt); }

/* ---- sections ---- */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 62ch; margin-bottom: 28px; }

/* ---- products ---- */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card-media { background: #ffffff; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.placeholder { background: var(--bg-alt); color: var(--blue); }
.card-media.placeholder svg { width: 38%; height: auto; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body ul { margin: 0 0 1.2em; padding-left: 1.2em; color: var(--muted); }
.card-body li { margin-bottom: .25em; }
.card-links { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.sku { font-size: .85rem; color: var(--muted); font-weight: 500; }

.badge {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  padding: .15em .65em; border-radius: 999px; margin-bottom: .6em; text-transform: uppercase;
}
.badge-ok { background: var(--badge-ok-bg); color: var(--badge-ok-fg); }
.badge-soon { background: var(--badge-soon-bg); color: var(--badge-soon-fg); }

.shops { margin-top: 28px; color: var(--muted); }

/* ---- CTA ---- */
.cta {
  border: 1px solid var(--border); border-left: 5px solid var(--blue);
  background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.cta p { color: var(--muted); max-width: 62ch; }

/* ---- contact ---- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .contact-list { grid-template-columns: repeat(3, 1fr); } }
.contact-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.contact-list .label { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.contact-list a { font-weight: 600; word-break: break-word; }

/* ---- legal page ---- */
.legal { padding: 40px 0 56px; }
.legal .wrap { max-width: 760px; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: 4px 20px; margin: 0 0 1.5em; }
@media (min-width: 600px) { .legal dl { grid-template-columns: 14rem 1fr; } }
.legal dt { font-weight: 600; }
.legal dd { margin: 0 0 .6em; }
.todo {
  background: var(--badge-soon-bg); color: var(--badge-soon-fg);
  padding: .05em .4em; border-radius: 4px; font-weight: 600;
}

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ---- 404 ---- */
.notfound { padding: 80px 0; text-align: center; }
.notfound .code { font-size: 4rem; font-weight: 800; color: var(--blue); margin: 0; line-height: 1; }
