/*
 * findgreatschools.com holding page. Colours, faces and the button are the UK
 * site's own (frontend/tailwind.config.ts, frontend/config/fontFaces.ts),
 * written out by hand: this folder has no build step.
 */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/worksans-latin.woff2') format('woff2');
}

:root {
  --burgundy-700: #8b1538;
  --burgundy-800: #781335;
  --burgundy-500: #cf4d6f;
  --gold-50: #fdf8eb;
  --gold-200: #f3dc8e;
  --gold-700: #6f4d15;
  --warm-100: #f8f6f3;
  --warm-400: #ddd6cc;
  --slate-900: #0f172a;
  --slate-600: #475569;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--warm-100);
  color: var(--slate-900);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header .wrap {
  display: flex;
  align-items: center;
  height: 4rem;
}

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--burgundy-700);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2.5rem 0 4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0.375rem 1rem;
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  border-radius: 9999px;
  color: var(--gold-700);
  font-size: 0.875rem;
  font-weight: 500;
}

h1 {
  margin: 0 0 1.25rem;
  max-width: 16ch;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--slate-600);
  font-size: 1.125rem;
  line-height: 1.625;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--burgundy-700);
  border-radius: 9999px;
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn:hover {
  background: var(--burgundy-800);
}
.btn:focus-visible {
  outline: 2px solid var(--burgundy-500);
  outline-offset: 2px;
}

.note {
  margin: 1.25rem 0 0;
  color: var(--slate-600);
  font-size: 0.875rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--warm-400);
  color: var(--slate-600);
  font-size: 0.875rem;
}
footer p {
  margin: 0;
}
footer a {
  color: var(--burgundy-700);
}
footer a:focus-visible {
  outline: 2px solid var(--burgundy-500);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 2rem;
  }
  .wordmark {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
