/* Shared styles for the static site served at happupon.com (front/). */
:root {
  color-scheme: light;
  --ink: #020033;
  --muted: #55546f;
  --faint: #807f97;
  --line: rgba(2, 0, 51, 0.12);
  --tint: #f7f5fe;
  --purple: #7c3aed;
  --purple-deep: #6d28d9;
  --green: #14c592;
  --display: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--display);
  line-height: 1.5;
  overflow-x: clip;
}

main {
  flex: 1;
}

.shimmer {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.45);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.logo {
  width: 148px;
}

.site-link {
  color: var(--muted);
  font: 600 0.9rem/1.2 var(--ui);
  text-decoration: none;
  white-space: nowrap;
}

.site-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Home */

.hero {
  display: grid;
  place-content: center;
  padding-top: 48px;
  padding-bottom: 64px;
  text-align: center;
}

.hero h1 {
  max-width: 990px;
  margin: 0 auto;
  font-size: clamp(3rem, 7.6vw, 7.2rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero h1 span {
  white-space: nowrap;
}

.lede {
  max-width: 640px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  text-wrap: pretty;
}

/* Text pages: organizers and legal */

.doc {
  max-width: 760px;
  padding-top: clamp(28px, 6vw, 64px);
  padding-bottom: clamp(56px, 8vw, 96px);
  font-family: var(--ui);
}

.doc .eyebrow {
  margin: 0 0 12px;
  color: var(--purple);
  font: 700 0.78rem/1.2 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.doc .meta {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.doc .intro {
  margin-top: 24px;
  color: var(--ink);
  font-size: 1.12rem;
}

.doc h2 {
  margin: 44px 0 0;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li + li {
  margin-top: 6px;
}

.doc a {
  color: var(--purple-deep);
}

.doc code {
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--tint);
  font: 0.9em/1.4 var(--mono);
}

.doc pre {
  margin: 14px 0 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tint);
}

.doc pre code {
  padding: 0;
  background: none;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  padding-bottom: 32px;
  color: var(--muted);
  font: 500 0.88rem/1.5 var(--ui);
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

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

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  .logo {
    width: 124px;
  }

  .hero {
    place-content: center start;
    text-align: left;
  }

  .hero h1 {
    margin-left: 0;
    font-size: clamp(2.6rem, 13vw, 5.4rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
  }

  .hero h1 span {
    display: block;
  }

  .lede {
    margin-left: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
