:root {
  --cream: #f8f3ec;
  --warm: #fdfaf6;
  --kraft: #dfccb4;
  --sand: #ede3d6;
  --taupe: #c9b99e;
  --olive-line: #777466;
  --olive-soft: rgba(86, 88, 74, 0.24);
  --olive: #4f5a43;
  --deep-brown: #4a3728;
  --espresso: #2c1810;
  --ink: #231b15;
  --muted: #857a6d;
  --error: #8b3f2f;
  --success: #4f5d3f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --hand: "Reenie Beanie", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: none;
}

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

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(22px, 4vw, 40px);
  border-bottom: 0.5px solid var(--olive-soft);
  background: rgba(248, 243, 236, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--espresso);
  font-family: var(--serif);
  font-size: 1.38rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 118px;
  height: auto;
}

.desktop-nav,
.mobile-nav,
.site-footer nav {
  align-items: center;
  gap: 24px;
}

.desktop-nav {
  display: flex;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active,
.site-footer a:hover {
  color: var(--ink);
}

.desktop-nav a.is-active {
  padding-bottom: 6px;
  border-bottom: 0.5px solid var(--olive-line);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 25px;
  border: 0;
  color: var(--warm) !important;
  background: var(--espresso);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0.5px solid var(--olive-soft);
  background: transparent;
  cursor: pointer;
}

.mobile-menu-button span[aria-hidden="true"] {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
}

.mobile-menu-button span[aria-hidden="true"] + span[aria-hidden="true"] {
  margin-top: 6px;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  padding: 16px 20px 22px;
  border-bottom: 0.5px solid var(--olive-soft);
  background: var(--cream);
}

.shop-hero {
  position: relative;
  display: flex;
  min-height: 72vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 2rem 4.5rem;
  background: linear-gradient(160deg, #f5ede0 0%, var(--cream) 45%, #ede0cc 100%);
}

.shop-hero::before {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(201, 185, 158, 0.22), transparent 70%);
}

.hero-copy {
  position: relative;
  max-width: 880px;
  text-align: center;
}

.eyebrow,
.status-label,
.classification,
.product-facts dt,
.field span,
.choice-group legend {
  color: var(--olive);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0;
}

h1 {
  max-width: none;
  font-size: clamp(3rem, 7.4vw, 7rem);
  line-height: 1;
}

.hero-copy p:last-child,
.release-note p:last-child,
.order-intro p,
.product-panel p,
.form-note p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.hero-copy p:last-child {
  max-width: 650px;
  margin: 24px auto 0;
}

.handwritten {
  position: absolute;
  right: clamp(26px, 9vw, 150px);
  bottom: clamp(28px, 7vw, 72px);
  max-width: 220px;
  margin: 0;
  color: var(--deep-brown);
  font-family: var(--hand);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
  transform: rotate(-3deg);
}

.release-section,
.order-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) clamp(20px, 5vw, 62px);
}

.release-note {
  display: block;
  padding: 28px 0 42px;
  border-top: 0.5px solid var(--olive-soft);
}

.release-note h2,
.order-intro h2 {
  color: var(--deep-brown);
  font-size: clamp(2.2rem, 4.8vw, 4.5rem);
  line-height: 0.98;
}

.release-note p:last-child {
  max-width: 560px;
  margin: 28px 0 0;
}

.product-catalog {
  display: grid;
  gap: clamp(46px, 7vw, 82px);
}

.product-group {
  display: grid;
  gap: 22px;
}

.group-heading {
  display: block;
  padding-top: 8px;
}

.group-heading h2 {
  max-width: 640px;
  color: var(--deep-brown);
  font-size: clamp(2.05rem, 4vw, 3.65rem);
  line-height: 1;
}

.product-grid {
  display: grid;
  gap: 18px;
}

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

.product-panel {
  position: relative;
  display: flex;
  min-height: 540px;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  border: 0.75px solid var(--olive-line);
  border-radius: 18px;
  background: rgba(253, 250, 246, 0.72);
  box-shadow: 0 14px 46px rgba(44, 24, 16, 0.035);
}

.product-panel::after {
  content: none;
}

.product-panel-feature {
  background: rgba(223, 204, 180, 0.24);
}

.product-panel-soon {
  background: rgba(237, 227, 214, 0.36);
}

