/* Wishes Fulfilled — menu and spine stay fixed; header and journal scroll together. */
:root {
  --menu-width: clamp(190px, 13vw, 220px);
  --spine-width: calc(100dvh * 537 / 2048); /* Wishes_Fulfilled_68.png: 537 x 2048; preserve its natural proportions */
  --hero-height: clamp(215px, 19vw, 290px);
  --olive: #474d26;
  --ink: #35341d;
  --ivory: #f2e4c9;
  --gold: #ad813b;
}
* { box-sizing: border-box; }
html,body { margin:0; width:100%; height:100%; }
body { color:var(--ink); background:#e8d4b5; font-family: Georgia,'Times New Roman',serif; }
a { color:inherit; }
.website-shell { position:relative; height:100dvh; min-height:480px; overflow:hidden; background:#e8d4b5 url('../IMAGES/Wishes_Fulfilled_49.png') center/cover; }
.fixed-header { position:absolute; z-index:20; top:0; left:0; width:calc(var(--menu-width) + var(--spine-width)); height:var(--hero-height); }
.left-navigation { width:100%; height:100%; background:var(--olive); padding:20px 10px 12px 22px; border-bottom:3px solid #b5965d; box-shadow:inset -8px 0 15px rgba(0,0,0,.08); }
.site-menu { display:flex; flex-direction:column; align-items:flex-start; gap:clamp(9px,1vw,14px); }
.site-menu a { color:#fff8de; text-decoration:none; text-transform:uppercase; font-family:Georgia,'Times New Roman',serif; font-size:clamp(11px,.86vw,14px); font-weight:bold; line-height:1.25; white-space:nowrap; letter-spacing:-.015em; text-shadow:0 1px 1px #2c3216; }
.site-menu a:hover,.site-menu a:focus-visible { color:#e2bf7c; }
.site-menu a[aria-current="page"] { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:5px; }
.menu-ornament { width:min(125px,94%); height:auto; display:block; margin:0 auto 0 0; object-fit:contain; }
.hero { height:var(--hero-height); margin-left:calc(var(--spine-width) - 12px); background-image:url('../IMAGES/Wishes_Fulfilled_13.png'); background-repeat:no-repeat; background-size:cover; background-position:center center; }
.spine-layer { position:absolute; z-index:30; top:0; bottom:0; left:calc(var(--menu-width) - var(--spine-width)*.02); width:var(--spine-width); transform:translateX(-2%); pointer-events:none; filter:drop-shadow(5px 3px 6px rgba(40,23,9,.37)); }
.spine-layer>img { display:block; height:100%; width:100%; object-fit:contain; }
.spine-title { position:absolute; top:19%; bottom:37%; left:14%; right:14%; display:flex; justify-content:center; align-items:center; text-align:center; color:#e9bc72; text-shadow:0 1px 1px #582c1d,1px 2px 2px #44261a; font-style:italic; font-size:clamp(16px,1.55vw,28px); line-height:1.08; overflow-wrap:anywhere; }
.scroll-area { position:absolute; top:0; bottom:0; right:0; left:var(--menu-width); overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; background:#eddcc1 url('../IMAGES/Wishes_Fulfilled_49.png') center top/cover; }
.journal-content { width:calc(100% - var(--spine-width) - 55px); max-width:1160px; margin-left:calc(var(--spine-width) + 20px); padding:14px 15px 58px; min-height:calc(100% - var(--hero-height) - 80px); }
.journal-introduction { font-size:clamp(16px,1.5vw,24px); line-height:1.25; font-style:italic; font-weight:normal; text-align:center; margin:0 auto 4px; max-width:1150px; white-space:nowrap; }
.long-divider { display:block; margin:0 auto 15px; width:min(74%,680px); height:32px; object-fit:fill; }
.drawer-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 26px; align-items:start; }
.drawer { display:block; position:relative; width:100%; transition:transform .32s ease,filter .32s ease; filter:drop-shadow(3px 4px 4px rgba(52,37,22,.28)); text-decoration:none; }
.drawer img { display:block; width:100%; height:auto; }
.drawer-label { position:absolute; top:18%; left:27%; width:46%; height:31%; display:flex; align-items:center; justify-content:center; text-align:center; font-size:clamp(13px,1.6vw,26px); font-style:italic; line-height:1.04; color:#392c1c; text-shadow:0 1px #fff4de; }
.drawer:hover,.drawer:focus-visible { transform:translateX(12px) scale(1.015); filter:drop-shadow(8px 8px 9px rgba(52,37,22,.42)); z-index:1; }
.drawer:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
.journal-closing { text-align:center; font-size:18px; font-style:italic; padding:26px 0; }
.site-footer { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-left:var(--spine-width); padding:18px 28px; background:#7b3c3c; color:#f5e8d0; font-size:14px; }
.site-footer a { color:#f5e8d0; }
.inner-page { padding-top:40px; }
.inner-page h1 { font-weight:normal; font-style:italic; text-align:center; font-size:clamp(30px,3vw,48px); margin:0; }
.eyebrow { text-transform:uppercase; font-size:12px; text-align:center; letter-spacing:.13em; }
.intro-paragraph { text-align:center; max-width:700px; margin:24px auto; font-size:clamp(18px,1.6vw,24px); line-height:1.6; }
.paper-card { margin:34px auto 90px; padding:30px 42px; max-width:740px; background:rgba(255,250,231,.74); border:1px solid rgba(173,129,59,.42); box-shadow:4px 8px 12px rgba(38,26,15,.1); }
.paper-card h2 { margin-top:0; }
@media (max-width:760px) {
 :root { --menu-width:150px; --hero-height:220px; }
 .left-navigation { padding:13px 8px 10px 12px; }
 .site-menu { gap:11px; }
 .site-menu a { font-size:10px; white-space:normal; }
 .menu-ornament { width:85px; }
 .spine-title { font-size:11px; }
 .journal-content { width:calc(100% - var(--spine-width) - 17px); margin-left:calc(var(--spine-width) + 5px); padding:18px 8px 35px; }
 .drawer-grid { grid-template-columns:1fr; gap:8px; }
 .drawer-label { font-size:clamp(13px,3vw,22px); }
 .journal-introduction { font-size:clamp(14px,2.5vw,19px); white-space:normal; }
 .site-footer { margin-left:var(--spine-width); padding-left:15px; font-size:12px; }
}
@media (prefers-reduced-motion:reduce) { .drawer { transition:none; } }

/* 16 Nov 2026: seamless header/spine overlap and clean stationary left rail. */
.website-shell::before {
  content:"";
  position:absolute;
  z-index:10;
  top:var(--hero-height);
  bottom:0;
  left:0;
  width:var(--menu-width);
  background:#e8d4b5 url('../IMAGES/Wishes_Fulfilled_49.png') center top / cover;
  pointer-events:none;
}
/* Keep the narrow image overlap hidden beneath the decorative book spine. */
.hero { background-position:center center; }

/* 16 November — align menu, book spine and picture behind the spine. */
:root { --spine-shift: 15px; --join-overlap: 24px; }
/* The green panel ends underneath the book, rather than showing on its right. */
.fixed-header {
  width: calc(var(--menu-width) + var(--spine-width) - var(--spine-shift) - var(--join-overlap));
}
/* The lettering stays on its existing lines but sits slightly farther left. */
.left-navigation { padding-left: 17px; }
/* Shift only the book and its own lettering, not the content columns. */
.spine-layer {
  left: calc(var(--menu-width) - var(--spine-width) * .02 - var(--spine-shift));
}
/* Slide the header photograph beneath the spine to conceal its join. */
.hero { margin-left: calc(var(--spine-width) - 36px); }
/* Opaque, stationary fabric below menu. Above the spine in stacking order,
   but below the actual spine, so nothing from the scrolling header leaks through. */
.website-shell::before {
  z-index: 25;
  width: var(--menu-width);
  background: #e8d4b5 url('../IMAGES/Wishes_Fulfilled_49.png') center top / cover;
}
@media(max-width:760px) {
  :root { --spine-shift: 8px; --join-overlap: 12px; }
  .left-navigation { padding-left: 9px; }
  .hero { margin-left: calc(var(--spine-width) - 22px); }
}

/* Proportion lock: the spine retains its actual 237:2048 aspect ratio at all heights. */
.spine-layer { width:var(--spine-width); }
.spine-layer > img { object-fit:contain; }

/* 16 November — final left-rail refinement: 10px slimmer, centred flourish,
   and a gold rule across the bottom of the scrolling header photograph. */
:root {
  --menu-width: clamp(180px, calc(13vw - 10px), 210px);
}
.menu-ornament {
  margin-left: auto;
  margin-right: auto;
}
.hero {
  border-bottom: 3px solid #b5965d;
}
@media (max-width:760px) {
  :root { --menu-width: 140px; }
}

/* 16 November — centre the small flourish within ONLY the visible olive panel,
   from the viewport's left edge to the book spine's left edge. */
.left-navigation { position:relative; }
.menu-ornament {
  position:absolute;
  bottom:22px;
  left:calc((var(--menu-width) - var(--spine-shift) - var(--spine-width) * .04 - 125px) / 2);
  width:125px;
  max-width:none;
  margin:0;
}
@media (max-width:760px) {
  .menu-ornament {
    width:85px;
    left:calc((var(--menu-width) - var(--spine-shift) - var(--spine-width) * .04 - 85px) / 2);
  }
}

/* 16 November — lower the menu flourish while retaining its horizontal centring. */
.menu-ornament { bottom: 9px; }

/* Even, more pronounced shadow on all four sides of the leather spine. */
.spine-layer {
  filter: drop-shadow(0 0 9px rgba(39, 20, 10, .72))
          drop-shadow(0 0 3px rgba(27, 14, 7, .55));
}


/* HOMEPAGE REFINEMENT — 3 drawers across, 2 rows; complete viewport footer.
   All image paths and the fixed menu/spine geometry remain unchanged. */
.home-scroll .journal-content {
  max-width: none;
  padding-top: 11px;
  padding-bottom: 74px;
  min-height: 0;
}
.home-scroll .journal-introduction {
  font-size: clamp(16px, 1.45vw, 23px);
  margin-bottom: 0;
}
.home-scroll .long-divider {
  height: 25px;
  margin-bottom: 10px;
}
.home-scroll .drawer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(13px, 1.8vw, 28px);
  row-gap: clamp(10px, 1.5vh, 16px);
  align-items: start;
}
.home-scroll .drawer-label {
  font-size: clamp(12px, 1.3vw, 20px);
}
.home-scroll .journal-closing {
  font-size: clamp(13px, 1.15vw, 17px);
  margin: 5px 0 0;
  padding: 10px 0;
}
.home-scroll .site-footer {
  position: fixed;
  z-index: 27; /* book spine remains above the gold rule and footer */
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 12px 30px 12px max(30px, calc(var(--menu-width) + var(--spine-width) + 16px));
  border-top: 3px solid #b5965d;
  box-shadow: 0 -2px 5px rgba(50,30,14,.14);
  min-height: 46px;
  align-items: center;
}
/* Three columns remain at desktop/tablet landscape widths; use responsive
   two- and one-column layouts on narrower screens where readability wins. */
@media (max-width: 980px) {
  .home-scroll .drawer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .home-scroll .journal-introduction { white-space:normal; }
  .home-scroll .drawer-grid { grid-template-columns:1fr; }
  .home-scroll .site-footer { padding:10px 15px 10px calc(var(--menu-width) + 6px); }
}


/* 17 November 2026 — tighten the top rail and remove the stray seams seen in the live page. */
:root {
  --spine-shift: 24px;
  --footer-height: 46px;
}

/* The fixed top rail now carries only the olive menu block.
   The scrolling hero remains the sole visible header image. */
.fixed-header {
  width: var(--menu-width);
  overflow: hidden;
}
.fixed-header > .hero {
  display: none;
}

/* Let the main scroll column use the full available width, without reserving
   a permanent gutter that reads as a pale strip at the right edge. */
.scroll-area {
  left: var(--menu-width);
  right: 0;
  scrollbar-gutter: auto;
}

/* Extend the parchment panel beneath the full visible left rail below the menu,
   so no fragment of the header image shows beside the spine. */
.website-shell::before {
  width: calc(var(--menu-width) + var(--spine-width) - var(--spine-shift) - 12px);
}

/* Pull the book a touch farther left and give it a little more breathing space above the footer. */
.spine-layer {
  left: calc(var(--menu-width) - var(--spine-width) * .02 - var(--spine-shift));
  bottom: var(--footer-height);
}

/* The visible header image begins just beneath the spine and fills tightly to the right edge. */
.home-scroll > .hero {
  margin-left: calc(var(--spine-width) - 28px);
  width: calc(100% - (var(--spine-width) - 28px) + 2px);
  margin-right: -2px;
  border-bottom: 3px solid #b5965d;
}

/* Match the footer height assumed by the spine offset. */
.home-scroll .site-footer {
  min-height: var(--footer-height);
}

@media (max-width:760px) {
  :root {
    --spine-shift: 12px;
    --footer-height: 42px;
  }
  .website-shell::before {
    width: calc(var(--menu-width) + var(--spine-width) - var(--spine-shift) - 6px);
  }
  .home-scroll > .hero {
    margin-left: calc(var(--spine-width) - 18px);
    width: calc(100% - (var(--spine-width) - 18px) + 2px);
  }
}


/* 17 November 2026 — extend the menu rail behind the spine and blend it into
   the header wall colour, while leaving the current header photograph and
   spine position unchanged. */
:root {
  --menu-hero-join: calc(var(--menu-width) + var(--spine-width) * .92);
}

.fixed-header {
  width: var(--menu-hero-join);
  overflow: hidden;
}

/* The live page uses the scrolling hero image below; this fixed top rail only
   carries the menu/background blend. */
.fixed-header > .hero {
  display: none;
}

.left-navigation {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  padding-right: calc(var(--spine-width) * .72);
  background:
    linear-gradient(90deg,
      #5f6540 0%,
      #69704a 44%,
      #7d7f59 63%,
      #9b9571 78%,
      #b1a384 90%,
      #b8ad93 100%);
  box-shadow: inset -12px 0 18px rgba(0,0,0,.08);
  border-bottom: 3px solid #b5965d;
}

/* Keep the visible menu text where it is, but allow the coloured rail to run
   behind the book until it meets the header image visually. */
.site-menu {
  max-width: calc(var(--menu-width) - 34px);
}

/* Preserve the centred flourish within the visible left-hand part of the rail. */
.menu-ornament {
  left: calc((var(--menu-width) - var(--spine-shift) - var(--spine-width) * .04 - 125px) / 2);
}

@media (max-width: 760px) {
  :root {
    --menu-hero-join: calc(var(--menu-width) + var(--spine-width) * .82);
  }
  .left-navigation {
    padding-right: calc(var(--spine-width) * .38);
    background:
      linear-gradient(90deg,
        #5f6540 0%,
        #6d734d 48%,
        #8c8966 76%,
        #b4a68c 100%);
  }
}


/* 17 November — precise adjustments to the present live homepage.
   Preserve the natural size and horizontal position of the book/ivy asset.
   Move it vertically down 18px so its top has room and its foot overlaps
   the burgundy footer by a small amount. */
.spine-layer {
  transform: translate(-2%, 18px);
}

/* Halve the visible separation between the book and the photograph, bringing
   the photograph left without scaling it, leaving a gap at the right edge,
   or changing its vertical position. */
.home-scroll > .hero {
  margin-left: calc(var(--spine-width) - 42px);
  width: calc(100% - (var(--spine-width) - 42px) + 2px);
  margin-right: -2px;
}

/* Continue the olive-to-stone transition right up to the new image join. */
:root {
  --menu-hero-join: calc(var(--menu-width) + var(--spine-width) * .92 - 14px);
}

@media (max-width: 760px) {
  .spine-layer { transform: translate(-2%, 14px); }
  .home-scroll > .hero {
    margin-left: calc(var(--spine-width) - 25px);
    width: calc(100% - (var(--spine-width) - 25px) + 2px);
  }
  :root { --menu-hero-join: calc(var(--menu-width) + var(--spine-width) * .82 - 7px); }
}
