/* Larkspur Editions — site styles. Adapted from the approved preview (larkspur-preview/index.html). */
:root {
  --bone: #EDE6DA;
  --oat: #E1D5B8;
  --charcoal: #3A3836;
  --offwhite: #FAF8F4;
  --bg: var(--bone);
  --text: var(--charcoal);
  --text-muted: #6b6761;
  --card-bg: var(--offwhite);
  --alt-bg: var(--oat);
  --border: rgba(58, 56, 54, 0.14);
  --header-bg: var(--offwhite);
  --footer-bg: var(--charcoal);
  --footer-text: var(--bone);
  --btn-bg: var(--charcoal);
  --btn-text: var(--offwhite);
  --banner-bg: #cfae7a;
  --banner-text: #3A3836;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #211f1d;
    --text: #EDE6DA;
    --text-muted: #b6afa4;
    --card-bg: #2b2825;
    --alt-bg: #2a2724;
    --border: rgba(237, 230, 218, 0.14);
    --header-bg: #1b1a18;
    --footer-bg: #161513;
    --footer-text: #EDE6DA;
    --btn-bg: #EDE6DA;
    --btn-text: #211f1d;
    --banner-bg: #6b5530;
    --banner-text: #EDE6DA;
  }
}

:root[data-theme="dark"] {
  --bg: #211f1d;
  --text: #EDE6DA;
  --text-muted: #b6afa4;
  --card-bg: #2b2825;
  --alt-bg: #2a2724;
  --border: rgba(237, 230, 218, 0.14);
  --header-bg: #1b1a18;
  --footer-bg: #161513;
  --footer-text: #EDE6DA;
  --btn-bg: #EDE6DA;
  --btn-text: #211f1d;
  --banner-bg: #6b5530;
  --banner-text: #EDE6DA;
}

* { box-sizing: border-box; }
html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.1rem; font-weight: 500; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 740px; }

.preview-banner {
  background: var(--banner-bg);
  color: var(--banner-text);
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}

.offer-banner {
  background: var(--banner-bg);
  color: var(--banner-text);
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
  letter-spacing: 0.01em;
  position: relative;
}
.offer-banner p { margin: 0; padding-right: 28px; }
.offer-banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.offer-banner-close:hover { opacity: 0.7; }

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.main-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.92rem; }
.main-nav a:hover { color: var(--text-muted); }

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 62vh;
  background: var(--charcoal);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }

.hero-copy {
  position: relative;
  z-index: 1;
  color: var(--offwhite);
  padding: 48px 16px 56px;
  max-width: 640px;
  background: linear-gradient(0deg, rgba(20,19,18,0.72) 10%, rgba(20,19,18,0.15) 85%, transparent 100%);
  width: 100%;
}

.hero-copy h1 { color: var(--offwhite); }
.hero-copy p { color: #ECE6DD; max-width: 46ch; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 0.6em;
}

.hero .eyebrow { color: #d8cfbf; }

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { opacity: 0.85; }

.wrap.links-hub { max-width: 560px; text-align: center; }
.links-buttons { display: grid; gap: 12px; margin-top: 28px; }
.links-buttons .btn { display: flex; align-items: center; justify-content: center; min-height: 56px; margin: 0; }
.links-buttons .btn:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }

.btn-etsy { background: #cfae7a; color: #3A3836; }
.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  margin-left: 10px;
  padding: 11px 18px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.shop-strip { padding: 56px 0; }
.shop-strip h2 { text-align: center; margin-bottom: 1em; }

.coll-group { margin-bottom: 40px; }
.coll-group:last-child { margin-bottom: 0; }
.coll-group-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5em;
}

.coll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.coll-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 3px;
  transition: transform 0.15s ease;
}

.coll-card:hover { transform: translateY(-2px); }
.coll-img img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }

