/* Charlie Romeo Prints: "Autumn Harvest" studio theme (after J5's studio-theme splash v2).
   Static CSS, no frameworks, no external requests. Mobile first. */

@font-face { font-family: "Fraunces"; src: url("/assets/brand/fonts/fraunces.woff") format("woff"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/brand/fonts/dm-sans.woff") format("woff"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #FBF7F1;          /* warm off-white */
  --band: #F3EADD;        /* cream band */
  --surface: #FFFFFF;
  --text: #2B1D14;        /* deep brown */
  --text-soft: #5E4A3B;
  --line: #E2D5C3;        /* hairlines */
  --accent: #A0381C;      /* rust: buttons and links only */
  --accent-hover: #7E2B15;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Tag colors (from the card palette), used as borders and tints with dark text */
  --orange: #D9731E; --red: #B83A2E; --green: #6B8E3D; --teal: #3F7F6E;
  --shadow: 0 18px 32px -22px rgba(43,29,20,.45), 0 2px 6px rgba(43,29,20,.06);
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 1rem; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
main:focus { outline: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute !important; 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: 1rem; top: -4rem; z-index: 20; background: var(--text); color: #fff; padding: .6rem 1rem; border-radius: 4px; }
.skip-link:focus { top: 1rem; color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  background: var(--accent); color: #fff; padding: .75rem 1.25rem; border-radius: 4px; border: 1px solid var(--accent);
  box-shadow: 0 1px 2px rgba(43,29,20,.12);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; box-shadow: 0 6px 16px -6px rgba(126,43,21,.45); transform: translateY(-1px); }
.btn--big { font-size: 1.05rem; padding: 1rem 1.6rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.mark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.mark:hover { color: var(--text); }
.mark img { width: 34px; height: 34px; }
.mark__name { font-family: var(--serif); font-size: 1.15rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { display: inline-block; padding: .35rem 0; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--text); }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav__etsy a { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.section--small { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section--line { border-top: 1px solid var(--line); }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); text-align: center; margin: 0 0 .8rem; }
.section-title--small { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 2rem; }
.section-sub { text-align: center; color: var(--text-soft); margin: 0 auto; max-width: 36rem; }
.section-cta { text-align: center; margin: clamp(2rem, 5vw, 3rem) 0 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0; }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.25rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: var(--text-soft); }
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: var(--accent); flex: none; }
.hero__title { font-size: clamp(2.6rem, 11vw, 5.2rem); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 1rem; }
.hero__tagline { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0 0 .75rem; }
.hero__intro { color: var(--text-soft); font-size: 1.08rem; max-width: 33rem; margin: 0 0 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 0 0 1.75rem; }
.perks { list-style: none; margin: 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); max-width: 33rem; display: flex; flex-direction: column; gap: .4rem; }
.perks li { position: relative; padding-left: 1.1rem; font-size: .92rem; font-weight: 500; color: var(--text-soft); }
.perks li::before { content: ""; position: absolute; left: 0; top: .8em; width: .55rem; height: 1px; background: var(--accent); }

.hero__art { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1.1; justify-self: center; }
.hero__art::before { content: ""; position: absolute; inset: 12% 10% 10% 0; background: var(--band); border-radius: 2px; }
.plate { position: absolute; width: 56%; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow); transition: transform .2s ease; }
.plate:hover { transform: translateY(-4px); }
.plate--back { left: 4%; top: 0; }
.plate--front { right: 0; bottom: 0; z-index: 1; }

