@import "tailwindcss";

:root {
  --cream: #fffdf9;
  --paper: #fffdf9;
  --ink: #196e70;
  --teal: #238f91;
  --teal-dark: #176d6f;
  --pink: #ef7996;
  --pink-light: #fff0f3;
  --brown: #a86445;
  --line: #eadfd5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.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; }

.cart-notice {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
  width: min(420px, calc(100% - 36px));
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--teal-dark);
  border: 1px solid #c8e6e2;
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 45px #176d6f2b;
  animation: notice-in .22s ease-out;
}
.cart-notice > div { display: flex; align-items: center; gap: 11px; }
.notice-check { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: white; border-radius: 50%; background: var(--teal); font-weight: 900; }
.cart-notice p { margin: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.cart-notice small { color: #687a77; font-size: 11px; font-weight: 400; }
.notice-actions { flex: 0 0 auto; }
.notice-actions a { padding: 9px 13px; color: white; border-radius: 999px; background: var(--pink); font-size: 12px; font-weight: 800; white-space: nowrap; }
.notice-actions button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #71817e; font-size: 23px; cursor: pointer; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 86px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-script {
  color: var(--teal-dark);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}
.brand-subtitle {
  color: var(--pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 700; }
nav a:not(.nav-order):hover { color: var(--teal-dark); }
.nav-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid var(--teal-dark);
  border-radius: 999px;
}
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; color: white; background: var(--pink); border-radius: 999px; font-size: 11px; }

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 52px;
  padding: 36px 0 72px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--pink); margin-right: 6px; }
