/* Founders BBQ Club — Internal Brief Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #FAF7F2;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-faint: #8A8A8A;
  --ember: #E85A2B;
  --ember-soft: #FBE9DF;
  --rule: #E5DFD3;
  --rule-strong: #2A2A2A;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --max-text: 64ch;
  --nav-width: 260px;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Subtle paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.015) 1px, transparent 0);
  background-size: 3px 3px;
  z-index: 1;
}

/* ---------- Layout ---------- */

.layout {
  display: grid;
  grid-template-columns: var(--nav-width) 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

aside.nav {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 1.75rem 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--rule-strong);
}

main.content {
  padding: 4rem 5rem 6rem;
  max-width: 100%;
  overflow-x: hidden;
}

article {
  max-width: var(--max-text);
}

/* ---------- Nav ---------- */

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.nav-brand img {
  width: 88px;
  height: 88px;
  margin-bottom: 0.75rem;
}

.nav-brand .wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.nav-brand .sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-top: 0.4rem;
}

.nav-section {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 1.75rem 0 0.65rem;
}

.nav-section:first-of-type {
  margin-top: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.nav-list a {
  display: block;
  padding: 0.45rem 0.7rem;
  margin-left: -0.7rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.nav-list a:hover {
  color: var(--paper);
  background: rgba(255,255,255,0.04);
}

.nav-list a.current {
  color: var(--paper);
  border-left-color: var(--ember);
  background: rgba(255,255,255,0.04);
}

.nav-list .num {
  display: inline-block;
  width: 1.6rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}

.nav-list a.current .num {
  color: var(--ember);
}

/* ---------- Mobile nav toggle ---------- */

.nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ---------- Typography ---------- */

.kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kicker::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ember);
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.75rem;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}

h1 em {
  font-style: italic;
  color: var(--ember);
  font-weight: 600;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 3rem 0 1rem;
  color: var(--ink);
  font-variation-settings: "opsz" 60;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 2rem 0 0.65rem;
}

h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
  font-style: italic;
}

p {
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
}

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 2.5rem;
  font-variation-settings: "opsz" 60;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

em {
  font-style: italic;
}

a {
  color: var(--ember);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Lists ---------- */

ul, ol {
  margin: 0 0 1.1rem 1.25rem;
  color: var(--ink-soft);
}

li {
  margin-bottom: 0.45rem;
  padding-left: 0.4rem;
}

li::marker {
  color: var(--ember);
}

ol {
  counter-reset: item;
  list-style: none;
  margin-left: 0;
}

ol > li {
  counter-increment: item;
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.8rem;
}

ol > li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  color: var(--ember);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Components ---------- */

.callout {
  background: var(--paper);
  border-left: 3px solid var(--ember);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
}

.callout p {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

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

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 2.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.fact .label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.fact .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.1;
  font-variation-settings: "opsz" 60;
}

.fact .value em {
  color: var(--ember);
  font-style: normal;
}

.principle-list {
  list-style: none;
  margin-left: 0;
  counter-reset: principle;
}

.principle-list li {
  counter-increment: principle;
  padding: 1.1rem 0 1.1rem 3rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  margin-bottom: 0;
}

.principle-list li::before {
  content: counter(principle);
  position: absolute;
  left: 0;
  top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  background: var(--ember-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

hr.fat {
  border-top: 2px solid var(--ink);
  margin: 4rem 0;
}

/* ---------- Page footer nav ---------- */

.page-nav {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.page-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 45%;
  display: block;
}

.page-nav a:hover {
  color: var(--ember);
}

.page-nav .direction {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
  display: block;
}

.page-nav .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.2;
}

.page-nav .next {
  text-align: right;
}

.page-nav a:hover .title {
  color: var(--ember);
}

/* ---------- Footnote ---------- */

.meta {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  aside.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 50;
    height: 100vh;
  }

  aside.nav.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
  }

  main.content {
    padding: 4rem 1.5rem 4rem;
  }

  html {
    font-size: 16px;
  }
}

@media (max-width: 500px) {
  main.content {
    padding: 3.5rem 1.25rem 4rem;
  }
}