.coll-label {
  padding: 14px 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.coll-label span { font-size: 0.8rem; color: var(--text-muted); }

.collection { padding: 56px 0; border-top: 1px solid var(--border); }
.collection-alt { background: var(--alt-bg); }
.collection h1, .collection h2 { margin-bottom: 0.4em; }

.curator-note { max-width: 62ch; color: var(--text-muted); margin-bottom: 2.2em; }
.curator-note em { color: var(--text); font-style: italic; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }

.card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.card-img img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { margin-bottom: 0.3em; }
.price { margin: 0 0 0.2em; font-size: 0.95rem; }
.price .muted { color: var(--text-muted); font-size: 0.82rem; }
.coming-soon { margin: 0; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.01em; }

.bundle-card {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.bundle-media img { width: 100%; height: auto; display: block; }
.single-prints { margin-top: 36px; }
.set-available { display: block; color: var(--text-muted); font-size: 0.78rem; }
.bundle-thumb { aspect-ratio: 1/1; object-fit: cover; width: 100%; display: block; }
.bundle-body { padding: 20px 24px; }
.bundle-body h3 { margin-bottom: 0.4em; }
.bundle-body p { margin: 0 0 0.9em; color: var(--text-muted); font-size: 0.92rem; }
.bundle-compare em { color: var(--text); font-style: italic; }
.bundle-body .price { font-size: 1.05rem; }
.bundle-body .btn-etsy { display: inline-block; margin-top: 0.3em; }
@media (max-width: 720px) {
  .bundle-card { grid-template-columns: 1fr; }
}

.detail { padding: 48px 0 72px; border-top: 1px solid var(--border); background: var(--card-bg); }
.detail .eyebrow { margin-bottom: 0.3em; }
.detail h1 { margin-bottom: 1.4em; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: start;
}

.tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.tab-btn {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  cursor: pointer;
}

.tab-btn.active { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; margin-bottom: 14px; }

.sizes { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--border); }
.sizes li { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.sprice.muted { color: var(--text-muted); font-size: 0.85rem; }

.avail { font-size: 0.82rem; margin: 0 0 12px; }
.avail.available { color: #4f7a52; }
.avail.coming-soon { color: var(--text-muted); }

.detail-copy p { color: var(--text); }
.detail-copy .ai-line { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.2em; }
.detail-copy .ai-line em { font-style: italic; }
.detail-actions { margin-top: 10px; }

.page-section { padding: 64px 0; border-top: 1px solid var(--border); }
.page-section.alt { background: var(--alt-bg); }
.page-section ol { padding-left: 1.3em; }
.page-section li { margin-bottom: 0.8em; }
.page-section blockquote {
  margin: 1.2em 0;
  padding: 10px 18px;
  border-left: 3px solid var(--border);
  color: var(--text-muted);
  font-style: italic;
}

.policy-meta { color: var(--text-muted); font-size: 0.85rem; }

.page-section table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.page-section th, .page-section td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.page-section thead th { border-bottom: 2px solid var(--border); }

.journal-item { margin-bottom: 2.2em; }
.journal-item h2 { margin-bottom: 0.3em; }
.journal-item h2 a { text-decoration: none; color: inherit; }
.journal-item h2 a:hover { text-decoration: underline; }

.contact-block { font-size: 1.05rem; }

.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 20px; margin-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand .wordmark { color: var(--footer-text); margin-bottom: 0.4em; }
.footer-brand p { color: rgba(237,230,218,0.72); max-width: 32ch; font-size: 0.88rem; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-nav a { color: rgba(237,230,218,0.86); }
.footer-nav a:hover { color: var(--footer-text); }

.footer-fine {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(237,230,218,0.14);
  font-size: 0.76rem;
  color: rgba(237,230,218,0.55);
}

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .main-nav { gap: 14px; font-size: 0.85rem; width: 100%; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero { min-height: 52vh; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .coll-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .collection, .detail, .page-section, .shop-strip { padding: 40px 0; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}
