/* =============================================
   THE COFFEE CAN CAMP
   Visual Identity: Worn field notebook.
   Campfire light. Coffee-stained topo map.
   Nothing corporate. Nothing perfect.
   ============================================= */

:root {
  --ink:        #1c1a14;
  --charcoal:   #2a2720;
  --bark:       #3d3830;
  --parchment:  #f2e8d0;
  --cream:      #faf5e8;
  --ember:      #c8621a;
  --amber:      #d4892a;
  --smoke:      #8a8070;
  --moss:       #4a5e38;
  --rust:       #9e3a1a;

  --font-display: 'Zilla Slab', Georgia, serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-width: 720px;
  --wide-width: 1100px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--amber); }

/* ---- Base ---- */
html { font-size: 18px; scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Subtle paper texture */
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(200,98,26,0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(74,94,56,0.04) 0%, transparent 60%);
}

/* ---- Header ---- */
.site-header {
  background: var(--charcoal);
  border-bottom: 3px solid var(--ember);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--smoke);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover, .nav-link.active {
  color: var(--parchment);
  background: rgba(200,98,26,0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--smoke);
  color: var(--smoke);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 2px;
}

/* ---- Main ---- */
.site-main {
  flex: 1;
}

/* ---- Homepage ---- */
.home-hero {
  background: var(--charcoal);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center bottom, rgba(200,98,26,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.hero-title em {
  color: var(--ember);
  font-style: italic;
}

.hero-body {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--smoke);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ember);
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  transition: background 0.2s;
}

.hero-cta:hover {
  background: var(--amber);
  color: var(--ink);
}

/* The origin story strip */
.origin-strip {
  background: var(--bark);
  border-top: 1px solid rgba(200,98,26,0.2);
  border-bottom: 1px solid rgba(200,98,26,0.2);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.origin-strip p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--smoke);
  max-width: var(--max-width);
  margin: 0 auto;
}

.origin-strip strong {
  color: var(--parchment);
  font-style: normal;
}

/* Section layout */
.section {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--charcoal);
}

.section-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
}

/* Post cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.post-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.post-card-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  background: rgba(200,98,26,0.08);
  padding: 2px 7px;
  border-radius: 2px;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover { color: var(--ember); }

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--smoke);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.post-card-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--smoke);
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 0.75rem;
}

/* Featured post */
.post-featured {
  background: var(--charcoal);
  border-radius: 3px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.post-featured .post-card-title {
  font-size: 1.5rem;
  color: var(--parchment);
}

.post-featured .post-card-title a { color: inherit; }
.post-featured .post-card-title a:hover { color: var(--amber); }

.post-featured .post-card-excerpt {
  color: var(--smoke);
}

.post-featured .post-card-meta {
  color: rgba(138,128,112,0.7);
  border-top-color: rgba(255,255,255,0.06);
}

.featured-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  background: rgba(200,98,26,0.15);
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
  align-self: flex-start;
}

/* ---- Post / Article ---- */
.post {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.post-meta-top {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ember);
  background: rgba(200,98,26,0.08);
  padding: 2px 8px;
  border-radius: 2px;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.post-description {
  font-size: 1.05rem;
  color: var(--smoke);
  font-style: italic;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--smoke);
  letter-spacing: 0.05em;
}

.post-hero {
  margin-bottom: 2rem;
  border-radius: 3px;
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* Post body typography */
.post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 2rem 0 0.5rem;
}

.post-body p { margin-bottom: 1.4rem; }

.post-body ul, .post-body ol {
  margin: 0 0 1.4rem 1.5rem;
}

.post-body li { margin-bottom: 0.4rem; }

.post-body strong { font-weight: 600; color: var(--charcoal); }

.post-body em { font-style: italic; }

.post-body blockquote {
  border-left: 3px solid var(--ember);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(200,98,26,0.05);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--bark);
}

.post-body a {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body a:hover { color: var(--amber); }

/* Affiliate callout box */
.post-body .gear-pick {
  background: var(--charcoal);
  border-left: 4px solid var(--ember);
  border-radius: 0 3px 3px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  color: var(--parchment);
}

.post-body .gear-pick .gear-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  display: block;
  margin-bottom: 0.4rem;
}

.post-body .gear-pick p {
  margin-bottom: 0.5rem;
  color: var(--parchment);
  font-size: 0.9rem;
}

.post-body .gear-pick a {
  color: var(--amber);
}

/* Post footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.author-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(0,0,0,0.03);
  border-radius: 3px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.author-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--smoke);
  line-height: 1.5;
  margin: 0;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ember);
}

/* ---- Page ---- */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1rem;
  color: var(--smoke);
  font-style: italic;
}

.page-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}

.page-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 2rem 0 0.75rem;
}

.page-body p { margin-bottom: 1.3rem; }
.page-body ul, .page-body ol { margin: 0 0 1.3rem 1.5rem; }
.page-body li { margin-bottom: 0.4rem; }
.page-body strong { color: var(--charcoal); font-weight: 600; }
.page-body em { font-style: italic; }

.page-body blockquote {
  border-left: 3px solid var(--ember);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(200,98,26,0.05);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--bark);
}

/* ---- Stories index ---- */
.stories-page {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.stories-header {
  margin-bottom: 2.5rem;
}

.stories-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.stories-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--smoke);
  font-style: italic;
}

.stories-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.15s;
}

.story-row:hover { background: rgba(200,98,26,0.03); }

.story-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--smoke);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.story-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}

.story-title a { color: inherit; text-decoration: none; }
.story-title a:hover { color: var(--ember); }

.story-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  white-space: nowrap;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--charcoal);
  border-top: 3px solid var(--ember);
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-bio {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--smoke);
  font-style: italic;
  max-width: 480px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color 0.15s;
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(138,128,112,0.6);
  line-height: 1.7;
}

.footer-copy small { display: block; margin-top: 0.3rem; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .header-inner { padding: 0.75rem 1rem; }
  .brand-tagline { display: none; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--charcoal); padding: 1rem; border-top: 1px solid rgba(200,98,26,0.2); gap: 0.1rem; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }

  .post-featured { grid-template-columns: 1fr; }
  .featured-label { align-self: auto; width: fit-content; }

  .story-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .story-date, .story-tag { font-size: 0.62rem; }

  .section { padding: 2rem 1rem; }
  .post, .page { padding: 2rem 1rem 3rem; }
}
