/* ===========================================================================
   An Inkling of You — site styles
   One stylesheet for every page. Mobile-first; widens at 720px and 1000px.
   Premium illustrated-publisher feel: ivory ground, one sage accent, ink
   footer/CTA, gold hairline accents, coral button. Folio-Society-meets-gift.
   =========================================================================== */

:root {
  /* ---- Palette ---- */
  --ivory: #f8f4ee; /* primary background */
  --sage: #dde8df; /* the one or two accent sections */
  --ink: #1f2d3d; /* footer + dark CTA */
  --ink-soft: #57626d; /* supporting body copy */
  --gold: #d9a441; /* antique gold — small accents only */
  --coral: #f59a3d; /* primary button */
  --coral-deep: #e07f22; /* button hover */
  --border: #e6ded3; /* card + divider lines */
  --white: #fffdfa;

  --max: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 44px rgba(31, 45, 61, 0.1);
  --shadow-sm: 0 8px 22px rgba(31, 45, 61, 0.07);
  --shadow-btn: 0 8px 18px rgba(224, 127, 34, 0.28);

  --display: 'Berkshire Swash', 'Georgia', serif;
  --body: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 21px; /* Cormorant runs small — size up to keep it legible */
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--coral-deep);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
}
h1 {
  font-size: 2.8rem;
  margin: 0 0 0.4em;
}
h2 {
  font-size: 2.2rem;
  margin: 0 0 0.45em;
}
h3 {
  font-size: 1.5rem;
  margin: 0 0 0.3em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow {
  max-width: 820px;
}

/* ---- Sections & rhythm --------------------------------------------------- */
.section {
  padding: 70px 0;
}
section[id] {
  scroll-margin-top: 92px;
}
.section--sage {
  background: var(--sage);
}
.section--ink {
  background: var(--ink);
  color: rgba(248, 244, 238, 0.86);
}
.section--ink h1,
.section--ink h2,
.section--ink h3 {
  color: var(--ivory);
}
.center {
  text-align: center;
}

.lead {
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}
.center .lead,
.lead.center {
  margin-left: auto;
  margin-right: auto;
  max-width: 66rem; /* let short subtext stretch onto one line */
}

/* Editorial eyebrow — quiet, gold, sentence-case (no shouty all-caps) */
.eyebrow {
  font-family: var(--body);
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5em;
}

/* Thin decorative divider between major sections */
.divider {
  border: 0;
  height: 1px;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--border);
}
.divider--ornament {
  position: relative;
  background: none;
  height: auto;
  text-align: center;
  margin: 0 auto;
}
.divider--ornament::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  max-width: 760px;
  margin: 0 auto;
}
.divider--ornament span {
  position: relative;
  top: -0.7em;
  display: inline-block;
  background: var(--ivory);
  padding: 0 18px;
  color: var(--gold);
  font-size: 0.9rem;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  min-height: 52px;
  padding: 0 34px;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease;
  cursor: pointer;
  border: 0;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--coral-deep);
  color: #fff;
}
/* Secondary = quiet text-style link, so the hero has one dominant CTA */
.btn-text {
  background: transparent;
  color: var(--ink);
  min-height: 52px;
  padding: 0 8px;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}
.btn-text:hover {
  color: var(--coral-deep);
  transform: none;
}
.section--ink .btn-text {
  color: var(--ivory);
}

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand:hover {
  color: var(--ink);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0 30px 0 auto;
  padding: 0;
}
.nav-links a {
  font-family: var(--body);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500; /* lighter than before */
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  display: none;
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--ivory);
}
.mobile-menu.open {
  display: block;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 14px 24px 24px;
}
.mobile-menu li {
  padding: 9px 0;
}
.mobile-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  padding: 48px 0 44px;
}
.hero-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}
.hero h1 {
  font-size: 3rem;
}
.hero .lead {
  font-size: 1.4rem;
  max-width: 40ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}
