/* BMillsProductions — original marketplace look (not an Etsy copy).
   Dark theme: warm charcoal/navy surfaces, off-white type, terracotta accents.
   Fonts are Fraunces + Source Sans 3. Light theme is preserved in styles-light.css. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Italic-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Page and surfaces — warm charcoal/navy, not a cold blue-black */
  --cream: #1A1E27;
  --cream-deep: #222733;
  --paper: #252B36;
  --ink: #F3EDE4;
  --ink-soft: #D4C6B6;
  --navy: #F6F0E8;
  --accent: #E08A4A;
  --accent-btn: #B85224;
  --accent-hover: #A8491F;
  --accent-soft: rgba(224, 138, 74, 0.16);
  --line: #3A414E;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 440;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--accent-btn);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(26, 30, 39, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  min-width: 0;
}
.logo:hover { color: var(--navy); }
.mark {
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: var(--accent-btn);
  color: #F3EDE4;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.header-nav a:not(.btn):hover { color: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--accent-btn);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 20px rgba(184, 82, 36, 0.35);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-navy {
  background: var(--navy);
  color: #1A1E27;
}
.btn-navy:hover { background: #E8DFD2; color: #1A1E27; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--cream-deep); color: var(--navy); border-color: #535B6A; }
.btn-card {
  width: 100%;
  margin-top: auto;
}
.btn-soon, .btn[disabled], .soon-label {
  width: 100%;
  margin-top: auto;
  background: var(--cream-deep);
  color: var(--ink-soft);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  border: 1px solid var(--line);
}
.btn:focus-visible, .logo:focus-visible, .chip:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Layout helpers */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.section {
  padding: 4.2rem 0 1.2rem;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.8rem;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.45rem;
}
h1, h2, h3, .wordmark {
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--navy);
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
}
h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}
.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0;
}
.section-link {
  font-weight: 650;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.section-link:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 3.2rem 0 2.2rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.4rem 2.8rem;
  align-items: center;
}
.hero-copy p.hero-lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 0 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.chip:hover { border-color: var(--accent); color: var(--navy); background: var(--cream-deep); }
.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  background: transparent;
}
.hero-note {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Product cards */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-finance {
  grid-template-columns: repeat(4, 1fr);
}
.grid-books {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-width: 0;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-media {
  background: var(--cream-deep);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media.portrait {
  aspect-ratio: 3 / 4;
  background: #1E232C;
}
.card-media.portrait img {
  object-fit: contain;
}
.card-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.card-meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.card-body h3 { margin-bottom: 0.15rem; }
.price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0.15rem 0 0.55rem;
}

/* Featured book */
.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem 2.4rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.6rem;
}
.feature-cover {
  background: var(--cream);
  border-radius: 16px;
  overflow: hidden;
}
.feature-cover img {
  width: 100%;
  object-fit: contain;
}
.feature-copy h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.35rem;
}
.feature-copy .byline {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.feature-copy p { margin: 0 0 1rem; color: var(--ink-soft); }
.offer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 0.4rem;
}
.offer {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.offer h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 600;
}
.offer .price { margin: 0.2rem 0 0.7rem; }
.feature-samples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.1rem;
}
.feature-samples figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--cream-deep);
  border-radius: 12px;
  overflow: hidden;
}
.feature-samples img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.feature-samples figcaption {
  padding: 0.45rem 0.6rem 0.55rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 0 0 2.2rem;
}
.gallery figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.gallery figcaption {
  padding: 0.7rem 1rem 0.9rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Signup */
.signup {
  margin: 3.5rem 0 1rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  padding: 2.4rem 1.6rem;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38), inset 0 3px 0 var(--accent-btn);
}
.signup h2 { color: var(--navy); }
.signup p {
  margin: 0 auto 1.3rem;
  max-width: 32rem;
  color: var(--ink-soft);
}
.signup-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 32rem;
  margin: 0 auto;
}
.signup-form input[type="email"] {
  flex: 1 1 16rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}
