/* Hamazon.ca — a classy storefront for a very specific product line. */

:root {
  --ink: #1b2430;
  --ink-2: #26303d;
  --porcelain: #f2f0eb;
  --paper: #faf8f4;
  --brass: #b8893a;
  --brass-dark: #8f6a2a;
  --blush: #e8c4ba;
  --blush-deep: #d49c90;
  --burgundy: #6b2a2f;
  --burgundy-deep: #4e1d21;
  --text: #1f252d;
  --muted: #5e6670;
  --rule: #d9d3c7;
  --display: "Bookerly", "Literata", "Iowan Old Style", Georgia, serif;
  --ui: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --radius: 3px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--text);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

button { font: inherit; cursor: pointer; }
.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;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Top chrome ---------- */
.chrome {
  background: var(--ink);
  color: var(--porcelain);
}
.chrome-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}
.logo {
  display: inline-flex; flex-direction: column; line-height: 1;
  color: var(--porcelain);
}
.logo:hover { text-decoration: none; }
.logo-word {
  font-family: var(--display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.01em;
}
.logo-word small {
  font-family: var(--ui); font-weight: 400; font-size: 13px;
  color: var(--brass); margin-left: 2px; letter-spacing: 0.02em;
}
.logo-tail { width: 128px; height: 20px; margin-top: -4px; margin-left: 4px; }

.search {
  display: flex; height: 42px;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid transparent;
}
.search:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(184,137,58,.25); }
.search select {
  border: 0; background: #e6e1d6; color: var(--muted);
  padding: 0 12px; font: inherit; font-size: 13px;
  border-right: 1px solid var(--rule);
}
.search input {
  flex: 1; border: 0; padding: 0 14px; font: inherit; font-size: 15px;
  background: transparent; color: var(--text); min-width: 0;
}
.search input::placeholder { color: #8b8f96; }
.search button {
  border: 0; background: var(--brass); color: var(--ink);
  padding: 0 18px; display: grid; place-items: center;
}
.search button:hover { background: #c99a47; }

.account {
  display: flex; gap: 26px; align-items: center;
}
.account-item { display: flex; flex-direction: column; line-height: 1.2; color: var(--porcelain); }
.account-item small { font-size: 12px; color: #aab2bd; }
.account-item strong { font-weight: 600; font-size: 14px; }
.cart {
  display: flex; align-items: flex-end; gap: 6px; position: relative;
}
.cart svg { width: 30px; height: 30px; }
.cart-count {
  font-family: var(--display); font-size: 22px; color: var(--brass);
  line-height: 1; min-width: 14px; text-align: center;
}
.cart-label { font-size: 13px; font-weight: 600; margin-bottom: 1px; }

.nav {
  background: var(--ink-2);
  color: var(--porcelain);
  font-size: 14px;
}
.nav-row {
  display: flex; align-items: center; gap: 24px; min-height: 42px;
}
.nav-row a { padding: 10px 0; white-space: nowrap; }
.nav-row a:hover { text-decoration: none; color: var(--brass); }
.nav-promo { margin-left: auto; color: #c7cdd6; font-size: 13px; }
.nav-promo em { color: var(--brass); font-style: normal; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--porcelain);
  position: relative;
  overflow: hidden;
  border-top: 1px solid #33404f;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 80px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  text-wrap: balance;
}
.hero p {
  font-size: 18px; color: #c7cdd6; max-width: 46ch; margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600; font-size: 15px;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: #c99a47; }
.btn-ghost { border-color: #4a5868; color: var(--porcelain); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

.hero-art { display: grid; place-items: center; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 56px 0 24px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); padding-bottom: 14px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-head a { color: var(--brass-dark); font-weight: 600; font-size: 14px; white-space: nowrap; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.card-art {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: var(--blush);
  position: relative;
}
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-art.cured { background: var(--burgundy); }
.badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: var(--porcelain);
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 8px; border-radius: 2px;
}
.badge.brass { background: var(--brass); color: var(--ink); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 {
  font-family: var(--display); font-weight: 500; font-size: 20px; margin: 0; line-height: 1.2;
}
.card .sub { color: var(--muted); font-size: 13.5px; margin: 0; }
.stars { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stars span[aria-hidden] { color: var(--brass); letter-spacing: 1px; font-size: 14px; }
.price {
  font-family: var(--display); font-size: 24px; font-weight: 500; margin: 4px 0 0;
  display: flex; align-items: baseline; gap: 8px;
}
.price small { font-family: var(--ui); font-size: 13px; color: var(--muted); font-weight: 400; }
.ship { font-size: 13px; color: var(--muted); margin: 0; }
.ship b { color: var(--text); font-weight: 600; }
.card .btn { margin-top: auto; align-self: stretch; padding: 10px 16px; font-size: 14px; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--porcelain); }

/* ---------- Guarantee ---------- */
.guarantee {
  margin-top: 40px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brass);
}
.guarantee-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 52px 0;
}
.guarantee h2 {
  font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 18px;
}
.guarantee .lede { font-size: 18px; max-width: 48ch; margin: 0 0 18px; }
.guarantee .lede b { font-weight: 600; }
.guarantee p.note { color: var(--muted); font-size: 14px; max-width: 52ch; margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding-bottom: 18px; border-bottom: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-size: 30px; line-height: 1; color: var(--brass);
}
.steps h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.review {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px;
}
.review blockquote {
  margin: 0; font-family: var(--display); font-size: 19px; line-height: 1.35; font-weight: 400;
}
.review footer { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review footer b { color: var(--text); font-weight: 600; }
.verified { color: var(--brass-dark); font-weight: 600; }

/* ---------- Footer ---------- */
.foot-top {
  background: var(--ink-2); color: var(--porcelain); text-align: center; padding: 14px; font-size: 14px;
}
.foot-top a:hover { color: var(--brass); text-decoration: none; }
.footer { background: var(--ink); color: #c7cdd6; padding: 48px 0 40px; font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.foot-cols h4 { color: var(--porcelain); margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fine { border-top: 1px solid #33404f; margin-top: 40px; padding-top: 24px; color: #8f98a3; font-size: 12.5px; max-width: 90ch; }
.fine p { margin: 0 0 8px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--porcelain); border-left: 3px solid var(--brass);
  padding: 12px 18px; border-radius: var(--radius); font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 10px 30px rgba(27,36,48,.25); max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.lost h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 64px); margin: 0 0 12px; letter-spacing: -0.02em; }
.lost p { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 0 auto 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .reviews { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .chrome-row { grid-template-columns: 1fr auto; }
  .search { grid-column: 1 / -1; order: 3; }
  .account-item { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 32px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 260px; }
  .guarantee-grid { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
  .nav-promo { display: none; }
  .nav-row { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .card h3 { font-size: 17px; }
  .price { font-size: 20px; }
  .section-head h2 { font-size: 24px; }
  .guarantee h2 { font-size: 32px; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* ---------- Our story ---------- */
.story-hero {
  background: var(--ink);
  color: var(--porcelain);
  border-top: 1px solid #33404f;
  padding: 64px 0 56px;
}
.story-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.story-hero p {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 26px);
  color: #c7cdd6;
  max-width: 34ch;
  margin: 0;
  line-height: 1.3;
}
.story { padding: 56px 0 16px; }
.story-body { max-width: 66ch; font-size: 17.5px; line-height: 1.65; }
.story-body p { margin: 0 0 22px; }
.story-body p:first-child::first-letter {
  font-family: var(--display);
  font-size: 3.4em;
  float: left;
  line-height: .8;
  padding: 6px 10px 0 0;
  color: var(--brass-dark);
}
.story-body p:last-child {
  border-left: 3px solid var(--brass);
  padding-left: 18px;
  color: var(--ink);
}

.team { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.person {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
}
.monogram {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -0.02em;
}
.person h3 {
  font-family: var(--display); font-weight: 500; font-size: 24px; margin: 4px 0 2px; line-height: 1.15;
}
.person .role { margin: 0 0 10px; color: var(--brass-dark); font-weight: 600; font-size: 14px; }
.person p { margin: 0; font-size: 15px; color: var(--text); }

.story-cta {
  margin: 48px 0 0;
  background: var(--paper);
  border-top: 3px solid var(--brass);
  border-bottom: 1px solid var(--rule);
  padding: 48px 0;
  text-align: center;
}
.story-cta h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.1;
}
.story-cta p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }

@media (max-width: 860px) {
  .team { grid-template-columns: 1fr; }
  .story-hero { padding: 44px 0 40px; }
}
@media (max-width: 640px) {
  .person { grid-template-columns: 56px 1fr; gap: 14px; padding: 18px; }
  .monogram { width: 56px; height: 56px; font-size: 21px; }
  .story-body { font-size: 16.5px; }
}
