@charset "UTF-8";

:root {
  --bg-dark: #171411;
  --surface-dark: #29231e;
  --surface-deep: #211b17;
  --ink-light: #f2e9dc;
  --muted-light: #d3c2aa;
  --gold: #e2b777;
  --gold-on-dark: #e6bf87;
  --gold-hover: #f1ce94;
  --light: #f5f0e8;
  --paper: #fdfaf5;
  --light-alt: #e9e1d5;
  --ink: #30251e;
  --subtle: #66564a;
  --border: #a99a88;
  --line-dark: #7e6c57;
  --danger: #a02522;
  --success: #195b38;
  --radius: 8px;
  --container: 1200px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--light);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 20px;
  z-index: 100;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--ink);
}

.skip-link:focus {
  inset-block-start: 5px;
}

:focus-visible {
  outline: 3px solid var(--gold-hover);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 10;
  background: #100e0c;
  border-bottom: 1px solid #4e4032;
  color: var(--ink-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  font-size: 26px;
  font-weight: 700;
}

.brand img {
  object-fit: contain;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: clamp(15px, 3vw, 42px);
}

.primary-nav a,
.header-order {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
}

.primary-nav a {
  font-size: 15px;
}

.primary-nav a:hover {
  color: var(--gold);
}

.header-order {
  gap: 12px;
  padding: 6px 12px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
  font-size: 14px;
  white-space: nowrap;
}

.header-order:hover {
  background: var(--gold);
  color: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 660px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #383028, #24201c 58%, #171411);
  color: var(--ink-light);
  text-align: center;
  isolation: isolate;
}

.lamps {
  position: absolute;
  display: flex;
  justify-content: space-around;
  width: 100%;
  inset-block-start: -12px;
  inset-inline: 0;
  z-index: -1;
  pointer-events: none;
}

.lamps img {
  width: clamp(90px, 14vw, 160px);
  height: auto;
  align-self: flex-start;
}

.lamps img:nth-child(2) {
  transform: translateY(-15px);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 160px 280px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--gold-on-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
}

.hero-eyebrow {
  justify-content: center;
}

.hairline {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 0 auto 24px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.34;
  max-width: 850px;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.hero h1 em,
.story-content h2 em,
.order-aside h2 em {
  color: var(--gold-on-dark);
  font-style: normal;
}

.hero-content > p {
  max-width: 600px;
  margin: 0 auto 25px;
  color: var(--ink-light);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.9;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button-gold {
  background: var(--gold);
  color: var(--ink);
}

.button-gold:hover {
  background: var(--gold-hover);
}

.counter-art {
  position: absolute;
  inset-inline: 0;
  bottom: -12px;
  z-index: 1;
  pointer-events: none;
}

.counter-art img {
  width: min(850px, 108%);
  height: auto;
  margin-inline: auto;
}

.hero-caption {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-light);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.intro-strip {
  background: #e8dfd3;
  border-bottom: 1px solid var(--border);
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding-block: 23px;
}

.intro-content p {
  margin: 0;
  font-size: 18px;
}

.intro-content > span {
  color: var(--subtle);
  font-size: 14px;
}

.section {
  padding-block: 74px;
}

.section-head {
  display: grid;
  align-items: end;
  gap: 18px;
  margin-bottom: 40px;
}

.eyebrow-brown {
  color: #73512e;
}

.section-head h2,
.story-content h2,
.order-aside h2 {
  margin: 0;
  font-size: clamp(31px, 4.5vw, 51px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.section-head > p {
  margin: 0;
  max-width: 420px;
  color: var(--subtle);
  font-size: 17px;
}

.product-section {
  background: var(--light);
}

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

.blend-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.blend-card.is-selected {
  border: 2px solid #69431f;
  box-shadow: 0 0 0 2px #d9b987;
}

.blend-picture {
  aspect-ratio: 5 / 3.5;
  overflow: hidden;
  background: #4b3321;
}

.blend-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blend-detail {
  padding: 21px 22px 24px;
}

.blend-index {
  float: left;
  color: #655344;
  font-family: Georgia, serif;
}

.blend-roast {
  color: #7b512c;
  font-size: 13px;
  font-weight: 700;
}

.blend-detail h3 {
  margin: 8px 0;
  font-size: 25px;
  line-height: 1.5;
}

.blend-note {
  margin: 0 0 9px;
  color: #654323;
  font-weight: 700;
}

.blend-detail > p:not(.blend-roast):not(.blend-note):not(.blend-use) {
  min-height: 52px;
}

.blend-detail p {
  margin-block: 0 10px;
  line-height: 1.75;
}

.blend-use {
  color: var(--subtle);
  font-size: 14px;
}

.blend-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #d7c8b5;
}

.blend-bottom strong {
  white-space: nowrap;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.blend-bottom small {
  font-size: 14px;
}

.choose-blend {
  min-height: 46px;
  padding: 7px 16px;
  border: 2px solid #6e4a2c;
  border-radius: 3px;
  background: transparent;
  color: #4d2f1e;
  cursor: pointer;
  font-weight: 700;
}

.choose-blend:hover,
.choose-blend[aria-pressed="true"] {
  background: #49311f;
  border-color: #49311f;
  color: #fff;
}

.product-hint {
  margin-top: 24px;
  color: var(--subtle);
  font-size: 14px;
}

.story-section {
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--ink-light);
  border-top: 1px solid #63513d;
  border-bottom: 1px solid #63513d;
  padding-block: 86px;
}

.story-grid {
  display: grid;
  align-items: center;
  gap: 52px;
}

.story-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
  min-height: 310px;
  background: repeating-radial-gradient(circle at center, transparent 0 36px, #ac82432a 37px 38px);
}

.mark-ring {
  display: grid;
  place-content: center;
  width: min(260px, 74vw);
  aspect-ratio: 1;
  border: 2px solid #b89965;
  border-radius: 50%;
  color: var(--gold);
  font-size: 46px;
  line-height: 1.45;
  font-weight: 800;
  text-align: center;
  transform: rotate(-8deg);
}

.mark-caption {
  font-family: Georgia, serif;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  font-size: 13px;
}

.story-content h2 {
  margin-bottom: 24px;
}

.story-content > p:not(.eyebrow) {
  max-width: 610px;
  color: var(--ink-light);
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 20px;
  margin-top: 14px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

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

.how-section {
  background: var(--light-alt);
}

.steps {
  display: grid;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  padding: 22px;
  border: 1px solid #b3a28b;
  border-radius: 3px;
  background: rgba(255,255,255,0.34);
}

.steps span {
  display: block;
  color: #76532e;
  font-family: Georgia, serif;
  font-size: 35px;
}

.steps h3 {
  font-size: 21px;
  margin: 10px 0;
}

.steps p {
  margin: 0;
  color: var(--subtle);
}

.order-section {
  background: #241e19;
  color: var(--ink-light);
  padding-block: 90px;
}

.order-grid {
  display: grid;
  gap: 36px;
}

.order-aside h2 {
  margin: 10px 0 22px;
  font-size: clamp(42px, 5vw, 62px);
}

.order-aside > p:not(.eyebrow) {
  max-width: 390px;
  color: var(--ink-light);
  font-size: 17px;
}

.aside-stamp {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  color: var(--gold);
  font-weight: 700;
  font-size: 25px;
}

.aside-stamp small {
  font-size: 14px;
  color: var(--muted-light);
}

.form-panel {
  min-width: 0;
  padding: 26px 20px;
  background: var(--paper);
  border-radius: 5px;
  color: var(--ink);
}

.form-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.form-heading h3 {
  font-size: 26px;
  margin: 0;
}

.form-heading span {
  color: var(--subtle);
  font-size: 13px;
}

.form-row {
  display: grid;
  gap: 16px;
}

.field {
  min-width: 0;
  margin-bottom: 17px;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 15px;
}

.field label span[aria-hidden],
.field legend span[aria-hidden] {
  color: var(--danger);
}

.field input:not([type="radio"]),
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1.5px solid #847363;
  border-radius: 4px;
  background: #fff;
  color: #2b231e;
  outline-offset: 2px;
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #66564a;
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  border-color: #63401e;
  box-shadow: 0 0 0 2px #d5ac76;
}

.field [aria-invalid="true"] {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 1px var(--danger);
}

.field-error {
  display: block;
  color: #972521;
  font-size: 13px;
  font-weight: 700;
}

.field-error:not(:empty) {
  margin-top: 4px;
}

.helper {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  margin-top: 4px;
}

.optional {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 400;
}

.blend-field {
  border: none;
  margin: 0 0 15px;
  padding: 0;
  min-width: 0;
}

.blend-options {
  display: grid;
  gap: 9px;
}

.blend-radio {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1.5px solid #9b8972;
  border-radius: 4px;
  padding: 7px 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.blend-radio:has(input:checked) {
  background: #ede0c9;
  border-color: #69431f;
  box-shadow: inset 0 0 0 1px #69431f;
}

.blend-radio:has(input:focus-visible) {
  outline: 3px solid #a67738;
  outline-offset: 3px;
}

.blend-radio input {
  accent-color: #563820;
  width: 32px;
  height: 32px;
  margin: 0;
}

.blend-field[aria-invalid="true"] .blend-options {
  outline: 2px solid var(--danger);
  outline-offset: 3px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 46px minmax(40px,1fr) 46px;
}

.quantity-stepper input {
  min-width: 0;
  text-align: center;
  direction: ltr;
  border-radius: 0 !important;
  font-variant-numeric: tabular-nums;
}

.quantity-stepper button {
  border: 1.5px solid #695442;
  background: #eee3d5;
  color: #33241b;
  cursor: pointer;
  font-size: 26px;
  font-weight: bold;
  line-height: 1;
}

.quantity-stepper button:hover:not(:disabled) {
  background: #d9c3a6;
}

.quantity-stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block: 18px;
  padding: 16px;
  background: #e9dfce;
  border: 1px solid #a38b6c;
  border-radius: 4px;
}

.total-box span,
.total-box small {
  display: block;
}

.total-box small {
  color: var(--subtle);
  font-size: 12px;
}

.total-box output {
  color: #4b311e;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.form-status {
  min-height: 0;
  color: var(--danger);
  font-weight: 700;
}

.form-status:not(:empty) {
  padding: 12px;
  background: #f8e8e4;
  border: 1px solid var(--danger);
}

.button-dark {
  width: 100%;
  background: #52341f;
  color: #fff;
}

.button-dark:hover {
  background: #392419;
}

.button-dark:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-fineprint {
  color: var(--subtle);
  font-size: 13px;
  margin: 10px 0 0;
}

.success-message {
  margin-top: 16px;
  background: #e5f2e9;
  border: 2px solid var(--success);
  border-radius: 4px;
  padding: 18px;
  color: #174b2f;
  font-weight: 700;
}

.success-message strong {
  display: block;
  direction: ltr;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.site-footer {
  background: #14110f;
  color: var(--ink-light);
  padding-block: 36px;
  border-top: 1px solid #5f4a36;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner strong {
  font-size: 24px;
  color: var(--gold);
}

.footer-inner p {
  margin: 0;
}

.footer-inner > a {
  color: var(--gold);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.credit {
  flex-basis: 100%;
  color: var(--muted-light);
  font-size: 12px;
}

.credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted-light);
}

@media (min-width: 600px) {
  .intro-content {
    flex-direction: row;
    align-items: center;
  }

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

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

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

@media (min-width: 900px) {
  .primary-nav {
    display: flex;
  }

  .hero {
    min-height: 790px;
  }

  .hero-content {
    padding-block: 170px 310px;
  }

  .counter-art {
    bottom: -4px;
  }

  .section {
    padding-block: 106px;
  }

  .section-head {
    grid-template-columns: 1.2fr 0.8fr;
  }

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

  .story-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .order-grid {
    grid-template-columns: 0.72fr 1.28fr;
    align-items: start;
    gap: 66px;
  }

  .form-panel {
    padding: 35px;
  }
}

@media (max-width: 599px) {
  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-block: 115px 230px;
  }

  .lamps img:nth-child(1),
  .lamps img:nth-child(3) {
    opacity: 0.55;
  }

  .hero-caption {
    bottom: 8px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .header-order {
    font-size: 13px;
  }

  .story-section,
  .order-section {
    padding-block: 60px;
  }

  .total-box output {
    font-size: 18px;
  }
}

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

  .button,
  .blend-card {
    transition: none;
  }
}
