:root {
  --cacao: #3C2415;
  --parchment: #EDE4D4;
  --steam: #9BB5B0;
  --cherry: #6B2E2E;
  --sack: #CDB892;
  --ink: #3C2415;
  --display: "Aleo", "Palatino Linotype", Palatino, serif;
  --body: "Lexend", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.skin-roast {
  margin: 0;
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--cacao);
  background: var(--parchment);
  min-height: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cherry); }
a:hover { color: var(--cacao); }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.9rem, 5vw, 3.15rem); margin: 0.2rem 0 0.7rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 0.3rem 0; }
p { margin: 0 0 0.85rem; }
.lead { font-size: 1.12rem; }

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  z-index: 40;
  background: var(--parchment);
  color: var(--cacao);
  padding: 0.5rem 0.8rem;
  border: 2px dashed var(--cacao);
}
.skip-link:focus { top: 0.6rem; }

.wrap {
  width: min(1120px, calc(100% - 1.6rem));
  margin-inline: auto;
  padding: 1.4rem 0 3rem;
}

.torra-kicker {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cherry);
  margin: 0 0 0.45rem;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  display: block;
  line-height: 1;
  color: var(--parchment);
}
.brand-tag {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steam);
  margin-top: 0.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 2.15rem;
  height: 2.55rem;
  background: var(--sack);
  border: 2px dashed var(--parchment);
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.38rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--parchment);
  border: 2px solid var(--cacao);
  transform: translateX(-50%);
}

.roast-bar {
  background: var(--cacao);
  color: var(--parchment);
  border-bottom: 3px dashed var(--sack);
}
.roast-inner {
  width: min(1120px, calc(100% - 1.4rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  padding: 0.85rem 0;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--parchment);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.site-nav a[aria-current="page"],
.site-nav a:hover {
  border-bottom-color: var(--steam);
  color: var(--steam);
}
.cart-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--parchment);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}
.cart-link strong {
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--cherry);
  color: var(--parchment);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  border: 1px dashed var(--sack);
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: var(--parchment);
  border: 2px dashed var(--sack);
  font-family: var(--body);
  font-weight: 600;
  padding: 0.4rem 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--cherry);
  color: var(--parchment);
  border: 2px dashed var(--cacao);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.62rem 1.05rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--cacao);
}
.btn:hover { background: #542424; color: var(--parchment); }
.btn-wide { width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--parchment);
  border-color: var(--steam);
  box-shadow: none;
}

.drum-hero {
  position: relative;
  background: var(--cacao);
  color: var(--parchment);
  min-height: 78vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 3.2rem 1.25rem 5.5rem;
}
.drum {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 6%;
  height: min(38vw, 280px);
  min-height: 170px;
  pointer-events: none;
}
.drum-ellipse {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 50%;
}
.drum-outer {
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, #5c3a28 0%, var(--cacao) 46%, #24150d 78%);
  box-shadow:
    inset 0 0 0 10px var(--cherry),
    inset 0 -18px 28px #1a0e08,
    0 18px 0 rgba(0, 0, 0, 0.18);
}
.drum-inner {
  left: 16%;
  right: 16%;
  top: 20%;
  bottom: 22%;
  background:
    radial-gradient(ellipse at 42% 40%, var(--sack) 0%, #8a4a32 38%, var(--cherry) 62%, var(--cacao) 88%);
  box-shadow: inset 0 0 28px var(--cacao);
}
.drum-axis {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 48%;
  height: 6px;
  background: linear-gradient(90deg, #2a1810, var(--sack), #2a1810);
  border-radius: 999px;
  opacity: 0.7;
}
.bean {
  position: absolute;
  width: 1.15rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #2a1810;
  box-shadow: inset -2px -1px 0 #6b3a22;
}
.bean.b1 { left: 38%; top: 44%; transform: rotate(-18deg); }
.bean.b2 { left: 48%; top: 52%; transform: rotate(12deg); }
.bean.b3 { left: 57%; top: 46%; transform: rotate(-8deg); }

.steam-wisp {
  position: absolute;
  border-radius: 50%;
  background: var(--steam);
  filter: blur(7px);
  opacity: 0.38;
  animation: steam-rise 5.4s ease-in-out infinite;
}
.steam-wisp.w1 { width: 48px; height: 90px; left: 22%; top: -40%; animation-delay: 0s; }
.steam-wisp.w2 { width: 36px; height: 110px; left: 46%; top: -58%; animation-delay: 1.1s; }
.steam-wisp.w3 { width: 54px; height: 96px; left: 64%; top: -48%; animation-delay: 2s; }
.steam-wisp.w4 { width: 28px; height: 72px; left: 78%; top: -30%; animation-delay: 0.6s; }

@keyframes steam-rise {
  0%, 100% { transform: translateY(12px) scale(0.92); opacity: 0.18; }
  50% { transform: translateY(-18px) scale(1.08); opacity: 0.46; }
}

.parchment-panel {
  position: relative;
  z-index: 2;
  background: var(--parchment);
  color: var(--cacao);
  width: min(38rem, 100%);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  padding: 1.6rem 1.45rem 1.5rem;
  border: 2px dashed var(--cacao);
  box-shadow: 10px 10px 0 var(--cherry);
  overflow-wrap: break-word;
  box-sizing: border-box;
}
.parchment-panel.tight { box-shadow: 6px 6px 0 var(--cherry); padding: 1.3rem 1.15rem; }
.parchment-panel .lead { color: var(--cherry); font-weight: 600; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  align-items: end;
  margin-bottom: 0.4rem;
}
.section-head a { flex: 0 1 auto; }

.lote-wall,
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.35rem 1.15rem;
  padding: 0.6rem 0 2.6rem;
}

.sack-label {
  position: relative;
  width: min(17.4rem, 86vw);
  background: var(--sack);
  color: var(--cacao);
  border: 2px dashed var(--cacao);
  padding: 1.55rem 0.95rem 1.1rem;
  box-shadow: 4px 5px 0 rgba(60, 36, 21, 0.22);
}
.sack-label::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--parchment);
  border: 2px dashed var(--cacao);
  transform: translateX(-50%);
}
.sack-label img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--cacao);
  background: var(--parchment);
}
.sack-label h3 a {
  color: var(--cacao);
  text-decoration: none;
}
.sack-label h3 a:hover { text-decoration: underline; }
.lote-num {
  position: absolute;
  top: 0.4rem;
  left: 0.5rem;
  z-index: 1;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  background: var(--parchment);
  border: 1px dashed var(--cacao);
  padding: 0.12rem 0.38rem;
}

