:root {
  --cream: #f6efe3;
  --cream-2: #efe5d2;
  --honey: #d4a24c;
  --honey-deep: #b8862e;
  --cocoa: #3a2418;
  --cocoa-soft: #5a3d2c;
  --ink: #1d1410;
  --rose: #c47a6e;
  --leaf: #6b7a4a;
  --line: rgba(58, 36, 24, 0.18);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Subtle paper grain across the whole site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.23  0 0 0 0 0.14  0 0 0 0 0.09  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: multiply;
}

/* ============ Navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(246, 239, 227, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--cocoa);
  letter-spacing: 0.5px;
}

.brand-mark {
  width: 28px; height: 28px;
  color: var(--honey-deep);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--cocoa);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--honey-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover { color: var(--honey-deep); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 80px 40px 100px;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--honey-deep);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cocoa);
  margin-bottom: 32px;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-title .line-1 { animation-delay: 0.1s; }
.hero-title .line-2 { animation-delay: 0.25s; padding-left: 8%; }
.hero-title .line-3 { animation-delay: 0.4s; padding-left: 18%; }

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--honey-deep);
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  max-width: 480px;
  font-size: 18px;
  color: var(--cocoa-soft);
  margin-bottom: 36px;
  opacity: 0;
  animation: rise 0.9s 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.9s 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-mark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  color: var(--honey-deep);
  opacity: 0.5;
  z-index: 1;
  animation: drift 22s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-48%) rotate(8deg); }
}

@media (max-width: 900px) {
  .hero-mark { width: 320px; height: 320px; right: -100px; opacity: 0.3; }
  .hero { padding: 60px 24px 80px; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--cocoa);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  color: var(--cocoa);
}

.btn-primary {
  background: var(--cocoa);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--honey-deep);
  border-color: var(--honey-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 36, 24, 0.25);
}

.btn-ghost:hover {
  background: var(--cocoa);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============ Marquee ============ */
.marquee {
  background: var(--cocoa);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  gap: 32px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
}

.marquee-track span {
  flex-shrink: 0;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ============ Section heads ============ */
.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
  padding: 0 20px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cocoa);
  margin: 12px 0 20px;
}

.section-lead {
  color: var(--cocoa-soft);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto;
}

/* ============ Menu / Products ============ */
.menu {
  padding: 100px 40px;
  position: relative;
  z-index: 2;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.25s; }
.product-card:nth-child(4) { animation-delay: 0.35s; }
.product-card:nth-child(5) { animation-delay: 0.45s; }
.product-card:nth-child(6) { animation-delay: 0.55s; }

.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-2);
  margin-bottom: 18px;
  border-radius: 2px;
}

.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--honey-deep);
  background: linear-gradient(135deg, var(--cream-2), var(--cream));
}

.product-image-placeholder svg {
  width: 60px; height: 60px;
  opacity: 0.4;
}

.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--cream);
  color: var(--cocoa);
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}

.product-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--cocoa);
  margin-bottom: 4px;
  line-height: 1.2;
}

.product-desc {
  font-size: 14px;
  color: var(--cocoa-soft);
  margin-bottom: 14px;
  flex: 1;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-price {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--cocoa);
  font-weight: 500;
}

.product-price small {
  font-size: 12px;
  color: var(--cocoa-soft);
  font-weight: 300;
  font-family: var(--sans);
  margin-left: 4px;
}

.btn-add {
  background: transparent;
  border: 1px solid var(--cocoa);
  color: var(--cocoa);
  padding: 8px 18px;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add:hover {
  background: var(--honey-deep);
  border-color: var(--honey-deep);
  color: var(--cream);
}

.btn-add.added {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--cream);
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--cocoa-soft);
  padding: 60px 20px;
}

.dots { display: inline-block; }
.dots i {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--cocoa-soft);
  border-radius: 50%;
  margin: 0 2px;
  animation: pulse 1.2s infinite;
}
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

@media (max-width: 720px) {
  .menu { padding: 60px 20px; }
  .product-grid { gap: 36px 20px; }
}

