/*
 * FableHR placeholder. Warm and a little corporate on purpose: cream page, navy ink, coral accent,
 * rounded cards, and the badge as the only illustration. Inter, self-hosted (OFL, fonts/OFL.txt),
 * at 400 and 800. No motion anywhere, so reduced motion has nothing to stop.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/inter-latin-800-normal.woff2") format("woff2");
}

:root {
  --cream: #fbf4e6;
  --paper: #fffdf8;
  --navy: #1a2a4f;
  --ink-soft: #46516e;
  --coral: #e8664f;
  --coral-ink: #a8392a;
  --coral-wash: #fde6de;
  --line: #eadcc4;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-ink);
}

a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Header ---- */

.top {
  border-bottom: 1px solid var(--line);
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-hr {
  color: var(--coral-ink);
}

.soon-tag {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-ink);
  background: var(--coral-wash);
  border: 1px solid var(--coral);
  border-radius: 999px;
  padding: 4px 14px;
}

/* ---- Hero ---- */

.hero {
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw + 1rem, 3.5rem);
  max-width: 17ch;
}

.lede {
  margin-top: 20px;
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 36em;
}

/* The badge: a lanyard card, tilted a little. Static, never animated. */

.badge-holder {
  display: flex;
  justify-content: center;
  padding-top: 36px;
}

.badge {
  position: relative;
  width: 220px;
  max-width: 100%;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: 6px 8px 0 var(--line);
  text-align: center;
  padding-bottom: 20px;
  transform: rotate(-3deg);
}

.badge-strap {
  position: absolute;
  left: 50%;
  top: -38px;
  width: 26px;
  height: 46px;
  margin-left: -13px;
  background: var(--coral);
  border-radius: 6px 6px 4px 4px;
}

.badge-strap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 14px;
  height: 6px;
  margin-left: -7px;
  background: var(--paper);
  border-radius: 3px;
}

.badge-head {
  display: block;
  background: var(--coral-ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  padding: 12px 0 10px;
  border-radius: 15px 15px 0 0;
}

.badge-face {
  display: block;
  width: 84px;
  height: 84px;
  margin: 18px auto 10px;
}

.face-head {
  fill: var(--coral-wash);
  stroke: var(--navy);
  stroke-width: 3;
}

.face-eye,
.face-dot {
  fill: var(--navy);
}

.face-line {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
}

.badge-no {
  display: block;
  font-weight: 800;
  font-size: 1.0625rem;
}

.badge-rank {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-ink);
  border-top: 2px solid var(--coral);
  padding-top: 6px;
}

/* ---- Concepts ---- */

.concepts {
  padding: 8px 0 56px;
}

.concepts h2,
.handbook h2,
.soon h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
}

.cards {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
}

.concept {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-ink);
  background: var(--coral-wash);
  border-radius: 999px;
  padding: 2px 10px;
}

.card h3 {
  font-size: 1.1875rem;
  margin-top: 12px;
}

.card h3 + p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* ---- Handbook and coming soon ---- */

.closing {
  display: grid;
  gap: 24px;
  padding-bottom: 64px;
}

.handbook {
  background: var(--paper);
  border: 2px dashed var(--navy);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.policies {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.policies li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.policies li:first-child {
  border-top: 0;
  padding-top: 0;
}

.soon {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 28px 24px 30px;
}

.soon p {
  margin-top: 10px;
  font-size: 1.125rem;
}

.button {
  display: inline-block;
  margin-top: 22px;
  background: var(--cream);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 24px;
}

.button:hover {
  background: var(--coral-wash);
  color: var(--navy);
}

.soon .button:focus-visible {
  outline-color: var(--cream);
}

/* ---- Footer ---- */

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.foot p + p {
  margin-top: 6px;
}

/* ---- The page that is not there ---- */

.missing {
  padding: 64px 0 80px;
}

.missing h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
}

.missing p {
  margin-top: 16px;
  color: var(--ink-soft);
}

/* ---- Wider screens ---- */

@media (min-width: 760px) {
  .hero {
    padding: 72px 0 80px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  .badge-holder {
    padding-top: 0;
  }

  .closing {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
