/* ===========================================================
   Stormpeak Coffee — bespoke design system
   Class-based styles consumed by the theme's block patterns.
   =========================================================== */

:root{
  --sp-ink:#2B1E16; --sp-ink-panel:#33251B; --sp-ink-line:#4A3525;
  --sp-terracotta:#C2693F; --sp-terracotta-dark:#A9542E; --sp-gold:#D9A066;
  --sp-cream:#FBF8F1; --sp-paper:#F3ECDD; --sp-sand:#EADBC2; --sp-light:#F6F0E4;
  --sp-card-border:#EFE6D5; --sp-text-muted:#5A4636; --sp-text-muted-2:#7A6450;
  --sp-text-muted-3:#9A6A4A; --sp-green:#7BBA6A;
}

body{ background:var(--sp-cream); color:var(--sp-ink); font-family:'Hanken Grotesk',sans-serif; }
/* Header, main and footer are structural — remove the block-gap margin WordPress
   inserts between them so sections sit flush under the sticky header. */
.wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }
::selection{ background:var(--sp-terracotta); color:var(--sp-light); }
@keyframes sp-ticker{ from{transform:translateX(0);} to{transform:translateX(-50%);} }

.sp-font-display{ font-family:'Bricolage Grotesque',sans-serif; }
.sp-font-archivo{ font-family:'Archivo',sans-serif; }
.sp-font-mono{ font-family:'Space Grotesk',monospace; }
.sp-font-logo{ font-family:'Outfit',sans-serif; }

/* layout helper so full-width sections still centre their inner content */
.sp-wrap{ max-width:1180px; margin-left:auto; margin-right:auto; padding-left:28px; padding-right:28px; }

/* ---------- Announcement bar ---------- */
.sp-announce{
  background:var(--sp-ink); color:var(--sp-sand); text-align:center;
  font-family:'Space Grotesk',monospace; font-size:12px; letter-spacing:1.5px;
  padding:9px; text-transform:uppercase;
}

