/* =========================================================
   FiberBunnie — warm & artsy theme
   Change the colors here to restyle the whole site.
   ========================================================= */
:root {
  --cream: #fdf3f5;
  --paper: #fffafc;
  --ink: #3b2640;
  --ink-soft: #6f5672;
  --berry: #d64f8c;
  --berry-dark: #b23a6f;
  --sage: #7fa868;
  --plum: #7b4fa0;
  --lilac: #c6a6e6;
  --blush: #f7c4d8;
  --pink: #e05a8a;
  --line: #ecd6e2;
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(80, 40, 90, .25);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Karla", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
  --header-bg: rgba(253, 243, 245, .9);
  --speckle: rgba(150, 80, 140, .07);
  --on-accent: #ffffff;
  --gutter: clamp(16px, 5vw, 64px);
}
/* Dark mode (follows the visitor's device setting) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #221a26; --paper: #2d2232; --ink: #f3e4ef; --ink-soft: #c8b3c6;
    --berry: #ec6fa3; --berry-dark: #f598bf; --sage: #86ad72; --plum: #b991e0;
    --lilac: #8f6fb8; --blush: #6e3a55; --line: #463549; --pink: #f287ad;
    --header-bg: rgba(34, 26, 38, .9); --speckle: rgba(255, 210, 240, .05);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cream: #221a26; --paper: #2d2232; --ink: #f3e4ef; --ink-soft: #c8b3c6;
    --berry: #ec6fa3; --berry-dark: #f598bf; --sage: #86ad72; --plum: #b991e0;
    --lilac: #8f6fb8; --blush: #6e3a55; --line: #463549; --pink: #f287ad;
    --header-bg: rgba(34, 26, 38, .9); --speckle: rgba(255, 210, 240, .05);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  /* soft paper speckle */
  background-image: radial-gradient(var(--speckle) 1px, transparent 1px);
  background-size: 18px 18px;
}
img { max-width: 100%; display: block; }
a { color: var(--berry-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; }
h1 em { font-style: italic; color: var(--pink); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
.scribble { font-family: var(--font-hand); font-size: 1.6rem; color: var(--plum); margin: 0 0 .3em; }
.hidden { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85em 1.6em; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  cursor: pointer; font-family: inherit; font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary { background: var(--berry); color: var(--on-accent); }
.btn-primary:hover { background: var(--berry-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-small { padding: .6em 1.2em; font-size: .95rem; background: var(--paper); color: var(--ink); margin-top: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .8rem;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  background: var(--header-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; }
.site-nav { display: flex; gap: 1.6rem; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--berry); }
.nav-cta { background: var(--ink); color: var(--cream) !important; padding: .5em 1.1em; border-radius: 999px; }
.nav-cta:hover { background: var(--plum); }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 999px;
  padding: .4em 1em; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

/* ---------- Logo (your FB bunny; colored by the theme) ---------- */
.logo-mark {
  display: inline-block; width: 30px; height: 60px; background: var(--ink);
  -webkit-mask: url("images/logo-bold.png") center / contain no-repeat;
          mask: url("images/logo-bold.png") center / contain no-repeat;
}
.logo-mark-lg { width: 70px; height: 140px; margin: 0 auto .6rem; display: block; background: var(--plum);
  -webkit-mask-image: url("images/logo.png"); mask-image: url("images/logo.png"); }

/* ---------- Layout ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p { color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
  max-width: 1200px; margin: 0 auto; padding-block: clamp(48px, 8vw, 110px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 100%; }
.hero-text, .about-text, .contact-intro { min-width: 0; }
.blob { position: absolute; border-radius: 46% 54% 60% 40% / 50% 40% 60% 50%; }
.blob-1 { inset: 6% 4% 10% 8%; background: var(--blush); animation: wobble 12s ease-in-out infinite; }
.blob-3 { width: 22%; height: 22%; left: 2%; top: 4%; background: var(--lilac); animation: wobble 10s ease-in-out infinite; }
.blob-2 { width: 38%; height: 38%; right: 0; bottom: 4%; background: var(--sage); opacity: .85;
  animation: wobble 9s ease-in-out infinite reverse; }
.hero-bunny { position: absolute; inset: 18%; width: 64%; filter: drop-shadow(0 12px 16px rgba(90,50,30,.25)); }
.yarn-trail { position: absolute; left: -10%; bottom: -4%; width: 120%; height: 30%; }
.yarn-trail path { fill: none; stroke: var(--plum); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 10; }
@keyframes wobble {
  50% { border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%; transform: rotate(6deg); }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--lilac);
  transform: rotate(-2deg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.photo-note { position: absolute; right: -6px; bottom: -42px; transform: rotate(-6deg); }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.tag-list li { background: var(--paper); border: 1.5px dashed var(--sage); padding: .3em .9em; border-radius: 999px; font-weight: 500; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: var(--accent); }
.card-fiber   { --accent: var(--berry); }
.card-jewelry { --accent: var(--lilac); }
.card-quilt   { --accent: var(--sage); }
.card-custom  { --accent: var(--plum); }
.card-icon { font-size: 2.2rem; margin-bottom: .4rem; }
.card p { color: var(--ink-soft); }
.card ul { list-style: none; padding: 0; margin: .4rem 0 1.4rem; }
.card li { display: flex; justify-content: space-between; gap: 1rem; padding: .45em 0; border-bottom: 1px dashed var(--line); }
.card li span:last-child { font-weight: 700; color: var(--berry-dark); white-space: nowrap; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.filter { font: inherit; font-weight: 700; padding: .5em 1.2em; border-radius: 999px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.filter.is-active, .filter:hover { background: var(--ink); color: var(--cream); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 260px; gap: 1.2rem; }
.tile { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); background: var(--paper); }
.tile.tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.05); }
.tile figcaption { position: absolute; left: .8rem; bottom: .8rem; background: var(--cream); padding: .25em .8em;
  border-radius: 999px; font-weight: 700; font-size: .95rem; border: 1.5px solid var(--ink); }
.tile.is-hidden { display: none; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-intro p { color: var(--ink-soft); }
.contact-form { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: 10px 10px 0 var(--lilac); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream);
  border: 2px solid var(--line); border-radius: 14px; padding: .75em 1em; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--berry); }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 2.5rem 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); }
.site-footer p { margin: .2rem 0; }

/* ---------- Thanks page ---------- */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 16px; }


/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--cream); padding-block: 1rem 1.4rem; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line); gap: 1rem; }
  .site-nav.is-open { display: flex; }
  .hero, .about, .contact { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; margin: 0 auto; width: 100%; }
  .about-photo { max-width: 360px; margin: 0 auto; }
  .grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .tile.tall { grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
