/* Downtown Roasters - brand colours and fonts come only from Abby's brand kit (source/brand). */
@font-face { font-family: 'Gimme'; src: url('/assets/fonts/gimme-extrabold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Noto Serif'; src: url('/assets/fonts/noto-serif.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Noto Serif'; src: url('/assets/fonts/noto-serif-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --ink: #111111; --cream: #f6f1e7; --paper: #fffdf8;
  --yellow: #e4c05a; --orange: #ee7251; --pink: #f29cc3; --blue: #80b0e8; --teal: #6fb8be; --green: #d6d35f; --purple: #b39ddb;
  --radius: 22px; --max: 1180px;
  --display: 'Gimme', 'Arial Black', Impact, sans-serif;
  --serif: 'Noto Serif', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 18px/1.6 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #000; text-decoration-color: var(--orange); }
h1, h2, h3 { overflow-wrap: break-word; font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 .45em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.kicker { font-style: italic; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: .5em; }
.lead { font-size: 1.2rem; }
.center { text-align: center; }
.note { font-style: italic; }
.small { font-size: .9rem; }
.skip { position: absolute; left: 1rem; top: -4rem; }
.skip:focus { top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1rem, 4vw, 2.5rem); background: var(--cream); border-bottom: 3px solid var(--ink); }
.brand img { width: clamp(170px, 22vw, 250px); }
.nav { display: flex; gap: 1.4rem; }
.nav a { font-family: var(--display); text-transform: uppercase; text-decoration: none; font-size: 1.02rem; letter-spacing: .03em; padding: .2rem 0; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: var(--orange); color: var(--ink); }
.nav-toggle { display: none; font: 800 1rem var(--display); text-transform: uppercase; background: var(--ink); color: var(--cream); border: 0; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; }

/* buttons + cards */
.btn { display: inline-block; font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; background: var(--ink); color: var(--cream); padding: .8rem 1.4rem; border-radius: 999px; border: 3px solid var(--ink); transition: transform .12s ease; }
.btn:hover { transform: translateY(-2px); color: var(--cream); background: #000; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.ctas { display: flex; flex-wrap: wrap; gap: .7rem; }
.card { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: 6px 6px 0 var(--ink); }

/* pattern backgrounds from the brand kit */
.pattern-1 { background: var(--yellow) url('/assets/img/pattern-1.jpg') center/cover; }
.pattern-2 { background: var(--teal) url('/assets/img/pattern-2.jpg') center/cover; }
.pattern-3 { background: var(--pink) url('/assets/img/pattern-3.jpg') center/cover; }

/* hero */
.hero { padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem); border-bottom: 3px solid var(--ink); }
.hero-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-bag { border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); }

/* facts band */
.band { background: var(--ink); color: var(--cream); padding: 1.6rem clamp(1rem, 4vw, 2.5rem); }
.facts { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; text-align: center; }
.facts strong { display: block; font: 800 clamp(1.5rem, 3vw, 2.2rem)/1 var(--display); text-transform: uppercase; color: var(--yellow); }
.facts span { font-style: italic; font-size: .95rem; }

/* sections */
.wrap { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); }
.wrap.narrow { max-width: 860px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2rem; }
.page-head { padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem); border-bottom: 3px solid var(--ink); }
.head-card { max-width: 760px; margin: 0 auto; text-align: center; }
.head-card p:last-child { margin: 0; }

/* coffees */
.coffee-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.coffee { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 6px 6px 0 var(--ink); }
.coffee img { border-bottom: 3px solid var(--ink); aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.coffee-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.coffee-body p { font-size: .98rem; }
.coffee .buy { margin-top: auto; }
.coffee .btn { font-size: .9rem; padding: .65rem 1rem; }
.c-yellow .kicker { background: var(--yellow); } .c-orange .kicker { background: var(--orange); }
.c-pink .kicker { background: var(--pink); } .c-blue .kicker { background: var(--blue); } .c-teal .kicker { background: var(--teal); }
.coffee .kicker { align-self: flex-start; padding: .15rem .6rem; border-radius: 999px; border: 2px solid var(--ink); }
.coffee-grid + .note { margin-top: 2rem; }
.coffee-list { display: grid; gap: 2rem; }
.coffee-list .coffee { flex-direction: row; }
.coffee-list .coffee img { width: 42%; border-bottom: 0; border-right: 3px solid var(--ink); }
.coffee-list .coffee-body { padding: clamp(1.4rem, 3vw, 2.4rem); justify-content: center; }
.coffee-list .coffee-body p { font-size: 1.08rem; }
.coffee-list h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.meta { font-style: italic; }

/* split */
.split { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.split-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: center; }
.cup { max-width: 220px; margin: 0 auto 1rem; }
.cup.float { float: right; width: 170px; margin: 0 0 1rem 1.5rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h2:first-of-type { margin-top: 0; }

/* partners */
.partners { display: grid; gap: 1.6rem; margin: 2rem 0; }
.partner h2 a { text-decoration: none; }
.partner .addr { font-style: italic; }

/* visit */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; align-items: stretch; }
.hours { border-collapse: collapse; width: 100%; margin: 1rem 0 1.4rem; }
.hours caption { text-align: left; font: 800 1.1rem var(--display); text-transform: uppercase; margin-bottom: .4rem; }
.hours th, .hours td { text-align: left; padding: .35rem 0; border-bottom: 1px dashed #0004; font-weight: 400; }
.hours td { text-align: right; }
.map { padding: 0; overflow: hidden; min-height: 360px; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 3rem clamp(1rem, 4vw, 2.5rem) 1.5rem; margin-top: 2rem; }
.foot-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; }
.foot-logo { width: 220px; }
.site-footer h2 { font-size: 1.15rem; color: var(--yellow); }
.site-footer a { color: var(--cream); }
.socials { display: flex; gap: .8rem; }
.socials svg { width: 28px; height: 28px; }
.copy { max-width: var(--max); margin: 2rem auto 0; font-size: .85rem; opacity: .7; }

/* photos from source/photos (ops/make-images.py photos): same frame as the cards */
.photo { width: 100%; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); background: var(--paper); }
figure { margin: 1.5rem 0; }
figcaption { font-style: italic; font-size: .92rem; margin-top: .6rem; text-align: center; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.4rem; }

/* Shopify Buy button container */
[data-shopify] { min-height: 46px; }

@media (max-width: 980px) {
  .coffee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 3px solid var(--ink); padding: .5rem 1.2rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px dashed #0003; }
  .hero-inner, .split-inner, .two-col { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 1.25rem 1rem 1.75rem; }
  .hero-inner { gap: 1.25rem; }
  h1 { font-size: clamp(2rem, 10.5vw, 2.6rem); }
  h2 { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .lead { font-size: 1.05rem; }
  .card { padding: 1.15rem; box-shadow: 4px 4px 0 var(--ink); }
  .coffee { box-shadow: 4px 4px 0 var(--ink); }
  .hero-bag { box-shadow: 4px 4px 0 var(--ink); }
  .wrap { padding: 2rem 1rem; }
  .page-head, .split { padding: 1.75rem 1rem; }
  .section-head { margin-bottom: 1.25rem; }
  .ctas .btn { flex: 1 1 auto; text-align: center; }
  .site-header { padding: .6rem 1rem; }
  .brand img { width: 160px; }
  .hero-bag { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.1rem; }
  .coffee-list .coffee { flex-direction: column; }
  .coffee-list .coffee img { width: 100%; border-right: 0; border-bottom: 3px solid var(--ink); }
  .cup.float { width: 120px; }
  .split .cup { max-width: 150px; }
}
@media (max-width: 480px) {
  .coffee-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  /* home page: compact rows (photo left, details right) instead of four full-height cards */
  .coffee-grid .coffee { flex-direction: row; }
  .coffee-grid .coffee img { width: 38%; aspect-ratio: auto; object-fit: cover; object-position: 60% 45%; border-bottom: 0; border-right: 3px solid var(--ink); }
  .coffee-grid .coffee-body { padding: .8rem .9rem; }
  .coffee-grid .coffee h3 { font-size: 1.2rem; }
  .coffee-grid .coffee-body p { font-size: .9rem; margin-bottom: .6rem; }
  .coffee-grid .coffee .kicker { font-size: .72rem; }
  .coffee-grid .coffee .btn { font-size: .78rem; padding: .55rem .8rem; }
  .foot-grid { grid-template-columns: 1fr; }
}
