/*
 * The hirehay landing page (anywork/ats#339). It loads no kit, so the colours are copies of the hh
 * theme's role tokens: each value names its path in the kit's dist/tokens.json, and dark values
 * its path in dist/tokens.dark.json. build.test.mjs fails when a copy drifts from the kit.
 */
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/be-vietnam-pro-latin-400-normal.dab1ae446a.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: 'Be Vietnam Pro';
  src: url('/assets/be-vietnam-pro-vietnamese-400-normal.6161775ff9.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01a0-01a1, U+01af-01b0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1ea0-1ef9, U+20ab;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/be-vietnam-pro-latin-600-normal.7ed1ab4956.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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: 'Be Vietnam Pro';
  src: url('/assets/be-vietnam-pro-vietnamese-600-normal.0a6fb173a1.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01a0-01a1, U+01af-01b0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1ea0-1ef9, U+20ab;
}

:root {
  color-scheme: light dark;

  --canvas: #f3f2ed; /* color.surface.canvas */
  --card: #ffffff; /* color.surface.card */
  --sunken: #ebe9e2; /* color.surface.sunken */
  --ink: #292822; /* color.text.primary */
  --ink-secondary: #66645d; /* color.text.secondary */
  --separator: #d2d0c8; /* color.border.separator */
  --control: #87857d; /* color.border.control */
  --selection: #e7e1fb; /* color.accent.muted */
  --action: #d7ed99; /* color.action.default */
  --action-edge: #798752; /* color.action.edge */
  --navigation: #eee9fb; /* color.surface.navigation */

  --font: 'Be Vietnam Pro', system-ui, sans-serif;
  --focus-width: 3px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1c1d1a; /* color.surface.canvas */
    --card: #2a2b27; /* color.surface.card */
    --sunken: #171815; /* color.surface.sunken */
    --ink: #f4f1e8; /* color.text.primary */
    --ink-secondary: #c0beb5; /* color.text.secondary */
    --separator: #45463f; /* color.border.separator */
    --control: #7d7e73; /* color.border.control */
    --selection: #494252; /* color.accent.muted */
    --action: #cadd96; /* color.action.default */
    --action-edge: #798752; /* color.action.edge */
    --navigation: #2e2c32; /* color.surface.navigation */
  }
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px var(--gutter);
}

.masthead svg {
  display: block;
  height: 28px;
  width: auto;
}

.hero {
  display: grid;
  flex: 1;
  align-content: center;
  gap: 48px;
}

.copy {
  max-width: 560px;
}

.copy > * {
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--selection);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action-edge);
}

.copy h1 {
  margin-top: 20px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

.aside {
  margin-top: 12px;
  color: var(--ink-secondary);
  font-size: 15px;
}

.contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--separator);
}

a {
  color: inherit;
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: var(--focus-width) solid var(--ink);
  outline-offset: 2px;
}

/* A hiring board still being put together: three stage columns, the last one waiting for its
   first card. Decoration only, so it is hidden from assistive technology. */
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  width: 100%;
  max-width: 460px;
  padding: 16px;
  background: var(--navigation);
}

.column {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--sunken);
}

.column-head {
  width: 60%;
  height: 8px;
  margin-bottom: 4px;
  background: var(--control);
  opacity: 0.55;
}

.card {
  display: grid;
  gap: 6px;
  height: 44px;
  padding: 10px;
  align-content: start;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--separator);
}

.card i {
  display: block;
  height: 6px;
  background: var(--separator);
}

.card i:first-child {
  width: 80%;
  background: var(--control);
  opacity: 0.6;
}

.card i + i {
  width: 50%;
}

.card-accent {
  background: var(--selection);
  box-shadow: none;
}

.card-action {
  background: var(--action);
  box-shadow: inset 0 0 0 1px var(--action-edge);
}

.card-action i,
.card-action i:first-child {
  background: #292822; /* color.action.on */
  opacity: 0.35;
}

.card-pending {
  background: transparent;
  box-shadow: none;
  outline: 1.5px dashed var(--control);
  outline-offset: -1.5px;
}

.footer {
  color: var(--ink-secondary);
  font-size: 13px;
}

@media (min-width: 720px) {
  :root {
    --gutter: 40px;
  }

  .page {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .copy h1 {
    font-size: 56px;
  }

  .card {
    height: 56px;
  }

  .masthead svg {
    height: 32px;
  }

  .lead {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: center;
    gap: 64px;
  }

  .hero-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .board {
    justify-self: end;
  }
}
