/* KellerKat Quilts — public site
   Keeps the original warm palette (#fffdfa background, muted accents) and Adobe Typekit
   fonts (europa, aw-conqueror-inline), modernized into a responsive, card-based layout. */

:root {
  --bg: #fffdfa;
  --panel: #f9f3ec;
  --ink: #333333;
  --muted: #6f6457;
  --line: #ece2d4;
  --accent: #a8743f;        /* warm clay */
  --accent-dark: #8a5d31;
  --bullet: #beb4a7;
  --shadow: 0 6px 24px rgba(80, 60, 35, 0.08);
  --radius: 14px;
  --maxw: 1080px;
  --serif: "europa", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "aw-conqueror-inline", "europa", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.wrap { width: 92%; max-width: var(--maxw); margin: 0 auto; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand .name { font-family: var(--display); font-size: 1.45rem; line-height: 1; }
.brand .tagline {
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}
.brand .bullets { color: var(--bullet); }

.nav { display: flex; gap: 0.4rem; align-items: center; }
.nav a {
  color: #4d4d4d; text-transform: uppercase; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.03em;
  padding: 0.5rem 0.8rem; border-radius: 8px;
}
.nav a:hover, .nav a.active { background: var(--panel); color: var(--accent-dark); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; color: var(--ink); padding: 0.3rem 0.5rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; right: 4%;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
    padding: 0.6rem; box-shadow: var(--shadow); min-width: 180px;
  }
  .nav.open { display: flex; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; cursor: pointer; border: 0;
  font-family: var(--serif); font-weight: 700; font-size: 0.95rem;
  padding: 0.8rem 1.5rem; border-radius: 10px;
  background: var(--accent); color: #fff; transition: 0.18s;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--accent-dark); border: 2px solid var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }

/* ---- Hero / featured ---- */
.hero { padding: 3rem 0 1rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-family: var(--display); font-size: 2.6rem; line-height: 1.1; margin: 0 0 1rem; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.6rem; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-figure figcaption {
  margin-top: 0.7rem; font-size: 0.95rem; color: var(--muted); text-align: center;
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero h1 { font-size: 2rem; }
}

/* ---- Section headings ---- */
.section { padding: 2.5rem 0; }
.section-head { text-align: center; margin-bottom: 1.8rem; }
.section-head h2 {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 1.3rem; margin: 0 0 0.4rem;
}
.section-head .rule { width: 64px; height: 2px; background: var(--accent); margin: 0 auto; border: 0; }

/* ---- Gallery grid ---- */
.grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: 0.2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(80,60,35,0.14); }
.card a.thumb { display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--panel); }
.card a.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 0.9rem 1rem 1.1rem; }
.card .body h3 { margin: 0 0 0.25rem; font-size: 1.05rem; font-weight: 700; }
.card .body .meta { color: var(--muted); font-size: 0.9rem; }
.card .price { font-weight: 700; color: var(--ink); }

.badge {
  display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; margin-bottom: 0.4rem;
}
.badge.available { background: #e7f3e7; color: #2e6b34; }
.badge.sold { background: #f3e3e3; color: #9a3434; }
.badge.donated { background: #e6eef5; color: #335d80; }
.badge.archived { background: #eee; color: #666; }

/* ---- Quilt detail ---- */
.detail-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: start; }
.detail-main img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-thumbs { display: flex; gap: 0.6rem; margin-top: 0.7rem; flex-wrap: wrap; }
.detail-thumbs img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent;
}
.detail-thumbs img.active { border-color: var(--accent); }
.detail-info h1 { font-family: var(--display); font-size: 2rem; margin: 0 0 0.4rem; }
.detail-info .spec { margin: 0.3rem 0; color: var(--muted); }
.detail-info .price-lg { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 0.6rem 0 1.2rem; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }

/* ---- Forms / panels ---- */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow);
}
.form-control {
  width: 100%; padding: 0.7rem 0.9rem; margin-bottom: 1rem;
  border: 1px solid #d8cdbd; border-radius: 9px; font-family: var(--serif);
  font-size: 1rem; background: #fff;
}
.form-control:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
label { display: block; font-weight: 700; margin-bottom: 0.3rem; color: var(--ink); }

.prose { max-width: 640px; margin: 0 auto; }
.prose p { font-size: 1.08rem; margin: 0 0 1.1rem; }

/* ---- Flash messages ---- */
.flashes { margin: 1rem 0; }
.flash {
  padding: 0.8rem 1.1rem; border-radius: 10px; margin-bottom: 0.6rem;
  background: #e7f3e7; color: #2e6b34; border: 1px solid #cfe6cf;
}
.flash.error { background: #f8e6e6; color: #9a3434; border-color: #ecc9c9; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0;
  text-align: center; color: var(--muted); font-size: 0.9rem;
}
.site-footer a { color: var(--muted); }
.site-footer .contact { margin-bottom: 0.5rem; }
