/* ============================================================
   Chihaba Spice Company — static site
   Homemade Austin, TX farmers-market salsa & spice maker
   ============================================================ */

:root {
  --bg:       #F4ECDB;   /* cream page */
  --bg-2:     #EBDFC4;   /* banded sections */
  --paper:    #FBF4E6;   /* cards / paper */
  --kraft:    #D9C49A;   /* salsa label kraft */
  --ink:      #231C12;   /* near-black brown */
  --ink-soft: #54493A;
  --ink-soft2:#5A4F3D;
  --body:     #3F3527;
  --muted:    #7A6E58;
  --red:      #9E2B1E;   /* chile red */
  --red-d:    #6E1C13;
  --red-h:    #8A2418;
  --olive:    #5E6B3B;
  --gold:     #E8A23D;
  --line:     #E0D2B4;
  --line-2:   #E7D9BB;
  --dark:     #231C12;
  --dark-2:   #2E2517;
  --dark-line:#46371F;

  --serif:  'Newsreader', Georgia, serif;
  --hand:   'Caveat', 'Segoe Script', cursive;
  --sans:   'Libre Franklin', system-ui, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #C9A86733; }
img { display: block; max-width: 100%; }
a { color: inherit; }

@keyframes floatchili {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 28px; }
.wrap-narrow { max-width: 1080px; margin: 0 auto; padding-inline: 28px; }

/* ---------- handwritten / serif helpers ---------- */
.kicker {
  font-family: var(--hand);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.kicker.olive { color: var(--olive); }
.kicker.gold  { color: var(--gold); }
.h-serif { font-family: var(--serif); font-weight: 500; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 2px;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: var(--paper); box-shadow: 0 2px 0 var(--red-d); }
.btn-primary:hover { background: var(--red-h); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid #C7B488; }
.btn-ghost:hover { background: var(--bg-2); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 236, 219, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 28px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand .mark { display: inline-block; width: 34px; height: 34px; animation: floatchili 6s ease-in-out infinite; }
.brand .mark.static { animation: none; }
.brand-name { display: flex; flex-direction: column; line-height: 0.86; }
.brand-name .name { font-family: var(--hand); font-weight: 700; font-size: 28px; letter-spacing: .5px; color: var(--ink); }
.brand-name .sub { font-family: var(--sans); font-weight: 600; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 14.5px; letter-spacing: .2px; transition: color .15s; }
.nav-links a:hover { color: var(--red); }
.nav-back { text-decoration: none; color: var(--red); font-weight: 600; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center;
  padding: 64px 28px 30px;
}
.hero .eyebrow { font-family: var(--hand); font-size: 27px; color: var(--red); font-weight: 600; transform: rotate(-1.5deg); margin-bottom: 6px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: 62px; line-height: 1.02; letter-spacing: -0.5px; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero p.lede { font-size: 17.5px; line-height: 1.62; color: var(--ink-soft2); max-width: 30em; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art .frame-bg { position: absolute; inset: -14px; background: #E4D4B0; border-radius: 4px; transform: rotate(-2deg); }
.hero-art img { position: relative; width: 100%; height: 430px; object-fit: cover; border-radius: 3px; box-shadow: 0 14px 34px rgba(60,40,15,0.22); border: 5px solid var(--paper); }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 3px; padding: 11px 16px;
  box-shadow: 0 8px 20px rgba(60,40,15,0.15); transform: rotate(-2.5deg);
}
.hero-badge b { font-family: var(--hand); font-size: 21px; color: var(--olive); font-weight: 700; line-height: 1; display: block; }
.hero-badge span { font-size: 11px; color: var(--muted); letter-spacing: .3px; }

/* ---------- marquee strip ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #EFE3C9; margin-top: 34px;
}
.marquee-inner { display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; padding: 13px 28px; }
.marquee span { font-size: 13px; font-weight: 600; letter-spacing: .4px; color: #6B5C3E; text-transform: uppercase; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; padding: 84px 28px; }
.story-art { position: relative; }
.story-art .frame-bg { position: absolute; inset: -12px; background: var(--olive); opacity: .14; border-radius: 4px; transform: rotate(2deg); }
.story-art img { position: relative; width: 100%; height: 440px; object-fit: cover; border: 5px solid var(--paper); border-radius: 3px; box-shadow: 0 14px 30px rgba(60,40,15,0.2); }
.story .kicker { font-size: 25px; transform: rotate(-1deg); margin-bottom: 4px; }
.story h2 { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.08; margin-bottom: 24px; }
.story-copy { font-size: 16.5px; line-height: 1.72; color: var(--ink-soft); display: flex; flex-direction: column; gap: 16px; max-width: 34em; }
.story-copy em { font-style: italic; }
.story-sign { font-family: var(--hand); font-size: 30px; color: var(--red); font-weight: 700; margin-top: 22px; transform: rotate(-1.5deg); }

/* ---------- section headings ---------- */
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding: 80px 28px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .kicker { font-size: 25px; margin-bottom: 2px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: 42px; }

/* ---------- salsas ---------- */
.salsa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.salsa {
  background: var(--paper); border-radius: 4px; padding: 12px 12px 6px;
  box-shadow: 0 6px 18px rgba(60,40,15,0.12); border: 1px solid var(--line-2);
  transition: transform .18s, box-shadow .18s;
}
.salsa:nth-child(6n+1) { transform: rotate(-1.5deg); }
.salsa:nth-child(6n+2) { transform: rotate(1deg); }
.salsa:nth-child(6n+3) { transform: rotate(-0.5deg); }
.salsa:nth-child(6n+4) { transform: rotate(1.5deg); }
.salsa:nth-child(6n+5) { transform: rotate(-1deg); }
.salsa:nth-child(6n+6) { transform: rotate(0.8deg); }
.salsa:hover { transform: translateY(-6px) rotate(0deg); box-shadow: 0 14px 28px rgba(60,40,15,0.18); }
.salsa-photo { border-radius: 3px; overflow: hidden; background: var(--bg-2); aspect-ratio: 1 / 1; }
.salsa-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.salsa:hover .salsa-photo img { transform: scale(1.04); }
.salsa-info { padding: 14px 8px 8px; }
.salsa-name { text-align: center; font-family: var(--hand); font-size: 30px; font-weight: 700; color: var(--ink); line-height: .95; }
.heat-dots { display: flex; justify-content: center; gap: 5px; margin: 12px 0; }
.heat-dots .dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--red); display: inline-block; }
.heat-dots .dot.on { background: var(--red); }
.salsa-note { text-align: center; font-size: 13.5px; line-height: 1.5; color: #5A4A2E; }
.salsa-heat { text-align: center; font-size: 10px; letter-spacing: 1px; color: #7C6A45; margin-top: 14px; }
.salsa-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 30px; }

/* ---------- spice mixes ---------- */
.mixes { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: center; padding: 78px 28px; }
.mixes h2 { font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1.1; margin-bottom: 18px; }
.mixes .kicker { font-size: 25px; margin-bottom: 2px; }
.mixes-lede { font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 30em; }
.mixes-photo { position: relative; margin-top: 26px; display: inline-block; }
.mixes-photo img { width: 100%; max-width: 380px; border-radius: 3px; border: 5px solid var(--paper); box-shadow: 0 12px 26px rgba(60,40,15,0.2); transform: rotate(-1.5deg); }
.mix-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mix {
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 3px; padding: 18px;
  box-shadow: 0 3px 10px rgba(60,40,15,0.07); display: flex; flex-direction: column; gap: 3px;
  transition: border-color .15s;
}
.mix:hover { border-color: #C7B488; }
.mix-name { font-family: var(--hand); font-size: 25px; font-weight: 700; color: var(--red); line-height: .9; }
.mix-desc { font-size: 13px; color: #6B5C45; line-height: 1.45; }

/* ---------- recipes (dark) ---------- */
.recipes { background: var(--dark); color: var(--bg); }
.recipes .inner { padding: 82px 28px; }
.recipes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.recipes-head .kicker { font-size: 26px; color: var(--gold); margin-bottom: 2px; }
.recipes-head h2 { font-family: var(--serif); font-weight: 500; font-size: 42px; color: #F8F1E0; }
.recipes-head p { font-size: 15px; color: #C7BBA2; max-width: 24em; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.recipe-card {
  text-decoration: none; color: inherit; background: var(--dark-2); border: 1px solid var(--dark-line);
  border-radius: 4px; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.recipe-card:hover { border-color: var(--gold); transform: translateY(-5px); }
.recipe-card .accent { height: 7px; }
.recipe-card .body { padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.recipe-card .tag { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.recipe-card h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.1; color: #F8F1E0; }
.recipe-card .blurb { font-size: 14px; line-height: 1.55; color: #BFB39A; flex: 1; }
.recipe-card .more { font-family: var(--hand); font-size: 21px; font-weight: 700; color: var(--gold); }

/* ---------- markets ---------- */
.markets { padding: 84px 28px; }
.markets .section-head { margin-bottom: 14px; }
.markets .section-head h2 { font-family: var(--serif); font-weight: 500; font-size: 42px; }
.markets .section-head p { font-size: 15px; color: var(--muted); margin-top: 8px; max-width: 30em; margin-inline: auto; }
.market-list {
  max-width: 760px; margin: 36px auto 0; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper);
  box-shadow: 0 6px 18px rgba(60,40,15,0.08);
}
.market {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--bg-2); transition: background .15s;
}
.market:last-child { border-bottom: 0; }
.market:hover { background: #F3E8CF; }
.market .day { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--red); }
.market .name { font-weight: 600; font-size: 16.5px; color: var(--ink); }
.market .place { font-size: 13.5px; color: var(--muted); }
.market .time { font-size: 14px; font-weight: 500; color: var(--olive); white-space: nowrap; }

.stockist-wrap { margin-top: 62px; }
.stockist-wrap h3 { text-align: center; font-family: var(--serif); font-weight: 500; font-size: 28px; margin-bottom: 6px; }
.stockist-wrap > p { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 30px; }
.stockist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.stockist { background: var(--paper); border: 1px solid var(--line-2); border-radius: 3px; padding: 18px 20px; }
.stockist .name { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.stockist .loc { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 3px; }

/* ---------- footer ---------- */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-top {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  border-bottom: 1px solid #D8C8A6; padding: 60px 0 44px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-brand .mark { display: inline-block; width: 30px; height: 30px; }
.foot-brand .name { font-family: var(--hand); font-weight: 700; font-size: 30px; color: var(--ink); }
.foot p.about { font-size: 15px; line-height: 1.6; color: var(--ink-soft2); max-width: 34em; }
.foot .contact { font-size: 14px; color: var(--muted); margin-top: 14px; }
.foot .contact a { color: var(--red); font-weight: 600; text-decoration: none; }
.cottage {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 50%;
  width: 230px; height: 230px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 30px; margin: 0 auto;
}
.cottage p { font-size: 12.5px; line-height: 1.5; letter-spacing: 1px; font-weight: 600; color: var(--ink); text-transform: uppercase; }
.cottage .uin { font-size: 12px; letter-spacing: 2px; margin-top: 10px; font-weight: 700; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 24px 0; }
.foot-bottom .copy { font-size: 13px; color: #8A7C62; }
.foot-bottom .links { display: flex; gap: 22px; }
.foot-bottom .links a { font-size: 13px; color: #6B5C45; text-decoration: none; font-weight: 500; }
.foot-bottom .links a:hover { color: var(--red); }

/* ============================================================
   Recipe page
   ============================================================ */
.recipe-head { padding: 54px 28px 30px; }
.recipe-head .tag { font-family: var(--hand); font-size: 25px; color: var(--red); font-weight: 700; transform: rotate(-1deg); display: inline-block; }
.recipe-head h1 { font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1.04; margin: 6px 0 18px; max-width: 16em; }
.recipe-head .intro { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 42em; }
.recipe-meta { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.recipe-meta .k { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); font-weight: 600; }
.recipe-meta .v { font-size: 16px; font-weight: 500; color: var(--ink); margin-top: 2px; }

.recipe-body { padding: 14px 28px 80px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.ingredients {
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 4px; padding: 28px 26px;
  box-shadow: 0 6px 18px rgba(60,40,15,0.08); position: sticky; top: 20px;
}
.ingredients h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 16px; }
.ingredients ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ingredients li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--body); }
.ingredients li .bullet { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 7px; flex: none; }
.made-with { margin-top: 22px; background: var(--bg-2); border-radius: 3px; padding: 14px 16px; }
.made-with .label { font-family: var(--hand); font-size: 21px; font-weight: 700; color: var(--olive); line-height: .95; margin-bottom: 4px; }
.made-with p { font-size: 14px; color: var(--ink-soft2); line-height: 1.45; }

.method h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 22px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; align-items: start; }
.steps .num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: var(--paper);
  font-family: var(--serif); font-size: 20px; display: flex; align-items: center; justify-content: center; flex: none;
}
.steps p { font-size: 16.5px; line-height: 1.6; color: var(--body); padding-top: 6px; }
.keith-note { margin-top: 36px; background: var(--dark); border-radius: 4px; padding: 26px 28px; color: var(--bg); display: flex; gap: 18px; align-items: flex-start; }
.keith-note .mark { display: inline-block; width: 34px; height: 34px; flex: none; margin-top: 2px; }
.keith-note .label { font-family: var(--hand); font-size: 24px; font-weight: 700; color: var(--gold); line-height: .95; margin-bottom: 6px; }
.keith-note p { font-size: 15.5px; line-height: 1.6; color: #DDD2BC; }

.more-recipes { background: var(--bg-2); border-top: 1px solid var(--line); }
.more-recipes .inner { padding: 56px 28px; }
.more-recipes h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin-bottom: 24px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.more-card {
  text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 22px; display: flex; flex-direction: column; gap: 7px;
  transition: border-color .15s, transform .15s;
}
.more-card:hover { border-color: var(--red); transform: translateY(-4px); }
.more-card .tag { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); font-weight: 600; }
.more-card h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.1; }
.more-card .more { font-family: var(--hand); font-size: 19px; font-weight: 700; color: var(--red); margin-top: 2px; }

.foot-dark { background: var(--dark); color: #C7BBA2; }
.foot-dark .inner { padding: 34px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-dark p { font-size: 13px; line-height: 1.5; max-width: 40em; }
.foot-dark .sign { font-family: var(--hand); font-size: 22px; font-weight: 700; color: var(--gold); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero h1 { font-size: 48px; }
  .hero-art { margin-bottom: 8px; }
  .story { grid-template-columns: 1fr; gap: 36px; }
  .mixes { grid-template-columns: 1fr; gap: 36px; }
  .salsa-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-body { grid-template-columns: 1fr; gap: 32px; }
  .ingredients { position: static; }
  .more-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
  .stockist-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-head h1 { font-size: 40px; }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding-inline: 18px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .hero h1 { font-size: 38px; }
  .section-head h2, .markets .section-head h2 { font-size: 32px; }
  .salsa-grid { grid-template-columns: 1fr; }
  .mix-grid { grid-template-columns: 1fr; }
  .stockist-grid { grid-template-columns: 1fr; }
  .market { grid-template-columns: 70px 1fr; }
  .market .time { grid-column: 2; }
  .cottage { width: 200px; height: 200px; }
  .recipe-head h1 { font-size: 32px; }
}
