/* Chimney Fire Coffee: "Hessian and Stamp" */
:root {
  --kraft: #e9dcc3;
  --cream: #f5ecdc;
  --ink: #2b2118;
  --muted: #5e4e3c;
  --brick: #7a2e1c;
  --brick-dark: #5f2214;
  --sack-green: #3f5a3c;
  --head: "Zilla Slab", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .37 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --weave:
    repeating-linear-gradient(0deg, rgba(43,33,24,.10) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(90deg, rgba(245,236,220,.07) 0 2px, transparent 2px 5px);
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kraft) var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brick); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 7.2vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 36em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-head { padding: 1rem 0; border-bottom: 2px solid var(--ink); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 26px; height: 46px; flex: none; }
.brand span { font-family: var(--head); font-weight: 700; font-size: 1.05rem; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-color: var(--brick); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1.05rem;
  padding: .85rem 1.4rem; border-radius: 3px; text-decoration: none; line-height: 1.2;
  background: var(--brick); color: var(--cream); border: 2px solid var(--brick);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--plain { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn--plain:hover { background: var(--cream); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem); }
.hero .wrap { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero-lede { font-size: 1.25rem; color: var(--muted); max-width: 32em; }
.hero-place { font-family: var(--head); font-size: 1.15rem; color: var(--sack-green); font-weight: 600; margin-bottom: 1rem; }

.print { position: relative; margin: 0 .5rem 2.5rem; }
.print-frame {
  background: var(--cream); padding: clamp(.6rem, 2vw, 1rem) clamp(.6rem, 2vw, 1rem) clamp(2.2rem, 5vw, 3rem);
  box-shadow: 0 1px 1px rgba(43,33,24,.25), 0 12px 24px -10px rgba(43,33,24,.45);
  transform: rotate(-1.5deg);
}
.print-frame figcaption { font-family: var(--head); font-size: 1rem; color: var(--muted); margin-top: .7rem; text-align: center; }
.print .stamp { position: absolute; width: clamp(96px, 26vw, 148px); }
.print .stamp--roasted { top: -1.6rem; right: -.6rem; transform: rotate(12deg); }
.print .stamp--sourced { bottom: -2.2rem; left: -.8rem; transform: rotate(-9deg); }

/* Stamps */
.stamp { display: block; height: auto; }
.stamp text { font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: 2.2px; }
.stamp--roasted { color: var(--brick); }
.stamp--sourced { color: var(--sack-green); }

/* Section rhythm */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section-intro { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-intro p { color: var(--muted); font-size: 1.2rem; }

/* What we do */
.roasting { background: var(--cream) var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.services { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 7vw, 4.5rem); }
.service { border: 2px solid var(--ink); padding: 1.5rem 1.5rem 1.25rem; position: relative; background: var(--kraft); }
.service::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--muted); pointer-events: none; }
.service h3 { color: var(--brick); }
.service p { margin-bottom: .5em; }

.steps-title { font-size: 1.6rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.6rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem;
  width: 2.6rem; height: 2.6rem; border: 2px solid var(--brick); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: var(--brick);
}
.steps h4 { font-family: var(--head); font-weight: 700; font-size: 1.25rem; line-height: 1.2; margin: 0 0 .25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { overflow-x: clip; }
.stamp .backing { fill: var(--cream); opacity: .88; }
.steps p { margin: 0; color: var(--muted); }

/* Origins: sack-label cards */
.origins { background: var(--kraft) var(--paper); }
.sacks { display: grid; gap: clamp(2rem, 5vw, 2.5rem); }
.sack {
  background: var(--cream); padding: 1rem 1rem 1.4rem; position: relative;
  box-shadow: 0 1px 1px rgba(43,33,24,.25), 0 10px 22px -12px rgba(43,33,24,.5);
}
.sack:nth-child(1) { transform: rotate(-1.2deg); }
.sack:nth-child(2) { transform: rotate(.9deg); }
.sack:nth-child(3) { transform: rotate(-.6deg); }
.sack::before { /* string hole of a tag */
  content: ""; position: absolute; top: .6rem; right: .8rem; width: .9rem; height: .9rem;
  border-radius: 50%; background: var(--kraft); box-shadow: inset 0 0 0 2px var(--muted); z-index: 2;
}
.sack-country {
  font-family: var(--head); font-weight: 700; font-size: clamp(2.8rem, 9vw, 3.6rem); line-height: 1;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin: 1rem 0 .4rem;
}
.sack--brick .sack-country { color: var(--brick); }
.sack-line { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: .45rem 0; margin: 0 0 .9rem; font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.sack p { margin: 0; color: var(--muted); }
.sack-note { margin-top: clamp(2rem, 5vw, 3rem); color: var(--muted); }

/* Crops from the one real photo */
.crop { position: relative; overflow: hidden; aspect-ratio: var(--ar); background: #c9b38c; margin: 0; }
.crop img { position: absolute; max-width: none; width: var(--w); height: auto; left: var(--l); top: var(--t); }
.crop--peru    { --ar: 250 / 320; --w: 386.4%; --l: -212%;   --t: -90.6%; }
.crop--fazenda { --ar: 250 / 320; --w: 386.4%; --l: -72%;    --t: -106.25%; }
.crop--brasil  { --ar: 250 / 320; --w: 386.4%; --l: -286.4%; --t: -125%; }
.crop--wall    { --ar: 680 / 230; --w: 142.06%; --l: -14.7%; --t: 0%; }
.crop--sack    { --ar: 200 / 170; --w: 483%;   --l: -100%;   --t: -305.9%; }

/* Hessian band */
.promise { background-color: var(--muted); background-image: var(--weave); color: var(--cream); padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.promise .wrap { display: grid; gap: 2rem; align-items: center; }
.promise blockquote { margin: 0; }
.promise blockquote p { font-family: var(--head); font-weight: 600; font-size: clamp(1.75rem, 4.4vw, 2.9rem); line-height: 1.18; max-width: 22em; margin: 0; }
.promise-stamps { display: flex; gap: 1.25rem; }
.promise-stamps .stamp { width: clamp(110px, 30vw, 150px); color: var(--cream); }
.promise-stamps .stamp:first-child { transform: rotate(-8deg); }
.promise-stamps .stamp:last-child { transform: rotate(7deg); }

/* Gallery */
.gallery-grid { display: grid; gap: 1.25rem; }
.gallery-grid figure { margin: 0; background: var(--cream); padding: .6rem .6rem .9rem; box-shadow: 0 1px 1px rgba(43,33,24,.25), 0 10px 20px -12px rgba(43,33,24,.45); }
.gallery-grid figcaption { font-size: .98rem; color: var(--muted); margin-top: .6rem; }
.gallery-grid .full img { width: 100%; }

/* Visit */
.visit { background: var(--cream) var(--paper); border-top: 2px solid var(--ink); }
.visit .wrap { display: grid; gap: 2.5rem; }
.address-label {
  border: 3px solid var(--ink); padding: 1.5rem; position: relative; background: var(--kraft);
  max-width: 30rem;
}
.address-label::before { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--muted); pointer-events: none; }
.address-label h3 { font-size: 1.15rem; color: var(--sack-green); margin-bottom: .6rem; }
.address-label address { font-style: normal; font-family: var(--head); font-size: clamp(1.45rem, 4vw, 1.8rem); font-weight: 700; line-height: 1.25; }
.hours h3 { font-size: 1.3rem; }
.hours p { color: var(--muted); }

/* Footer */
.site-foot { background: var(--ink); color: var(--kraft); padding: 2.5rem 0; font-size: 1rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center; justify-content: space-between; }
.site-foot .brand { color: var(--cream); }
.site-foot p { margin: 0; }

/* Larger screens */
@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1.1fr 1fr; }
  .print { margin: 0 1rem 0 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .sacks { grid-template-columns: repeat(3, 1fr); }
  .promise .wrap { grid-template-columns: 1fr auto; }
  .gallery-grid { grid-template-columns: 2fr 1fr; align-items: start; }
  .gallery-grid figure:nth-child(2) { transform: rotate(1.5deg); margin-top: 1.5rem; }
  .visit .wrap { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 1200px) {
  body { font-size: 1.1875rem; }
}

/* The one motion moment: stamps land on the hero print */
@media (prefers-reduced-motion: no-preference) {
  .print .stamp--roasted { animation: stamp-r .45s cubic-bezier(.2,.9,.3,1.2) .5s both; }
  .print .stamp--sourced { animation: stamp-s .45s cubic-bezier(.2,.9,.3,1.2) .85s both; }
  @keyframes stamp-r { from { opacity: 0; transform: rotate(12deg) scale(1.6); } to { opacity: 1; transform: rotate(12deg) scale(1); } }
  @keyframes stamp-s { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
