/* Tokens, type, navigation, buttons and footer. Loaded first. */

:root {
  color-scheme: light;
  --deep: #0c0e13;
  --deep-2: #171a21;
  --ink: #0c0e13;
  --paper: #f5f7f2;
  --sheet: #ffffff;
  --slate: #53575f;
  --mist: #a9adb5;
  --line: rgba(12, 14, 19, 0.12);
  --line-dark: rgba(255, 255, 255, 0.1);
  --accent: #ff5a36;
  --green: #3df2a0;
  --violet: #8b83ff;
  --orange: #ff5a36;
  --yellow: #f3b857;
  --yellow-light: #f9d594;
  --panel-bg: var(--deep-2);
  --panel-fg: #ffffff;
  --panel-label: var(--mist);
  --panel-line: rgba(255, 255, 255, 0.1);
  --font: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
  --gutter: 1.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.headline-line {
  display: block;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  max-width: 20ch;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--slate);
  max-width: 34rem;
  margin-top: 1.25rem;
}

.note {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--slate);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--yellow-light);
  border-radius: 10px;
  background: var(--yellow-light);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(249, 213, 148, 0.5);
}

.button-small {
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2.25rem;
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line-dark);
  background: var(--deep);
  font-size: 0.9375rem;
  color: var(--mist);
}

.footer-logo {
  display: block;
  width: fit-content;
  margin-bottom: 0.6rem;
}

.footer-logo img {
  display: block;
  width: 3.75rem;
  height: 0.75rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0;
  list-style: none;
}

.site-footer a {
  text-decoration: none;
}

@media (min-width: 48em) {
  :root {
    --gutter: 2.5rem;
  }
}
