/* ============================================================
   theme.css — the storybook treatment applied to the remaining
   content pages: book, FAQ, testimonials, helpful hints, review.

   Loaded after style.css. Everything is scoped under body.pg (with
   per-page refinements under body.pg-book, .pg-faq, and so on), so
   the homepage, gallery and 404 keep their own stylesheets.

   Shared vocabulary, same as the homepage and gallery:
     · cream paper texture ground
     · gold ornament above a Playfair title with a cranberry accent
     · matted cards with a gold keyline
   ============================================================ */

/* ── Page header ───────────────────────────────────────────*/
body.pg .pghead {
  position: relative;
  padding: 76px 32px 64px;
  background: var(--cream) url('/assets/images/decor/paper-texture.jpg?v=2') center / 600px auto repeat;
  text-align: center;
}
body.pg .pghead__inner { max-width: 800px; margin: 0 auto; }

body.pg .pghead__ornament {
  display: block;
  width: 300px;
  max-width: 62%;
  height: auto;
  margin: 0 auto 28px;
  opacity: 0.9;
}
body.pg .pghead__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--evergreen);
  margin: 0;
}
body.pg .pghead__title em { font-style: italic; color: var(--cranberry); }
body.pg .pghead__lede {
  max-width: 620px;
  margin: 20px auto 0;
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
body.pg .pghead__lede a { color: #7C5E24; border-bottom: 1px solid rgba(201,162,76,0.6); }
body.pg .pghead__lede a:hover { border-bottom-color: var(--gold); }

/* Split variant: copy on the left, a framed portrait on the right. */
body.pg .pghead--split { text-align: left; }
body.pg .pghead--split .pghead__inner {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}
body.pg .pghead--split .pghead__ornament { margin: 0 0 24px; }
body.pg .pghead--split .pghead__lede { margin-left: 0; }
body.pg .pghead__portrait {
  margin: 0 0 0 auto;
  width: 100%;
  max-width: 330px;
  padding: 13px;
  background: linear-gradient(160deg, #F6EFDF 0%, #E6D8B8 100%);
  border: 1px solid rgba(201,162,76,0.9);
  border-radius: 3px;
  box-shadow: 0 22px 46px rgba(61,40,23,0.26);
  transform: rotate(0.7deg);
}
body.pg .pghead__portrait img {
  width: 100%;
  /* The markup carries height="901"; without this the presentational hint
     wins and aspect-ratio is ignored, blowing the frame up to full height. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(61,40,23,0.22);
}

/* ── Body sections ─────────────────────────────────────────*/
body.pg .sec--paper,
body.pg .pgbody {
  background: var(--cream) url('/assets/images/decor/paper-texture.jpg?v=2') center / 600px auto repeat;
}

/* A small ornament rule for sub-headings inside a page. */
body.pg .pgsub {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.02em;
  color: var(--evergreen);
  margin: 0 0 20px;
}
body.pg .pgsub em { color: var(--cranberry); font-style: italic; }

/* ── BOOK ──────────────────────────────────────────────────*/
body.pg-book .book-below {
  max-width: 820px;
  margin: 64px auto 0;
}
body.pg-book .book-below__title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--evergreen);
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(14,56,37,0.18);
}
body.pg-book .book-below__title + * { margin-top: 0; }
body.pg-book .book-below > .book-below__title ~ .book-below__title { margin-top: 56px; }

/* Booking steps: a real sequence, so the numbers carry meaning. */
body.pg-book .booking-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
body.pg-book .booking-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 62px;
  min-height: 42px;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}
body.pg-book .booking-steps li:last-child { margin-bottom: 0; }
body.pg-book .booking-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  color: var(--cream);
  background: var(--evergreen);
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(14,56,37,0.28);
}

/* Fees: a plaque, matching the countdown treatment. */
body.pg-book .fees-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(61,40,23,0.16);
  background: var(--cream-soft);
}
body.pg-book .fees-table thead th {
  background: var(--evergreen);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 18px;
}
body.pg-book .fees-table tbody th {
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--evergreen);
  background: rgba(212,175,55,0.10);
  padding: 17px 18px;
}
body.pg-book .fees-table tbody td {
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  color: var(--cranberry);
  padding: 17px 18px;
}
body.pg-book .fees-table tbody tr + tr th,
body.pg-book .fees-table tbody tr + tr td { border-top: 1px solid rgba(14,56,37,0.14); }
body.pg-book .fees-table__note {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ash);
  text-align: center;
}

/* The booking form sits in the same gold plaque as the fees table. */
body.pg-book .form-wrap {
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 20px 46px rgba(61,40,23,0.16);
}

/* ── FAQ ───────────────────────────────────────────────────*/
body.pg-faq .faq-list { max-width: 860px; margin: 0 auto; }
body.pg-faq .faq-item {
  background: var(--cream-soft);
  border: 1px solid rgba(14,56,37,0.16);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  margin-bottom: 16px;
  padding: 26px 30px 24px;
  box-shadow: 0 8px 22px rgba(61,40,23,0.08);
  transition: box-shadow 0.25s, border-left-color 0.25s;
}
body.pg-faq .faq-item:hover {
  box-shadow: 0 14px 30px rgba(61,40,23,0.14);
  border-left-color: var(--cranberry);
}
body.pg-faq .faq-q {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
}
/* The order of these answers carries no meaning, so the marker is an
   ornament rather than a number. */
