/* ============================================================
   HEXFILED — Shared Stylesheet
   Aesthetic: Organic meets inorganic · Editorial · SF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --cream:       #F2EEE6;
  --cream-dark:  #E6E1D6;
  --navy:        #1C2B3A;
  --navy-light:  #2D4055;
  --forest:      #3A5430;
  --sage:        #6B8F5E;
  --teal:        #3A7068;
  --teal-light:  #5A9E94;
  --steel:       #4A6278;
  --text:        #222222;
  --text-mid:    #555555;
  --text-light:  #888888;
  --border:      #CEC9BE;
  --border-light:#E0DBD0;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Source Sans 3', system-ui, sans-serif;
  --font-mono:   'Space Mono', 'Courier New', monospace;

  --max-w:       1140px;
  --nav-h:       72px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}
.section { padding-block: 5rem; }
.section--sm { padding-block: 3rem; }

/* ── Hex decorative element ─────────────────────────────── */
.hex-deco {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
}
.hex-deco svg path { fill: var(--navy); }

/* ── NAV ────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--teal);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nav-wordmark {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}
.nav-wordmark span {
  color: var(--teal-light);
}
.nav-tagline {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(90,158,148,0.15);
}
.nav-links a.active {
  color: var(--teal-light);
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy) !important;
  background: var(--teal-light) !important;
  padding: 0.45rem 1rem !important;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--sage) !important; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding-block: 3rem;
  margin-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand .nav-wordmark { font-size: 1rem; }
.footer-brand p {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
}
.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.75rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-align: center;
  color: rgba(255,255,255,0.25);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding-block: 6rem 5rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(58,112,104,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 100%, rgba(58,84,48,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.hero-hex-grid {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpolygon points='30,1 59,17 59,35 30,51 1,35 1,17' fill='none' stroke='rgba(90,158,148,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 52px;
  opacity: 0.8;
  pointer-events: none;
}
.hero-logo {
  width: 120px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 24px rgba(90,158,148,0.3));
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  position: relative;
  z-index: 1;
  line-height: 1;
}
.hero-title span { color: var(--teal-light); }
.hero-sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 0.6rem;
  position: relative;
  z-index: 1;
}
.hero-intro {
  max-width: 560px;
  margin: 2rem auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  font-family: var(--font-serif);
  position: relative;
  z-index: 1;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-light); border-color: var(--teal-light); }
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ── Section headers ─────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.section-title em { color: var(--teal); font-style: italic; }
.section-intro {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-top: 0.75rem;
  line-height: 1.75;
}
.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }
.section-header--center .section-intro { margin-inline: auto; }

/* ── Divider ─────────────────────────────────────────────── */
.hex-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: 1.5rem;
}
.hex-divider::before,
.hex-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.hex-divider span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-light);
  text-transform: uppercase;
}

/* ── Story cards ─────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(28,43,58,0.1);
  transform: translateY(-2px);
}
.card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--forest), var(--teal));
}
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-genre {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.card-author {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.9rem;
  font-style: italic;
}
.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
}
.card-footer {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
.card-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid currentColor;
  transition: color 0.2s;
}
.card-link:hover { color: var(--forest); }

/* Featured card (large) */
.card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card--featured .card-accent { grid-column: 1/-1; }
.card--featured .card-body { justify-content: center; }
.card--featured .card-title { font-size: 1.75rem; }
.card--featured .card-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--forest) 60%, var(--teal) 100%);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.card--featured .card-visual svg { opacity: 0.3; }
.card--featured .card-footer { grid-column: 1/-1; }

/* ── Issue badge ─────────────────────────────────────────── */
.issue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.issue-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
}

/* ── Submission form area ────────────────────────────────── */
.guidelines-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.guidelines-prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
}
.guidelines-prose h2:first-child { margin-top: 0; }
.guidelines-prose p {
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.guidelines-prose ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--text-mid);
  line-height: 1.75;
}
.guidelines-prose li { margin-bottom: 0.3rem; }
.sidebar-card {
  background: var(--navy);
  color: #fff;
  padding: 2rem;
  border-radius: 3px;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.sidebar-card h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.25rem;
}
.sidebar-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}
.sidebar-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-block: 0.6rem;
}
.sidebar-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.sidebar-stat-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal-light);
}

/* ── About page ─────────────────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--forest) 70%, var(--teal-light) 100%);
  border-radius: 3px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-text h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}
.about-text h2:first-child { margin-top: 0; }
.about-text p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.team-card {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  border-radius: 3px;
  text-align: center;
}
.team-avatar {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--forest), var(--teal));
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
}
.team-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.team-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 0.25rem;
}
.team-bio {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-top: 0.75rem;
}

/* ── Archive ─────────────────────────────────────────────── */
.archive-list { display: flex; flex-direction: column; gap: 1.5rem; }
.archive-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  border-radius: 3px;
  transition: box-shadow 0.2s;
}
.archive-item:hover { box-shadow: 0 4px 20px rgba(28,43,58,0.08); }
.archive-cover {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}
.archive-info h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.archive-info .issue-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.archive-info p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.archive-stories {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ── Newsletter strip ─────────────────────────────────────── */
.newsletter-strip {
  background: var(--forest);
  color: #fff;
  padding-block: 4rem;
  text-align: center;
}
.newsletter-strip h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.newsletter-strip p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { border-color: var(--teal-light); }
.newsletter-form button {
  background: var(--teal-light);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--sage); }

/* ── Page banner ─────────────────────────────────────────── */
.page-banner {
  background: var(--navy);
  color: #fff;
  padding-block: 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpolygon points='30,1 59,17 59,35 30,51 1,35 1,17' fill='none' stroke='rgba(90,158,148,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 52px;
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.5rem;
}
.page-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
}
.page-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.75rem;
  max-width: 500px;
  font-style: italic;
}

/* ── Filter bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-right: 0.5rem;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .guidelines-grid { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .card--featured { grid-template-columns: 1fr; }
  .card--featured .card-visual { min-height: 120px; }
  .archive-item { grid-template-columns: 80px 1fr; }
  .archive-item .btn { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
}
