/* SoShine Crafts & Wonders
   Brand: Philippine-sun logo, red → orange → yellow gradient, charcoal script lettering.
   Fonts match the logo: Pacifico (SoShine), Momo Signature (Crafts & Wonders),
   Roboto Condensed (the verse line). Light theme only: the logo's charcoal
   lettering needs a light background. */
:root {
  color-scheme: light;
  --sun-red: #f9163b;
  --sun-orange: #fb8a2e;
  --sun-yellow: #ffd629;
  --sun: linear-gradient(90deg, var(--sun-red), var(--sun-orange) 50%, var(--sun-yellow));
  --ink: #3e3e3e;
  --muted: #6a625d;
  --bg: #fffdfa;
  --surface: #fff6ea;
  --line: #f3e2cf;
  --button: #d4102e;      /* deeper brand red so white text stays readable */
  --button-ink: #ffffff;
  --script: "Pacifico", "Brush Script MT", cursive;
  --signature: "Momo Signature", "Pacifico", cursive;
  --condensed: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
body::before { content: ""; display: block; height: 6px; background: var(--sun); }
img { max-width: 100%; display: block; }
.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
h2 { font-family: var(--script); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun-orange); outline-offset: 3px; border-radius: 6px; }
.label {
  font-family: var(--condensed); font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.label::before {
  content: ""; width: 12px; height: 12px; flex: none; background: var(--sun);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 80px; height: auto; }
.brand .name { font-family: var(--script); font-size: 1.55rem; line-height: 1; }
.brand .sub { font-family: var(--signature); font-size: 1.05rem; line-height: 1; color: var(--muted); }
.brand span { display: flex; flex-direction: column; gap: 4px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 22px; flex-wrap: wrap; font-family: var(--condensed); font-weight: 500; font-size: 1.02rem; letter-spacing: 0.02em; }
nav a { text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--sun-orange); }

/* Hero: the logo is the headline */
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 40px 64px; }
.hero-logo { width: min(560px, 100%); height: auto; }
.hero h1 { margin-top: 28px; font-family: var(--body); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.3rem); max-width: 26ch; }
.hero h1 .script { font-family: var(--script); font-weight: 400; color: var(--button); }
.hero p.lede { margin-top: 14px; font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 0.98rem; border: 2px solid var(--button); }
.btn.primary { background: var(--button); color: var(--button-ink); }
.btn.ghost { color: var(--button); background: transparent; }
.btn:hover { filter: brightness(1.08); }

/* Sections */
section.block { padding-block: 64px; }
section.alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 52ch; margin-top: 6px; }

/* Gallery */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.piece { display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.piece .ph { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 16px; overflow: hidden; position: relative; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.piece .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.piece:hover .ph img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .piece .ph img { transition: none; } }
.piece .tag { position: absolute; left: 10px; top: 10px; font-family: var(--condensed); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--ink); }
.piece .tag.available { background: var(--sun-yellow); }
.piece .tag.sold { background: var(--ink); color: #fff; }
.piece h3 { font-size: 1.04rem; font-weight: 700; overflow-wrap: anywhere; }
.piece .when { font-family: var(--condensed); font-size: 0.85rem; color: var(--muted); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 16px; }

/* Order steps: colors walk across the sun, red to yellow */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps li::before { content: counter(step); font-family: var(--condensed); font-weight: 700; font-size: 1.15rem; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-red); color: #fff; }
.steps li:nth-child(2)::before { background: #fa5133; }
.steps li:nth-child(3)::before { background: var(--sun-orange); color: var(--ink); }
.steps li:nth-child(4)::before { background: var(--sun-yellow); color: var(--ink); }
.steps h3 { font-size: 1.12rem; font-weight: 800; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.pay { margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pay .chip { font-family: var(--condensed); font-size: 0.95rem; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pay .btn { margin-left: auto; }
.contact { margin-top: 20px; color: var(--muted); }
.contact a, .footer-email a { color: var(--button); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* About */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.about .portrait { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--sun-orange); }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; }
.about .copy { display: flex; flex-direction: column; gap: 14px; max-width: 60ch; min-width: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 40px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer .sign { display: flex; flex-direction: column; gap: 6px; }
footer .sign .name { font-family: var(--script); font-size: 1.4rem; line-height: 1.2; }
footer .verse { font-family: var(--condensed); color: var(--muted); font-size: 0.98rem; }
footer .verse b { font-weight: 500; color: var(--ink); }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
footer small { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about .portrait { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 520px) {
  header.top .wrap { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  nav ul { gap: 4px 16px; font-size: 0.95rem; justify-content: center; }
  .pay .btn { margin-left: 0; }
  .hero .wrap { padding-block: 28px 48px; }
}
