/* Project Bluelink site. Every colour, radius and space is a token from
   brand/design-system/tokens.css (copied in by build.mjs). Never type a hex here.
   Design-system rules applied: cards are surface-raised with a 1px line border and
   radius-md on phones, radius-lg on wide screens; buttons and tap targets are at
   least 44px; primary is navy with white text, secondary a 2px navy outline;
   teal is never text on a light ground (teal-ink is). No webfonts: a font request
   can bounce off the sign-in gate (Skyne DESIGN.md). Inputs are 16px so phones
   do not zoom on tap. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.5 var(--font-sans);
}
a { color: var(--teal-ink); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; margin: 0 0 var(--space-3); }
h1 { font-size: 28px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; margin-top: var(--space-4); }
p { margin: 0 0 var(--space-3); }
.muted { color: var(--ink-muted); font-size: 14px; }

/* Header: the mark beside PROJECT over BLUELINK (design-system "Site header logo"). */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; min-height: 44px; }
.brand img { height: 32px; width: auto; }
.word { display: flex; flex-direction: column; line-height: 1; }
.w1 { font: 700 12px var(--font-sans); letter-spacing: 3.5px; color: var(--navy); }
.w2 { font: 700 18px var(--font-display); letter-spacing: 2.5px; color: var(--navy); margin-top: 3px; }
.w2 b { color: var(--teal-ink); }
.who { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.email { color: var(--ink-muted); font-size: 14px; overflow-wrap: anywhere; }

main { padding: var(--space-6) var(--space-4) var(--space-14); max-width: 1600px; margin: 0 auto; }

/* Cards fill the width on a wide screen instead of one narrow column. */
.grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.grid.narrow { max-width: 640px; grid-template-columns: 1fr; }
.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  min-width: 0;
}
.card.wide { grid-column: 1 / -1; }
@media (min-width: 820px) { .card { border-radius: var(--radius-lg); } }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }

.note {
  background: var(--surface-raised); border: 1px solid var(--line);
  border-left: 4px solid var(--teal); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4);
}
.crumbs { margin-bottom: var(--space-2); }

ul.plain { margin: 0; padding-left: 1.1em; }
ul.plain li { margin: var(--space-2) 0; }
ul.rows { list-style: none; margin: 0; padding: 0; }
ul.rows > li {
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3);
  flex-wrap: wrap; padding: var(--space-3) 0; border-top: 1px solid var(--line);
}
ul.rows > li:first-child { border-top: 0; }
ul.jobs { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
ul.jobs li { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-2) 0; }
.actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.actions form, ul.jobs form { margin: 0; }

.tag {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--ink-muted);
  white-space: nowrap;
}
.tag-active { color: var(--navy); border-color: var(--navy); }
.tag-offered { color: var(--warn); border-color: var(--warn); }

/* Buttons: 44px tall, navy primary, 2px navy outline secondary. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--space-6);
  font: 600 16px var(--font-sans); text-decoration: none; cursor: pointer;
  border-radius: var(--radius-pill); border: 2px solid var(--navy);
  background: var(--navy); color: var(--on-navy);
}
.btn.secondary { background: transparent; color: var(--navy); }
.btn.small { min-height: 44px; padding: 0 var(--space-4); font-size: 14px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px;
}

form.stack { display: flex; flex-direction: column; gap: var(--space-2); }
form.stack .btn { align-self: flex-start; margin-top: var(--space-2); }
label { font-weight: 600; font-size: 15px; }
input, select {
  font: 16px var(--font-sans); color: var(--ink);
  min-height: 44px; padding: 0 var(--space-3); width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 400px) { .two { grid-template-columns: 1fr; } }

/* The public front page: one calm column of words, the mark above it. */
main.front { max-width: 760px; padding-top: var(--space-14); }
.hero { text-align: left; }
.hero h1 { font-size: 40px; margin-bottom: var(--space-6); }
.hero .lede { font-size: 20px; line-height: 1.45; color: var(--ink); }
.hero p { font-size: 17px; }
.accent { font-weight: 600; color: var(--navy); }
.cta { margin: var(--space-8) 0 var(--space-3); }
h3.sub { margin-top: var(--space-6); }
@media (max-width: 400px) { .hero h1 { font-size: 32px; } .hero .lede { font-size: 18px; } }
