/* Marlow & Co. — boutique/retail template
   Palette: warm paper / mustard / forest / brick
   Type: Bricolage Grotesque (display, bold geometric) · Work Sans (body)
*/

:root {
  --paper: #f4ede1;
  --ink: #211c15;
  --mustard: #e0a437;
  --forest: #3c5240;
  --brick: #b8552f;
  --stone: #8a8070;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Work Sans', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(33,28,21,0.035) 1px, transparent 1px);
  background-size: 4px 4px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }

.kicker {
  font-family: var(--body); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brick);
  margin: 0 0 0.75rem;
}

.btn {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 0.9375rem; padding: 0.9rem 1.7rem; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper);
}
.btn-primary:hover { background: var(--brick); border-color: var(--brick); }

.demo-flag { background: var(--ink); color: var(--paper); font-size: 0.75rem; text-align: center; padding: 0.55rem 1rem; }
.demo-flag strong { color: var(--mustard); }
.demo-flag a { margin-left: 0.75rem; text-decoration: underline; color: var(--paper); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(244,237,225,0.92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 0.4rem; }
.brand span { font-size: 0.85rem; font-weight: 500; color: var(--brick); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.nav-links a:hover { color: var(--brick); }
.nav-cta { display: flex; align-items: center; gap: 0.5rem; background: var(--ink); color: var(--paper) !important; padding: 0.55rem 1.1rem; border-radius: 999px; }
.cart-dot { background: var(--mustard); color: var(--ink); width: 1.25rem; height: 1.25rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 800; }
.nav-toggle { display: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; min-height: min(88vh, 720px); }
.hero-copy { align-self: center; padding-block: 3rem; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 0.98; letter-spacing: -0.01em; margin: 0 0 1.25rem; }
.hero h1 .hl { color: var(--brick); }
.hero .lead { font-size: 1.0625rem; max-width: 38ch; color: var(--stone); margin: 0 0 1.75rem; }
.hero-photo { background-size: cover; background-position: center; }

/* shop */
.shop { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section-head { max-width: 560px; margin: 0 0 clamp(2.5rem, 6vw, 3rem); }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-bottom: 2.5rem; }
.product-card { display: flex; flex-direction: column; }
.product-photo { aspect-ratio: 3/4; background-size: cover; background-position: center; border-radius: 14px; margin-bottom: 0.9rem; }
.product-card--a .product-photo { transform: rotate(-1.2deg); }
.product-card--c .product-photo { transform: rotate(1deg); }
.product-info { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem; }
.product-info h3 { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; margin: 0; }
.price { font-family: var(--display); font-weight: 700; color: var(--forest); }
.add-btn {
  font-family: var(--body); font-weight: 600; font-size: 0.875rem;
  padding: 0.65rem; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; cursor: pointer;
}
.add-btn:hover { background: var(--ink); color: var(--paper); }

.cart-mock { max-width: 420px; margin-left: auto; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 1.5rem; }
.cart-mock-head { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }
.cart-mock-row { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px dashed rgba(33,28,21,0.18); font-size: 0.9375rem; }
.cart-mock-row--total { border-bottom: none; font-weight: 700; padding-top: 0.9rem; }
.cart-mock-btn { margin-top: 1.1rem; background: var(--forest); color: #fff; text-align: center; padding: 0.85rem; border-radius: 999px; font-weight: 700; font-family: var(--display); }

/* story */
.story { background: #ece1cd; padding-block: clamp(4rem, 9vw, 6.5rem); }
.story-grid { display: grid; grid-template-columns: 0.9fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.story-photo { aspect-ratio: 4/5; background-size: cover; background-position: center; border-radius: 14px; }
.story-copy h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 2.5rem); line-height: 1.1; margin: 0 0 1.1rem; }
.story-copy p { max-width: 46ch; margin: 0 0 1rem; color: var(--ink); opacity: 0.82; }

/* lookbook */
.lookbook { position: relative; background-size: cover; background-position: center 25%; min-height: 340px; display: flex; align-items: flex-end; }
.lookbook-overlay { width: 100%; background: linear-gradient(to top, rgba(33,28,21,0.75), transparent 70%); padding-block: 2.5rem; color: #fff; }
.lookbook h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0; }
.lookbook .kicker { color: var(--mustard); }

/* newsletter */
.newsletter { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.newsletter-in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.newsletter h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: 0 0 0.4rem; }
.newsletter p { margin: 0; color: var(--stone); max-width: 34ch; }
.newsletter-form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.newsletter-form input {
  font: inherit; padding: 0.85rem 1.1rem; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; min-width: 220px;
}

/* cta */
.cta { position: relative; background-size: cover; background-position: center; }
.cta-overlay { background: rgba(33,28,21,0.8); }
.cta .wrap { padding-block: clamp(4rem, 9vw, 6rem); text-align: center; color: #fff; }
.cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin: 0 0 0.6rem; }
.cta p { color: rgba(255,255,255,0.82); margin: 0 0 2rem; }

/* footer */
.site-footer { background: var(--ink); color: rgba(244,237,225,0.6); }
.footer-in { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-block: 1.5rem; font-size: 0.8125rem; }
.footer-credit a { color: var(--mustard); text-decoration: underline; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; aspect-ratio: 16/9; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-mock { margin-inline: auto; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 62px 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 2rem var(--gutter);
    gap: 1.5rem; transform: translateX(100%); transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; width: 34px; height: 24px; position: relative; background: none; border: none; cursor: pointer; }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); }
  .nav-toggle::before { top: 0; }
  .nav-toggle span { top: 11px; }
  .nav-toggle::after { bottom: 0; }
  .shop-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story-photo { max-width: 320px; margin-inline: auto; }
}