.product-panel-soon .panel-button {
  margin-top: auto;
}

.product-panel-object {
  min-height: 780px;
}

.coffee-grid .product-panel {
  min-height: 500px;
}

.product-media {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.product-media img {
  display: block;
  width: 100%;
  border: 0.5px solid rgba(79, 90, 67, 0.16);
  border-radius: 14px;
  background: rgba(253, 250, 246, 0.58);
}

.tote-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tote-media img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--sand);
}

.coaster-media {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: 330px;
}

.coaster-media img {
  height: 100%;
  object-fit: cover;
}

.coaster-media-main {
  grid-row: span 2;
}

.status-label {
  margin: 0 0 18px;
}

.product-panel h2 {
  max-width: 320px;
  color: var(--deep-brown);
  font-size: clamp(2.2rem, 3.4vw, 3.25rem);
  line-height: 0.95;
}

.product-panel-object h2 + p {
  margin-top: 28px !important;
}

.product-panel-object p + p {
  margin-top: 14px !important;
}

.classification {
  min-height: 32px;
  margin: 18px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.product-panel p:not(.status-label, .classification, .supporting-line) {
  margin: 0;
}

.supporting-line {
  margin: 16px 0 0;
  color: var(--deep-brown) !important;
  font-family: var(--serif);
  font-size: 1.36rem !important;
  font-style: italic;
  line-height: 1.28 !important;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: auto 0 24px;
  padding-top: 32px;
}

.single-fact {
  grid-template-columns: 1fr;
  margin-top: 28px;
}

.product-facts div {
  padding-top: 14px;
  border-top: 0.5px solid var(--olive-soft);
}

.product-facts dt {
  margin-bottom: 7px;
  color: var(--muted);
}

.product-facts dd {
  margin: 0;
  color: var(--deep-brown);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.coaster-pricing {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 30px 0 0;
}

.coaster-pricing div {
  padding-top: 12px;
  border-top: 0.5px solid var(--olive-soft);
}

.coaster-pricing dt {
  margin-bottom: 6px;
  color: var(--olive);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.coaster-pricing dt::after {
  content: "";
}

.coaster-pricing div:nth-child(n + 2) dt::after {
  content: "";
}

.coaster-pricing dd {
  margin: 0;
  color: var(--deep-brown);
  font-family: var(--serif);
  font-size: 1.55rem;
}

.product-note {
  position: relative;
  z-index: 1;
  margin: 18px 0 36px !important;
  padding-top: 0;
  color: var(--deep-brown) !important;
  font-family: var(--serif);
  font-size: 1.2rem !important;
  font-style: italic;
  line-height: 1.35 !important;
}

.panel-button,
.submit-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0.75px solid var(--olive-line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.panel-button:hover,
.submit-button:hover {
  background: var(--ink);
  color: var(--warm);
}

.panel-button-disabled,
.panel-button-disabled:hover {
  cursor: not-allowed;
  color: rgba(35, 27, 21, 0.42);
  border-color: rgba(86, 88, 74, 0.2);
  background: transparent;
}

.order-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(30px, 7vw, 92px);
  align-items: start;
  padding-bottom: clamp(70px, 10vw, 120px);
}

.order-intro {
  position: sticky;
  top: 104px;
}

.order-intro h2:focus {
  outline: 2px solid rgba(79, 90, 67, 0.32);
  outline-offset: 8px;
}

.order-intro p {
  max-width: 360px;
  margin: 24px 0 0;
}

.order-form {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
  border: 0.75px solid var(--olive-line);
  border-radius: 18px;
  background: rgba(253, 250, 246, 0.72);
  box-shadow: 0 14px 46px rgba(44, 24, 16, 0.035);
}

.form-note {
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--olive-soft);
}

.form-note p {
  margin: 0;
}

.field-grid,
.item-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field,
.choice-group {
  display: grid;
  gap: 9px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span,
.choice-group legend {
  margin-bottom: 2px;
  color: var(--deep-brown);
}

input,
select,
textarea {
  width: 100%;
  border: 0.5px solid var(--olive-soft);
  border-radius: 0;
  color: var(--ink);
  background: rgba(248, 243, 236, 0.78);
  outline: none;
}

input,
select {
  height: 48px;
  padding: 0 13px;
}

textarea {
  min-height: 128px;
  resize: vertical;
  padding: 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--olive-line);
  box-shadow: 0 0 0 3px rgba(79, 90, 67, 0.11);
}

input:disabled,
select:disabled {
  cursor: not-allowed;
  color: rgba(35, 27, 21, 0.42);
  background: rgba(237, 227, 214, 0.42);
}

.choice-group {
  padding: 0;
  margin: 0;
  border: 0;
}

.item-choice-row {
  align-items: start;
  padding: 16px 0;
  border-top: 0.5px solid var(--olive-soft);
}

.item-choice-row:first-of-type {
  margin-top: 6px;
}

.quantity-field {
  min-width: 0;
}

.custom-quantity-field {
  grid-column: 2;
}

.item-choice-row > .field-error {
  grid-column: 2;
}

.choice-group > .field-error {
  grid-column: 1 / -1;
}

.choice-group > .field-error:empty {
  min-height: 0;
}

.choice-group + .field-wide {
  margin-top: -8px;
}

.choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--deep-brown);
  font-size: 0.95rem;
  line-height: 1.55;
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--olive);
}

