/* Rivière Kids — site styles. Colors and fonts follow the brand guidelines. */
:root {
  --ivory: #FAF6F1; --shell: #F4E6E1; --blush: #E9CBC5;
  --gold: #C4A26B; --gold-deep: #7E6236; --rose: #9A585C;
  --rose-dark: #864B4F; --cocoa: #3F322A; --taupe: #76655A;
  --hairline: #E3D5CB;
  --font-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-text: "Jost", "Futura", "Century Gothic", sans-serif;
  --side: 40px;
  --section: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--cocoa);
  font: 300 16px/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cocoa); }
a:hover { color: var(--rose); }
h1, h2, h3, p { margin: 0; }

/* Small tracked capitals used for labels, nav and buttons */
.label, .nav a, .text-link, .btn, .footer-nav a, .announce {
  font-family: var(--font-text); font-size: 11px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
}
.label { color: var(--gold-deep); }
.text-link { text-underline-offset: 6px; }

/* Announcement bar */
.announce { background: var(--shell); text-align: center; padding: 10px 16px; }

/* Header */
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  min-height: 72px; padding: 14px var(--side); border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; }
.nav-right { justify-content: flex-end; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--cocoa); }
.logo:hover { color: var(--cocoa); }
.logo-word { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: 0.04em; }
.logo-kids { font-size: 10px; font-weight: 400; letter-spacing: 0.44em; padding-left: 0.44em; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: var(--section) var(--side) 0; }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 40px; }
.heading { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.2; }
.display-italic { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 40px; line-height: 1.1; }

/* Hero */
.hero img { width: 100%; aspect-ratio: 16 / 9; max-height: 760px; object-fit: cover; object-position: 40% 50%; background: var(--shell); }
.hero-text { text-align: center; padding: 56px 16px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-text h1 { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }

/* Product cards */
.card-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.card { flex: 1 1 300px; max-width: 520px; text-decoration: none; color: var(--cocoa); display: flex; flex-direction: column; gap: 16px; }
.card:hover { color: var(--cocoa); }
.card img, .photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%; background: var(--shell); }
.card-info { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.card-name { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.price { color: var(--rose); font-size: 15px; }

/* Charm strand band */
.strand-band { margin-top: var(--section); background: var(--shell); padding: 28px 16px; display: flex; justify-content: center; }

/* Editorial split: photo + text */
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split img { flex: 1 1 360px; min-width: 0; max-width: 600px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--shell); }
.split-text { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 20px; }
.split.reverse { flex-wrap: wrap-reverse; }

/* Care */
.care-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.care-col { flex: 1 1 280px; border-top: 1px solid var(--hairline); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.care-col h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.care-col p { font-size: 15px; }

/* Footer */
.site-footer { margin-top: var(--section); border-top: 1px solid var(--hairline); padding: 64px var(--side) 40px; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.newsletter { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 480px; }
.newsletter h2 { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 30px; }
.newsletter p, .fine { font-size: 14px; color: var(--taupe); }
.newsletter-row { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.newsletter-row input { flex: 1 1 220px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.footer-nav a { text-decoration: none; }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Form fields and buttons */
input[type="email"], input[type="text"] {
  height: 48px; border: 1px solid var(--hairline); border-radius: 2px; background: var(--ivory);
  padding: 0 16px; font: 300 15px var(--font-text); color: var(--cocoa);
}
input::placeholder { color: var(--taupe); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; border: 0; border-radius: 0; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--rose); color: var(--ivory); }
.btn-primary:hover { background: var(--rose-dark); color: var(--ivory); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Product page */
.product { max-width: 1280px; margin: 0 auto; padding: 40px var(--side) 0; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.gallery { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.placeholder { aspect-ratio: 4 / 5; background: var(--shell); border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.placeholder span { font-size: 11px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--taupe); line-height: 1.8; }
.buy-box { flex: 1 1 360px; display: flex; flex-direction: column; gap: 24px; }
.buy-title { display: flex; flex-direction: column; gap: 8px; }
.buy-title h1 { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1.15; }
.buy-title .price { font-size: 18px; }
.sizes { border: 0; margin: 0; padding: 0; }
.sizes legend { padding: 0; margin-bottom: 12px; font-size: 11px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; }
.size-row { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn { min-width: 72px; height: 44px; padding: 0 16px; border: 1px solid var(--hairline); border-radius: 0; background: var(--ivory); color: var(--cocoa); font: 400 13px var(--font-text); letter-spacing: 0.08em; cursor: pointer; }
.size-btn[aria-pressed="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--ivory); }
.included { border: 1px solid var(--hairline); padding: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.buy-box .btn { width: 100%; }
.checkout-note { font-size: 13px; color: var(--taupe); text-align: center; margin-top: -12px; }
.accordion { border-top: 1px solid var(--hairline); }
.accordion details { border-bottom: 1px solid var(--hairline); padding: 16px 0; }
.accordion summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; font-size: 11px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; }
.accordion details[open] summary::after { content: "−"; }
.accordion p { margin-top: 12px; font-size: 14px; color: var(--taupe); }
.pair { max-width: 360px; margin: 0 auto; }

/* Simple page */
.simple { max-width: 720px; margin: 0 auto; padding: var(--section) var(--side) 0; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.simple h1 { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.15; }

/* Phones */
@media (max-width: 640px) {
  :root { --side: 16px; --section: 56px; }
  body { font-size: 15px; }
  .site-header { grid-template-columns: 1fr 1fr; grid-template-areas: "logo logo" "left right"; row-gap: 14px; min-height: 56px; padding-bottom: 12px; }
  .logo { grid-area: logo; }
  .nav-left { grid-area: left; gap: 20px; }
  .nav-right { grid-area: right; gap: 20px; }
  .logo-word { font-size: 28px; }
  .hero img { aspect-ratio: 4 / 5; max-height: none; object-position: 42% 50%; }
  .hero-text { padding-top: 36px; }
  .split, .product { gap: 32px; }
  .product { padding-top: 16px; }
  .buy-title h1 { font-size: 30px; }
  .display-italic { font-size: 34px; }
  .site-footer { padding-top: 48px; }
}