.sack-label:nth-child(1) { transform: rotate(-2.6deg); margin: 0.2rem 1.4rem 0 0; width: min(16.4rem, 86vw); }
.sack-label:nth-child(2) { transform: rotate(2.4deg); margin: 2.8rem 0.2rem 0 1.1rem; width: min(18.4rem, 86vw); }
.sack-label:nth-child(3) { transform: rotate(-1.3deg); margin: 0.9rem 1.8rem 0 0.2rem; width: min(17rem, 86vw); }
.sack-label:nth-child(4) { transform: rotate(3.1deg); margin: 3.4rem 0 0 2.2rem; width: min(16.2rem, 86vw); }
.sack-label:nth-child(5) { transform: rotate(-3.2deg); margin: 0.5rem 2.4rem 0 0.6rem; width: min(18rem, 86vw); }
.sack-label:nth-child(6) { transform: rotate(1.8deg); margin: 2.4rem 0.8rem 0 0; width: min(16.8rem, 86vw); }
.sack-label:nth-child(7) { transform: rotate(-2.1deg); margin: 1.5rem 0 0 1.6rem; width: min(17.8rem, 86vw); }
.sack-label:nth-child(8) { transform: rotate(2.8deg); margin: 3.1rem 1.2rem 0 0.4rem; width: min(16.6rem, 86vw); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0.4rem;
}
.filters button {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--sack);
  color: var(--cacao);
  border: 2px dashed var(--cacao);
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  transform: rotate(-1.2deg);
}
.filters button:nth-child(even) { transform: rotate(1.4deg); }
.filters button.is-active,
.filters button[aria-pressed="true"] {
  background: var(--cherry);
  color: var(--parchment);
  border-style: solid;
}

.steam-band {
  display: grid;
  gap: 1.2rem;
  background: var(--cacao);
  color: var(--parchment);
  padding: 2rem 0;
  margin-top: 0.4rem;
}
.steam-band .band-inner {
  width: min(1120px, calc(100% - 1.6rem));
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}
.steam-band img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border: 2px dashed var(--sack);
}
.steam-band a { color: var(--steam); }

.product-detail {
  display: grid;
  gap: 1.4rem;
}
.sack-frame {
  position: relative;
  background: var(--sack);
  border: 2px dashed var(--cacao);
  padding: 1.6rem 0.9rem 0.9rem;
}
.sack-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--cacao);
}