.acknowledgement {
  padding-top: 4px;
}

.field-error {
  min-height: 18px;
  color: var(--error);
  font-size: 0.76rem;
  line-height: 1.45;
}

.form-message {
  margin: 0;
  padding: 14px 16px;
  color: var(--error);
  border: 0.5px solid rgba(139, 63, 47, 0.32);
  background: rgba(139, 63, 47, 0.07);
  font-size: 0.86rem;
  line-height: 1.55;
}

.form-message[data-type="success"] {
  color: var(--success);
  border-color: rgba(79, 93, 63, 0.28);
  background: rgba(79, 93, 63, 0.09);
}

.form-message[data-type="loading"] {
  color: var(--deep-brown);
  border-color: var(--olive-soft);
  background: rgba(223, 204, 180, 0.24);
}

.submit-button {
  width: min(100%, 310px);
  color: var(--warm);
  background: var(--ink);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.success-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 27, 21, 0.38);
}

.success-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: clamp(28px, 5vw, 44px);
  border: 0.75px solid var(--olive-line);
  border-radius: 18px;
  background: var(--warm);
  box-shadow: 0 18px 52px rgba(44, 24, 16, 0.16);
}

.success-modal-card h2 {
  color: var(--deep-brown);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
}

.success-modal-card p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.success-modal-card .panel-button {
  margin-top: 28px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 4vw, 56px);
  border-top: 0.5px solid var(--olive-soft);
  color: var(--muted);
  background: var(--ink);
}

.site-footer div {
  color: var(--warm);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: rgba(253, 250, 246, 0.38);
  font-size: 0.76rem;
}

.site-footer a {
  color: rgba(253, 250, 246, 0.46);
}

.site-footer a:hover {
  color: var(--warm);
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 14px;
  }

  .desktop-nav a {
    font-size: 0.66rem;
  }

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

  .product-grid:not(.objects-grid) .product-panel-soon {
    grid-column: 1 / -1;
    min-height: 480px;
  }

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

  .product-panel-object {
    min-height: 740px;
  }
}

@media (max-width: 840px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
  }

  .shop-hero,
  .release-note,
  .group-heading,
  .order-section {
    grid-template-columns: 1fr;
  }

  .shop-hero {
    min-height: auto;
  }

  .handwritten {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 28px 0 0 auto;
  }

  .order-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .brand img {
    width: 102px;
  }

  .site-header {
    min-height: 64px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.7rem);
  }

  .product-grid,
  .coffee-grid,
  .objects-grid,
  .field-grid,
  .item-choice-row {
    grid-template-columns: 1fr;
  }

  .tote-media {
    grid-template-columns: 1fr 1fr;
  }

  .tote-media img {
    height: auto;
  }

  .coaster-media {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .coaster-media-main {
    grid-row: auto;
  }

  .coaster-media img {
    height: auto;
    max-height: 360px;
  }

  .custom-quantity-field {
    grid-column: auto;
  }

  .item-choice-row > .field-error {
    grid-column: auto;
  }

  .product-panel,
  .product-panel-soon {
    grid-column: auto;
    min-height: auto;
  }

  .product-facts {
    margin-top: 30px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
