@font-face {
  font-family: "Leo Hates School";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/leo-hates-school.woff") format("woff");
}

:root {
  --bg: #b7b1a1;
  --ink: #111111;
  --ink-soft: #222222;
  --font-title: "Leo Hates School", cursive;
  --font-sketch: "Amatic SC", cursive;
  --font-body: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --heading-size: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.5rem 2rem;
}

.page--center {
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.page--doc {
  align-items: stretch;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  gap: 0.85rem;
}

.brand {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(3.25rem, 9.8vw, var(--heading-size));
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.tagline {
  margin: 0;
  font-family: var(--font-sketch);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  min-height: 4.5rem;
  width: 100%;
}

.cta-note {
  position: absolute;
  right: calc(50% + 4.6rem);
  top: 50%;
  transform: translateY(-58%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
  white-space: nowrap;
}

.cta-note span {
  font-family: var(--font-sketch);
  font-weight: 400;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  text-align: right;
}

.cta-note svg {
  width: 2.4rem;
  height: 1.6rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.app-store {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.15s ease;
}

.app-store img {
  width: min(168px, 42vw);
  height: auto;
  display: block;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2.5rem, 10vw, 5.5rem);
  padding-top: 2rem;
  width: 100%;
}

.footer-nav a {
  font-family: var(--font-sketch);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Contact */
.contact-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.contact-title {
  margin: 0;
  position: relative;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(3.25rem, 9.8vw, var(--heading-size));
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.contact-aside {
  position: absolute;
  left: 72%;
  top: 88%;
  font-family: var(--font-sketch);
  font-weight: 400;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.contact-email {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.contact-email:hover {
  opacity: 0.7;
}

/* Privacy / policy document */
.doc {
  width: min(44rem, 100%);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.doc h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
}

.doc .lead,
.doc p,
.doc li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.doc .lead {
  margin: 0 0 1.5rem;
}

.doc h2 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.doc ul {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.doc li {
  margin: 0.2rem 0;
}

.doc .copyright {
  margin: 1.75rem 0 0;
  font-size: 0.9rem;
}

.doc a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page--doc .footer-nav {
  padding-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .page {
    padding: 1.75rem 1.15rem 1.5rem;
  }

  .cta {
    margin-top: 2.5rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta-note {
    position: static;
    transform: none;
    order: -1;
    white-space: normal;
    max-width: 14rem;
  }

  .cta-note span {
    text-align: center;
  }

  .cta-note svg {
    display: none;
  }

  .contact-aside {
    left: auto;
    right: -0.2rem;
    top: 100%;
  }

  .doc {
    padding-top: 0.5rem;
  }
}
