/* ===========================================================================
   site.css — the shared chrome: fonts, design tokens, base elements, and the
   nav + footer that must look identical on every page.

   Every page links this FIRST, then adds its own page-specific <style> block,
   so page rules can override these. Do not copy nav or footer rules into a
   page — that is exactly the drift this file exists to prevent.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Fonts — self-hosted (GDPR: no Google Fonts requests at runtime).
   Both faces are variable; the weight axis is declared as a range.
   --------------------------------------------------------------------------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/BricolageGrotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/BricolageGrotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/InstrumentSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/InstrumentSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------------------
   Design tokens (corporate identity — see README "Design tokens")
   --------------------------------------------------------------------------- */
:root {
  --plum:        #6E4370;
  --plum-dark:   #543256;
  --ink:         #2A2130;
  --cream:       #F7F5F0;
  --cream-line:  #E4E0D5;
  --card-line:   #EEEBE2;
  --amber:       #E8B04B;
  --teal:        #0F6B62;
  --lilac:       #D5BAD6;
  --body:        #544A57;
  --muted:       #8A857A;
  --track:       #EFEAF0;   /* unfilled part of any progress rail */
  --mint:        #7FD1C7;   /* the confirming tick — dark backgrounds only */

  /* audiences */
  --kita:        #D97E36;
  --school:      #3A6EA5;
  --home:        #0F6B62;
  --work:        #6E4370;

  /* Sema — the grow.file AI. The mark's node colours ARE the audience colours
     above (1:1 mapping, never recolour them); only the disc is Sema's own. */
  --sema-disc:   #3B2E42;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ui:      'Instrument Sans', system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: 32px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--plum); }
a:hover { color: var(--plum-dark); }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }

/* height:auto matters: width/height attributes (which we set, so the browser
   can reserve space and avoid layout shift) otherwise fix the rendered height,
   and a responsive width then produces a stretched image. */
