/* Little Alpaca Studio
   Palette: Luna (navy, cream, old gold, moon blue) on a light page */
/* Fonts: Fraunces and Montserrat, SIL Open Font License, self-hosted */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #1C2541;
  --navy-2: #2B3558;
  --cream: #EFE4CD;
  --gold: #C7B27C;
  --gold-text: #7D6530;
  --moon: #8E9AB8;
  --paper: #FFFFFF;
  --linen: #FAF6EF;
  --sand: #EEE5D5;
  --line: #E7DFD1;
  --ink: #1C2541;
  --ink-soft: #3A4256;
  --ink-muted: #565D70;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(28, 37, 65, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

/* Type */
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.lede { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 34em; }
.diamonds { display: block; height: 12px; width: auto; max-width: 100%; align-self: flex-start; }
.section-head .diamonds { align-self: center; }
.center { text-align: center; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 40px; }
.section-head .lede { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid var(--navy);
  background: var(--navy); color: var(--cream);
  font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--navy-2); color: var(--cream); }
.btn--ghost { background: rgba(255,255,255,0.85); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn--cream:hover { background: #fff; color: var(--navy); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 13px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }

/* Header */
.topline { height: 4px; background: var(--navy); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 96px; width: min(100% - 48px, 1360px); margin-inline: auto;
}
.brand { display: flex; justify-content: center; }
.brand img { height: 72px; width: auto; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; color: var(--navy); cursor: pointer; border-radius: 50%;
}
.icon-btn:hover { background: var(--linen); }
.icon-btn svg { width: 22px; height: 22px; }
.bag-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--navy); color: var(--cream);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.bag-count[hidden] { display: none; }
.menu-toggle { display: none; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.main-nav a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font: 600 14px/1 var(--sans); color: var(--navy); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.main-nav a[aria-current="page"], .nav-trigger.is-current { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-trigger svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -24px; min-width: 520px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 24px; display: none; grid-template-columns: 1fr 1fr; gap: 24px;
}
.nav-item.is-open .dropdown { display: grid; }
.nav-item.is-open .nav-trigger svg { transform: rotate(180deg); }
.dropdown h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.dropdown .eyebrow { font-size: 11px; margin-bottom: 10px; display: block; }
.dropdown ul { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--gold); display: grid; gap: 2px; }
.dropdown li a { min-height: 36px; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.dropdown li a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 660px; display: flex; align-items: center; }
.hero__media {
  position: absolute; inset: 0 0 0 auto; width: min(64%, 980px);
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 22%, #000 46%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 22%, #000 46%);
}
.hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; max-width: 600px; padding: 64px 0; }
.hero__copy .lede { max-width: 30em; }

/* Generic sections */
.section { padding: 96px 0; }
.section--linen { background: var(--linen); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy .eyebrow { color: var(--gold); }
.section--navy .lede { color: #D9D2C2; }

/* Arch tiles */
.arch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.arch-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; text-decoration: none; color: var(--navy); }
.arch-tile__img { width: 100%; aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--sand); }
.arch-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.arch-tile:hover .arch-tile__img img { transform: scale(1.04); }
.arch-tile__img--navy { background: var(--navy); display: flex; align-items: center; justify-content: center; }
.arch-tile__img--navy img { width: 58%; height: auto; object-fit: contain; }
.arch-tile .h3 { margin-top: 8px; }
.arch-tile span { font-size: 14px; color: var(--ink-muted); margin-top: -4px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__copy { display: flex; flex-direction: column; gap: 22px; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { display: flex; flex-direction: column; gap: 12px; }
.product-card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 14px; background: var(--sand); border: 0; padding: 0; cursor: pointer;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .4s; }
.product-card__media img.alt { position: absolute; inset: 0; opacity: 0; }
.product-card__media:hover img.alt { opacity: 1; }
.product-card__media:hover img { transform: scale(1.03); }
.product-card__tag {
  position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.92); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
}
.product-card__body { display: flex; flex-direction: column; gap: 2px; }
.product-card__name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.product-card__name button { all: unset; cursor: pointer; }
.product-card__name button:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.product-card__price { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.product-card__price.is-soon { font-weight: 500; color: var(--ink-muted); font-size: 13px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--navy); font: 600 13px/1 var(--sans); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }

/* Page intro */
.page-intro { position: relative; overflow: hidden; background: var(--linen); }
.page-intro__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 72px 0; }
.page-intro__copy { display: flex; flex-direction: column; gap: 20px; }
.page-intro__media { border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 4 / 5; max-height: 520px; justify-self: end; width: min(100%, 420px); }
.page-intro__media img { width: 100%; height: 100%; object-fit: cover; }
.subnav { display: flex; gap: 10px; flex-wrap: wrap; }

