@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ink: #29192f;
  --cream: #fff6de;
  --background: #fbf0d8;
  --text: var(--ink);
  --border: #aa98a1;
  --focus: #8b3870;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #211425;
    --text: var(--cream);
    --border: #927b92;
    --focus: #ffc28d;
  }
}

* {
  box-sizing: border-box;
}

body {
  width: min(100% - 2rem, 54rem);
  margin: 0 auto;
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  border-bottom: 1px solid var(--border);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  font: 800 1.9rem / 1 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -0.075em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  transform: skew(-6deg);
}

.sign-in {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.hero {
  display: grid;
  gap: 1.75rem;
  margin-block: 1.2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 18px;
  background: var(--ink);
  color: var(--cream);
}

h1 {
  margin: 0;
  font: 800 clamp(3rem, 10vw, 6.75rem) / 1.02 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

p {
  max-width: 28rem;
  margin: 1rem 0 0;
  font-size: 1.14rem;
}

.hero img {
  justify-self: end;
  width: clamp(6rem, 28vw, 10rem);
  height: auto;
}

@media (min-width: 42rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 10rem;
    align-items: center;
  }
}
