/* =========================================================
   Potomac Falls Publishing — shared styles
   Palette & type match the Etsy shop banners:
   pale pink panels, dusty mauve script, spaced uppercase taglines,
   watercolor cottage art with sage-green accents.
   ========================================================= */

/* ---------- Fonts (self-hosted Google Fonts, latin subset) ---------- */
@font-face {
  font-family: "Allison";
  src: url("assets/fonts/allison-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("assets/fonts/lora-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("assets/fonts/lora-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --page:        #fff7fa;  /* outer page, like the banner margin */
  --blush:       #fcedf2;  /* banner panel pink (matches the illustration bg) */
  --blush-deep:  #f7dde6;
  --rose:        #ecc4d1;
  --cream:       #fffbf6;  /* card paper */
  --mauve:       #8f4a63;  /* script logo colour (5.6:1 on blush) */
  --plum:        #7a3d55;  /* links, buttons (7:1 on blush) */
  --ink:         #4a2c3a;  /* body text (10.8:1 on blush) */
  --ink-soft:    #6b4a59;
  --sage:        #a9bba4;
  --sage-deep:   #4f6b4c;  /* sage text (5.2:1 on blush) */
  --line:        #efd3dd;

  --font-script: "Allison", "Brush Script MT", cursive;
  --font-body:   "Lora", Georgia, "Times New Roman", serif;
  --font-label:  "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(122, 61, 85, .06), 0 10px 30px -12px rgba(122, 61, 85, .22);
  --wrap: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, .hero-intro, .lede { text-wrap: balance; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--plum); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  font-family: var(--font-label); font-size: .85rem;
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type helpers ---------- */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--mauve);
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
}
.tagline, .eyebrow {
  font-family: var(--font-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .78rem;
  color: var(--plum);
  margin: 0;
}
.eyebrow { color: var(--sage-deep); }

.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(3.4rem, 7vw, 5rem); margin-top: .25rem; }
.section-head p.lede { max-width: 38rem; margin: .75rem auto 0; color: var(--ink-soft); }

/* little watercolor-ish flourish under headings */
.flourish {
  display: block; width: 120px; height: 12px; margin: .9rem auto 0;
  background:
    radial-gradient(circle at 50% 50%, var(--rose) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent, var(--rose) 30%, transparent 46%, transparent 54%, var(--rose) 70%, transparent) center / 100% 1px no-repeat;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 247, 250, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--mauve);
}
.brand img { width: 52px; height: auto; }
.brand-name { font-family: var(--font-script); font-size: 2.35rem; line-height: 1; color: var(--mauve); padding-top: .2rem; }
.brand:hover .brand-name { color: var(--plum); }

.site-nav ul { list-style: none; display: flex; gap: clamp(.9rem, 3vw, 2rem); margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--font-label); font-weight: 500; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--plum); text-decoration: none; padding: .4rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--mauve); }

/* ---------- Banner panel (the Etsy-banner look) ---------- */
.banner {
  background: var(--blush);
  border-radius: var(--radius);
  margin: 1.5rem auto 0;
  overflow: hidden;
  position: relative;
}
.banner::after { /* faint watercolor wash in the corner */
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(236, 196, 209, .45), transparent);
  pointer-events: none;
}

