/* ==========================================================================
   ZRNO Coffee Roasters — stylesheet
   1. Tokens            7. Home sections      13. Checkout
   2. Reset & base      8. Product cards      14. Order confirmed
   3. Layout & type     9. Shop (catalogue)   15. About & contact
   4. Buttons & forms  10. Product page       16. Toast
   5. Header           11. Quantity stepper   17. Responsive
   6. Footer           12. Cart
   Breakpoints: 640px · 900px · 1100px
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --bg: #f6f0e6;
  --surface: #fffaf2;
  --ink: #1f1a17;
  --muted: #6f655c;
  --line: rgba(31, 26, 23, 0.12);
  --line-strong: rgba(31, 26, 23, 0.28);
  --accent: #c2562e;
  --accent-dark: #a54420;
  --olive: #5b6b4a;
  --sand: #ead9c2;
  --error: #b3261e;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow: 0 18px 40px -22px rgba(31, 26, 23, 0.35);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 4.5rem;
}

/* 2. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

fieldset {
  border: 0;
  min-width: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 3. Layout & type
   ========================================================================== */
.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container--narrow {
  max-width: 46rem;
}

.section {
  padding-block: 4rem;
}

.section--tight {
  padding-block: 2.5rem;
}

.section--surface {
  background-color: var(--surface);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.title-xl {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
}

.title-lg {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.title-md {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin-top: 0.6rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1rem;
  transition: color 0.2s var(--ease);
}

.text-link:hover {
  color: var(--accent);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 4. Buttons & forms
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--ink);
  color: var(--surface);
}

.btn--primary:hover {
  background-color: var(--accent);
}

.btn--accent {
  background-color: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background-color: var(--accent-dark);
}

.btn--outline {
  border-color: var(--line-strong);
}

.btn--outline:hover {
  border-color: var(--ink);
  background-color: var(--surface);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label,
.field__label {
  font-size: 0.85rem;
  font-weight: 700;
}

.field__optional {
  font-weight: 400;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(194, 86, 46, 0.18);
}

.input::placeholder {
  color: #a0958a;
}

textarea.input {
  min-height: 8rem;
  resize: vertical;
}

select.input {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1a17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.1rem;
}

.field.has-error .input {
  border-color: var(--error);
}

.field__error {
  font-size: 0.82rem;
  color: var(--error);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-success {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background-color: rgba(91, 107, 74, 0.14);
  color: #36452a;
  font-weight: 500;
}

/* 5. Header
   ========================================================================== */
.announcement {
  padding: 0.55rem 1rem;
  background-color: var(--ink);
  color: var(--surface);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background-color: rgba(246, 240, 230, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.logo__mark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.logo__sub {
  margin-top: 0.25rem;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

.nav__link {
  position: relative;
  padding-block: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cart-link:hover {
  border-color: var(--ink);
  background-color: var(--surface);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding-inline: 0.35rem;
  border-radius: var(--radius-full);
  background-color: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.cart-count.is-bumped {
  animation: bump 0.35s var(--ease);
}

@keyframes bump {
  50% {
    transform: scale(1.35);
  }
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-full);
}

.menu-toggle span {
  width: 1.1rem;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--menu-top, var(--header-height));
  z-index: 40;
  padding: 1.5rem 1.25rem 2rem;
  overflow-y: auto;
  background-color: var(--bg);
}

.mobile-menu__link {
  display: block;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

/* 6. Footer
   ========================================================================== */
.site-footer {
  margin-top: 2rem;
  padding-block: 3.5rem 2rem;
  background-color: var(--ink);
  color: var(--surface);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer .logo__sub {
  color: rgba(255, 250, 242, 0.6);
}

.site-footer__about {
  max-width: 22rem;
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: rgba(255, 250, 242, 0.7);
}

.footer-title {
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 250, 242, 0.55);
}

.footer-list {
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.footer-list a:hover {
  color: #f0b98d;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 250, 242, 0.14);
  font-size: 0.82rem;
  color: rgba(255, 250, 242, 0.6);
}

.site-footer__bottom a {
  color: var(--surface);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 7. Home sections
   ========================================================================== */
.hero {
  padding-block: 3rem 3.5rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__title {
  margin-top: 1rem;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__text {
  max-width: 30rem;
  margin-top: 1.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__meta .icon {
  color: var(--olive);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 21rem;
  padding: 2rem 1rem 0;
  border-radius: 14rem 14rem var(--radius-lg) var(--radius-lg);
  background: linear-gradient(180deg, var(--sand), #f1e4d1);
}

.hero__bag {
  width: 40%;
  max-width: 16.5rem;
  filter: drop-shadow(0 22px 22px rgba(31, 26, 23, 0.18));
}

.hero__bag:nth-child(1) {
  margin-right: -7%;
  transform: rotate(-7deg) translateY(4%);
}

.hero__bag:nth-child(2) {
  z-index: 1;
  width: 46%;
  max-width: 19rem;
}

.hero__bag:nth-child(3) {
  margin-left: -7%;
  transform: rotate(7deg) translateY(4%);
}

.hero__stamp {
  position: absolute;
  top: 1.25rem;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(10deg);
}

.hero__stamp strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0;
}

.values {
  display: grid;
  gap: 1.5rem;
}

.value {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background-color: var(--sand);
  color: var(--ink);
}

.value__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.value__text {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.roasts {
  display: grid;
  gap: 1rem;
}

.roast-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 13rem;
  padding: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--surface);
  transition: transform 0.3s var(--ease);
}

.roast-card:hover {
  transform: translateY(-4px);
}

.roast-card--light {
  background-color: #c98a55;
}

.roast-card--medium {
  background-color: #7a4a2b;
}

.roast-card--dark {
  background-color: #2b211c;
}

.roast-card__bean {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 9rem;
  height: 9rem;
  opacity: 0.16;
}

.roast-card__title {
  font-size: 1.6rem;
}

.roast-card__text {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  opacity: 0.85;
}

.roast-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.story {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.story__text p {
  margin-top: 1.1rem;
  color: var(--muted);
}

.story__text .btn {
  margin-top: 1.75rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg);
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.stat__label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.quotes {
  display: grid;
  gap: 1rem;
}

.quote {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.quote__stars {
  color: var(--accent);
  letter-spacing: 0.15em;
}

.quote__text {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
}

.quote__author {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.newsletter {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--olive);
  color: var(--surface);
}

.newsletter p {
  margin-top: 0.6rem;
  opacity: 0.85;
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.newsletter__form .input {
  flex: 1 1 14rem;
  border-color: transparent;
}

.newsletter__message {
  width: 100%;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 8. Product cards
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.card__tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 10% 14% 6%;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--tile, var(--sand));
}

.card__tile .art {
  width: 100%;
  height: 100%;
  transition: transform 0.45s var(--ease);
}

.card:hover .card__tile .art {
  transform: translateY(-6px) rotate(-2deg);
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background-color: var(--ink);
  color: var(--surface);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge--new {
  background-color: var(--accent);
  color: #fff;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 0.9rem;
}

.card__category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__name {
  margin-top: 0.25rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

/* Makes the whole card clickable while keeping the button usable */
.card__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card__notes {
  margin-top: 0.3rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

.card__price {
  font-weight: 700;
}

.card__price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.card__add {
  position: relative;
  z-index: 1;
}

/* 9. Shop (catalogue)
   ========================================================================== */
.page-head {
  padding-block: 2.75rem 2rem;
}

.page-head h1 {
  margin-top: 0.6rem;
}

.page-head p {
  max-width: 36rem;
  margin-top: 0.9rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  opacity: 0.5;
}

.toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-active {
  border-color: var(--ink);
  background-color: var(--ink);
  color: var(--surface);
}

.toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.toolbar__selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toolbar__selects .input {
  width: auto;
  padding-block: 0.55rem;
  font-size: 0.9rem;
}

.toolbar__count {
  font-size: 0.9rem;
  color: var(--muted);
}

.empty {
  padding: 3.5rem 1.5rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.empty h2 {
  font-size: 1.6rem;
}

.empty p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.empty .btn {
  margin-top: 1.5rem;
}

/* 10. Product page
   ========================================================================== */
.product {
  display: grid;
  gap: 2rem;
  padding-block: 1.5rem 3rem;
}

.product__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 8% 20% 5%;
  border-radius: var(--radius-lg);
  background-color: var(--tile, var(--sand));
}

.product__media .art {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 26px 24px rgba(31, 26, 23, 0.16));
}

.product__name {
  margin-top: 0.5rem;
}

.product__short {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.product__price {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.note {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background-color: var(--sand);
  font-size: 0.85rem;
  font-weight: 500;
}

.roast-meter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
}

.roast-meter__dots {
  display: flex;
  gap: 0.3rem;
}

.roast-meter__dot {
  width: 1.6rem;
  height: 0.45rem;
  border-radius: var(--radius-full);
  background-color: var(--line);
}

.roast-meter__dot.is-on {
  background-color: var(--ink);
}

.options {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.option__label {
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill span {
  display: inline-block;
  padding: 0.55rem 1.05rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.pill span:hover {
  border-color: var(--ink);
}

.pill input:checked + span {
  border-color: var(--ink);
  background-color: var(--ink);
  color: var(--surface);
}

.pill input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.buy-row .btn {
  flex: 1 1 12rem;
}

.perks {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.perks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.perks .icon {
  color: var(--olive);
}

.product-details {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.product-details p {
  margin-top: 0.9rem;
  color: var(--muted);
}

.spec-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.spec-table > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.spec-table dt {
  color: var(--muted);
}

.spec-table dd {
  font-weight: 500;
  text-align: right;
}

.spec-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.spec-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.spec-list .icon {
  margin-top: 0.15rem;
  color: var(--olive);
}

/* 11. Quantity stepper
   ========================================================================== */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-full);
  background-color: var(--surface);
}

.stepper__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.9rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.stepper__btn:hover {
  color: var(--accent);
}

.stepper__value {
  min-width: 1.8rem;
  font-weight: 700;
  text-align: center;
}

.stepper--sm .stepper__btn {
  width: 2.1rem;
  height: 2.2rem;
  font-size: 1.05rem;
}

/* 12. Cart
   ========================================================================== */
.cart-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding-bottom: 3rem;
}

.cart-items {
  border-top: 1px solid var(--line);
}

.cart-item {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.cart-item__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 0.5rem 0.7rem 0.3rem;
  border-radius: var(--radius-sm);
  background-color: var(--tile, var(--sand));
}

.cart-item__thumb .art {
  width: 100%;
  height: 100%;
}

.cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cart-item__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}

.cart-item__name:hover {
  color: var(--accent);
}

.cart-item__variant {
  margin-top: 0.15rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.cart-item__total {
  font-weight: 700;
  white-space: nowrap;
}

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}

.cart-item__remove {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-item__remove:hover {
  color: var(--error);
}

.summary {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.summary h2 {
  font-size: 1.4rem;
}

.summary__rows {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.1rem;
  font-size: 0.95rem;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.summary__row--total {
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 700;
}

.summary .btn {
  margin-top: 1.25rem;
}

.shipping-progress {
  margin-top: 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.shipping-progress__track {
  height: 0.4rem;
  margin-top: 0.45rem;
  overflow: hidden;
  border-radius: var(--radius-full);
  background-color: var(--line);
}

.shipping-progress__bar {
  height: 100%;
  border-radius: var(--radius-full);
  background-color: var(--olive);
  transition: width 0.4s var(--ease);
}

.summary__items {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.summary__item {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.92rem;
}

.summary__item .cart-item__thumb {
  padding: 0.3rem 0.4rem 0.2rem;
}

.summary__item-name {
  font-weight: 700;
  line-height: 1.3;
}

.summary__item-variant {
  font-size: 0.82rem;
  color: var(--muted);
}

/* 13. Checkout
   ========================================================================== */
.checkout-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding-bottom: 3rem;
}

.checkout-form {
  display: grid;
  gap: 2rem;
}

.fieldset legend {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.radio-cards {
  display: grid;
  gap: 0.6rem;
}

.radio-card {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.radio-card:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.radio-card input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.radio-card__body {
  flex: 1;
}

.radio-card__title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
}

.radio-card__text {
  font-size: 0.88rem;
  color: var(--muted);
}

.demo-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background-color: var(--sand);
  font-size: 0.9rem;
}

.demo-note .icon {
  margin-top: 0.15rem;
}

/* 14. Order confirmed
   ========================================================================== */
.confirmed {
  padding-block: 3.5rem 4rem;
  text-align: center;
}

.confirmed__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background-color: var(--olive);
  color: var(--surface);
}

.confirmed__icon .icon {
  width: 2rem;
  height: 2rem;
}

.confirmed p {
  margin-top: 0.9rem;
}

.confirmed__box {
  margin-top: 2.25rem;
  text-align: left;
}

.confirmed__meta {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.confirmed__meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.confirmed__meta dd {
  margin-top: 0.2rem;
  white-space: pre-line;
}

.confirmed__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* 15. About & contact
   ========================================================================== */
.about-hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 2.5rem 3rem;
}

.about-hero__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4%;
  min-height: 18rem;
  padding: 2rem 1.5rem 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--sand), #f1e4d1);
}

.about-hero__visual .art {
  width: 30%;
  max-width: 11rem;
}

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.step h3 {
  font-size: 1.3rem;
}

.step p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 3rem;
}

.contact-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.contact-list dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  margin-top: 0.2rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 40rem;
  padding-bottom: 1.25rem;
  color: var(--muted);
}

.not-found {
  padding-block: 5rem;
  text-align: center;
}

.not-found__code {
  font-size: clamp(5rem, 18vw, 9rem);
  color: var(--accent);
}

.not-found p {
  margin-top: 0.75rem;
}

.not-found .btn {
  margin-top: 2rem;
}

/* 16. Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.8rem 0.9rem 0.8rem 1.25rem;
  border-radius: var(--radius-full);
  background-color: var(--ink);
  color: var(--surface);
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast__link {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background-color: var(--accent);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

/* 17. Responsive
   ========================================================================== */
@media (min-width: 40rem) {
  .container {
    padding-inline: 2rem;
  }

  .values,
  .quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roasts,
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem 1.5rem;
  }

  .form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid__full {
    grid-column: 1 / -1;
  }

  .cart-item {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1.5rem;
  }

  .confirmed__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter {
    padding: 3rem;
  }

  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 56.25rem) {
  .section {
    padding-block: 5.5rem;
  }

  .nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }

  .hero {
    padding-block: 4.5rem 5rem;
  }

  .hero__grid,
  .story,
  .about-hero,
  .newsletter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }

  .hero__visual {
    min-height: 30rem;
  }

  .hero__stamp {
    top: 2rem;
    right: 1rem;
    width: 7.5rem;
    height: 7.5rem;
    font-size: 0.68rem;
  }

  .values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toolbar__row {
    flex-wrap: nowrap;
  }

  .product {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    padding-block: 2rem 4.5rem;
  }

  .product__media {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }

  .product-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    padding-block: 3.5rem;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 3.5rem;
  }

  .summary--sticky {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 4rem;
  }
}

@media (min-width: 68.75rem) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
