/* Brand colors come straight from the Southern Harmony Creations logo. */
:root {
  --navy: #2e3d89;        /* "Southern Harmony" and the S */
  --navy-deep: #232f6c;
  --lime: #a6d823;        /* the blocks beside the S: kept to the logo itself */
  --slate: #50595c;       /* "Creations" */
  --silver: #acaaa9;      /* the divider line */
  --page: #ffffff;
  --mist: #f2f4f9;
  --ink: #1d2236;
  --line: rgba(46, 61, 137, 0.16);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1.1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.075rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--navy); margin: 0; letter-spacing: 0.01em; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: #fff; padding: 0.5rem 0.8rem; }

/* Header */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.7rem var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 54px; width: auto; }
.bar-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.bar-nav a { text-decoration: none; color: var(--slate); font-weight: 600; font-size: 0.98rem; }
.bar-nav a:hover { color: var(--navy); }
.cart-button {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: 700 0.98rem/1 var(--body); color: #fff; background: var(--navy);
  border: 0; border-radius: 999px; padding: 0.6rem 0.75rem 0.6rem 1.1rem; cursor: pointer;
}
.cart-button:hover { background: var(--navy-deep); }
.cart-count {
  min-width: 1.55rem; height: 1.55rem; display: grid; place-items: center;
  border-radius: 999px; background: #fff; color: var(--navy); font-size: 0.85rem;
}
.cart-count.bump { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }

/* Hero: copy | silver rule | the S mark printing itself, mirroring the logo's layout */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}
.hero-copy { max-width: 40rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; margin-bottom: 1.1rem; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.32rem); line-height: 1.5; margin: 0 0 1.8rem; color: var(--slate); }
.hero-mark { display: flex; justify-content: center; }
.printing {
  position: relative; width: min(64vw, 260px);
  animation: print 1.8s steps(28, end) 0.2s both;
}
.printing img { width: 100%; height: auto; }
/* faint layer lines across the mark, the way a print looks up close */
.printing::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 255, 255, 0.28) 6px 7px);
}
@keyframes print {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
  .hero::before {
    content: ""; grid-column: 2; grid-row: 1; align-self: stretch;
    width: 3px; background: var(--silver);
  }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-mark { grid-column: 3; grid-row: 1; justify-content: flex-start; }
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 700 1.02rem/1 var(--body); text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 0.95rem 1.45rem; border: 2px solid var(--navy);
}
.button-solid { background: var(--navy); color: #fff; }
.button-solid:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.button-quiet { background: transparent; color: var(--navy); }
.button-quiet:hover { background: var(--mist); }
.button-card { background: #fff; color: var(--navy); }
.button-card:hover { background: var(--mist); }
.button[disabled] { opacity: 0.45; cursor: not-allowed; }
.button.wide { width: 100%; }

/* Catalog */
main { padding: 0 var(--gutter) 3rem; outline: none; }
.loading { color: var(--slate); }
.group { padding-top: 3.5rem; }
.group-head {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.5rem;
  padding-bottom: 1rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--silver);
}
.group-head::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 4.5rem; height: 3px; background: var(--navy);
}
.group-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; }
.group-head p { margin: 0; color: var(--slate); max-width: 46ch; }

.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
@media (min-width: 780px) {
  .product.featured { grid-column: 1 / -1; grid-template-columns: 1.1fr 1fr; }
  .product.featured .shot { aspect-ratio: auto; min-height: 100%; }
}