/* ---------- Hero (home) ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  gap: 1rem; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
}
.hero-text { text-align: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(4rem, 9.5vw, 7.4rem); }
.hero h1 span { display: block; }
.hero .tagline { margin-top: 1.2rem; }
.hero-intro { max-width: 32rem; margin: 1.5rem auto 0; color: var(--ink-soft); font-size: 1.05rem; }
.hero-art { position: relative; z-index: 1; }
.hero-art img { width: min(100%, 420px); margin-inline: auto; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--font-label); font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .16em; text-decoration: none;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid var(--plum);
  background: var(--plum); color: #fff; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn--small { padding: .6rem 1rem; font-size: .66rem; letter-spacing: .12em; }
.btn[aria-disabled="true"] {
  background: transparent; color: var(--ink-soft); border-style: dashed; border-color: var(--rose);
  cursor: default; transform: none;
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 90px; }
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }

.welcome { text-align: center; }
.welcome .copy { max-width: 42rem; margin: 0 auto; font-size: 1.1rem; }
.welcome .copy { text-align: center; }

.values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-top: 3rem; list-style: none; padding: 0;
}
.values li {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; text-align: center;
}
.values h3 { font-size: 2.6rem; margin-bottom: .4rem; }
.values p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Author cards (home) ---------- */
.authors-section { background: var(--blush); }
.author-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center;
  list-style: none; padding: 0; margin: 0;
}
.author-card {
  position: relative; background: var(--cream); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem 1.5rem 1.75rem; text-align: center;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.author-card:hover, .author-card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 40px -14px rgba(122, 61, 85, .35); }
.author-card h3 { font-size: 3.2rem; margin: .9rem 0 .25rem; }
.author-card h3 a { color: inherit; text-decoration: none; }
.author-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.author-card .tagline { font-size: .66rem; }
.author-card p.blurb { color: var(--ink-soft); font-size: .97rem; margin: 1rem 0 1.25rem; }
.author-card .more {
  font-family: var(--font-label); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 600;
}
.author-card--soon { background: transparent; border: 2px dashed var(--rose); box-shadow: none; display: grid; place-content: center; min-height: 300px; }
.author-card--soon:hover { transform: none; box-shadow: none; }
.author-card--soon h3 { font-size: 2.6rem; }

.monogram {
  width: 108px; height: 108px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff 0, var(--blush) 45%, var(--rose) 100%);
  border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--rose), var(--shadow);
  font-family: var(--font-script); color: var(--mauve); font-size: 3.4rem; line-height: 1;
}
.monogram:not(:has(img)) { padding-top: .35rem; }
.monogram img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 50%; display: block; }

/* ---------- Author page ---------- */
.author-hero {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
  position: relative; z-index: 1;
}
.author-hero .monogram { width: clamp(150px, 20vw, 210px); height: clamp(150px, 20vw, 210px); font-size: clamp(4.5rem, 8vw, 6.5rem); }
.author-hero h1 { font-size: clamp(4.4rem, 10vw, 7.6rem); }
.author-hero .tagline { margin-top: .6rem; }
.author-hero .bio { margin-top: 1.4rem; max-width: 40rem; color: var(--ink-soft); }
.author-hero .bio p:last-child { margin-bottom: 0; }
.author-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.breadcrumb { font-family: var(--font-label); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 1.25rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.placeholder-note {
  font-family: var(--font-label); font-size: .72rem; letter-spacing: .08em;
  background: #fff; border: 1px dashed var(--rose); color: var(--ink-soft);
  border-radius: 10px; padding: .5rem .8rem; display: inline-block; margin: 0 0 1rem;
}

/* ---------- Book catalog grid ---------- */
.book-grid {
  display: grid; gap: 2rem 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center;
  list-style: none; padding: 0; margin: 0;
}
.book-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem 1.25rem 1.5rem;
  display: flex; flex-direction: column;
}
.book-cover {
  aspect-ratio: 5 / 8; width: 100%; position: relative; border-radius: 6px 10px 10px 6px; overflow: hidden;
  background: var(--blush); box-shadow: 0 10px 22px -10px rgba(74, 44, 58, .45), inset 6px 0 8px -6px rgba(74, 44, 58, .25);
  margin-bottom: 1.2rem;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
/* CSS-drawn placeholder cover, used until a real cover image is set */
.book-cover--placeholder {
  display: grid; place-content: center; text-align: center; gap: .6rem; padding: 1.5rem;
  background:
    radial-gradient(120% 70% at 20% 10%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(80% 50% at 85% 100%, rgba(236, 196, 209, .6), transparent 70%),
    linear-gradient(160deg, #fbe3eb, #f3cfdb);
  border: 1px solid var(--line);
}
.book-cover--placeholder .ph-title { font-family: var(--font-script); color: var(--mauve); font-size: 2.6rem; line-height: 1; }
.book-cover--placeholder .ph-author { font-family: var(--font-label); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--plum); }
.book-cover--placeholder .ph-badge {
  justify-self: center; font-family: var(--font-label); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(255,255,255,.75); color: var(--sage-deep); border-radius: 999px; padding: .3rem .7rem; margin-top: .4rem;
}
.book-card .series {
  font-family: var(--font-label); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage-deep); margin: 0 0 .35rem; font-weight: 600;
}
.book-card .book-title { font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; line-height: 1.3; margin: 0 0 .6rem; color: var(--ink); }
.book-card .blurb { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.2rem; flex: 1; }
.buy-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.book-title .subtitle { display: block; font-weight: 400; font-style: italic; font-size: 1rem; color: var(--ink-soft); margin-top: .15rem; }
.release-date { font-family: var(--font-label); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); font-weight: 600; margin: -.2rem 0 .6rem; }
.ku-note { font-size: .82rem; font-style: italic; color: var(--sage-deep); margin: .6rem 0 0; }
.ku-note::before { content: "\2726  "; font-style: normal; color: var(--rose); }
.badge {
  position: absolute; top: .8rem; left: -.1rem; z-index: 1;
  background: var(--plum); color: #fff; font-family: var(--font-label); font-weight: 600;
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .4rem .8rem .4rem .7rem; border-radius: 0 999px 999px 0; box-shadow: 0 4px 10px -4px rgba(74,44,58,.5);
}
.series-block + .series-block { margin-top: clamp(3rem, 7vw, 4.5rem); }
.series-head { text-align: center; margin-bottom: 1.75rem; }
.series-head h3 { font-size: clamp(2.6rem, 5.5vw, 3.6rem); }
.series-note { font-family: var(--font-label); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-deep); margin: .5rem 0 0; }