.signup-form input[type="email"]::placeholder {
  color: #C9BDB0;
  opacity: 1;
}
.signup-note {
  margin: 1.05rem auto 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 28rem;
}
.signup-msg {
  display: none;
  margin: 0.9rem 0 0;
  font-weight: 600;
  color: var(--navy);
}
.signup-msg.show { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.6rem;
  margin-top: 2.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: flex-start;
}
.footer-brand {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}
.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--navy); }


/* Social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.85rem 0 0;
}
.social-link {
  width: 2.65rem;
  height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.social-link:hover {
  background: var(--accent-btn, var(--accent));
  color: #fff;
  border-color: transparent;
}
.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Follow along strip */
.follow-band {
  margin: 2.4rem 0 0;
  padding: 2.6rem 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.follow-inner .lede {
  margin: 0 auto 0.35rem;
}
.follow-inner .social-links {
  justify-content: center;
  margin-top: 1.15rem;
}
.follow-inner .social-link {
  width: 3rem;
  height: 3rem;
}
.follow-inner .social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}


/* About Bill */
.about-bill {
  padding-bottom: 2.2rem;
}
.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem 2.8rem;
  align-items: center;
}
.about-photo {
  width: 13.5rem;
  height: 13.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper);
}
.about-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 18%;
}
.about-copy .lede {
  max-width: 38rem;
  font-size: 1.18rem;
  line-height: 1.55;
}

.about-contact {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.about-contact a {
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
}
.about-contact a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 0.18em; }

.footer-contact {
  margin: 0.55rem 0 0;
}
.footer-contact a {
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}
.footer-contact a:hover { color: var(--accent); }


/* Favorite Finds */
.disclosure {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: -0.4rem 0 1.4rem;
  max-width: 40rem;
}
.disclosure-footer {
  margin: 0.9rem 0 0;
  max-width: 28rem;
  font-size: 0.85rem;
}
.grid-finds {
  grid-template-columns: repeat(3, 1fr);
}
.finds-media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #F7F1E8;
  border-bottom: 1px solid var(--line);
}
.finds-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #F7F1E8;
}
.card-blurb {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
  line-height: 1.45;
}

.btn-label-short { display: none; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-finance { grid-template-columns: repeat(3, 1fr); }
  .grid-finds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid,
  .feature { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .hero-art { order: -1; max-width: 36rem; margin: 0 auto; }
  .grid-finance { grid-template-columns: repeat(2, 1fr); }
  .grid-finds { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: 1rem; }
  .about-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.4rem;
  }
  .about-copy .lede { margin-left: auto; margin-right: auto; }
  .about-photo { width: 10.75rem; height: 10.75rem; }
}
@media (max-width: 720px) {
  .wordmark { font-size: 1.02rem; }
  .header-nav a:not(.btn) { display: none; }
  .header-inner { padding: 0.55rem 1rem; gap: 0.6rem; }
  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }
  .header-nav { margin-left: auto; }
  .header-nav .btn { padding: 0.58rem 0.95rem; }
  .offer-row { grid-template-columns: 1fr; }
  .section { padding-top: 3.2rem; }
}
@media (max-width: 520px) {
  .grid-finance { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .grid-finds { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .grid-books { grid-template-columns: 1fr; }
  .header-inner, .wrap { padding-left: 1rem; padding-right: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .card-body { padding: 0.8rem 0.75rem 0.9rem; }
  .card-body h3 { font-size: 0.98rem; }
  .price { font-size: 1.05rem; }
  .btn-card, .soon-label { padding: 0.58rem 0.45rem; font-size: 0.82rem; }
}


/* Keep Amazon product photos fully visible (many are tall with white backgrounds). */
.card-media.finds-media {
  background: #F7F1E8;
  position: relative;
  display: block;
}
.card-media.finds-media img {
  position: absolute;
  inset: 0;
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
  background: #F7F1E8;
}
