/* ==========================================================================
   KIKI ART – site styles
   Colours and fonts taken from the original WordPress site.
   ========================================================================== */

:root {
  --red: #cf2e2e;
  --red-dark: #a82222;
  --cream: #e9debe;
  --cream-light: #f4ecd6;
  --paper: #fbf7ec;
  --teal: #316460;
  --teal-dark: #234845;
  --mustard: #d9a23b;
  --hero-dim: #aa978b;

  --font-display: "Amatic SC", "Comic Sans MS", cursive;
  --font-body: "Josefin Sans", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 6px 20px rgba(49, 100, 96, 0.15);
  --max: 1160px;
  --narrow: 820px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--teal);
  background: var(--cream);
  /* subtle paper texture */
  background-image: radial-gradient(rgba(49, 100, 96, 0.05) 1px, transparent 1px);
  background-size: 6px 6px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.8rem; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }

main > section, main > article { margin-block: clamp(2.5rem, 6vw, 4.5rem); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75em 1.8em;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid var(--red);
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { color: #fff; }

.badge {
  display: inline-block;
  background: var(--mustard);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .1em;
  padding: .25em .8em;
  border-radius: 999px;
  margin-bottom: .5rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 6px; border: 2px solid rgba(255,255,255,.6); }
.brand span { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.brand:hover { color: #fff; }

.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: .5rem .9rem;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .18); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--red);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 16px 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
main > .hero { margin-top: 0; }
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: var(--hero-img) center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-dim); opacity: .5; }
.hero-inner { position: relative; padding: 2rem 16px; }
.hero h1 { font-size: clamp(4rem, 14vw, 8rem); margin-bottom: .1em; text-shadow: 0 3px 12px rgba(0,0,0,.25); }
.hero p { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin: 0 0 1.5rem; text-shadow: 0 2px 8px rgba(0,0,0,.35); }

/* ---------- Sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 2; }
}

.framed { border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid var(--paper); width: 100%; object-fit: cover; }

.quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--teal);
}

.band { background: var(--teal); color: var(--cream-light); padding-block: clamp(2.5rem, 6vw, 4rem); }
.band h2 { color: #fff; }

.highlights { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.highlights a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--teal);
  text-decoration: none;
  background: var(--paper);
  padding: .4rem 2rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.highlights a:hover { transform: rotate(-2deg) scale(1.05); color: var(--red); }

.intro h1 { font-size: clamp(3.5rem, 10vw, 6rem); }
.rainbow { background: linear-gradient(90deg, var(--teal), var(--red), var(--mustard), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Catalog ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--teal);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(49,100,96,.25); color: var(--teal); }
.card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.card h3 { font-size: 1.7rem; margin: .7rem .5rem .1rem; }
.card .price { margin: 0 0 1rem; color: var(--red); font-weight: 700; }

/* ---------- Product page ---------- */
.back-link { display: inline-block; margin-bottom: 1rem; text-decoration: none; font-weight: 700; }
.product-title { text-align: center; }
.product-title .price {
  display: inline-block;
  vertical-align: super;
  font-size: .5em;
  background: var(--red);
  color: #fff;
  padding: .1em .6em;
  border-radius: 999px;
  font-family: var(--font-body);
}

.prose { text-align: center; }
.prose p, .prose ul { max-width: 65ch; margin-inline: auto; }
.prose ul { text-align: left; }
.prose h3 { margin-top: 2rem; }
.prose hr { border: 0; border-top: 3px dotted var(--teal); width: 120px; margin: 2rem auto; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 5px solid var(--paper);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform .2s;
}
.gallery img:hover { transform: scale(1.02); }
.gallery figcaption { font-size: .9rem; margin-top: .4rem; font-weight: 700; }

.cta-row { text-align: center; margin-top: 2rem; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-list li { padding: .8rem 0; border-bottom: 2px dotted rgba(49,100,96,.3); }
.contact-list span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.contact-list a { font-size: 1.15rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: var(--cream-light); padding-top: 3rem; margin-top: 4rem; }
.site-footer h2 { font-size: 2rem; color: #fff; margin-bottom: .3em; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.copyright { text-align: center; margin: 2rem 0 0; padding: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20, 30, 30, .88); }
.lightbox figure { margin: 0; text-align: center; color: #fff; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 8px; margin-inline: auto; }
.lightbox figcaption { margin-top: .5rem; font-weight: 700; }
.lightbox button {
  position: fixed;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  font-size: 2.4rem;
  line-height: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
