/* Kapture by Korie — boutique storefront */

:root {
  --bg: #f6f1e8;
  --bg-deep: #efe7da;
  --ink: #2c2622;
  --muted: #6f675e;
  --card: #fffdf9;
  --line: #e6dcce;
  --accent: #9c4a32;
  --accent-dark: #7e3a26;
  --accent-soft: #f3e4dc;
  --gold: #c4a574;
  --shadow: 0 12px 30px rgba(44, 38, 34, 0.07);
  --shadow-hover: 0 18px 36px rgba(44, 38, 34, 0.12);
  --radius: 18px;
  --max: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, #fbe9d8 0%, transparent 60%),
    radial-gradient(800px 380px at 100% 0%, #eee6d6 0%, transparent 55%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px 28px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  color: var(--ink);
}

.wordmark-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.wordmark-by {
  font-family: Outfit, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
}

.site-nav a:hover,
.shop-icon:hover {
  color: var(--accent);
}

.site-nav a:focus-visible,
.shop-icon:focus-visible,
.hero-cta:focus-visible,
.amazon-btn:focus-visible,
.filter-btn:focus-visible,
.wordmark:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 40%, white);
  outline-offset: 3px;
}

.shop-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.shop-icon svg {
  width: 20px;
  height: 20px;
}

.hero {
  padding: 72px 24px 56px;
}

.hero-inner,
.shop,
.about-inner,
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
}

h1, h2, .shop-intro h2, .about h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  max-width: 12ch;
  margin-bottom: 18px;
}

.lede {
  max-width: 36rem;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-cta,
.amazon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 13px 22px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-cta:hover,
.amazon-btn:hover {
  background: var(--accent-dark);
}

.shop {
  padding: 0 24px 88px;
}

.shop-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  align-items: baseline;
  margin-bottom: 28px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.shop-intro h2,
.about h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.shop-intro p,
.about p {
  color: var(--muted);
  margin: 0;
  max-width: 38rem;
}

.toolbar {
  margin-bottom: 28px;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 16px;
}

.search-wrap {
  position: relative;
  flex: 1 1 280px;
  max-width: 460px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 13px 18px 13px 44px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.sort-wrap label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.sort-wrap select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%232c2622' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border-radius: 999px;
  padding: 12px 38px 12px 16px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

#categories {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
}

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #f8f3ea;
  border-color: var(--ink);
}

.count {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-media {
  display: block;
  position: relative;
  background: #fff;
  height: 240px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  background: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card-media img.is-loaded {
  opacity: 1;
}

.card-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.card-placeholder.is-visible,
.card-media.no-image .card-placeholder {
  display: flex;
}

.card-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.92;
}

.category-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 4px 10px;
  z-index: 1;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card h2 {
  font-family: Outfit, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
}

.card h2 a {
  text-decoration: none;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card h2 a:hover {
  color: var(--accent);
}

.price-block {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

.currency {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.no-price {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.amazon-btn {
  width: 100%;
  margin-top: 6px;
  padding: 11px 16px;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
  font-size: 1.05rem;
}

.about {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 72px 24px;
}

#shop,
#about,
#categories {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.about-inner {
  max-width: 720px;
}

.about h2 {
  margin: 0 0 16px;
}

.about p {
  font-size: 1.05rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: #2c2622;
  color: #d9d0c5;
  padding: 48px 24px 56px;
  font-size: 0.92rem;
}

.footer a { color: #fff; }

.footer-wordmark {
  margin: 0 0 18px;
}

.footer-wordmark .wordmark-name {
  color: #f7f1e8;
  font-size: 1.8rem;
}

.footer-wordmark .wordmark-by {
  color: var(--gold);
}

.footer p {
  margin: 0 0 10px;
  max-width: 46rem;
}

.disclosure {
  color: #f7f1e8;
  font-weight: 600;
}

.footer-meta {
  opacity: 0.8;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .site-nav {
    grid-column: 1 / -1;
    gap: 16px;
    padding-bottom: 4px;
  }

  .hero {
    padding: 48px 20px 40px;
  }

  .card-media {
    height: 210px;
  }

  .sort-wrap {
    margin-left: 0;
  }
}