.product {
  display: grid; grid-template-columns: minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.shot { position: relative; aspect-ratio: 4 / 3; background: var(--mist); border-bottom: 1px solid var(--line); }
.product.featured .shot { border-bottom: 0; border-right: 1px solid var(--line); }
@media (max-width: 779px) { .product.featured .shot { border-right: 0; border-bottom: 1px solid var(--line); } }
.shot img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.shot .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(180deg, var(--mist) 0 6px, #e8ebf3 6px 7px);
  color: var(--slate); font: 600 0.95rem/1.3 var(--body); padding: 1rem;
}
.placeholder b { display: block; font: 600 3.6rem/1 var(--display); color: var(--navy); opacity: 0.22; margin-bottom: 0.3rem; }

.info { padding: 1.4rem 1.45rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.title-row { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.info h3 { font-size: 1.5rem; line-height: 1.2; }
.tag {
  flex: none; font-size: 0.84rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 999px;
  background: var(--mist); color: var(--slate);
}
.tag.preorder { background: var(--navy); color: #fff; }
.summary { margin: 0; max-width: 60ch; }
.details { margin: 0; padding-left: 1.1rem; color: var(--slate); font-size: 0.98rem; }

fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; font-size: 0.93rem; margin-bottom: 0.45rem; padding: 0; color: var(--ink); }
.choices { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choice input, .addon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block; padding: 0.5rem 0.95rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; font-size: 0.97rem;
}
.choice span:hover { border-color: var(--navy); }
.choice span small { color: var(--slate); font-size: 0.86em; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:checked + span small { color: #d6dbf2; }
.choice input:focus-visible + span, .addon input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 3px; }

.addon { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.98rem; }
.addon span::before {
  content: ""; display: inline-block; vertical-align: -0.2em; margin-right: 0.55rem;
  width: 1.15rem; height: 1.15rem; border-radius: 4px; border: 1.5px solid var(--slate); background: #fff;
}
.addon input:checked + span::before {
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' stroke='%23fff' stroke-width='2.4' fill='none'/%3E%3C/svg%3E") center/80% no-repeat;
  border-color: var(--navy);
}

.buy {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.price { font: 700 1.9rem/1 var(--display); color: var(--navy); }
.price-note { display: block; font: 400 0.9rem/1.3 var(--body); color: var(--slate); margin-top: 0.35rem; }
.price-note s { text-decoration-thickness: 1.5px; }

/* How it works */
.how { padding: 3.5rem var(--gutter) 4rem; background: var(--mist); }
.how h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 1.6rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3.3rem; max-width: 36ch; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.15rem/1 var(--display); background: var(--navy); color: #fff;
}
.foot {
  padding: 2rem var(--gutter) 2.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; color: var(--slate);
}
.foot p { margin: 0; }

/* Cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(29, 34, 54, 0.45); z-index: 30; }
.cart {
  position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: #fff; display: flex; flex-direction: column;
  border-left: 1px solid var(--line); transform: translateX(0); transition: transform 0.28s ease;
}
.cart.closing { transform: translateX(100%); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 1.5rem; }
.icon-button {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid var(--line);
  background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--navy);
}
.cart-body { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.empty { text-align: center; padding: 2.5rem 0.5rem; color: var(--slate); }
.empty p { margin: 0 0 1.2rem; }

.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.line-name { font-weight: 700; }
.line-desc { color: var(--slate); font-size: 0.93rem; }
.line-total { font-weight: 700; text-align: right; }
.line-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.5rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 2.1rem; height: 2.1rem; border: 0; background: none; font-size: 1.15rem; cursor: pointer; color: var(--navy); border-radius: 50%; }
.stepper output { min-width: 1.8rem; text-align: center; font-weight: 700; }
.remove { margin-left: auto; background: none; border: 0; color: var(--slate); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.92rem; }

.totals { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.totals strong { font: 700 1.65rem/1 var(--display); color: var(--navy); }
.fine { margin: 0; font-size: 0.92rem; color: var(--slate); }
.actions { display: flex; flex-direction: column; gap: 0.6rem; }

.form { display: flex; flex-direction: column; gap: 0.95rem; }
.form h3 { font-size: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label, .field legend { font-weight: 700; font-size: 0.94rem; }
.field input, .field textarea {
  width: 100%; min-width: 0; font: inherit; padding: 0.7rem 0.8rem; border-radius: 8px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(46, 61, 137, 0.18); }
.field textarea { min-height: 5rem; resize: vertical; }
.field .hint { font-size: 0.86rem; color: var(--slate); }
.field-error { color: #a12a1a; font-size: 0.9rem; font-weight: 700; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.8rem; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.back { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; font: inherit; cursor: pointer; }
.alert { padding: 0.8rem 1rem; border-radius: 8px; background: #fbe3dd; color: #6d1f12; font-weight: 700; }

.done { text-align: center; padding: 1.5rem 0.25rem; }
.done .order-no { font: 700 1.55rem/1.1 var(--display); color: var(--navy); margin: 0.6rem 0 1rem; }
.done p { margin: 0 0 0.8rem; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translate(-50%, 1rem);
  background: var(--navy); color: #fff; padding: 0.8rem 1.1rem; border-radius: 18px;
  font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  display: flex; gap: 0.8rem; align-items: center; width: max-content; max-width: calc(100% - 2rem);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: #fff; color: var(--navy); border: 0; border-radius: 999px; padding: 0.45rem 0.85rem; font: 700 0.9rem/1 var(--body); cursor: pointer; }

@media (max-width: 640px) {
  .bar-nav { display: none; }
  .cart-button { margin-left: auto; }
  .brand-logo { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .printing { animation: none; }
  .cart, .toast { transition: none; }
  .cart-count.bump { animation: none; }
}

@media (max-width: 859px) { .hero-mark { display: none; } }

/* Photos, shipping notes, cart sums */
.thumbs { position: absolute; left: 0.6rem; bottom: 0.6rem; display: flex; gap: 0.4rem; }
.thumbs button { width: 3rem; height: 3rem; padding: 0; border-radius: 6px; overflow: hidden; border: 2px solid #fff; background: #fff; cursor: pointer; box-shadow: 0 1px 3px rgba(29, 34, 54, 0.25); }
.thumbs button[aria-pressed="true"] { border-color: var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ship-note { margin: -0.3rem 0 0; font-size: 0.93rem; color: var(--slate); }
.price.price-soon { font-size: 1.25rem; }
.method { display: flex; flex-direction: column; gap: 0.4rem; }
.method .choice input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.sums { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.sums div { display: flex; justify-content: space-between; gap: 1rem; color: var(--slate); }
.sums dt, .sums dd { margin: 0; }
.sums .totals { color: var(--ink); padding-top: 0.35rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Pickup areas */
.areas { display: flex; flex-direction: column; gap: 0.5rem; }
.area { position: relative; display: block; cursor: pointer; }
.area input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.field .area, .area span { font-weight: 400; }
.area span { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.7rem 0.9rem 0.7rem 2.6rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.area span::before { content: ""; position: absolute; left: 0.9rem; top: 0.95rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1.5px solid var(--slate); background: #fff; }
.area small { color: var(--slate); font-size: 0.92rem; }
.area input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.area input:checked + span::before { border: 0.35rem solid var(--navy); }
.area input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 3px; }
.area-field[aria-invalid="true"] .area span { border-color: #a12a1a; }
