:root {
  /* Deep plum and gold. --indigo is the main brand colour (plum); the name is kept from the first palette. */
  --ivory: #fdf8fc;
  --paper: #ffffff;
  --ink: #2a0f30;
  --indigo: #3d1244;
  --gold: #9a7216;
  --gold-bright: #e2c15a;
  --on-dark: #f6e9f7;
  --line: #eadfeb;
  --muted: #6f5f74;
  --sand: #f6ecf6;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Great Vibes', 'Brush Script MT', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--gold); font-weight: 600; margin-bottom: .6em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* Buttons and fields */
.btn { display: inline-block; background: var(--indigo); color: var(--gold-bright); border: 1px solid var(--indigo); padding: 14px 28px; font: 500 .9rem var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: 2px; text-align: center; transition: background .15s, color .15s; }
.btn:hover { background: #2a0b30; }
.btn.ghost { background: transparent; color: var(--indigo); }
.btn.ghost:hover { background: var(--indigo); color: var(--gold-bright); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.small { padding: 10px 16px; font-size: .78rem; }
.btn.block { display: block; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 11px 12px; width: 100%; }
label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.row2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }

/* Header */
/* The brand name, always in the logo's cursive, wherever it appears in text */
.aina { font-family: var(--script); font-size: 1.4em; line-height: 1; font-weight: 400; font-style: normal; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.promo { background: #ecd9ee; color: var(--indigo); font-size: .8rem; font-weight: 500; letter-spacing: .08em; padding: 7px 0; overflow: hidden; white-space: nowrap; }
.promo-track { display: inline-flex; animation: marquee 38s linear infinite; }
.promo:hover .promo-track { animation-play-state: paused; }
.promo-track span { padding: 0 28px; }
.promo-track span::after { content: '✦'; margin-left: 56px; opacity: .55; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--indigo); color: var(--on-dark); }
.site-header :focus-visible { outline-color: var(--gold-bright); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { font-family: var(--script); font-size: 2.3rem; line-height: 1; color: var(--on-dark); text-decoration: none; padding-top: 6px; }
.head-logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-ring { width: 38px; aspect-ratio: 1; border-radius: 50%; background: url(../images/logo/burst.jpg) center / 110%; flex: none; margin-top: -6px; animation: spin 40s linear infinite; }
.nav { display: none; }
.nav a { text-decoration: none; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 0; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--gold-bright); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search input { width: 130px; padding: 8px 10px; font-size: .85rem; }
#currency { width: auto; padding: 8px 6px; font-size: .82rem; }
.bag-link { text-decoration: none; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
#bag-count { display: inline-block; min-width: 22px; text-align: center; background: var(--gold-bright); color: var(--indigo); font-weight: 600; border-radius: 11px; padding: 0 6px; font-size: .75rem; line-height: 22px; letter-spacing: 0; }
.site-header input, .site-header select { color: var(--ink); border-color: transparent; }
.icon-btn { background: none; border: 0; padding: 10px 6px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--on-dark); margin: 5px 0; }
.nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--indigo); padding: 8px 16px 16px; }
.nav.open a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
@media (max-width: 559px) { .search { display: none; } }
@media (min-width: 1360px) {
  .menu-btn { display: none; }
  .nav { display: flex; gap: 20px; margin-left: 24px; }
}

/* Home */
.hero { display: grid; background: var(--sand); }
.hero-copy { padding: 44px 16px; align-self: center; }
.hero-copy p { font-size: 1.1rem; max-width: 30em; }
.hero-imgs { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-img { overflow: hidden; }
.hero-imgs img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 5fr 7fr; }
  .hero-copy { padding: 64px 48px 64px max(32px, calc((100vw - 1240px) / 2 + 32px)); }
}
.section { padding: 56px 0; }
.section.tint { background: var(--sand); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head a { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.tile { position: relative; display: block; text-decoration: none; color: #fff; overflow: hidden; border-radius: 2px; }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.04); }
.tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(15, 12, 35, .78)); }
.tile-label strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.tile-label span { font-size: .85rem; opacity: .9; }
.feature { display: grid; gap: 28px; align-items: center; }
.feature-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-imgs img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: 2px; }
.feature .script { font-family: var(--script); color: var(--indigo); font-size: clamp(3rem, 7vw, 5rem); line-height: 1; margin-bottom: .1em; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 56px; } }
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Product grid */
.grid { display: grid; gap: 22px 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { text-decoration: none; display: block; }
.card-img { position: relative; background: var(--sand); overflow: hidden; border-radius: 2px; }
.card-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.badge { position: absolute; top: 10px; left: 10px; background: #fff; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; font-weight: 600; }
.badge.sig { background: var(--indigo); color: #fff; }
.card-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-top: 10px; line-height: 1.2; }
.card-type { font-size: .85rem; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.price { font-weight: 500; }
.dots { display: flex; gap: 5px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); display: inline-block; }

/* Shop */
.page-head { padding: 36px 0 8px; }
.filters { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 12px 0 24px; }
.filters select { font-size: .88rem; padding: 10px; }
@media (min-width: 900px) { .filters { grid-template-columns: repeat(6, 1fr); } }
.empty { padding: 48px 0; text-align: center; }

/* Product page */
.product { display: grid; gap: 28px; padding: 28px 0 56px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.gallery { display: grid; gap: 10px; }
.gallery .main { overflow: hidden; background: var(--sand); border-radius: 2px; }
.gallery .main img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; cursor: zoom-in; transition: transform .3s; }
.gallery .main.zoom img { transform: scale(2); cursor: zoom-out; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; overflow: hidden; border-radius: 2px; }
.thumbs button[aria-pressed="true"] { border-color: var(--indigo); }
.thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.thumbs .crop-top img { object-position: 50% 12%; }
.buy h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .1em; }
.buy .price { font-size: 1.35rem; margin: 10px 0 2px; }
.opt { margin: 20px 0; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; margin-bottom: 8px; }
.opt-head strong { letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--line); padding: 10px 14px; min-width: 48px; font: inherit; font-size: .9rem; cursor: pointer; border-radius: 2px; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--indigo); background: var(--indigo); color: #fff; }
.chip[disabled] { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.custom-box { background: var(--sand); padding: 16px; margin-top: 12px; border-radius: 2px; }
.custom-box .row4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .custom-box .row4 { grid-template-columns: repeat(4, 1fr); } }
.note { font-size: .85rem; color: var(--muted); }
.note.strong { color: var(--ink); background: #fff7e0; border-left: 3px solid var(--gold); padding: 8px 12px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; }
details > div { padding-top: 10px; font-size: .95rem; }
details ul { margin: 0; padding-left: 1.2em; }

/* Mix and match */
.mix { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.mix-col img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: 2px; margin-bottom: 12px; }
.mix-col .field { margin-bottom: 8px; }
.mix-total { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .mix { gap: 40px; max-width: 900px; } }

/* Bag and checkout */
.two-col { display: grid; gap: 32px; padding-bottom: 56px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; } }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 84px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.line-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.line-meta { font-size: .85rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 8px; background: #fff; }
.qty button { background: none; border: 0; width: 36px; height: 36px; font-size: 1.1rem; cursor: pointer; }
.qty span { min-width: 28px; text-align: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; text-decoration: underline; color: var(--muted); cursor: pointer; margin-left: 12px; }
.summary { background: var(--paper); border: 1px solid var(--line); padding: 22px; border-radius: 2px; }
@media (min-width: 900px) { .summary { position: sticky; top: 88px; } }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 600; font-size: 1.15rem; }
.code-row { display: flex; gap: 8px; margin: 12px 0; }
.demo-flag { background: #fff7e0; border: 1px solid #e9cf8a; padding: 10px 14px; font-size: .88rem; margin-bottom: 18px; border-radius: 2px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; padding: 0; }
.confirm { text-align: center; padding: 64px 0; max-width: 640px; margin: 0 auto; }
.confirm .summary { text-align: left; margin-top: 24px; }

/* Tables */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }

/* Footer */
.site-footer { background: var(--indigo); color: var(--on-dark); padding: 48px 0 24px; margin-top: 24px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; } }
.site-footer h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); }
.site-footer a { display: block; text-decoration: none; padding: 3px 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* Footer carries the full logo for dark backgrounds: sunburst above the wordmark */
.foot-mark { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: 12px; }
.foot-ring { width: 52px; aspect-ratio: 1; border-radius: 50%; background: url(../images/logo/burst.jpg) center / 110%; margin-bottom: -4px; animation: spin 40s linear infinite; }
.foot-logo { color: var(--on-dark); font-size: 3rem; }
.site-footer input { color: var(--ink); }
.social a { display: inline-block; margin-right: 14px; text-decoration: underline; }
.signup { display: flex; gap: 8px; }
.signup input { min-width: 0; }
.signup .btn { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--indigo); }
.form-note { font-size: .85rem; margin-top: 8px; min-height: 1.2em; }
.legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .82rem; }
.home-signup .signup { max-width: 440px; margin: 0 auto; }
.home-signup .signup .btn { background: var(--indigo); border-color: var(--indigo); color: var(--gold-bright); }

.whatsapp { position: fixed; right: 16px; bottom: 16px; background: #128c4b; color: #fff; text-decoration: none; padding: 12px 18px; border-radius: 28px; font-size: .88rem; font-weight: 500; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); z-index: 40; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 2px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(40px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* Page arrival: only when moving to a new page, not when an option is clicked */
#app.enter { animation: fadeIn .45s ease both; }
#app.enter .hero-copy > * { animation: fadeUp .8s ease both; }
#app.enter .hero-copy > :nth-child(2) { animation-delay: .12s; }
#app.enter .hero-copy > :nth-child(3) { animation-delay: .24s; }
#app.enter .hero-copy > :nth-child(4) { animation-delay: .36s; }
#app.enter .hero-img { animation: slideIn 1s cubic-bezier(.2, .7, .2, 1) both; }
#app.enter .hero-img:nth-child(2) { animation-delay: .15s; }
#app.enter .hero-img:nth-child(3) { animation-delay: .3s; }
#app.enter .page-head, #app.enter .gallery, #app.enter .buy { animation: fadeUp .7s ease both; }
#app.enter .buy { animation-delay: .12s; }
.hero-img img { animation: drift 16s ease-in-out infinite alternate; }
.hero-img:nth-child(2) img { animation-delay: -5s; }
.hero-img:nth-child(3) img { animation-delay: -10s; }
.feature .script { animation: fadeUp 1s ease both; }

/* Hero photos fade through each colour of the piece */
.slides { position: relative; aspect-ratio: 3 / 4; }
.slides img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s ease; }
.slides img.on { opacity: 1; }

/* Pointing at a product fades to it in another colour */
.card-img .alt { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .55s ease, transform .4s; }
.card:hover .card-img .alt { opacity: 1; }
.badge { z-index: 1; }

/* Lookbook: outfits glide sideways */
.lookbook { overflow: hidden; }
.look-strip { overflow: hidden; }
.look-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.look-strip:hover .look-track { animation-play-state: paused; }
.look { flex: none; width: 190px; margin-right: 14px; text-decoration: none; }
.look img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; transition: transform .4s; }
.look:hover img { transform: translateY(-6px); }
.look > span { display: block; margin-top: 8px; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; text-align: center; }
@media (min-width: 900px) { .look { width: 240px; } }

/* Things rise into place as they scroll into view */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

.btn { transition: background .15s, color .15s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(61, 18, 68, .22); }
.btn:active { transform: none; box-shadow: none; }
.card-name { transition: color .2s; }
.card:hover .card-name { color: var(--gold); }
.chip { transition: background .15s, color .15s, border-color .15s, transform .15s; }
.chip:hover { transform: translateY(-1px); }
#bag-count.bump { animation: pulse .45s ease; }
.gallery .main img { transition: transform .3s, opacity .3s; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .look-strip { overflow-x: auto; }
}
