/* Red Peony design system (Brand Passport §8): light, airy, soft watercolor, white space.
   One typeface everywhere (Public Sans): regular, bold, and italic for emphasis. Text is centred (Olga, 2 Oct).
   Barberry (#B61745) is an accent: primary buttons, small labels, focus. Text is a soft plum-charcoal, not black. */
:root {
  --ink: #3a2b31;
  --muted: #7a6a70;
  --line: #efe2e6;
  --bg: #fffdfd;
  --blush: #fdf4f6;
  --blush-2: #f8e5ea;
  --lilac: #f4effa;
  --accent: #b61745;
  --accent-dark: #93123a;
  --radius: 14px;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(182, 23, 69, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
h1, h2 { font-family: var(--sans); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; color: var(--ink); letter-spacing: 0; }
h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; line-height: 1.35; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.small { font-size: .875rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
mark.todo { background: #fff3b0; color: #5a4300; font-size: .85em; padding: 0 3px; border-radius: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Header */
.site-header { background: rgba(255, 253, 253, .96); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 4px; }
.logo img { width: 176px; }
.bag-link { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 4px; }
.bag-count { display: inline-block; min-width: 1.5em; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .78rem; text-align: center; }
.main-nav { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 10px; white-space: nowrap; scrollbar-width: none; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a[aria-current] { border-color: var(--accent); }
.main-nav a:hover { color: var(--accent); }

/* Buttons: one shape everywhere. Primary = Barberry, secondary = soft blush. */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; padding: 13px 26px; border-radius: 999px; font: 600 .98rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: var(--blush-2); color: var(--accent); }
.btn-ghost:hover { background: #f3d4dc; color: var(--accent-dark); }
.btn-wide { width: 100%; }
.btn[disabled] { background: #d9cdd1; color: #fff; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(182, 23, 69, .35); text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--accent); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blush-2); color: var(--accent); font: 600 1.3rem/1 var(--sans); cursor: pointer; }
.round:hover { background: #f3d4dc; }

/* Hero: watercolor wash */
.hero-band { background:
  radial-gradient(55% 75% at 6% 18%, rgba(246, 214, 222, .6), transparent 70%),
  radial-gradient(45% 70% at 94% 8%, rgba(228, 216, 242, .6), transparent 70%),
  radial-gradient(40% 60% at 70% 100%, rgba(251, 228, 232, .7), transparent 70%), var(--bg); }
.hero { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 40px; align-items: center; }
.hero h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-img { border-radius: var(--radius); width: 100%; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.2fr; gap: 56px; padding-top: 56px; padding-bottom: 56px; } }

/* Product grid */
.grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; } }
.card a { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.card img { border-radius: var(--radius); margin-bottom: 10px; aspect-ratio: 4 / 5; object-fit: cover; background: #fff; }
.card-name { font-weight: 600; font-size: 1.02rem; }
.card-type { font-size: .86rem; color: var(--muted); }
.card-price { font-size: .95rem; }
.card-price em { font-style: normal; color: var(--accent); }
.card a:hover .card-name { color: var(--accent); }

.band { background: var(--blush); }
.cols { display: grid; gap: 28px; }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(3, 1fr); } }
.intro { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .3em; }
.prose .answer { background: var(--blush); padding: 16px 18px; border-radius: var(--radius); }
.jump a { font-weight: 600; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--accent); }

/* Founder */
.founder { display: grid; gap: 28px; align-items: center; }
@media (min-width: 760px) { .founder { grid-template-columns: 340px 1fr; gap: 56px; } }
.founder-photo { max-width: 340px; }
.founder-photo img { width: 100%; }
.founder p { font-size: 1.05rem; }
.founder .sign, .prose .sign { font-family: var(--sans); font-style: italic; font-size: 1.2rem; line-height: 2; margin: 1.4em 0 1.8em; }
.about-photo { float: right; width: min(240px, 42%); margin: 0 0 12px 20px; }

/* Reviews */
.reviews-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.carousel { list-style: none; margin: 20px 0 0; padding: 0 0 8px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; }
.review { flex: 0 0 min(320px, 85%); scroll-snap-align: start; background: var(--blush); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.review .stars { color: var(--accent); letter-spacing: 3px; font-size: .9rem; margin-bottom: 8px; }
.review blockquote { margin: 0 0 14px; font-size: 1rem; line-height: 1.6; flex: 1; }
.review .who { font-size: .82rem; color: var(--muted); margin: 0; }
.carousel-btns { display: flex; gap: 8px; }

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 16px; }
.crumbs a { color: var(--muted); }

/* Product page */
.product { display: grid; gap: 28px; padding-top: 16px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } .buy { position: sticky; top: 16px; } }
.gallery { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery li { flex: 0 0 88%; scroll-snap-align: start; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; background: #fff; }
@media (min-width: 900px) { .gallery { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; } .gallery li:first-child { grid-column: 1 / -1; } }
.buy h1 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: .2em; }
.buy h1 .sub { display: block; font-family: var(--sans); font-size: .95rem; letter-spacing: 0; color: var(--muted); margin-top: 8px; font-weight: 400; }
.price { font-size: 1.35rem; font-weight: 600; }
.was { color: var(--muted, #777); font-weight: 400; }
.now { color: var(--accent); }
.sale-tag { display: inline-block; background: var(--accent); color: #fff; font-size: .7em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .1em .5em; border-radius: 3px; vertical-align: middle; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
legend a { font-weight: 400; }
.opt { display: inline-block; margin: 0 6px 8px 0; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-block; min-width: 54px; text-align: center; padding: 9px 15px; border: 1px solid #dcc9cf; border-radius: 999px; cursor: pointer; background: #fff; }
.opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt input.soldout + span { color: #a3959a; text-decoration: line-through; border-style: dashed; }
fieldset.single .opt span { cursor: default; }
.stock-note { min-height: 1.6em; font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.added { margin-top: 10px; background: var(--blush); padding: 10px 14px; border-radius: var(--radius); }
.fit-note { padding: 14px 0 14px 1.2em; margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.qa p { margin: 0 0 14px; }
.faq-title { margin-top: 0; }

/* Size charts */
.chart { margin: 16px 0 28px; }
.chart h3 { margin-bottom: 10px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; background: #fff; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--blush); font-weight: 600; }
tbody th { font-weight: 600; }

/* Notify me + sign-up */
.notify { background: var(--blush); border-radius: var(--radius); padding: 18px; margin: 4px 0 8px; }
.notify p { margin-bottom: 10px; }
.notify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-row input, .ship-to select, .ship-to input { flex: 1 1 200px; min-width: 0; font: inherit; color: var(--ink); padding: 12px 16px; border: 1px solid #dcc9cf; border-radius: 999px; background: #fff; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; margin-top: 10px; }
.check input { margin-top: 4px; accent-color: var(--accent); }
[data-notify-msg] { margin: 8px 0 0; min-height: 1.4em; }
.signup { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.signup .notify-row { max-width: 480px; }
.signup p { max-width: 640px; }

/* Bag */
.cart-lines { list-style: none; padding: 0; margin: 0 0 24px; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { border-radius: 10px; }
.cart-line .meta { font-size: .9rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty button:not(.link-btn) { font: inherit; background: var(--blush-2); color: var(--accent); border: 0; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; }
.qty .link-btn { margin-left: 10px; font-size: .9rem; }
.ship-to { display: grid; gap: 6px; margin-bottom: 18px; max-width: 360px; }
.ship-to label { font-weight: 600; }
.ship-to select, .ship-to input { border-radius: 10px; }
.cart-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 600; margin: 8px 0; }
.error { color: #8f1036; background: #fdecee; padding: 10px 14px; border-radius: var(--radius); }

/* Footer */
.site-footer { margin-top: 56px; background: var(--blush); padding: 40px 0 20px; }
.site-footer .signup h2 { font-size: 1.35rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h2 { font-family: var(--sans); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.footer-grid a, .footer-grid .link-btn { display: block; color: var(--ink); text-decoration: none; padding: 4px 0; font-size: .95rem; }
.footer-grid a:hover, .footer-grid .link-btn:hover { color: var(--accent); }
.site-footer > .small { margin-top: 28px; }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(58, 43, 49, .16); padding: 16px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cookie p { margin: 0; flex: 1 1 280px; font-size: .92rem; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn { padding: 10px 18px; font-size: .92rem; }

/* About: design steps */
.design-steps { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; gap: 20px; }
@media (min-width: 640px) { .design-steps { grid-template-columns: repeat(3, 1fr); } }
.design-steps img { border-radius: var(--radius); margin: 0 auto 10px; width: 100%; max-width: 160px; aspect-ratio: 1; object-fit: cover; }
.design-steps h3 { margin-top: 4px; }
.design-steps p { font-size: .95rem; }
.find-us li { margin-bottom: .4em; }

/* Contact form */
.contact-form { display: grid; gap: 14px; margin: 20px 0; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { font: 400 1rem var(--sans); color: var(--ink); padding: 12px 14px; border: 1px solid #dcc9cf; border-radius: 10px; background: #fff; }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }

/* Homepage banner: the whole photo edge to edge, headline and button centred underneath */
.banner { background: var(--blush); }
.banner-img { width: 100%; height: clamp(200px, 34vw, 440px); object-fit: cover; object-position: center 22%; }
.banner-text { padding: 28px 0 36px; text-align: center; }
.banner-text h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-left: auto; margin-right: auto; max-width: 22em; }
.banner-text .actions { justify-content: center; }

/* Centred text everywhere (Olga, 2 Oct). Forms, tables, bags and bullet lists stay readable:
   the block is centred, the lines inside start at the left edge. */
main, .site-footer { text-align: center; }
.intro, .lede, .narrow, .prose, .founder-text, .signup p { margin-left: auto; margin-right: auto; }
.prose ul, .prose ol, .fit-note, .design-steps p { text-align: left; display: inline-block; max-width: 640px; }
.prose ul, .prose ol { margin: 0 auto 1em; }
.design-steps p, .design-steps h3 { text-align: center; display: block; }
.actions, .notify-row, .carousel-btns, .reviews-head, .cookie-actions { justify-content: center; }
.reviews-head { flex-direction: column; align-items: center; }
.grid .card a { align-items: center; }
.founder { text-align: center; justify-items: center; }
.founder-photo { margin: 0 auto; }
.buy fieldset { text-align: center; }
legend { margin-left: auto; margin-right: auto; }
.qa summary { list-style-position: inside; }
.contact-form, .ship-to, .cart-lines, .cart-row, .cart-total, table, .chart, .crumbs { text-align: left; }
.contact-form { max-width: 560px; margin-left: auto; margin-right: auto; }
.contact-form .btn { justify-self: center; }
.signup .notify-row { margin: 0 auto; }
.footer-grid { text-align: center; }
.about-photo { float: none; margin: 0 auto 16px; display: block; }
.answer { text-align: left; }
.prose ul.design-steps { display: grid; max-width: none; text-align: center; margin: 20px 0 8px; }
@media (min-width: 640px) { .prose ul.design-steps { grid-template-columns: repeat(3, 1fr); } }

/* Homepage hero (text left, photo right): keep its text left-aligned on wide screens */
@media (min-width: 900px) {
  .hero-text { text-align: left; }
  .hero-text .actions { justify-content: flex-start; }
}

/* Homepage banner from Olga (headline is part of the picture). The button sits under the words on wide screens. */
.banner2 { position: relative; }
.banner2 img { width: 100%; height: auto; }
.banner2-cta { text-align: center; margin: 18px 0 0; }
@media (min-width: 760px) {
  .banner2-cta { position: absolute; left: 20.5%; top: 64%; transform: translateX(-50%); margin: 0; }
}

/* Swimsuit + beach shirt offer */
.offer-note { color: var(--accent); margin-top: -6px; }
.offer-tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--accent); background: var(--blush-2); border-radius: 999px; padding: 1px 8px; margin-top: 2px; }
.upsell { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; text-align: left; background: var(--blush); border-radius: var(--radius); padding: 16px; margin: 0 0 22px; }
.upsell img { border-radius: 10px; width: 96px; height: 120px; object-fit: cover; }
.upsell p { margin: 0 0 8px; }
.upsell-title { font-weight: 600; font-size: 1.05rem; }
.upsell-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.upsell-row select { font: inherit; padding: 10px 12px; border: 1px solid #dcc9cf; border-radius: 10px; background: #fff; }
.upsell .btn { padding: 10px 18px; }