.hero-note {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* Trust bullets under the hero copy */
.trust {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 10px;
}
.trust li {
  position: relative;
  padding-left: 32px;
  font-size: 1.12rem;
  color: var(--ink);
}
.trust li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--gold);
  font-weight: 700;
}

/* ---- Before / after slider ---------------------------------------------- */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  user-select: none;
  touch-action: pan-y;
  background: var(--white);
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-after {
  clip-path: inset(0 0 0 50%);
}
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  cursor: ew-resize;
  font-size: 0.95rem;
  color: var(--ink);
}
.ba-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 13px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(31, 45, 61, 0.72);
  color: #fff;
}
.ba-label.is-before {
  left: 12px;
}
.ba-label.is-after {
  right: 12px;
}
/* Slider that frames a product shot rather than a full-bleed scene */
.ba--product {
  background: var(--white);
}
.ba--product img {
  object-fit: contain;
  padding: 4%;
}

/* ---- Generic grid -------------------------------------------------------- */
.grid {
  display: grid;
  gap: 28px;
}

/* ---- How it works cards -------------------------------------------------- */
.hiw {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}
.hiw-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hiw-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ivory);
}
.hiw-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hiw-media .ba {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
}
.hiw-body {
  padding: 26px 26px 30px;
}
.hiw-body h3 {
  font-size: 1.45rem;
  margin-bottom: 0.35em;
}
.hiw-eyebrow {
  font-family: var(--body);
  font-style: italic;
  color: var(--gold);
  font-size: 0.98rem;
  margin-bottom: 0.2em;
}
.hiw-tags {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hiw-tags li {
  font-size: 0.95rem;
  background: var(--sage);
  color: #3f5a47;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---- Featured books (catalogue cards) ------------------------------------ */
.books {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}
.book {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.book:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.book-cover {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--ivory);
  position: relative;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}
.book-body {
  padding: 22px 24px 28px;
}
.book h3 {
  margin-bottom: 0.15em;
}
.book .tag {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.tag--live {
  background: #e7f1e7;
  color: #3f7a48;
}
.tag--soon {
  background: var(--ivory);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}
.book-link {
  display: inline-block;
  margin-top: 14px;
  font-style: italic;
  color: var(--coral-deep);
  text-decoration-color: var(--gold);
}

/* ---- Scene gallery ------------------------------------------------------- */
.gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 38px;
}
.gallery figure {
  margin: 0;
}
.gallery img {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.gallery figcaption {
  margin-top: 8px;
  font-size: 0.98rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}

/* ---- Price card ---------------------------------------------------------- */
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 44px 38px;
  max-width: 560px;
  margin: 38px auto 0;
  text-align: center;
}
.price-card .price {
  font-family: var(--display);
  font-size: 3.4rem;
  color: var(--ink);
  line-height: 1;
}
.price-card .price small {
  font-family: var(--body);
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  text-align: left;
}
.price-list li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.price-list li:last-child {
  border-bottom: 0;
}
.price-list li::before {
  content: '✦';
  position: absolute;
  left: 4px;
  top: 0.55em;
  color: var(--gold);
}

/* ---- FAQ ----------------------------------------------------------------- */
.faq {
  max-width: 820px;
  margin: 38px auto 0;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 26px 4px; /* taller rows, more breathing room */
}
.faq summary {
  font-family: var(--display);
  font-size: 1.4rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--gold);
  font-family: var(--body);
  font-size: 1.5rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  text-align: center;
}
.cta-band h2 {
  font-size: 2.6rem;
}
.section--ink .lead {
  color: rgba(248, 244, 238, 0.85);
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn {
  margin-top: 10px;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(248, 244, 238, 0.78);
  padding: 80px 0 40px; /* significantly more padding */
  font-size: 1.05rem;
}
.site-footer a {
  color: rgba(248, 244, 238, 0.9);
}
.footer-col strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ivory);
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  padding: 7px 0;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  text-align: left;
}
.footer-brand-block {
  text-align: center;
  flex: 0 1 340px;
  max-width: 340px;
  margin: 0;
}
.footer-badge {
  display: block;
  width: 170px;
  height: auto;
  margin: 0 auto 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(248, 244, 238, 0.16);
  margin-top: 48px;
  padding-top: 26px;
  font-size: 0.92rem;
  color: rgba(248, 244, 238, 0.55);
  text-align: center;
}

