/* Jobwise website. One stylesheet, no external fonts or scripts.
   Colours mirror src/lib/theme.ts (estate green, amber accent, warm off-white). */

:root {
  color-scheme: light dark;
  --bg: #FAF8F4;
  --card: #FFFFFF;
  --muted: #F1EDE6;
  --border: #E7E1D8;
  --text: #14171A;
  --text2: #3E444B;
  --text-muted: #646B74;
  --primary: #0F5C4E;
  --primary-fill: #0F5C4E;
  --primary-ledge: #093A31;
  --on-primary: #FFFFFF;
  --primary-soft: #E2F0EC;
  --accent: #F59E0B;
  --accent-text: #8A4B00;
  --accent-soft: #FFF2DA;
  --focus: #F59E0B;
  --radius: 16px;
  --max: 46rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101413;
    --card: #181E1C;
    --muted: #222A27;
    --border: #2C3632;
    --text: #EEF2F0;
    --text2: #C5CDC9;
    --text-muted: #97A39E;
    --primary: #6FD6BE;
    --primary-fill: #127A66;
    --primary-ledge: #0A4A3E;
    --primary-soft: #15322B;
    --accent: #FBBF24;
    --accent-text: #FCD34D;
    --accent-soft: #3A2C10;
    --focus: #FBBF24;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

a { color: var(--primary); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--primary-fill);
  color: var(--on-primary);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* 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: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
/* Language menu: <details> dropdown, no JavaScript */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "▾"; font-size: 0.8em; }
.lang-menu[open] summary::after { content: "▴"; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--primary); }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  min-width: 13rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.lang-menu li { margin: 0; }
.lang-menu li a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.lang-menu li a:hover { background: var(--muted); }
.lang-menu li a[aria-current] { color: var(--primary); font-weight: 700; }

/* Main content */
main { padding: 2.5rem 0 3.5rem; }
main:focus { outline: none; }

h1, h2, h3 { line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.4rem); margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; }
h3 { font-size: 1.08rem; margin: 1.5rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: 0.35rem; }
p, li { color: var(--text2); }
strong { color: var(--text); }

.updated { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.lead { font-size: 1.15rem; color: var(--text2); }

.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0.5rem;
}
.toc h2 { font-size: 1rem; margin: 0 0 0.4rem; }
.toc ol { margin: 0; }

.note {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

/* Fill-in placeholders: deliberately loud so none slip through */
.ph {
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px dashed var(--accent);
  border-radius: 4px;
  padding: 0 0.25em;
  font-weight: 600;
  white-space: nowrap;
}

/* Landing */
.hero { display: grid; gap: 2rem; align-items: center; }
.hero-logo { width: 88px; height: 88px; margin-bottom: 1.25rem; }
.mascot {
  justify-self: center;
  width: min(15rem, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #FFF2DA;
  padding: 0.5rem;
}
.badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.5rem; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--primary-fill);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--primary-ledge);
}
/* A store that is not live yet: muted, so the live button stands out. */
a.badge:not([href]) { cursor: default; background: var(--muted); color: var(--text2); box-shadow: inset 0 0 0 1px var(--border); }
.features { list-style: none; padding: 0; display: grid; gap: 0.75rem; margin: 2.5rem 0 0; }
.features li { margin: 0; }
.quick-links { margin-top: 2.5rem; }
.after .features { margin-top: 1rem; }

@media (min-width: 44rem) {
  .hero { grid-template-columns: 1.4fr 1fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--muted);
  padding: 1.75rem 0 2.25rem;
  font-size: 0.95rem;
}
.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.site-footer li { margin: 0; }
.site-footer .footer-langs ul { gap: 0.35rem 1rem; font-size: 0.9rem; }
.site-footer .footer-langs a[aria-current] { color: var(--text); font-weight: 700; text-decoration: none; }
.site-footer p { color: var(--text-muted); margin: 0; }

@media print {
  .site-header, .site-footer, .skip-link, .lang-menu { display: none; }
  body { background: #fff; color: #000; }
}
