:root {
  color-scheme: light;
  --ink: #2f2721;
  --muted-ink: #75695f;
  --paper: #fff8ec;
  --cream: #f8ecd8;
  --cream-2: #f3dfc3;
  --terracotta: #bf684a;
  --terracotta-dark: #8f452f;
  --amber: #e2ad4f;
  --green: #6f8f68;
  --green-dark: #3f634e;
  --rose: #f1c9b9;
  --white: #fffdf8;
  --line: rgba(119, 92, 71, 0.22);
  --shadow: 0 18px 42px rgba(90, 56, 34, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "Nunito", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: clamp(14px, 3vw, 36px);
  right: clamp(14px, 3vw, 36px);
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: 999px;
  color: var(--white);
  background: rgba(65, 46, 33, 0.66);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(41, 28, 19, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--amber);
  color: #372615;
  font-size: 0.84rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.38);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  margin-left: auto;
  color: rgba(255, 253, 248, 0.9);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a:hover,
.header-action:hover {
  color: var(--white);
}

.header-action {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--terracotta-dark);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(41, 28, 19, 0.16);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 130px clamp(20px, 5vw, 72px) clamp(52px, 9vh, 92px);
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("assets/community-workbench.bmp");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
  filter: saturate(0.95) sepia(0.08);
}

.hero-overlay {
  background:
    radial-gradient(circle at 74% 22%, rgba(226, 173, 79, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(68, 43, 29, 0.9), rgba(91, 53, 35, 0.54) 48%, rgba(76, 52, 35, 0.22)),
    linear-gradient(180deg, rgba(45, 32, 22, 0.08), rgba(54, 35, 23, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 870px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  background: var(--amber);
  color: #332414;
  box-shadow: 0 12px 24px rgba(111, 70, 30, 0.22);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 253, 248, 0.48);
}

.button:hover,
.event-card:hover,
.discussion-card:hover,
.interest-card:hover {
  transform: translateY(-2px);
}

.section,
.section-band,
.join-section {
  padding: clamp(66px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-band {
  background: var(--terracotta);
  color: var(--white);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 22px;
}

.about-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: 1.16rem;
}

.value-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.value-row span,
.tag,
.discussion-meta span,
.spotlight-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.value-row span {
  padding: 8px 12px;
  background: rgba(255, 253, 248, 0.18);
  color: var(--white);
}

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

.section-heading.compact {
  max-width: 720px;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.interest-card,
.discussion-card,
.event-card,
.spotlight-card,
.join-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.interest-card {
  min-height: 226px;
  padding: 22px;
  transition: transform 160ms ease;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--terracotta-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.card-icon.gaming,
.card-icon.tech {
  background: #eadfc8;
  color: #6b5643;
}

.card-icon.outdoors,
.card-icon.wellness {
  background: #e2ead8;
  color: var(--green-dark);
}

.card-icon.cooking,
.card-icon.collecting {
  background: #f7dacd;
  color: var(--terracotta-dark);
}

.card-icon.music {
  background: #f5e0aa;
  color: #77511c;
}

.interest-card p,
.discussion-card p,
.event-card p,
.spotlight-name,
.join-inner > div > p {
  color: var(--muted-ink);
}

.muted {
  background: var(--cream);
}

.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.discussion-list {
  display: grid;
  gap: 14px;
}

.discussion-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  transition: transform 160ms ease;
}

.avatar,
.spotlight-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-weight: 950;
}

.avatar {
  width: 54px;
  height: 54px;
  font-size: 0.86rem;
}

.avatar.amber {
  background: var(--amber);
  color: #3c2812;
}

.avatar.green {
  background: var(--green);
}

.avatar.rust {
  background: var(--terracotta);
}

.discussion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.discussion-meta span {
  padding: 5px 9px;
  background: var(--cream);
  color: var(--terracotta-dark);
}

.discussion-card h3,
.discussion-card p,
.event-card h3,
.event-card p {
  margin-bottom: 4px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.event-card {
  display: grid;
  gap: 18px;
  min-height: 244px;
  padding: 20px;
  transition: transform 160ms ease;
}

.event-card time {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
}

.event-card time span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag {
  align-self: end;
  padding: 7px 11px;
  background: #e4efd9;
  color: var(--green-dark);
}

.spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(135deg, var(--white), #fff4e0);
}

.spotlight-avatar {
  width: 88px;
  height: 88px;
  background: var(--green);
  font-size: 1.2rem;
}

.spotlight-tag {
  margin-bottom: 14px;
  padding: 7px 11px;
  background: #e4efd9;
  color: var(--green-dark);
}

blockquote {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.spotlight-name {
  margin: 0;
  font-weight: 900;
}

.spotlight-controls {
  grid-column: 2;
  display: flex;
  gap: 9px;
  margin-top: -48px;
  padding-left: clamp(24px, 4vw, 40px);
}

.spotlight-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(143, 69, 47, 0.25);
  cursor: pointer;
}

.spotlight-dot.active {
  width: 32px;
  border-radius: 999px;
  background: var(--terracotta);
}

.join-section {
  background: var(--green-dark);
  color: var(--white);
}

.join-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 480px);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.join-inner > div > p {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.1rem;
}

.join-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 30px);
  color: var(--ink);
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(119, 92, 71, 0.28);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(226, 173, 79, 0.36);
  border-color: var(--amber);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #38251b;
  color: rgba(255, 253, 248, 0.8);
  font-size: 0.92rem;
}

.site-footer div:first-child {
  display: grid;
  gap: 3px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer nav,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.12);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-action {
    margin-left: auto;
  }

  .hero {
    min-height: 840px;
    padding-top: 176px;
  }

  .split,
  .forum-layout,
  .spotlight-layout,
  .join-inner {
    grid-template-columns: 1fr;
  }

  .interest-grid,
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spotlight-controls {
    grid-column: auto;
    margin-top: -10px;
    padding-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 10px 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 780px;
    padding: 170px 18px 42px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .interest-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .interest-card,
  .event-card {
    min-height: 0;
  }

  .discussion-card,
  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .spotlight-avatar {
    width: 76px;
    height: 76px;
  }

  .site-footer nav,
  .social-links {
    justify-content: flex-start;
  }
}
