:root {
  --paper: #f6f5ef;
  --paper-strong: #ffffff;
  --ink: #151515;
  --muted: #5f5d55;
  --yellow: #f4d311;
  --line: #d8d5ca;
  --radius: 12px;
  --shell: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body,
body * {
  font-family: "Work Sans", sans-serif;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.hero {
  padding: 24px 0 0;
}

.hero-inner {
  min-height: 610px;
  padding: clamp(44px, 7vw, 88px);
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 72px;
  box-shadow: 8px 8px 0 var(--ink);
}

.hero-copy {
  max-width: 880px;
}

.section-kicker {
  margin: 0 0 22px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  max-width: 930px;
  font-size: clamp(58px, 8.2vw, 112px);
  line-height: .86;
  letter-spacing: -.065em;
  font-weight: 900;
}

.hero-text {
  margin-bottom: 0;
  max-width: 720px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.46;
  font-weight: 500;
}

.discord-button {
  width: fit-content;
  min-width: 300px;
  min-height: 66px;
  padding: 0 20px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  font-size: 16px;
  font-weight: 500;
  transform: translateY(0);
  transition: transform .5s ease;
}

.discord-button:hover {
  transform: translateY(-5px);
}

.discord-button:active {
  transform: translateY(-2px);
}

.discord-button:focus-visible {
  outline: 3px solid var(--paper-strong);
  outline-offset: 4px;
}

.discord-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.discord-icon,
.arrow-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.discord-icon {
  display: block;
  filter: invert(1);
}

.arrow-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.section {
  padding: 118px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-kicker {
  color: #6f6b60;
}

.section h2,
.join-section h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 800;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.focus-card {
  min-height: 290px;
  padding: 28px;
  background: var(--paper-strong);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.card-index {
  margin-bottom: auto;
  color: #777269;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.focus-card h3 {
  margin-bottom: 14px;
  max-width: 280px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 800;
}

.focus-card p {
  margin-bottom: 0;
  max-width: 310px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.section-about {
  padding-top: 28px;
}

.about-grid {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.about-copy {
  max-width: 820px;
}

.about-copy p {
  margin-bottom: 0;
  color: #393832;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.58;
  font-weight: 500;
}

.join-section {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid var(--ink);
}

.join-inner {
  min-height: 330px;
  padding-block: 78px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.join-section h2 {
  max-width: 670px;
}

.discord-button-light {
  flex: 0 0 auto;
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.discord-button-light .discord-icon {
  filter: none;
}

.discord-button-light:focus-visible {
  outline-color: var(--yellow);
}

@media (max-width: 900px) {
  .hero-inner {
    min-height: 560px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .focus-card {
    min-height: 225px;
  }

  .join-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .hero {
    padding-top: 14px;
  }

  .hero-inner {
    min-height: 520px;
    padding: 36px 26px 28px;
    gap: 48px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  h1 {
    margin-bottom: 22px;
    font-size: clamp(50px, 17vw, 78px);
  }

  .hero-text {
    font-size: 17px;
  }

  .discord-button {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding-inline: 17px;
    gap: 18px;
  }

  .section {
    padding: 84px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .focus-card {
    min-height: 210px;
    padding: 24px;
  }

  .about-grid {
    padding: 58px 0;
  }

  .join-inner {
    min-height: 0;
    padding-block: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .discord-button {
    transition: none;
  }
}