/* Lookbook */
.lookbook { columns: 3 280px; column-gap: 20px; }
.lookbook button { all: unset; display: block; margin: 0 0 20px; border-radius: 14px; overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.lookbook button:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.lookbook img { width: 100%; height: auto; transition: transform .6s; }
.lookbook button:hover img { transform: scale(1.03); }

/* Catalog boards */
.catalog-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.catalog-board { display: flex; flex-direction: column; gap: 14px; }
.catalog-board button { all: unset; cursor: zoom-in; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.catalog-board button:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.catalog-board img { width: 100%; height: auto; }

/* CMA catalog pages */
.catalog-pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.catalog-pages button { all: unset; cursor: zoom-in; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 20px rgba(28,37,65,.12); background: #fff; }
.catalog-pages button:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.catalog-pages img { width: 100%; height: auto; }

/* Gift boxes */
.box-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.box-card { display: grid; grid-template-columns: 0.9fr 1.1fr; border-radius: 20px; overflow: hidden; background: var(--linen); min-height: 360px; }
.box-card__media { background: var(--navy); display: flex; align-items: center; justify-content: center; }
.box-card__media img.photo { width: 100%; height: 100%; object-fit: cover; }
.box-card__media img.badge { width: 46%; height: auto; }
.box-card__body { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.box-card__body ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; display: grid; gap: 4px; }
.box-card__price { font-weight: 700; }

/* Band */
.band { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.band__logo { justify-self: center; width: min(100%, 360px); }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.value { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--gold); }
.value p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Footer */
.site-footer { background: var(--linen); border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h2 { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--navy); text-decoration: underline; }
.footer-brand img { width: 190px; height: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0; color: var(--ink-soft); max-width: 28em; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-muted); font-size: 13px; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form textarea {
  font: 500 16px/1.4 var(--sans); color: var(--navy); padding: 14px 16px; border-radius: 12px;
  border: 1px solid #CFC5B3; background: var(--paper);
}
.form textarea { min-height: 140px; resize: vertical; }
.note { font-size: 13px; color: var(--ink-muted); margin: 0; }

/* Dialogs: product, bag, lightbox */
dialog { border: 0; padding: 0; color: var(--navy); }
dialog::backdrop { background: rgba(20, 26, 46, 0.55); }
.product-dialog { width: min(100% - 32px, 1040px); border-radius: 22px; background: var(--paper); }
.product-dialog__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.pd-gallery { background: var(--sand); display: flex; flex-direction: column; }
.pd-gallery__main { aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; object-fit: cover; }
.pd-thumbs:empty { display: none; }
.pd-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.pd-thumbs button { all: unset; width: 64px; height: 80px; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .65; flex: none; }
.pd-thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--navy); outline-offset: 2px; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.pd-info .h2 { font-size: 34px; }
.pd-price { font-size: 18px; font-weight: 700; margin: 0; }
.pd-desc { margin: 0; color: var(--ink-soft); }
.qty { align-self: flex-start; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font: 600 18px/1 var(--sans); color: var(--navy); cursor: pointer; border-radius: 50%; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.dialog-close { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.92); z-index: 2; }

.bag-dialog { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(100%, 440px); background: var(--paper); }
.bag-dialog__inner { display: flex; flex-direction: column; height: 100%; }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.bag-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.bag-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.bag-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-item img { width: 72px; height: 88px; object-fit: cover; border-radius: 8px; }
.bag-item p { margin: 0; font-size: 14px; }
.bag-item .remove { background: none; border: 0; color: var(--ink-muted); text-decoration: underline; cursor: pointer; font: 500 13px var(--sans); min-height: 44px; }
.bag-empty { color: var(--ink-muted); padding: 24px 0; }
.bag-foot { padding: 20px 24px 28px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.bag-total { display: flex; justify-content: space-between; font-weight: 700; }

.lightbox { width: min(100% - 32px, 1200px); background: transparent; }
.lightbox img { max-height: 86vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 12px; }
.lightbox .dialog-close { top: 8px; right: 8px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: var(--cream); padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 1100px) {
  .main-nav > ul { gap: 18px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 76px; grid-template-columns: auto 1fr auto; }
  .brand img { height: 46px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 81px 0 0 0; background: var(--paper); padding: 24px;
    overflow-y: auto; display: none; border-top: 1px solid var(--line);
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a, .nav-trigger { width: 100%; min-height: 52px; font-size: 18px; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .dropdown { position: static; min-width: 0; box-shadow: none; border: 0; padding: 12px 0 8px; grid-template-columns: 1fr; gap: 18px; }
  .header-tools .tool-search, .header-tools .tool-account { display: none; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero__media { position: relative; width: 100%; height: 340px; order: -1; }
  .hero__media img {
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  }
  .hero__copy { padding: 8px 0 56px; }
  .split, .band, .page-intro__inner, .catalog-boards { grid-template-columns: 1fr; gap: 36px; }
  .page-intro__media { justify-self: center; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-dialog__inner { grid-template-columns: 1fr; }
  .pd-gallery__main { max-height: 52vh; }
  .pd-info { padding: 24px; }
  .section { padding: 72px 0; }
}
@media (max-width: 900px) { .catalog-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .product-grid, .product-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .arch-grid { gap: 20px 14px; }
  .box-card { grid-template-columns: 1fr; }
  .box-card__media { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__media { height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