h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.045em;
}
h1 { max-width: 650px; font-size: clamp(52px, 6vw, 82px); line-height: .98; }
h1 em {
  color: var(--pink);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.16em;
  font-weight: 500;
}
.hero-text {
  max-width: 560px;
  margin: 28px 0;
  color: #536d69;
  font-size: 18px;
  line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.button.primary { color: white; background: var(--teal-dark); box-shadow: 0 10px 24px #2e77732d; }
.button.primary:hover { background: #225f5c; transform: translateY(-1px); }
.text-link { padding: 12px 0 7px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 800; }
.trust-row { display: flex; align-items: center; gap: 14px; margin-top: 40px; color: #6c7f7c; font-size: 12px; }
.trust-row i { width: 4px; height: 4px; border-radius: 50%; background: var(--pink); }

.hero-art {
  min-height: 510px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 1px solid #dcecea;
  border-radius: 32px 32px 12px 12px;
  background: white;
  box-shadow: 0 22px 55px #176d6f16;
}
.hero-art img { width: 100%; height: auto; display: block; border-radius: inherit; }
.hero-art p { position: absolute; bottom: 18px; z-index: 3; margin: 0; padding: 7px 14px; text-align: center; color: var(--teal-dark); background: #fffffff0; border-radius: 999px; font-family: Georgia, serif; font-style: italic; font-size: 14px; line-height: 1.35; }
.hero-art small { font-family: Arial, sans-serif; font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }

.sellout-strip {
  min-height: 76px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: white;
  background: var(--teal-dark);
  text-align: center;
}
.sellout-strip strong { font-family: Georgia, serif; font-size: 20px; font-style: italic; }
.sellout-strip span { opacity: .8; font-size: 13px; }

.menu-section { padding: 110px max(24px, calc((100vw - 1180px) / 2)); background: var(--paper); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 46px; }
.section-heading h2, .story-copy h2, .order-section h2 { font-size: clamp(38px, 5vw, 58px); }
.section-heading > p { max-width: 450px; margin: 0; color: #647773; font-size: 14px; line-height: 1.7; }
.loaf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.loaf-card {
  min-height: 210px;
  padding: 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 8px 8px;
  background: white;
  transition: transform .2s, box-shadow .2s;
}
.loaf-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px #3e696016; }
.loaf-icon { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--brown); background: var(--pink-light); }
.loaf-card h3 { margin: 4px 0 8px; font-family: Georgia, serif; font-size: 19px; }
.loaf-card p { margin: 0; color: #71817e; font-size: 12px; line-height: 1.5; }
.loaf-order { grid-column: 2; display: grid; gap: 9px; margin-top: 20px; }
.loaf-order select { width: 100%; min-height: 42px; padding: 0 12px; color: var(--teal-dark); border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.loaf-order button { min-height: 42px; border: 0; border-radius: 10px; color: white; background: var(--teal-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.loaf-order button:hover { background: #225f5c; }
.menu-note { margin: 26px 0 0; color: #788986; text-align: center; font-size: 12px; font-style: italic; }

.preorder-section { padding: 110px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; background: var(--pink-light); }
.cart-panel, .pickup-form { padding: clamp(26px, 4vw, 46px); border: 1px solid #f2dbe1; border-radius: 24px 24px 10px 10px; background: white; }
.cart-panel h2, .pickup-form h2 { font-size: clamp(34px, 4vw, 48px); }
.empty-cart, .pickup-form > p { color: #687a77; line-height: 1.65; }
.cart-items { margin-top: 28px; }
.cart-item { padding: 17px 0; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.cart-item > div:first-child { display: flex; flex-direction: column; gap: 5px; }
.cart-item span { color: #71817e; font-size: 12px; }
.quantity { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.quantity button { width: 34px; height: 34px; border: 0; background: var(--cream); cursor: pointer; }
.quantity span { min-width: 24px; color: var(--ink); text-align: center; font-weight: 800; }
.cart-total { padding-top: 24px; display: flex; justify-content: space-between; font-family: Georgia, serif; font-size: 20px; }
.pickup-form { display: flex; flex-direction: column; }
.pickup-form label { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.pickup-form input, .pickup-form textarea { width: 100%; padding: 13px 14px; color: #405f5b; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); font-size: 15px; font-weight: 400; }
.pickup-form textarea { resize: vertical; }
.checkout-button { margin-top: 22px; border: 0; cursor: pointer; }
.checkout-button:disabled { opacity: .45; cursor: not-allowed; }
.pickup-form small { margin-top: 12px; color: #71817e; line-height: 1.5; text-align: center; }

.story-section {
  width: min(1050px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: center;
}
.story-section.text-only { width: min(760px, calc(100% - 48px)); display: block; text-align: center; }
.story-section.text-only .story-copy > p { margin-left: auto; margin-right: auto; }
.story-art { height: 450px; position: relative; display: grid; place-items: center; border-radius: 48% 48% 8px 8px; background: #c8e6e2; }
.story-art::after { content: ""; position: absolute; width: 84%; height: 2px; bottom: 75px; background: #4e9b9548; }
.story-art img { position: relative; z-index: 1; width: min(88%, 390px); height: auto; filter: drop-shadow(0 22px 24px #315f5824); }
.heart { position: absolute; right: 30px; top: 28px; color: white; font-size: 46px; transform: rotate(12deg); }
.story-copy > p:not(.eyebrow) { max-width: 560px; color: #60736f; font-size: 16px; line-height: 1.85; }
.signature { display: inline-block; margin-top: 12px; color: var(--teal-dark); font-family: Georgia, serif; font-size: 26px; font-style: italic; transform: rotate(-3deg); }

.order-section { padding: 100px 24px; text-align: center; background: var(--pink-light); }
.order-section > p:not(.eyebrow) { margin: 22px auto 30px; color: #687a77; font-size: 15px; }
footer {
  min-height: 140px;
  padding: 36px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #667875;
  background: var(--paper);
  font-size: 12px;
}
footer .brand { color: var(--ink); font-size: 17px; }
footer .brand-script { font-size: 28px; }

@media (max-width: 850px) {
  .site-header { width: min(100% - 30px, 1180px); height: 72px; }
  nav a:not(.nav-order) { display: none; }
  .hero { width: min(100% - 30px, 1180px); grid-template-columns: 1fr; gap: 40px; padding: 50px 0 60px; }
  .hero-art { min-height: 430px; order: -1; }
  .loaf-grid { grid-template-columns: 1fr 1fr; }
  .story-section { grid-template-columns: 1fr; gap: 50px; }
  .story-art { height: 380px; }
  .preorder-section { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand { gap: 6px; }
  .brand-script { font-size: 27px; }
  .brand-subtitle { display: none; }
  .nav-order { padding: 10px 17px; }
  .hero { padding-top: 22px; }
  .hero-art { min-height: 340px; }
  .hero-art p { display: none; }
  h1 { font-size: 49px; }
  .hero-text { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .trust-row { gap: 9px; font-size: 10px; }
  .sellout-strip { flex-direction: column; gap: 5px; }
  .menu-section { padding-top: 78px; padding-bottom: 78px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .loaf-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 1fr auto; }
  .cart-item > strong { grid-column: 2; }
  .story-section { width: min(100% - 32px, 1050px); padding: 80px 0; }
  .story-art { height: 320px; }
  .mini-loaf { transform: scale(.78); }
  footer { padding-top: 44px; padding-bottom: 44px; flex-direction: column; text-align: center; }
}

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