/* ---- Product page: summary ---------------------------------------------- */
.product-summary {
  display: grid;
  gap: 48px;
  align-items: start;
}
.product-visual {
  position: relative;
}
.product-visual .book-render {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.product-visual .child-chip {
  position: absolute;
  left: -3%;
  top: -7%;
  width: 42%;
  max-width: 232px;
  border-radius: 12px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
  z-index: 2;
}
.product-benefits {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}
.product-benefits li {
  position: relative;
  padding-left: 32px;
  font-size: 1.14rem;
}
.product-benefits li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.price-inline {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--ink);
  line-height: 1;
  margin: 6px 0 18px;
}
.price-inline small {
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---- Product page: book preview spreads --------------------------------- */
.spreads {
  display: grid;
  gap: 22px;
  margin: 40px auto 0;
  grid-template-columns: 1fr;
  max-width: 1040px;
}
.spread {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ---- Product page: same story, different child -------------------------- */
.compare {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 1fr;
  max-width: 760px;
  margin: 40px auto 0;
}
.compare figure {
  margin: 0;
}
.compare img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.compare figcaption {
  margin-top: 10px;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}

/* ---- Product page: personalisation showcase ----------------------------- */
.persona {
  display: grid;
  gap: 22px;
  margin-top: 52px;
}
.persona-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 26px;
  box-shadow: var(--shadow-sm);
}
.persona-card h3 {
  font-size: 1.3rem;
}
.persona-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* ---- Product page: personalisation + character slider ------------------- */
.personalise {
  display: grid;
  gap: 32px;
  margin-top: 44px;
  align-items: center;
}
.personalise .product-benefits {
  gap: 20px;
}
.personalise .product-benefits li {
  font-size: 1.35rem;
  padding-left: 38px;
}
.personalise-caption {
  margin: 16px 0 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}

/* ---- Forms (native fields) ---------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 36px 34px;
  max-width: 560px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 26px; /* generous spacing between groups */
}
.form-group label {
  display: block;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d8cfc1; /* 1px warm grey, no heavy borders */
  border-radius: 8px;
  padding: 12px 14px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.16);
}
.order-embed {
  max-width: 620px;
  margin: 40px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.order-embed iframe {
  display: block;
  width: 100%;
}

/* ---- Long-form legal / prose pages -------------------------------------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  margin-top: 1.6em;
  font-size: 1.7rem;
}
.prose h1 {
  font-size: 2.6rem;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 0.4em;
}
.note {
  background: var(--sage);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 1.05rem;
  color: #3f5a47;
}
.updated {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---- Brand logos --------------------------------------------------------- */
.brand-mark {
  height: 48px;
  width: auto;
  display: block;
}
.about-badge {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 0 24px;
}
.about-figure {
  float: right;
  width: 260px;
  max-width: 42%;
  height: auto;
  margin: 4px 0 18px 32px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ===========================================================================
   Wider screens
   =========================================================================== */
@media (min-width: 720px) {
  h1 {
    font-size: 3.3rem;
  }
  .hero h1 {
    font-size: 3.6rem;
  }
  h2 {
    font-size: 2.6rem;
  }
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .hiw {
    grid-template-columns: repeat(3, 1fr);
  }
  .books {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .persona {
    grid-template-columns: repeat(2, 1fr);
  }
  .spreads {
    grid-template-columns: repeat(3, 1fr);
  }
  .personalise {
    grid-template-columns: 1fr 1fr;
    gap: 52px;
  }
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
  }
  .hero {
    padding: 60px 0 52px;
  }
  .product-summary {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .persona {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .about-figure {
    float: none;
    display: block;
    width: 200px;
    max-width: 60%;
    margin: 0 auto 24px;
  }
  .section {
    padding: 52px 0;
  }
}
