@font-face {
  font-family: 'Chalkboard';
  src: url('/z8Kp2Lm9Qx7AG5MQ9/z8Kp2Lm9Qx7AG5MQ9-font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --nord0: #2e3440;
  --nord1: #3b4252;
  --nord4: #d8dee9;
  --nord5: #e5e9f0;
  --nord6: #eceff4;
  --nord8: #88c0d0;
  --nord11: #bf616a;
  --nord13: #ebcb8b;
  --nord14: #a3be8c;
  --bg: #473b49;
  --bg-dark: #322833;
  --line: rgba(236, 239, 244, 0.76);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.03) 2px, transparent 2px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.18));
  background-size: 42px 42px, 72px 72px, 100% 100%;
  color: var(--nord6);
  font-family: 'Chalkboard', 'Comic Sans MS', cursive, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(50, 40, 51, 0.84);
  border-bottom: 2px solid rgba(236, 239, 244, 0.18);
  backdrop-filter: blur(12px);
}

.brand-mark,
.nav-links {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 0.65rem;
  min-height: 44px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark img {
  width: 38px;
  height: 38px;
  border: 2px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  gap: 0.4rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--nord6);
  cursor: pointer;
  font: inherit;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  color: var(--nord4);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--nord6);
}

.hero {
  min-height: 86svh;
  display: flex;
  align-items: center;
  padding: 7rem clamp(1.25rem, 7vw, 6rem) 4rem;
  background-image:
    linear-gradient(90deg, rgba(46, 52, 64, 0.9) 0%, rgba(46, 52, 64, 0.76) 50%, rgba(46, 52, 64, 0.42) 100%),
    url('/z8Kp2Lm9Qx7AG5MQ9/z8Kp2Lm9Qx7AG5MQ9-logo.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--line);
}

.hero-content {
  width: min(740px, 100%);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--nord13);
  font-size: 0.95rem;
  letter-spacing: 0;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  color: var(--nord6);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.96;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.34);
}

h2 {
  color: var(--nord6);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.hero-copy,
.section-copy p,
.community-strip p {
  color: var(--nord4);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action,
.confession-button {
  border: 2px solid var(--line);
  border-radius: 12px 28px 10px 22px / 20px 12px 24px 14px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-action,
.confession-button {
  background: var(--nord14);
  color: var(--nord0);
  padding: 0.9rem 1.2rem;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.06);
  color: var(--nord6);
  padding: 0.9rem 1.2rem;
}

.primary-action:hover,
.secondary-action:hover,
.confession-button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.34);
}

.section-grid,
.community-strip {
  width: min(1040px, calc(100% - 2rem));
  margin: 5rem auto 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.section-copy {
  padding-top: 0.5rem;
}

.confession-form,
.community-strip {
  background: rgba(69, 57, 71, 0.92);
  border: 2px solid var(--line);
  box-shadow: 7px 7px 0 var(--bg-dark);
}

.confession-form {
  padding: 1.5rem;
  border-radius: 24px 12px 26px 14px / 12px 26px 14px 24px;
}

.builder-row {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

label {
  color: var(--nord5);
  font-size: 0.95rem;
}

select,
textarea {
  width: 100%;
  padding: 0.7rem;
  background: var(--nord1);
  border: 2px solid rgba(236, 239, 244, 0.54);
  border-radius: 8px;
  color: var(--nord6);
  font: inherit;
}

select {
  min-height: 48px;
}

textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.45;
}

textarea:focus,
select:focus,
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--nord13);
  outline-offset: 3px;
}

.field-footer {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.field-footer {
  justify-content: space-between;
  color: var(--nord8);
  font-size: 0.86rem;
}

.discord-note {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(94, 129, 172, 0.22);
  border-left: 4px solid var(--nord8);
  color: var(--nord5);
  line-height: 1.45;
}

.confession-button {
  width: 100%;
  border-color: var(--nord6);
}

.confession-button[disabled] {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  color: var(--nord13);
  line-height: 1.45;
}

.form-status.error {
  color: var(--nord11);
}

.community-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 4rem;
  padding: 1.5rem;
  border-radius: 26px 14px 30px 16px / 16px 30px 14px 26px;
}

.community-strip h2 {
  margin-bottom: 0;
}

.community-strip p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .site-nav {
    position: sticky;
  }

  .hero {
    min-height: 78svh;
    padding-top: 5.5rem;
  }

  .section-grid,
  .community-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-nav {
    position: sticky;
    padding: 0.7rem 0.8rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.8rem;
    right: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.55rem;
    background: rgba(50, 40, 51, 0.96);
    border: 2px solid var(--line);
    border-radius: 8px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    justify-content: center;
    padding: 0.7rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
  }

  .hero-actions,
  .field-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-action,
  .secondary-action {
    text-align: center;
  }
}
