/* Massett Outdoors — clean heritage outdoor site */

:root {
  --bg: #0f1a0f;
  --bg-elevated: #162416;
  --bg-card: #1c2c1c;
  --text: #e8efe6;
  --text-muted: #9aaf96;
  --accent: #c4a35a;
  --accent-hover: #d4b56a;
  --border: #2a3d2a;
  --green: #3d6b3d;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --radius: 10px;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Typography */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 1.25rem;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  color: #1a1508;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 26, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #1a1508;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  border-radius: 4px;
}

.logo-text {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 26, 15, 0.55) 0%, rgba(15, 26, 15, 0.92) 100%),
    linear-gradient(90deg, rgba(15, 26, 15, 0.7) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 40%, #2a4a2a 0%, transparent 55%);
  background-color: #1a2e1a;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 640px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-header {
  margin-bottom: 3rem;
  max-width: 36rem;
}

.section-desc {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* Legacy */
.legacy {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.legacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.legacy-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.legacy-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Hunters */
.hunters-subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--accent);
  margin: 2.5rem 0 1.25rem;
  font-weight: 400;
}

.hunters-subtitle:first-of-type {
  margin-top: 0;
}

.hunters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.hunters-grid-next {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.hunter-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.hunter-avatar {
  width: 52px;
  height: 52px;
  background: var(--green);
  color: var(--text);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: 1.1rem;
}

.hunter-role {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hunter-card p:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Stories */
.stories {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.story-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.story-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.story-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}

.story-link:hover {
  color: var(--accent-hover);
}

/* Gear */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gear-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--bg-elevated);
}

.gear-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gear-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Join */
.join {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.join-inner {
  max-width: 520px;
  text-align: center;
}

.join-content h2 {
  margin-bottom: 0.75rem;
}

.join-content > p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.join-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.join-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.join-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.join-form input::placeholder {
  color: var(--text-muted);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  min-height: 1.4em;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.footer-brand .logo-mark {
  width: 28px;
  height: 28px;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .legacy-grid,
  .hunters-grid,
  .hunters-grid-next,
  .stories-grid,
  .gear-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding: 6.5rem 0 4rem;
  }

  .join-form {
    flex-direction: column;
  }

  .join-form input {
    min-width: 100%;
  }

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