.cart-layout,
.checkout-layout,
.contact-layout {
  display: grid;
  gap: 1.3rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 0.85rem;
  background: var(--sack);
  border: 2px dashed var(--cacao);
  padding: 0.75rem;
  margin-bottom: 0.85rem;
}
.cart-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--cacao);
}
.quantity {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.45rem 0;
}
.quantity button {
  width: 2rem;
  height: 2rem;
  border: 2px dashed var(--cacao);
  background: var(--parchment);
  font-family: var(--body);
  cursor: pointer;
}
.remove-btn {
  background: none;
  border: 0;
  color: var(--cherry);
  font-family: var(--body);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.summary {
  background: var(--parchment);
  border: 2px dashed var(--cacao);
  padding: 1rem 1rem 1.15rem;
  box-shadow: 6px 6px 0 var(--cherry);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px dashed var(--sack);
  padding: 0.45rem 0;
}

.ticket-form {
  display: grid;
  gap: 0.45rem;
  background: var(--sack);
  border: 2px dashed var(--cacao);
  padding: 1.1rem;
}
.ticket-form h2 {
  margin-top: 0.7rem;
}
.ticket-form label { font-weight: 600; font-size: 0.92rem; }
.field {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--cacao);
  background: var(--parchment);
  border: 2px solid var(--cacao);
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.35rem;
}
.field:focus {
  outline: 2px solid var(--steam);
  outline-offset: 1px;
}
textarea.field { min-height: 8rem; resize: vertical; }
.field-hint {
  font-size: 0.88rem;
  color: var(--cacao);
  margin: -0.15rem 0 0.6rem;
}
.checkbox-line {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--cacao);
  margin: 0.25rem 0;
}
.checkbox-line.full { grid-column: 1 / -1; }
.checkbox-line input { margin-top: 0.25rem; flex-shrink: 0; accent-color: var(--cherry); }
.pay-option {
  display: block;
  background: var(--parchment);
  border: 2px dashed var(--cacao);
  padding: 0.7rem 0.8rem;
  margin: 0.4rem 0;
  cursor: pointer;
}
.pay-option p { margin: 0.25rem 0 0 1.4rem; font-weight: 400; font-size: 0.9rem; }
.form-feedback {
  background: var(--parchment);
  border: 2px dashed var(--cherry);
  padding: 0.65rem 0.75rem;
  font-weight: 600;
}

.about-layout {
  display: grid;
  gap: 1.2rem;
}
.about-layout img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 2px dashed var(--cacao);
  background: var(--sack);
  padding: 0.55rem;
}

.legal-wrap {
  display: grid;
  grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}
.legal-nav {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--sack);
  border: 2px dashed var(--cacao);
  padding: 0.9rem;
}
.legal-nav a {
  color: var(--cacao);
  text-decoration: underline;
  font-weight: 600;
}
.legal-nav a[aria-current="page"] { color: var(--cherry); }
.legal-article {
  min-width: 0;
  font-family: var(--body);
  overflow-wrap: anywhere;
  background: var(--parchment);
  border: 2px dashed var(--cacao);
  padding: 1rem 1.05rem 1.3rem;
}
.legal-page h1,
.legal-page .legal-article h2 {
  font-family: var(--body);
  letter-spacing: 0;
}
.legal-article h2 { font-size: 1.15rem; margin: 1.1rem 0 0.4rem; }

.site-footer {
  background: var(--cacao);
  color: var(--parchment);
  padding: 2rem 0 1.4rem;
  margin-top: 1rem;
  border-top: 3px dashed var(--sack);
}
.footer-news,
.footer-main,
.footer-copy {
  width: min(1120px, calc(100% - 1.6rem));
  margin: 0 auto;
}
.footer-news .field { max-width: 28rem; }
.footer-news .btn { margin: 0.35rem 0 0.6rem; }
.footer-news h2 { color: var(--parchment); }
.footer-news .field { background: var(--parchment); color: var(--cacao); }
.footer-news .checkbox-line { color: var(--parchment); }
.footer-news .checkbox-line a,
.site-footer a {
  color: var(--steam);
  text-decoration: underline;
}
.site-footer a:hover { color: var(--parchment); }
.footer-main {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--sack);
}
.footer-main h3 {
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steam);
  margin-bottom: 0.4rem;
}
.footer-main a,
.footer-main p { display: block; margin: 0 0 0.35rem; }
.footer-copy {
  margin-top: 1.3rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--sack);
  font-size: 0.92rem;
  color: var(--parchment);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  background: var(--sack);
  color: var(--cacao);
  border: 2px dashed var(--cacao);
  padding: 0.75rem 1rem;
  font-weight: 600;
  box-shadow: 4px 4px 0 var(--cherry);
}

.side-card {
  background: var(--sack);
  border: 2px dashed var(--cacao);
  padding: 1rem;
}

@media (min-width: 760px) {
  .steam-band .band-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
  .product-detail {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .cart-layout,
  .checkout-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.75fr);
    align-items: start;
  }
  .about-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
  .footer-main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  .roast-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }
  .brand { grid-column: 1; min-width: 0; }
  .menu-toggle { display: inline-flex; margin-left: 0; grid-column: 2; }
  .cart-link { margin-left: 0; grid-column: 3; }
  .cart-link > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.4rem 0 0.6rem; }
  .parchment-panel {
    box-shadow: 6px 6px 0 var(--cherry);
    padding: 1.2rem 1rem 1.15rem;
  }
  .parchment-panel h1 { font-size: clamp(1.45rem, 8vw, 1.85rem); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .sack-label,
  .sack-label:nth-child(n) {
    width: min(20rem, 88vw);
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .sack-label:nth-child(odd) { transform: rotate(-1.2deg); margin-top: 1rem; }
  .sack-label:nth-child(even) { transform: rotate(1.3deg); margin-top: 1.6rem; }
  .legal-wrap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .steam-wisp { animation: none; }
}
