/* =====================
   NORTHLINE COFFEE CO.
   Custom Theme
   ===================== */

:root {
  --cream: #f7f2e8;
  --cream-dark: #ede6d8;
  --ink: #1c1c1c;
  --ink-mid: #3d3d3d;
  --ink-light: #6b6b6b;
  --forest: #1c3a1e;
  --forest-mid: #2d5a32;
  --copper: #c4723a;
  --copper-light: #d4895a;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-width: 1160px;
  --gutter: clamp(24px, 5vw, 80px);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }

/* ===== BASE ===== */
body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--forest); color: var(--cream); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  background: rgba(247, 242, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 58, 30, 0.08);
}

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

.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--gutter) 80px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(196, 114, 58, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(28, 58, 30, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--forest);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ink-mid);
  max-width: 480px;
  line-height: 1.7;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  padding-top: 20px;
}

.hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--forest);
  padding: 20px 28px;
  position: relative;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border: 1px solid var(--forest);
  transform: translate(6px, 6px);
  z-index: -1;
}

.badge-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.badge-year {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}

.hero-origin-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.origin-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.origin-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--forest);
}

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

/* ===== ORIGIN SECTION ===== */
.origin {
  padding: 100px var(--gutter);
  background: var(--forest);
  color: var(--cream);
}

.origin-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-light);
  display: block;
  padding-top: 6px;
}

.origin-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 28px;
}

.origin-headline em {
  font-style: italic;
  color: var(--copper-light);
}

.origin-body {
  font-size: 1.05rem;
  color: rgba(247, 242, 232, 0.75);
  line-height: 1.75;
  margin-bottom: 20px;
}

.origin-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(247, 242, 232, 0.15);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--copper-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.55);
}

/* ===== CRAFT SECTION ===== */
.craft {
  padding: 100px var(--gutter);
  background: var(--cream);
}

.craft-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.craft-header {
  margin-bottom: 64px;
}

.craft-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 12px;
}

.craft-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--cream-dark);
}

.craft-step {
  padding: 40px 40px 40px 0;
  border-right: 1px solid var(--cream-dark);
  padding-right: 40px;
}

.craft-step:first-child {
  padding-left: 0;
}

.craft-step:not(:first-child) {
  padding-left: 40px;
}

.craft-step:last-child {
  border-right: none;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--copper);
  display: block;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 16px;
}

.step-body {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 100px var(--gutter);
  background: var(--cream-dark);
}

.manifesto-inner {
  max-width: 780px;
  margin: 0 auto;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--forest);
  position: relative;
  padding-left: 40px;
}

.manifesto-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 5rem;
  color: var(--copper);
  line-height: 1;
  font-style: normal;
}

/* ===== CLOSING ===== */
.closing {
  padding: 100px var(--gutter);
  background: var(--cream);
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.closing-body {
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.75;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px var(--gutter);
  background: var(--forest);
  color: var(--cream);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
}

.footer-location {
  font-size: 0.75rem;
  color: rgba(247, 242, 232, 0.5);
  display: block;
  margin-top: 4px;
}

.footer-note p {
  font-size: 0.8rem;
  color: rgba(247, 242, 232, 0.4);
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
  }
  .origin-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .craft-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .craft-step {
    border-right: none;
    border-bottom: 1px solid var(--cream-dark);
    padding: 0 0 40px;
  }
  .craft-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .origin-stats {
    flex-wrap: wrap;
    gap: 32px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .hero { padding-top: 120px; }
  .hero-headline { font-size: clamp(3rem, 14vw, 4rem); }
  .hero-visual { flex-direction: column; align-items: flex-start; }
  .manifesto-quote { padding-left: 0; }
  .manifesto-quote::before { position: static; display: block; margin-bottom: 8px; }
}