/* Homepage. The tokens are from the Cloud Coffee Co. design system, as in src/styles.css. */
:root {
  --orange: #ff7800;
  --ink: #000000;
  --paper: #ffffff;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --shadow-sticker: 4px 4px 0 var(--ink);
  --shadow-sticker-hover: 6px 6px 0 var(--ink);
  --shadow-pressed: 1px 1px 0 var(--ink);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
}

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

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--paper);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.content {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.logo {
  display: block;
  width: auto;
  height: 150px;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 44ch;
  font-size: 19px;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sticker);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 120ms var(--ease-out),
    box-shadow 120ms var(--ease-out);
}

.button:hover {
  box-shadow: var(--shadow-sticker-hover);
  transform: translate(-2px, -2px) rotate(-1deg);
}

.button:active {
  box-shadow: var(--shadow-pressed);
  transform: translate(3px, 3px);
}

.button-ink,
.button-ink:hover {
  background: var(--ink);
  color: var(--paper);
}

.button-paper,
.button-paper:hover {
  background: var(--paper);
  color: var(--ink);
}

.fundraiser {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

  .button:hover,
  .button:active {
    transform: none;
  }
}