img { max-width: 100%; display: block; height: auto; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.dot { color: var(--amber); }

.eyebrow {
  font: 600 12px var(--ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--plum);
}
.eyebrow--onDark { color: var(--lilac); }

.h2 { font: 700 34px/1.15 var(--display); color: var(--ink); letter-spacing: -.01em; }
.h2--onDark { color: var(--cream); }

/* --- Wordmark ------------------------------------------------------------ */
/* --- Wordmark: the 5a horizontal lockup -----------------------------------
   Tree left of the wordmark, tagline stacked beneath it. The mark is a PNG
   because the handoff ships no SVG master; tools/make-tree-marks.py derives
   every variant from images/tree-mark-source.png, so recolouring the tree (a
   pending brand decision) is a one-line change there rather than a hunt
   through the image folder.

   The dark-ground footer gets a true white file, not a CSS filter — the brief
   rules the filter out for production, and it would also invert the amber dot.

   The tree is the COMPANY mark. Sema keeps the constellation (.sema-mark);
   never swap the tree into a chat or AI context. */
.wordmark { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.wordmark__mark { height: 36px; width: auto; flex: none; }
.wordmark__text { display: flex; flex-direction: column; gap: 3px; }
.wordmark__name { font: 700 22px/1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.wordmark__tag {
  font: 500 10px/1 var(--ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--plum);
}

/* --- Sema mark ------------------------------------------------------------
   The constellation avatar for Sema, the grow.file AI. Two variants:
     .sema-mark--full   5 nodes — display at 56px and up ONLY
     .sema-mark--small  3 nodes — display at 16–48px (inline mentions, chat)
   Never scale the full mark below 56px, never give it a face, never use it as
   a decorative background, and never recolour the nodes — they map 1:1 to the
   audience colours. See the "Sema" section in README.md.
   --------------------------------------------------------------------------- */
.sema-mark { display: block; flex: none; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font: 600 15px var(--ui);
  border-radius: 9px;
  padding: 13px 26px;
  text-decoration: none;
  text-align: center;
  transition: background-color .15s ease, color .15s ease;
}
.btn--solid  { color: #fff; background: var(--plum); }
.btn--solid:hover  { background: var(--plum-dark); color: #fff; }
.btn--ghost  { color: var(--plum); border: 1.5px solid var(--plum); padding: 12px 25px; }
.btn--ghost:hover  { background: rgba(110,67,112,.07); color: var(--plum); }
.btn--sm { font-size: 13.5px; padding: 9px 18px; border-radius: 8px; }

/* --- Bands (full-bleed section backgrounds) -------------------------------
   Used by more than one page, so they live here: a page that sets
   class="band--ink" without these rules renders white text on cream. */
.band--white { background: #fff; border-top: 1px solid var(--cream-line); border-bottom: 1px solid var(--cream-line); }
.band--ink   { background: var(--ink); }
.band--plum  { background: var(--plum); }
.band__inner { padding-top: 72px; padding-bottom: 72px; }

/* Buttons for use on the plum band. */
.btn--onPlum { font-size: 16px; color: var(--plum); background: #fff; border-radius: 10px; padding: 15px 26px; }
.btn--onPlum:hover { background: var(--cream); color: var(--plum-dark); }
.btn--onPlumGhost {
  font-size: 14px;
  color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 10px;
  padding: 13px 26px;
}
.btn--onPlumGhost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* --- Nav (identical on every page) --------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,245,240,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-line);
}
.nav__inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__link { font: 500 13.5px var(--ui); color: var(--body); text-decoration: none; }
.nav__link:hover { color: var(--plum); }

/* Language switch. Points at this page's counterpart, not at the other
   homepage, so switching language never loses your place. */
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 12px var(--ui);
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}
.nav__lang:hover { color: var(--plum); border-color: var(--plum); }
.nav__flag { display: block; flex: none; border-radius: 2px; }

/* The mobile control is a real checkbox laid transparently over the icon, so it
   stays keyboard-focusable and Space toggles it. That keeps the site JS-free;
   the only cost is that the panel stays open after tapping a same-page anchor. */
.nav__toggle, .nav__burger { display: none; }

/* --- Footer (identical on every page) ------------------------------------ */
.footer { background: var(--ink); }
.footer__inner {
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer .wordmark__mark { height: 28px; }
.footer .wordmark__name { font-size: 17px; color: var(--cream); }
.footer .wordmark__tag { font-size: 9.5px; letter-spacing: .16em; color: var(--lilac); }
/* wrap: the German labels are longer than the English ones and overflowed a
   360px screen as a single row */
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 400 12.5px var(--ui); align-items: center; }
.footer__links a { color: rgba(247,245,240,.6); text-decoration: none; }
.footer__links a:hover { color: var(--cream); }
.footer__copy { color: rgba(247,245,240,.4); }

/* --- Responsive chrome --------------------------------------------------- */
@media (max-width: 900px) {
  /* Touch targets. The footer links render 15px tall — fine for a cursor, well
     under the 24px WCAG 2.5.8 asks of a standalone link, and a known mis-tap
     source when four of them sit in one wrapped row. Padding is the whole fix:
     the row already wraps, so the extra height costs nothing but comfort.
     Inline links inside a sentence are deliberately left alone — 2.5.8 exempts
     them, and padding them would break the line box. */
  .footer__links a { padding: 10px 0; }

  :root { --gutter: 22px; }

  /* Below 900px the links collapse behind a menu button, CTA included. */
  .nav__inner { position: relative; }

  .nav__toggle {
    display: block;
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;      /* >= 44px tap target */
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
  }
  .nav__burger {
    display: block;
    position: absolute;
    right: 11px; top: 50%;
    width: 24px; height: 2px;
    margin-top: -1px;
    background: var(--ink);
    border-radius: 2px;
    z-index: 1;
  }
  .nav__burger::before, .nav__burger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .18s ease;
  }
  .nav__burger::before { top: -7px; }
  .nav__burger::after  { top: 7px; }

  /* open: the bars become a cross */
  .nav__toggle:checked ~ .nav__burger { background: transparent; }
  .nav__toggle:checked ~ .nav__burger::before { transform: translateY(7px) rotate(45deg); }
  .nav__toggle:checked ~ .nav__burger::after  { transform: translateY(-7px) rotate(-45deg); }
  .nav__toggle:focus-visible ~ .nav__burger { outline: 2px solid var(--plum); outline-offset: 8px; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    /* Opaque, not translucent: the panel sits over arbitrary page content and
       has to stay readable regardless of what is behind it. */
    background: var(--cream);
    border-bottom: 1px solid var(--cream-line);
    box-shadow: 0 12px 28px rgba(42,33,48,.08);
  }
  .nav__toggle:checked ~ .nav__links { display: flex; }
  .nav__link {
    font-size: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--cream-line);
  }
  .nav__links .btn { margin-top: 16px; }
  .nav__lang { margin-top: 14px; align-self: flex-start; }
}

@media (max-width: 520px) {
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* --- Content primitives ---------------------------------------------------
   Long-form prose used by the job pages and the use-case pages.
   German job titles are full of long compounds ("Anforderungsmanagement"),
   which overflow a 360px screen unbroken. Hyphenate rather than shrink type;
   `lang="de"` on <html> gives the browser the right dictionary. */
.jobs h1, .job h1, .uc h1, .opening__title {
  overflow-wrap: break-word;
  hyphens: auto;
}
.prose, .summary__val, .apply { overflow-wrap: break-word; }
.jobs h1, .job h1, .uc h1 { font: 700 40px/1.12 var(--display); color: var(--ink); letter-spacing: -.015em; }
/* Capped independently of the column: several of these sit in containers wide
   enough to run past 85 characters a line, which is tiring to read. */
.prose p  { margin: 12px 0 0; font: 400 17px/1.72 var(--ui); color: var(--body); max-width: 640px; }
.prose ul { margin: 12px 0 0; padding: 0; list-style: none; }
.prose li {
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
  font: 400 17px/1.68 var(--ui);
  color: var(--body);
  max-width: 640px;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--lilac);
}
.prose li strong { color: var(--ink); font-weight: 600; }

.section-label {
  margin: 34px 0 0;
  font: 600 12px var(--ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--plum);
}
.sub-label { margin: 22px 0 0; font: 700 15px var(--display); color: var(--ink); }

.note {
  margin: 18px 0 0;
  font: 400 13.5px/1.6 var(--ui);
  color: var(--muted);
  border-left: 2px solid var(--cream-line);
  padding-left: 14px;
}