/* ---------- Book grid and cards ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 2rem 1.75rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(43,29,20,.5), 0 2px 6px rgba(43,29,20,.06); }
.card__img { display: block; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1rem .25rem .25rem; }
.card__title { font-size: 1.4rem; margin: .5rem 0 .6rem; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--accent); text-decoration: underline; }
.meta { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.meta li + li { position: relative; }
.meta li + li::before { content: ""; position: absolute; left: -.5rem; top: .35em; height: .9em; width: 1px; background: var(--line); }
.card__blurb { margin: 0 0 1.1rem; color: var(--text-soft); font-size: .97rem; }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.price { margin: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.price span, .buy__price span { font-family: var(--sans); font-size: .85rem; color: var(--text-soft); }

.tag { display: inline-block; align-self: flex-start; margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--tag, var(--line)); background: #fff; background: color-mix(in srgb, var(--tag, var(--line)) 14%, #fff); }
.tag--halloween { --tag: var(--orange); }
.tag--thanksgiving { --tag: var(--red); }
.tag--christmas { --tag: var(--green); }
.tag--all-year { --tag: var(--teal); }

/* ---------- Filters ---------- */
.filters { display: grid; gap: 1rem; margin: 0 0 2rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.filters__label { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: 600 .92rem/1.2 var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .5rem .95rem; min-height: 44px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.chip:hover { border-color: var(--text-soft); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.filters__status { margin: 0; font-size: .9rem; color: var(--text-soft); }
.empty { text-align: center; padding: 3rem 1rem; }
.empty p { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 1rem; }

/* ---------- Seasons strip ---------- */
.seasons { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.25rem; }
.season { position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--tag); border-radius: 4px; padding: 1.25rem 1.25rem 1.1rem; }
.season h3 { font-size: 1.4rem; margin: 0 0 .4rem; }
.season h3 a { color: var(--text); text-decoration: none; }
.season h3 a::after { content: ""; position: absolute; inset: 0; } /* whole tile is clickable */
.season:hover h3 a { color: var(--accent); text-decoration: underline; }
.season:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.season h3 a:focus-visible { outline: none; }
.season p { margin: 0; color: var(--text-soft); font-size: .95rem; }
.season--halloween { --tag: var(--orange); }
.season--thanksgiving { --tag: var(--red); }
.season--christmas { --tag: var(--green); }
.season--all-year { --tag: var(--teal); }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.steps li { display: flex; flex-direction: column; gap: .3rem; padding-top: 1.2rem; border-top: 1px solid var(--text); }
.steps li:last-child { grid-column: 1 / -1; }
.steps__num { font-family: var(--serif); color: var(--accent); font-weight: 500; letter-spacing: .04em; margin-bottom: .4rem; }
.steps strong { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.steps li > span:last-child { color: var(--text-soft); font-size: .97rem; }

.soon { text-align: center; }
.soon p { margin: 0 0 .5rem; color: var(--text-soft); }

/* ---------- Page heads and prose ---------- */
.page-head { padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-title { font-size: clamp(2.3rem, 7vw, 3.6rem); margin: 0 0 .6rem; }
.page-sub { margin: 0; color: var(--text-soft); max-width: 40rem; font-size: 1.08rem; }
.prose { padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose > * { max-width: 44rem; }
.prose h2 { font-size: 1.75rem; margin: 2.25rem 0 .75rem; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; letter-spacing: 0; margin: 1.5rem 0 .35rem; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.lead { font-size: 1.15rem; color: var(--text-soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.contact { list-style: none; padding: 0 !important; display: grid; gap: 1.25rem; }
.contact li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem 1.5rem; }
.contact h2 { margin: 0 0 .75rem !important; font-size: 1.4rem !important; }
.contact p { margin: 0 !important; }
.contact__email { font-size: 1.15rem; font-weight: 600; word-break: break-all; }

/* ---------- Book page ---------- */
.crumbs { padding-top: 1.25rem; font-size: .9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; color: var(--text-soft); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.book { display: grid; gap: 2rem; padding-top: 1.5rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.book__hero { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 10px; box-shadow: var(--shadow); }
.book__hero--mockup { padding: 0; overflow: hidden; }
.book__pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1.1rem; }
.book__pages--two { grid-template-columns: repeat(2, 1fr); }
.book__pages figure { margin: 0; }
.book__pages picture { display: block; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 4px; box-shadow: 0 8px 16px -12px rgba(43,29,20,.4); }
.book__pages figcaption { margin-top: .4rem; font-size: .82rem; color: var(--text-soft); text-align: center; }
.book__title { font-size: clamp(2.2rem, 6vw, 3.3rem); margin: .75rem 0 .4rem; }
.book__subtitle { font-size: 1.15rem; color: var(--text-soft); margin: 0 0 1.5rem; }
.facts { margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .75rem 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.facts div:last-child { grid-column: 1 / -1; }
.facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.facts dd { margin: 0; font-weight: 600; }
.buy { background: var(--band); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; margin: 0 0 1.75rem; }
.buy__price { font-family: var(--serif); font-size: 2rem; line-height: 1; margin: 0 0 1rem; }
.buy .btn { width: 100%; }
.buy__note { margin: .75rem 0 0; font-size: .88rem; color: var(--text-soft); }
.book__blurb { font-size: 1.1rem; margin: 0 0 1.5rem; }
.book__h2 { font-size: 1.4rem; margin: 0 0 .6rem; }
.highlights { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.highlights li { margin-bottom: .3rem; }
.disclosure { font-size: .88rem; color: var(--text-soft); border-left: 3px solid var(--line); padding-left: 1rem; }
.disclosure p { margin: 0 0 .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #EDE3D6; padding: 2.75rem 0 3rem; }
.site-footer a { color: #E8C9A6; font-weight: 500; }
.site-footer a:hover { color: #FBF7F1; }
.site-footer__top { display: grid; gap: 1.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(237,227,214,.2); }
.site-footer__brand { margin: 0; font-family: var(--serif); font-size: 1.4rem; color: #FBF7F1; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer__links a { display: inline-block; padding: .2rem 0; }
.site-footer__email { margin: 0; word-break: break-word; }
.site-footer__legal { padding-top: 1.25rem; font-size: .86rem; color: #D9C7B4; max-width: 60rem; }
.site-footer__legal p { margin: 0 0 .45rem; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  :root { --gutter: 1.5rem; }
  .perks { flex-direction: row; flex-wrap: wrap; gap: .5rem 0; }
  .perks li { padding: 0 1rem; border-left: 1px solid var(--line); }
  .perks li:first-child { padding-left: 0; border-left: 0; }
  .perks li::before { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li:last-child { grid-column: auto; }
  .filters { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 2.5rem; }
  .filters__status { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .hero__art { justify-self: end; max-width: 470px; }
  .book { grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .site-footer__top { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 3rem; }
  .site-footer__email { grid-column: 2; }
}
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .grid--three { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover, .card:focus-within, .plate:hover, .btn:hover { transform: none; }
}
