:root {
  color: #172321;
  background: #e3e0d7;
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI Variable", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --paper: #f6f3eb;
  --raised: #fffdf8;
  --ink: #172321;
  --muted: #68716e;
  --line: rgba(23, 35, 33, 0.14);
  --jade: #167d72;
  --jade-dark: #105f57;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(23, 35, 33, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 33, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

a { color: inherit; }

.shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; }

.nav { display: flex; gap: 22px; }

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible { color: var(--jade-dark); }

.hero {
  display: grid;
  min-height: 480px;
  align-items: center;
  grid-template-columns: 1fr 280px;
  gap: 72px;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--jade);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 { color: var(--ink); letter-spacing: -0.035em; }

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 0.98;
}

.lead {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.mark-card {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 54px;
  background: var(--raised);
  box-shadow: 0 24px 70px rgba(30, 38, 34, 0.13);
}

.mark-card img { width: 68%; height: 68%; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 0 72px;
}

.card {
  min-height: 166px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.82);
}

.card h2 { margin: 0 0 10px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; }
.card a { color: var(--jade-dark); font-weight: 750; text-decoration: none; }

.document {
  max-width: 760px;
  padding: 64px 0 96px;
}

.document h1 { max-width: 700px; font-size: clamp(2.5rem, 7vw, 4.5rem); }
.document h2 { margin: 42px 0 10px; font-size: 1.3rem; }
.document p,
.document li { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.document ul,
.document ol { padding-left: 20px; }

.action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .site-header { min-height: 76px; }
  .nav { gap: 14px; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding: 56px 0; }
  .mark-card { width: min(76vw, 280px); justify-self: center; }
  .cards { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
}

/* Invite page: one message, one button. */
.invite {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 56px 0 72px;
  text-align: center;
}

.invite .mark-card { width: 112px; height: 112px; margin-bottom: 6px; }
.invite h1 { margin: 0; font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.08; letter-spacing: -0.03em; }
.invite .lead { max-width: 420px; margin: 0; }

.invite-open {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  margin-top: 10px;
  padding: 0 32px;
  border-radius: 18px;
  color: #fff;
  background: var(--jade);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px -18px rgba(16, 95, 87, 0.9);
}

.invite-open:active { background: var(--jade-dark); }
.invite-note { max-width: 380px; margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* League invite: the code is the thing to read and remember, so it is the thing that stands out. */
.invite-code {
  margin: 2px 0 0;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
  color: var(--jade-dark);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}
[hidden] { display: none !important; }