/* ---------- Header ---------- */
.sp-header{
  position:sticky; top:0; z-index:40; background:rgba(251,248,241,0.92);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--sp-sand);
}
.sp-header-inner{
  max-width:1180px; margin:0 auto; padding:14px 28px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.sp-logo{ display:flex; flex-direction:column; align-items:center; gap:5px; text-decoration:none; flex:none; }
.sp-logo-word{ font-family:'Outfit',sans-serif; font-weight:800; font-size:19px; letter-spacing:-0.5px; color:var(--sp-ink); line-height:0.92; }
.sp-logo-sub{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:5px; }
.sp-logo-sub span.line{ width:16px; height:1.5px; background:var(--sp-terracotta); display:inline-block; }
.sp-logo-sub span.txt{ font-family:'Outfit',sans-serif; font-weight:700; font-size:10.5px; letter-spacing:4px; color:var(--sp-terracotta); }
.sp-nav{ display:flex; align-items:center; gap:30px; font-size:15px; font-weight:500; }
.sp-nav a{ color:var(--sp-ink); text-decoration:none; }
.sp-nav a:hover{ color:var(--sp-terracotta); }
.sp-basket{
  display:inline-flex; align-items:center; gap:7px; background:var(--sp-ink); color:var(--sp-light);
  padding:9px 16px; border-radius:999px; font-size:14px; font-weight:600; text-decoration:none;
}
.sp-basket:hover{ background:var(--sp-ink-line); color:var(--sp-light); }
.sp-basket .count{ background:var(--sp-terracotta); color:#fff; min-width:20px; height:20px; border-radius:999px; font-size:12px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; padding:0 5px; }

/* ---------- Hero ---------- */
.sp-hero{ max-width:1180px; margin:0 auto; padding:64px 28px 40px; display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center; }
.sp-eyebrow{
  display:inline-flex; align-items:center; gap:8px; background:var(--sp-sand); color:#7A5238;
  font-family:'Space Grotesk',monospace; font-size:12px; letter-spacing:1.5px; padding:7px 14px;
  border-radius:999px; text-transform:uppercase;
}
.sp-eyebrow .dot{ width:7px; height:7px; border-radius:99px; background:var(--sp-terracotta); display:inline-block; }
.sp-hero h1{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:clamp(44px,6vw,66px); line-height:0.98; letter-spacing:-1.5px; margin:0; }
.sp-lead{ font-size:18px; line-height:1.55; color:var(--sp-text-muted); max-width:440px; }
.sp-stats{ display:flex; gap:30px; margin-top:40px; }
.sp-stat .n{ font-family:'Archivo',sans-serif; font-weight:800; font-size:26px; }
.sp-stat .l{ font-size:13px; color:var(--sp-text-muted-2); }

.sp-roast-card{ background:var(--sp-ink); border-radius:26px; padding:34px; position:relative; overflow:hidden; }
.sp-roast-card .stripe{ position:absolute; inset:0; opacity:0.5; background:repeating-linear-gradient(135deg,#33251b 0 14px,#2B1E16 14px 28px); }
.sp-roast-card .inner{ position:relative; }
.sp-roast-row{ display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; }
.sp-roast-row .label{ font-family:'Space Grotesk',monospace; font-size:12px; letter-spacing:2px; color:var(--sp-gold); }
.sp-roast-row .pulse{ width:9px; height:9px; border-radius:99px; background:var(--sp-terracotta); box-shadow:0 0 0 4px rgba(194,105,63,0.25); }
.sp-roast-meta{ border-top:1px solid var(--sp-ink-line); padding-top:18px; display:grid; gap:13px; }
.sp-roast-meta .r{ display:flex; justify-content:space-between; color:var(--sp-sand); font-size:14px; }
.sp-roast-meta .r .k{ color:#9A8472; }
.sp-roast-meta .r .v{ font-weight:600; }
.sp-roast-tag{ position:absolute; bottom:-18px; left:-18px; background:var(--sp-gold); color:var(--sp-ink); font-family:'Space Grotesk',monospace; font-size:12px; letter-spacing:1px; font-weight:700; padding:10px 16px; border-radius:12px; transform:rotate(-4deg); box-shadow:0 8px 20px rgba(43,30,22,0.2); }

/* ---------- Ticker ---------- */
.sp-ticker{ border-top:1px solid var(--sp-sand); border-bottom:1px solid var(--sp-sand); background:var(--sp-paper); overflow:hidden; white-space:nowrap; padding:13px 0; font-family:'Space Grotesk',monospace; font-size:13px; letter-spacing:2px; color:#7A5238; text-transform:uppercase; }
.sp-ticker .track{ display:flex; width:max-content; animation:sp-ticker 32s linear infinite; }
.sp-ticker .track span{ flex:none; }

/* ---------- Section heading ---------- */
.sp-section{ max-width:1180px; margin:0 auto; padding:64px 28px; }
.sp-kicker{ font-family:'Space Grotesk',monospace; font-size:12px; letter-spacing:2px; color:var(--sp-terracotta); margin-bottom:8px; }
.sp-section-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:34px; gap:20px; flex-wrap:wrap; }
.sp-section-head h2{ font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:38px; letter-spacing:-0.5px; margin:0; }
.sp-viewall{ font-weight:600; color:var(--sp-terracotta); border-bottom:1.5px solid var(--sp-terracotta); padding-bottom:2px; text-decoration:none; }

/* ---------- Product cards ---------- */
.sp-products{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.sp-card{ background:#fff; border:1px solid var(--sp-card-border); border-radius:20px; overflow:hidden; display:flex; flex-direction:column; }
.sp-card-visual{ position:relative; padding:26px; display:flex; align-items:center; justify-content:center; }
.sp-card-badge{ position:absolute; top:14px; left:14px; background:rgba(43,30,22,0.85); color:var(--sp-sand); font-family:'Space Grotesk',monospace; font-size:10px; letter-spacing:1px; padding:5px 9px; border-radius:8px; }
.sp-card-body{ padding:20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.sp-card-meta{ font-family:'Space Grotesk',monospace; font-size:11px; letter-spacing:1px; color:var(--sp-text-muted-3); text-transform:uppercase; }
.sp-card-body h3{ font-family:'Archivo',sans-serif; font-weight:700; font-size:21px; margin:7px 0 8px; letter-spacing:-0.3px; }
.sp-card-body h3 a{ color:var(--sp-ink); text-decoration:none; }
.sp-card-notes{ font-size:13.5px; color:var(--sp-text-muted-2); line-height:1.5; flex:1; }
.sp-card-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:18px; }
.sp-price{ font-family:'Archivo',sans-serif; font-weight:800; font-size:20px; }

/* ---------- Buttons (pattern-level) ---------- */
.sp-btn{ display:inline-block; border:none; font-family:'Hanken Grotesk',sans-serif; font-weight:600; font-size:16px; padding:15px 28px; border-radius:999px; cursor:pointer; text-decoration:none; line-height:1; }
.sp-btn-primary{ background:var(--sp-terracotta); color:#fff; }
.sp-btn-primary:hover{ background:var(--sp-terracotta-dark); color:#fff; }
.sp-btn-dark{ background:var(--sp-ink); color:var(--sp-light); }
.sp-btn-dark:hover{ background:var(--sp-terracotta); color:#fff; }
.sp-btn-outline{ background:transparent; color:var(--sp-ink); border:1.5px solid var(--sp-ink); padding:13.5px 26px; }
.sp-btn-outline:hover{ background:var(--sp-ink); color:var(--sp-light); }
.sp-btn-add{ background:var(--sp-ink); color:var(--sp-light); border:none; font-family:'Hanken Grotesk',sans-serif; font-weight:600; font-size:14px; padding:10px 18px; border-radius:999px; cursor:pointer; white-space:nowrap; text-decoration:none; }
.sp-btn-add:hover{ background:var(--sp-terracotta); color:#fff; }

/* ---------- Value props ---------- */
.sp-values{ background:var(--sp-paper); border-top:1px solid var(--sp-sand); border-bottom:1px solid var(--sp-sand); }
.sp-values-grid{ max-width:1180px; margin:0 auto; padding:54px 28px; display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.sp-value h3{ font-family:'Archivo',sans-serif; font-weight:800; font-size:17px; color:var(--sp-terracotta); margin:0 0 8px; }
.sp-value p{ font-size:15px; line-height:1.55; color:var(--sp-text-muted); margin:0; }

/* ---------- Subscription ---------- */
.sp-sub-hero{ background:var(--sp-ink); color:var(--sp-sand); }
.sp-sub-hero .grid{ max-width:1180px; margin:0 auto; padding:72px 28px; display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center; }
.sp-sub-hero h1{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:clamp(40px,5vw,58px); line-height:1; letter-spacing:-1.5px; margin:0; color:var(--sp-light); }
.sp-step{ background:var(--sp-ink-panel); border:1px solid var(--sp-ink-line); border-radius:16px; padding:20px 22px; display:flex; gap:16px; align-items:center; }
.sp-step .num{ font-family:'Archivo',sans-serif; font-weight:800; font-size:22px; color:var(--sp-gold); min-width:34px; }
.sp-step .t{ font-weight:700; color:var(--sp-light); font-size:16px; }
.sp-step .d{ font-size:14px; color:#A8957F; }
.sp-plans{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; align-items:start; }
.sp-plan{ background:#fff; border:1px solid var(--sp-card-border); border-radius:20px; padding:30px; }
.sp-plan .tier{ font-family:'Space Grotesk',monospace; font-size:12px; letter-spacing:1.5px; color:var(--sp-text-muted-3); }
.sp-plan .price{ font-family:'Archivo',sans-serif; font-weight:800; font-size:34px; margin:10px 0 2px; }
.sp-plan .price small{ font-size:15px; font-weight:500; color:var(--sp-text-muted-3); }
.sp-plan .cadence{ font-size:14px; color:var(--sp-text-muted-2); margin-bottom:20px; }
.sp-plan ul{ list-style:none; margin:0 0 24px; padding:0; display:grid; gap:10px; font-size:14.5px; color:var(--sp-text-muted); }
.sp-plan ul li::before{ content:"· "; }
.sp-plan--featured{ background:var(--sp-ink); color:var(--sp-sand); position:relative; box-shadow:0 18px 40px rgba(43,30,22,0.25); }
.sp-plan--featured .tier{ color:var(--sp-gold); }
.sp-plan--featured .price, .sp-plan--featured .cadence, .sp-plan--featured ul{ color:var(--sp-light); }
.sp-plan--featured .cadence{ color:#A8957F; }
.sp-plan--featured ul{ color:var(--sp-sand); }
.sp-plan-flag{ position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--sp-gold); color:var(--sp-ink); font-family:'Space Grotesk',monospace; font-size:11px; letter-spacing:1px; font-weight:700; padding:5px 14px; border-radius:999px; }
.sp-plan .sp-btn{ width:100%; text-align:center; font-size:15px; padding:13px; box-sizing:border-box; }
.sp-plan-btn-light{ background:var(--sp-cream); color:var(--sp-ink); border:1.5px solid var(--sp-ink); }
.sp-plan-btn-light:hover{ background:var(--sp-ink); color:var(--sp-light); }

/* ---------- Story / About ---------- */
.sp-story-hero{ max-width:1180px; margin:0 auto; padding:64px 28px 40px; text-align:center; }
.sp-story-hero h1{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:clamp(40px,6vw,62px); line-height:1.02; letter-spacing:-1.5px; margin:0 auto; max-width:780px; }
.sp-story-hero p{ font-size:18px; line-height:1.6; color:var(--sp-text-muted); max-width:620px; margin:24px auto 0; }
.sp-story-band{ background:var(--sp-ink); border-radius:24px; overflow:hidden; position:relative; min-height:300px; display:flex; align-items:center; justify-content:center; }
.sp-story-quote{ font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:clamp(26px,3.2vw,34px); line-height:1.4; letter-spacing:-0.3px; color:var(--sp-ink); }

/* ---------- Footer ---------- */
.sp-footer{ background:var(--sp-ink); color:#C8B6A2; }
.sp-foot-grid{ max-width:1180px; margin:0 auto; padding:54px 28px 30px; display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:34px; }
.sp-foot-grid a{ color:#C8B6A2; text-decoration:none; }
.sp-foot-grid a:hover{ color:var(--sp-light); }
.sp-foot-col h4{ font-family:'Space Grotesk',monospace; font-size:11px; letter-spacing:2px; color:var(--sp-text-muted-3); margin:0 0 14px; font-weight:400; }
.sp-foot-col .links{ display:grid; gap:10px; font-size:14px; }
.sp-foot-brand{ display:flex; flex-direction:column; align-items:center; text-align:center; }
.sp-foot-brand svg{ display:block; }
.sp-foot-blurb{ font-size:14px; line-height:1.6; max-width:280px; margin:14px 0 0; text-align:center; }
.sp-news{ display:flex; gap:8px; margin-top:4px; }
.sp-news input{ flex:1; min-width:0; background:var(--sp-ink-panel); border:1px solid var(--sp-ink-line); color:var(--sp-light); border-radius:10px; padding:10px 12px; font-family:'Hanken Grotesk',sans-serif; font-size:13px; outline:none; }
.sp-news button{ background:var(--sp-terracotta); border:none; color:#fff; border-radius:10px; padding:10px 14px; font-weight:600; cursor:pointer; font-family:'Hanken Grotesk',sans-serif; }
.sp-foot-bar{ border-top:1px solid var(--sp-ink-panel); }
.sp-foot-bar .inner{ max-width:1180px; margin:0 auto; padding:18px 28px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; font-family:'Space Grotesk',monospace; font-size:11px; letter-spacing:1px; color:var(--sp-text-muted-2); }

/* ---------- Shop listing (theme [stormpeak_shop]) ---------- */
.sp-shop-head{ display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:20px; border-bottom:1px solid var(--sp-sand); padding-bottom:28px; margin-bottom:28px; }
.sp-shop-title{ font-weight:800; font-size:clamp(34px,4vw,48px); letter-spacing:-1px; margin:0; }
.sp-shop-sub{ font-size:16px; color:var(--sp-text-muted); margin:12px 0 0; max-width:480px; line-height:1.5; }
.sp-shop-count{ text-align:right; font-family:'Space Grotesk',monospace; font-size:12px; color:var(--sp-text-muted-2); line-height:1.8; }
.sp-shop-count span{ display:block; font-weight:700; color:var(--sp-terracotta); font-size:15px; }
.sp-chips{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:30px; }
.sp-chip{ cursor:pointer; padding:9px 18px; border-radius:999px; font-weight:600; font-size:14px; white-space:nowrap; background:#fff; color:var(--sp-text-muted); border:1.5px solid #E0D5C0; text-decoration:none; }
.sp-chip:hover{ border-color:var(--sp-ink); color:var(--sp-ink); }
.sp-chip.is-active{ background:var(--sp-ink); color:var(--sp-light); border-color:var(--sp-ink); }

/* ===========================================================
   WooCommerce — bring the real Shop / Product / Cart pages
   into the Stormpeak palette.
   =========================================================== */
.woocommerce, .woocommerce-page{ color:var(--sp-ink); }
.woocommerce .woocommerce-breadcrumb{ font-family:'Space Grotesk',monospace; font-size:12px; letter-spacing:1px; color:var(--sp-text-muted-3); text-transform:uppercase; }
.woocommerce .woocommerce-products-header__title,
.woocommerce-products-header__title.page-title{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; letter-spacing:-1px; }

/* product loop cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  background:#fff; border:1px solid var(--sp-card-border); border-radius:20px;
  padding:18px 18px 22px; box-sizing:border-box;
}
.woocommerce ul.products li.product a img{ border-radius:14px; background:var(--sp-paper); }
.woocommerce ul.products li.product .woocommerce-loop-product__title{ font-family:'Archivo',sans-serif; font-weight:700; font-size:19px; }
.woocommerce ul.products li.product .price{ font-family:'Archivo',sans-serif; font-weight:800; color:var(--sp-ink); }
.woocommerce ul.products li.product .price del{ color:var(--sp-text-muted-3); font-weight:500; }

/* buttons everywhere */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce .single_add_to_cart_button{
  background:var(--sp-ink); color:var(--sp-light); border:none; border-radius:999px;
  font-family:'Hanken Grotesk',sans-serif; font-weight:600; padding:11px 20px; text-transform:none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover{ background:var(--sp-terracotta); color:#fff; }
.woocommerce .single_add_to_cart_button{ background:var(--sp-terracotta); padding:15px 28px; font-size:16px; }
.woocommerce .single_add_to_cart_button:hover{ background:var(--sp-terracotta-dark); }

/* single product */
.woocommerce div.product .product_title{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; letter-spacing:-1px; }
.woocommerce div.product p.price, .woocommerce div.product span.price{ font-family:'Archivo',sans-serif; font-weight:800; color:var(--sp-ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{ border-bottom-color:var(--sp-terracotta); }

/* messages / notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error{ border-top-color:var(--sp-terracotta); }
.woocommerce-message::before, .woocommerce-info::before{ color:var(--sp-terracotta); }

/* cart + checkout totals */
.woocommerce table.shop_table{ border-radius:16px; }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review{ border-radius:16px; }

/* onsale flash */
.woocommerce span.onsale{ background:var(--sp-terracotta); color:#fff; border-radius:999px; font-family:'Space Grotesk',monospace; font-weight:700; }

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .sp-hero, .sp-sub-hero .grid{ grid-template-columns:1fr; }
  .sp-products, .sp-values-grid, .sp-plans{ grid-template-columns:1fr; }
  .sp-nav{ gap:18px; font-size:14px; }
  .sp-foot-grid{ grid-template-columns:1fr 1fr; }
}