/* ARC team / newsletter */
.join-section { background: var(--blush); }
.join-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.75rem; align-items: stretch; }
.join-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.75rem, 4vw, 2.75rem); }
.join-card h2 { font-size: clamp(3rem, 6vw, 4.2rem); margin: .3rem 0 .8rem; }
.join-card--arc { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.join-card--soon { background: transparent; border: 2px dashed var(--rose); box-shadow: none; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.join-card--soon h2 { font-size: clamp(2.6rem, 5vw, 3.4rem); }
.qr { margin: 0; text-align: center; }
.qr img { width: 170px; height: 170px; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); image-rendering: pixelated; margin-inline: auto; }
.qr figcaption { font-family: var(--font-label); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: .6rem; }
.buy-note { font-family: var(--font-label); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: .7rem 0 0; }

.catalog-empty { text-align: center; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blush); border-top: 1px solid var(--line);
  padding: 3rem 0 2rem; text-align: center; margin-top: 0;
}
.site-footer .brand { justify-content: center; }
.site-footer .brand img { width: 64px; }
.site-footer .brand-name { font-size: 2.8rem; }
.site-footer .tagline { margin-top: .6rem; font-size: .68rem; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; padding: 0; margin: 1.5rem 0 0; }
.footer-nav a { font-family: var(--font-label); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { font-size: .85rem; color: var(--ink-soft); margin: 1.5rem 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(72%, 320px); }
  .values { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .author-hero { grid-template-columns: 1fr; text-align: center; }
  .author-hero .bio { margin-inline: auto; text-align: left; }
  .author-links { justify-content: center; }
  .join-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .join-card--arc { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 1.75rem, var(--wrap)); }
  .site-header .wrap { flex-direction: column; gap: .1rem; padding: .55rem 0 .45rem; min-height: 0; }
  .site-header { position: static; }
  .brand img { width: 40px; }
  .brand-name { font-size: 2rem; }
  .site-nav a { font-size: .68rem; letter-spacing: .16em; }
  .banner { margin-top: 1rem; }
  .tagline, .eyebrow { letter-spacing: .18em; font-size: .7rem; }
  .book-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
}
