:root {
  --ink: #07182b;
  --ink-2: #102a46;
  --ivory: #f6f3ec;
  --paper: #fffefa;
  --sand: #d8c4a4;
  --gold: #b8945f;
  --line: rgba(7, 24, 43, 0.16);
  --muted: #66717c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.announcement { background: var(--ink); color: #fff; text-align: center; padding: 9px 16px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,254,250,.94); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 28px; }
.nav-links a, .nav-actions a { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.nav-actions { justify-content: flex-end; }
.brand { text-align: center; display: inline-flex; align-items: center; gap: 10px; justify-self: center; }
.brand img { width: 108px; mix-blend-mode: multiply; }
.brand small { display: block; margin-left: -2px; color: var(--gold); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; }
.cart-link { position: relative; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; padding: 0 5px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .7rem; }
.menu-btn { display: none; border: 0; background: transparent; padding: 10px 0; color: var(--ink); }
.menu-btn span { display: block; width: 22px; height: 1px; background: currentColor; margin: 5px 0; }

.hero { min-height: 680px; position: relative; display: flex; align-items: stretch; overflow: hidden; background: var(--ink); color: #fff; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .9; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,15,27,.98) 0%, rgba(4,15,27,.85) 33%, rgba(4,15,27,.12) 67%, rgba(4,15,27,.06)); }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; }
.hero-copy { max-width: 530px; padding: 88px 0; }
.eyebrow { display: inline-block; margin: 0 0 20px; color: var(--gold); font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(3.4rem, 7vw, 6.8rem); letter-spacing: -.055em; }
.hero p { max-width: 460px; margin: 26px 0 34px; color: rgba(255,255,255,.78); font-size: 1.05rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; transition: .25s ease; }
.button:hover { background: var(--ink-2); transform: translateY(-1px); }
.button-light { border-color: #fff; background: #fff; color: var(--ink); }
.button-light:hover { background: var(--ivory); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: #fff; }
.button-wide { width: 100%; }

.trust-row { border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 25px 30px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.trust-item span { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 112px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -.04em; }
.text-link { padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { min-width: 0; }
.product-image { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background-image: url('assets/family-first-products.png'); background-repeat: no-repeat; background-size: 205% 205%; background-color: #dad6d0; }
.product-image-1 { background-position: 0% 0%; }
.product-image-2 { background-position: 100% 0%; }
.product-image-3 { background-position: 0% 100%; }
.product-image-4 { background-position: 100% 100%; }
.product-image::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(7,24,43,.07); pointer-events: none; }
.product-card .badge { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 10px; background: var(--paper); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.quick-add { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.3rem; box-shadow: 0 8px 24px rgba(7,24,43,.16); }
.product-info { display: flex; justify-content: space-between; gap: 14px; padding-top: 16px; }
.product-info h3 { font-family: var(--sans); font-size: .95rem; font-weight: 650; }
.product-info p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.price { font-size: .9rem; white-space: nowrap; }

.manifesto { background: var(--ivory); }
.manifesto-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; }
.manifesto h2 { max-width: 720px; font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -.05em; }
.manifesto-copy { border-left: 1px solid var(--gold); padding-left: 34px; }
.manifesto-copy p { color: #4f5b66; font-size: 1.06rem; }
.quote { margin-top: 30px; color: var(--ink)!important; font-family: var(--serif); font-size: 1.45rem!important; }
.newsletter { background: var(--ink); color: #fff; }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }
.newsletter h2 { max-width: 560px; font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -.045em; }
.newsletter p { color: rgba(255,255,255,.68); }
.newsletter-form { display: flex; border-bottom: 1px solid rgba(255,255,255,.5); }
.newsletter-form input { flex: 1; min-width: 0; padding: 18px 0; border: 0; outline: 0; background: transparent; color: #fff; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.48); }
.newsletter-form button { border: 0; background: transparent; color: #fff; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.page-hero { padding: 88px 0 54px; border-bottom: 1px solid var(--line); background: var(--ivory); }
.page-hero h1 { color: var(--ink); font-size: clamp(3rem, 7vw, 6rem); }
.breadcrumbs { margin-bottom: 22px; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr); gap: 70px; padding: 70px 0 110px; }
.product-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-image { aspect-ratio: 4 / 5; background-image: url('assets/family-first-products.png'); background-size: 205% 205%; background-repeat: no-repeat; background-color: #ddd9d2; }
.detail-image:first-child { grid-column: 1 / -1; aspect-ratio: 1.25 / 1; background-position: 0% 0%; }
.detail-image.alt-one { background-position: 4% 3%; filter: contrast(.96) brightness(1.03); }
.detail-image.alt-two { background-position: 0% 0%; filter: saturate(.78) brightness(.93); }
.detail-copy { position: sticky; top: 130px; align-self: start; }
.detail-copy h1 { color: var(--ink); font-size: clamp(2.8rem, 5vw, 4.8rem); }
.detail-price { margin: 15px 0 24px; font-size: 1.1rem; }
.detail-description { color: var(--muted); }
.option-group { margin: 30px 0; }
.option-head { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch, .size-btn { display: grid; place-items: center; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.swatch { width: 44px; border-radius: 50%; }
.swatch span { width: 25px; height: 25px; border-radius: 50%; background: #f0ecdf; border: 1px solid rgba(0,0,0,.12); }
.swatch.navy span { background: var(--ink); }
.swatch.active, .size-btn.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.size-btn { min-width: 49px; padding: 0 10px; }
.detail-meta { margin-top: 28px; border-top: 1px solid var(--line); }
.detail-meta details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.detail-meta summary { cursor: pointer; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.detail-meta p { color: var(--muted); font-size: .9rem; }

.cart-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; padding: 70px 0 110px; }
.cart-item { display: grid; grid-template-columns: 145px 1fr auto; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { aspect-ratio: 4 / 5; background-image: url('assets/family-first-products.png'); background-size: 205% 205%; background-position: 0% 0%; }
.cart-item h3 { font-size: 1.25rem; }
.cart-meta { margin: 5px 0 18px; color: var(--muted); font-size: .85rem; }
.qty-control { display: inline-flex; border: 1px solid var(--line); }
.qty-control button, .qty-control span { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; }
.remove-btn { display: block; margin-top: 12px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: .75rem; text-decoration: underline; }
.order-summary { align-self: start; padding: 30px; background: var(--ivory); }
.order-summary h2 { margin-bottom: 24px; font-size: 2rem; }
.summary-row { display: flex; justify-content: space-between; margin: 13px 0; color: var(--muted); }
.summary-total { margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.empty-cart { padding: 70px 0; text-align: center; }
.empty-cart h2 { font-size: 2.7rem; margin-bottom: 16px; }

.account-shell { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 680px; }
.account-art { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.account-art img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.account-art-copy { position: absolute; inset: auto 10% 10%; z-index: 1; }
.account-art-copy h2 { font-size: clamp(3rem, 6vw, 5.8rem); }
.account-panel { display: grid; align-items: center; padding: 70px max(40px, 10vw); }
.account-card { max-width: 480px; width: 100%; }
.account-card h1 { color: var(--ink); font-size: clamp(3rem, 6vw, 5.3rem); }
.account-card > p { color: var(--muted); }
.field { margin: 22px 0; }
.field label { display: block; margin-bottom: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.field input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: transparent; outline: none; }
.field input:focus { border-color: var(--ink); }
.form-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 20px 0; font-size: .82rem; }
.form-message { display: none; margin-top: 18px; padding: 14px; background: #edf4ee; color: #1f5a2c; }

.site-footer { padding: 72px 0 34px; background: #04111f; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, .6fr); gap: 55px; }
.footer-brand { font-family: var(--serif); font-size: 2.15rem; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.6); font-size: .86rem; }
.footer-column h3 { margin-bottom: 18px; font-family: var(--sans); font-size: .77rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-column a { display: block; margin: 9px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 58px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: .75rem; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; padding: 14px 18px; background: var(--ink); color: #fff; transform: translateY(120px); opacity: 0; transition: .3s ease; box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 960px) {
  .container { width: min(100% - 30px, 760px); }
  .nav { grid-template-columns: auto 1fr auto; min-height: 70px; }
  .menu-btn { display: block; }
  .brand { justify-self: start; }
  .brand img { width: 92px; }
  .nav-links { position: fixed; inset: 109px 0 auto; display: grid; gap: 0; padding: 20px 24px 35px; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: .3s ease; z-index: -1; }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-actions .account-link { display: none; }
  .hero { min-height: 620px; }
  .hero-media { object-position: 60% center; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 38px 14px; }
  .manifesto-grid, .newsletter-grid, .product-detail, .cart-layout { grid-template-columns: 1fr; }
  .manifesto-grid { gap: 40px; }
  .detail-copy { position: static; }
  .cart-layout { gap: 35px; }
  .account-shell { grid-template-columns: 1fr; }
  .account-art { min-height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .announcement { font-size: .65rem; letter-spacing: .08em; }
  .nav-links { inset-block-start: 105px; }
  .brand small { display: none; }
  .nav-actions { gap: 10px; }
  .hero { min-height: 680px; align-items: end; }
  .hero-media { object-position: 66% center; }
  .hero::after { background: linear-gradient(180deg, rgba(4,15,27,.05) 20%, rgba(4,15,27,.9) 76%, rgba(4,15,27,.98)); }
  .hero-copy { padding: 230px 0 55px; }
  h1 { font-size: 3.7rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 78px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .product-grid { gap: 32px 10px; }
  .product-info { display: block; }
  .price { display: block; margin-top: 8px; }
  .manifesto-copy { padding-left: 22px; }
  .newsletter-grid { gap: 35px; }
  .product-detail { padding: 35px 0 75px; gap: 42px; }
  .product-gallery { gap: 8px; }
  .cart-item { grid-template-columns: 100px 1fr; }
  .cart-item > .price { grid-column: 2; }
  .account-panel { padding: 60px 24px; }
  .account-art { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { display: block; }
}

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