/* ============ Story ============ */
.story {
  background: var(--cocoa);
  color: var(--cream);
  padding: 120px 40px;
  position: relative;
  z-index: 2;
}

.story-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-text .eyebrow { color: var(--honey); }

.story-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin: 12px 0 28px;
  color: var(--cream);
}

.story-text p {
  margin-bottom: 18px;
  color: rgba(246, 239, 227, 0.78);
  font-size: 17px;
}

.values {
  list-style: none;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 239, 227, 0.15);
}

.values li {
  padding: 12px 0;
  color: rgba(246, 239, 227, 0.85);
  font-size: 15px;
}

.values li strong {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--honey);
  margin-right: 8px;
}

.story-card {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.badge {
  position: absolute;
  inset: 0;
  color: var(--honey);
  animation: spin 30s linear infinite;
}

.badge svg { width: 100%; height: 100%; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.story-card blockquote {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--cream);
  padding: 60px;
  line-height: 1.4;
}

.story-card cite {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--honey);
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .story { padding: 80px 24px; }
  .story-grid { grid-template-columns: 1fr; gap: 60px; }
  .story-card { max-width: 360px; margin: 0 auto; }
}

/* ============ Order form ============ */
.order {
  padding: 120px 40px;
  position: relative;
  z-index: 2;
}

.order-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--cream-2);
  padding: 48px;
  border-radius: 4px;
  position: relative;
}

.order-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  pointer-events: none;
}

.cart-summary {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}

.cart-summary h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--cocoa);
  margin-bottom: 16px;
}

.cart-empty {
  color: var(--cocoa-soft);
  font-style: italic;
  font-size: 15px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(58, 36, 24, 0.08);
}

.cart-item:last-child { border-bottom: 0; }

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--cocoa);
}

.cart-item-price {
  font-size: 13px;
  color: var(--cocoa-soft);
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty button {
  width: 26px; height: 26px;
  border: 1px solid var(--cocoa);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--cocoa);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty button:hover { background: var(--cocoa); color: var(--cream); }

.cart-qty span {
  min-width: 20px;
  text-align: center;
  font-family: var(--serif);
}

.cart-remove {
  background: none;
  border: 0;
  color: var(--rose);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 4px 8px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--cocoa);
}

.cart-total strong { font-size: 22px; font-weight: 500; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.order-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--cocoa);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.order-form label.full { display: block; }

.order-form label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  transition: border-color 0.2s, background 0.2s;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--honey-deep);
  background: white;
}

.order-form textarea {
  resize: vertical;
  font-family: var(--sans);
}

#submit-btn {
  width: 100%;
  margin-top: 8px;
}

.form-status {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  min-height: 20px;
}

.form-status.success { color: var(--leaf); }
.form-status.error { color: var(--rose); }

@media (max-width: 600px) {
  .order { padding: 60px 20px; }
  .order-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ Visit ============ */
.visit {
  background: var(--cream-2);
  padding: 100px 40px;
  position: relative;
  z-index: 2;
}

.visit-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.visit h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  margin: 12px 0 28px;
  color: var(--cocoa);
  line-height: 1;
}

.address {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cocoa);
  margin-bottom: 32px;
  line-height: 1.5;
}

.hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  max-width: 320px;
}

.hours dt {
  font-weight: 500;
  color: var(--cocoa);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hours dd {
  color: var(--cocoa-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}

.visit-contact { display: flex; flex-direction: column; }

.big-link {
  display: block;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--cocoa);
  margin: 12px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  transition: color 0.2s;
}

.big-link:hover { color: var(--honey-deep); }

@media (max-width: 800px) {
  .visit { padding: 60px 24px; }
  .visit-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* ============ Footer ============ */
.footer {
  background: var(--cocoa);
  color: rgba(246, 239, 227, 0.6);
  padding: 28px 40px;
  font-size: 13px;
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-link {
  color: rgba(246, 239, 227, 0.4);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.admin-link:hover { color: var(--honey); }
