:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #637083;
  --line: #dde5ee;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --blue: #2563eb;
  --teal: #008c89;
  --coral: #e85d4f;
  --gold: #c28721;
  --green: #14845f;
}

* {
  box-sizing: border-box;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(221, 229, 238, .82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.header-action,
.primary,
.secondary,
.search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
}

.header-action,
.primary {
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
}

.primary.dark {
  background: var(--ink);
}

.secondary {
  padding: 0 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .52);
  background: rgba(255, 255, 255, .12);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, 92vh);
  padding: 116px clamp(18px, 6vw, 80px) 64px;
  overflow: hidden;
}

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

.hero-media {
  background-image: url("assets/gfc-social-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(10, 16, 24, .90) 0%, rgba(10, 16, 24, .72) 44%, rgba(10, 16, 24, .18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7fe0c5;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.22;
}

.hero-copy {
  width: min(660px, 100%);
  color: rgba(255, 255, 255, .88);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.48;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(680px, 100%);
  margin: 28px 0 18px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 10px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .2);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.search-box button {
  border: 0;
  padding: 0 20px;
  color: #fff;
  background: var(--coral);
  cursor: pointer;
}

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

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.quick-strip a {
  min-height: 94px;
  padding: 22px clamp(16px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.layout-band,
.split-band {
  padding: clamp(54px, 7vw, 92px) clamp(18px, 6vw, 80px);
}

.layout-band.pale {
  background: var(--soft);
}

.section-heading {
  width: min(800px, 100%);
  margin-bottom: 30px;
}

.feed-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}

.post-card,
.space-tile,
.tool-card,
.market-panel article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.post-card {
  min-height: 260px;
  padding: 24px;
}

.featured-post {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.featured-post p,
.featured-post small {
  color: rgba(255, 255, 255, .74);
}

.post-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.post-top small,
.market-panel small,
.tool-card small,
.space-tile small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.avatar,
.tool-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.avatar.blue,
.tool-icon.blue {
  background: var(--blue);
}

.avatar.red,
.tool-icon.red {
  background: var(--coral);
}

.post-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.post-metrics span {
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  font-weight: 800;
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.space-tile {
  min-height: 148px;
  padding: 20px;
}

.space-tile span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  color: #fff;
  background: #13201d;
}

.market-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, .76);
  font-size: 18px;
  line-height: 1.6;
}

.market-panel {
  display: grid;
  gap: 12px;
}

.market-panel article {
  padding: 22px;
  color: var(--ink);
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

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

.tag.orange {
  background: var(--gold);
}

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

.tool-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  column-gap: 14px;
  min-height: 118px;
  padding: 20px;
}

.tool-card strong,
.tool-card small {
  grid-column: 2;
}

.tool-icon {
  grid-row: 1 / span 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
  }

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

  .hero {
    min-height: 760px;
    padding-top: 80px;
  }

  .hero-overlay {
    background: rgba(10, 16, 24, .76);
  }

  .quick-strip,
  .feed-grid,
  .space-grid,
  .split-band,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .quick-strip a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .header-action {
    min-height: 40px;
    padding: 0 12px;
  }

  .search-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-box input {
    min-height: 44px;
  }

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