body.pg-faq .faq-q__mark {
  flex: none;
  color: var(--gold-deep);
  transform: translateY(2px);
}
body.pg-faq .faq-q__mark svg { width: 15px; height: 15px; }
body.pg-faq .faq-q__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  color: var(--evergreen);
}
body.pg-faq .faq-a {
  padding-left: 27px;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
body.pg-faq .faq-a a {
  color: #7C5E24;
  border-bottom: 1px solid rgba(201,162,76,0.65);
}
body.pg-faq .faq-a a:hover { border-bottom-color: var(--gold); color: var(--cranberry); }

/* ── TESTIMONIALS ──────────────────────────────────────────*/
body.pg-testi .testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}
body.pg-testi .testi {
  position: relative;
  padding: 34px 30px 28px;
  background: linear-gradient(160deg, #FFFBF0 0%, #F3E9D2 100%);
  border: 1px solid rgba(201,162,76,0.85);
  border-radius: 3px;
  box-shadow: 0 14px 32px rgba(61,40,23,0.14);
  transition: transform 0.3s, box-shadow 0.3s;
}
body.pg-testi .testi:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(61,40,23,0.22);
}
body.pg-testi .testi__quote-mark {
  font-family: var(--display);
  font-size: 64px;
  line-height: 0.6;
  color: rgba(212,175,55,0.5);
  margin-bottom: 6px;
}
body.pg-testi .testi__text {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
body.pg-testi .testi__rule {
  width: 54px;
  height: 1px;
  background: var(--gold);
  margin: 22px 0 16px;
}
body.pg-testi .testi__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--evergreen);
}
body.pg-testi .testi__event {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7C5E24;
  margin-top: 6px;
}

/* Empty state: an invitation, not a dead end. */
body.pg-testi .testi-empty {
  max-width: 620px;
  margin: 0 auto;
  padding: 52px 40px 46px;
  text-align: center;
  background: var(--cream-soft);
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 16px 38px rgba(61,40,23,0.14);
}
body.pg-testi .testi-empty__title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 28px;
  color: var(--evergreen);
  margin: 0 0 12px;
}
body.pg-testi .testi-empty__text {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

/* ── HELPFUL HINTS — a letter on stationery ────────────────*/
body.pg-hints .pgbody { padding: 0 24px 96px; }
body.pg-hints .letter {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 62px 48px;
  background: var(--cream-soft);
  border: 3px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(61,40,23,0.20);
}
body.pg-hints .letter::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(14,56,37,0.22);
  border-radius: 2px;
  pointer-events: none;
}
body.pg-hints .hints__lead {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  color: var(--evergreen);
  margin-bottom: 14px;
}
body.pg-hints .hints__intro {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin-bottom: 34px;
}
body.pg-hints .hints {
  counter-reset: hint;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.pg-hints .hints > li {
  counter-increment: hint;
  position: relative;
  padding-left: 52px;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink-soft);
}
body.pg-hints .hints > li::before {
  content: counter(hint);
  position: absolute;
  left: 0;
  top: 1px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  color: var(--cream);
  background: var(--evergreen);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}
body.pg-hints .hints__label {
  font-family: var(--display);
  font-weight: 700;
  font-style: normal;
  font-size: 17.5px;
  color: var(--cranberry);
  margin-right: 4px;
}
body.pg-hints .hints__sub {
  margin: 12px 0 0;
  padding-left: 24px;
}
body.pg-hints .hints__sub li { margin-bottom: 8px; }
body.pg-hints .hints__sub--alpha { list-style: lower-alpha; }
body.pg-hints .hints__sub--bullet { list-style: disc; }
body.pg-hints .hints__sub::marker,
body.pg-hints .hints__sub li::marker { color: var(--gold-deep); }

body.pg-hints .letter__rule {
  width: 100%;
  height: 1px;
  background: rgba(14,56,37,0.16);
  margin: 38px 0 30px;
}
body.pg-hints .hints__close {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
body.pg-hints .hints__thanks { font-style: italic; }
body.pg-hints .hints__sig {
  margin-top: 26px;
  text-align: right;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 26px;
  color: var(--evergreen);
}

/* ── REVIEW ────────────────────────────────────────────────*/
body.pg-review .review-form {
  max-width: 620px;
  margin: 0 auto;
  padding: 42px 44px 38px;
  background: var(--cream-soft);
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 20px 46px rgba(61,40,23,0.16);
}

/* ── Narrower screens ──────────────────────────────────────*/
@media (max-width: 900px) {
  body.pg .pghead--split .pghead__inner { grid-template-columns: 1fr; gap: 38px; }
  body.pg .pghead--split { text-align: center; }
  body.pg .pghead--split .pghead__ornament { margin: 0 auto 24px; }
  body.pg .pghead--split .pghead__lede { margin-left: auto; margin-right: auto; }
  body.pg .pghead__portrait { max-width: 340px; margin: 0 auto; }
}

@media (max-width: 640px) {
  body.pg .pghead { padding: 58px 22px 48px; }
  body.pg .pghead__ornament { width: 220px; }
  body.pg-hints .letter { padding: 38px 24px 32px; }
  body.pg-hints .hints > li { padding-left: 42px; }
  body.pg-hints .hints > li::before { width: 28px; height: 28px; font-size: 14px; }
  body.pg-book .booking-steps li { padding-left: 52px; }
  body.pg-book .booking-steps li::before { width: 36px; height: 36px; font-size: 17px; }
  body.pg-book .fees-table thead th,
  body.pg-book .fees-table tbody th,
  body.pg-book .fees-table tbody td { padding: 13px 10px; }
  body.pg-book .fees-table tbody td { font-size: 18px; }
  body.pg-faq .faq-item { padding: 20px 20px 18px; }
  body.pg-faq .faq-a { padding-left: 0; }
  body.pg-review .review-form { padding: 30px 22px 26px; }
}
