:root {
  --ee-ground: #F8E8F0;
  --ee-ink: #352B2A;
  --ee-accent: #925B2A;
  --ee-support: #E0D1D9;
  --ee-surface: #FFFFFF;
  --ee-reading: 'Old Standard TT', Georgia, serif;
  --ee-name: 'Uncial Antiqua', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--ee-ground); color: var(--ee-ink); font: 20px/1.52 var(--ee-reading); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--ee-name); font-weight: 400; }
h1 { max-width: 980px; font-size: clamp(40px, 3.7vw, 52px); line-height: 1.15; }
a { color: var(--ee-accent); text-underline-offset: .19em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--ee-accent); outline-offset: 5px; }
::selection { background: var(--ee-support); color: var(--ee-ink); }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.ee-skip { position: absolute; left: 24px; top: -90px; z-index: 5; min-height: 44px; padding: 8px 16px; background: var(--ee-surface); }
.ee-skip:focus { top: 10px; }

/* Open recesses, a low title band, then the last fore-edge tab. */
.ee-masthead { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 44px 56px 44px; max-width: 1240px; margin: 0 auto; padding-top: 4px; }
.ee-recess { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 5px 12px; color: var(--ee-ink); text-decoration: none; font-size: 18px; transition: background-color .15s, box-shadow .15s; }
.ee-recess:hover, .ee-recess[aria-current="page"] { background: var(--ee-support); box-shadow: inset 0 -3px var(--ee-accent); }
.ee-recess--names { grid-area: 1 / 1; justify-self: start; }
.ee-recess--enzyme { grid-area: 1 / 2; justify-self: start; }
.ee-recess--sources { grid-area: 3 / 3; justify-self: stretch; justify-content: space-between; border-bottom: 2px solid var(--ee-accent); }
.ee-wordmark { grid-area: 2 / 1 / 3 / -1; display: flex; align-items: center; justify-content: space-between; border-bottom: 6px solid var(--ee-accent); font: 46px/1 var(--ee-name); color: var(--ee-ink); text-decoration: none; }
.ee-wordmark:hover { border-bottom-style: double; }
.ee-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.ee-page-head, .ee-reading-room, .ee-offer-area, .ee-foot { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }

/* A photographic endpaper across the viewport. Its title is an attached,
   square pink leaf with a cut corner and a brown binding edge. */
.ee-opening { position: relative; isolation: isolate; width: 100%; min-height: 340px; margin-top: 18px; }
.ee-opening-copy { position: relative; z-index: 1; width: 62%; padding: 23px 48px 28px max(40px, calc((100vw - 1240px) / 2)); background: var(--ee-ground); border-top: 5px solid var(--ee-accent); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
.ee-opening h1 { max-width: 700px; font-size: clamp(40px, 3.4vw, 49px); }
.ee-welcome { max-width: 430px; margin: 16px 0 0 auto; font-size: 20px; line-height: 1.3; }
.ee-fan { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; }
.ee-fan__photograph { width: 100%; height: 100%; background: var(--ee-support) url('fore-edge-fan.webp') center 56% / cover no-repeat; mask: url('fan-edge.svg') 0 0 / 100% 100% no-repeat; -webkit-mask: url('fan-edge.svg') 0 0 / 100% 100% no-repeat; }
.ee-fan::after { content: ''; display: block; position: absolute; top: 100%; right: max(100px, calc((100vw - 1240px) / 2 + 50px)); width: 270px; height: 20px; background: url('fore-edge-fan.webp') 71% 83% / 1128px 302px no-repeat; box-shadow: 0 5px 0 var(--ee-support), 0 10px 0 -3px var(--ee-accent); pointer-events: none; }

/* One unenclosed return bridge. The fold is decoration, never a control. */
.ee-offer-area { margin-top: 28px; }
.ee-endpaper-return { display: grid; grid-template-columns: minmax(0, 1fr) 188px; column-gap: 76px; align-items: center; position: relative; padding: 12px 46px 12px 0; }
.ee-endpaper-return::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 20px; background: linear-gradient(90deg, var(--ee-ground), var(--ee-support) 55%, var(--ee-surface) 60%, var(--ee-ground)); pointer-events: none; }
.ee-return-copy h2 { max-width: 800px; font-size: 24px; line-height: 1.25; margin-bottom: 6px; }
.ee-return-context { font-size: 17px; line-height: 22px; margin-bottom: 8px; }
.ee-code-lines { display: grid; gap: 6px; }
.ee-code-lines p { font-size: 18px; line-height: 24px; }
.ee-code-line, .ee-code-terms { display: inline; }
.ee-code-line strong { color: var(--ee-accent); font-weight: 700; }
.ee-disclosure { font-size: 16px; line-height: 22px; margin-top: 9px; max-width: 750px; }
.ee-oath-card { display: block; width: 188px; height: auto; object-fit: contain; justify-self: end; }
.ee-retained-faq { padding: 14px 0 20px; max-width: 880px; }
.ee-retained-faq h3 { font-family: var(--ee-reading); font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 5px; }
.ee-retained-faq p { font-size: 18px; line-height: 1.4; }

/* Continuous outer leaves; the broad central spine remains completely empty. */
.ee-reading-room { margin-top: 82px; }
.ee-spread { display: grid; grid-template-columns: minmax(0, 1fr) 30% minmax(0, 1fr); align-items: start; }
.ee-leaf--first { grid-column: 1; }
.ee-leaf--second { grid-column: 3; }
.ee-leaf { min-width: 0; }
.ee-passage + .ee-passage { margin-top: 44px; }
.ee-passage h2 { font-size: 28px; line-height: 1.23; margin: 0 0 20px -22px; padding-left: 18px; border-left: 4px solid var(--ee-accent); }
.ee-leaf--second .ee-passage h2 { margin-left: 0; margin-right: -22px; padding-left: 0; padding-right: 18px; border-left: 0; border-right: 4px solid var(--ee-accent); }
.ee-passage p + p { margin-top: 18px; }
.ee-fore-edge { display: block; width: 76px; height: 28px; margin: 28px 0 0 auto; }
.ee-closing-bridge { position: relative; margin-top: 70px; border-top: 5px solid var(--ee-accent); padding: 30px 0 0; display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px 64px; }
.ee-closing-bridge::before { content: ''; position: absolute; left: 0; right: 36px; top: 4px; height: 2px; background: var(--ee-support); }
.ee-closing-bridge h2 { font-size: 30px; line-height: 1.3; }
.ee-closing-bridge p { max-width: 640px; }
.ee-next-reading { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding-block: 6px; grid-column: 2; justify-self: start; }
.ee-next-reading .ee-icon { transition: translate .15s; }
.ee-next-reading:hover .ee-icon, .ee-next-reading:focus-visible .ee-icon { translate: 4px 0; }

/* Smaller photographic leaves, with the caption projecting from the fore-edge. */
.ee-page-head { margin-top: 38px; }
.ee-page-head h1 { max-width: 1100px; padding-left: 24px; border-left: 6px solid var(--ee-accent); }
.ee-standfirst { max-width: 720px; margin: 24px 0 0 30px; font-size: 24px; line-height: 1.35; }
.ee-leaf-photo { margin: 34px -28px 0 30px; }
.ee-leaf-photo img { display: block; width: 100%; height: 210px; object-fit: cover; border-bottom: 6px solid var(--ee-accent); }
.ee-leaf-photo figcaption { position: relative; width: min(510px, 80%); padding: 14px 24px 16px; margin: -30px 28px 0 auto; background: var(--ee-ground); border-left: 3px solid var(--ee-accent); box-shadow: 5px 5px 0 var(--ee-support); font-size: 17px; line-height: 1.4; }
.ee-foot { margin-top: 88px; padding: 28px 0 32px; border-top: 6px double var(--ee-accent); }
.ee-foot p { max-width: 750px; font-size: 18px; }
.ee-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 26px 0; column-gap: 22px; }
.ee-shelf a { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; }
.ee-shelf a[aria-current="page"] { color: var(--ee-ink); font-weight: 700; }
.ee-copyright { margin-top: 18px; }
.ee-lost-leaf { min-height: 45vh; margin-block: 80px; }
.ee-lost-leaf p { max-width: 650px; margin-block: 26px; }

@media (min-width: 1600px) {
  .ee-opening { min-height: 380px; }
  .ee-opening-copy { width: calc(50% + 150px); }
}
@media (max-width: 1000px) {
  .ee-masthead { width: calc(100% - 64px); }
  .ee-wordmark { font-size: 39px; }
  .ee-opening-copy { width: 76%; padding-left: 40px; padding-right: 32px; }
  .ee-opening h1 { font-size: 40px; }
  .ee-spread { grid-template-columns: minmax(0, 1fr) 24% minmax(0, 1fr); }
  .ee-endpaper-return { column-gap: 30px; }
  .ee-leaf-photo { margin-right: -16px; }
  .ee-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ee-spread { display: block; }
  .ee-leaf--second { margin-top: 44px; }
  .ee-reading-room { max-width: 630px; }
  .ee-closing-bridge { display: block; }
  .ee-closing-bridge p { margin-top: 16px; }
  .ee-next-reading { margin-top: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 19px; line-height: 1.5; }
  .ee-page-head, .ee-reading-room, .ee-offer-area, .ee-foot { width: calc(100% - 40px); }
  .ee-masthead { width: calc(100% - 40px); grid-template-columns: 1.35fr .7fr .95fr; grid-template-rows: 44px 56px; }
  .ee-recess { gap: 6px; font-size: 16px; line-height: 20px; padding: 4px 2px; }
  .ee-recess--names { grid-area: 1 / 1 / 2 / 3; }
  .ee-recess--enzyme { grid-area: 1 / 3; justify-self: end; }
  .ee-recess--sources { grid-area: 2 / 3; border: 0; justify-content: flex-end; }
  .ee-recess--sources .ee-icon, .ee-recess--enzyme .ee-icon { display: none; }
  .ee-wordmark { grid-area: 2 / 1 / 3 / 3; font-size: 21px; line-height: 1.1; display: block; border-bottom: 3px solid var(--ee-accent); padding-top: 3px; }
  .ee-wordmark span { display: block; }
  .ee-icon { width: 18px; height: 18px; flex-basis: 18px; }
  h1 { font-size: 32px; line-height: 1.09; }

  /* Display contents lets one DOM/module serve both compositions. On phones
     the complete offer, its card and retained FAQ precede the photograph. */
  .ee-frontispiece { display: flex; flex-direction: column; }
  .ee-opening { display: contents; }
  .ee-opening-copy { order: 1; width: calc(100% - 40px); margin: 17px auto 0; padding: 10px 0 0; border-top-width: 3px; clip-path: none; }
  .ee-opening h1 { font-size: 32px; line-height: 1.09; }
  .ee-welcome { max-width: 320px; margin: 10px 0 0 auto; font-size: 17px; line-height: 22px; }
  .ee-offer-area { order: 2; margin-top: 14px; }
  .ee-endpaper-return { display: block; padding: 0 16px 0 0; }
  .ee-endpaper-return::after { width: 8px; }
  .ee-return-copy h2 { font-size: 18px; line-height: 22px; margin-bottom: 5px; }
  .ee-return-context { font-size: 16px; line-height: 22px; margin-bottom: 5px; }
  .ee-code-lines { gap: 5px; }
  .ee-code-lines p { font-size: 16px; line-height: 22px; }
  .ee-disclosure { margin-top: 6px; font-size: 16px; line-height: 22px; }
  .ee-oath-card { width: 104px; height: auto; margin: 8px 0 0 auto; }
  .ee-retained-faq { padding-top: 15px; }
  .ee-retained-faq h3 { font-size: 18px; }
  .ee-retained-faq p { font-size: 17px; line-height: 24px; }
  .ee-fan { order: 3; position: relative; inset: auto; width: calc(100% - 40px); height: 80px; margin: 12px auto 0; }
  .ee-fan::after { display: none; }
  .ee-page-head { margin-top: 29px; }
  .ee-page-head h1 { padding-left: 12px; border-left-width: 3px; }
  .ee-standfirst { font-size: 21px; margin: 18px 0 0 15px; }
  .ee-leaf-photo { margin: 24px 0 0; }
  .ee-leaf-photo img { height: 118px; border-bottom-width: 4px; }
  .ee-leaf-photo figcaption { width: calc(100% - 21px); margin: -12px 3px 0 auto; padding: 12px 14px; font-size: 16px; line-height: 23px; box-shadow: 3px 3px 0 var(--ee-support); }
  .ee-reading-room { margin-top: 44px; }
  .ee-passage h2 { font-size: 25px; margin: 0 0 17px; padding-left: 12px; border-left-width: 3px; }
  .ee-leaf--second .ee-passage h2 { margin: 0 0 17px; padding: 0 0 0 12px; border-left: 3px solid var(--ee-accent); border-right: 0; }
  .ee-passage + .ee-passage { margin-top: 32px; }
  .ee-fore-edge { margin-top: 20px; width: 64px; }
  .ee-closing-bridge { margin-top: 38px; padding-top: 23px; }
  .ee-closing-bridge h2 { font-size: 25px; }
  .ee-foot { margin-top: 48px; }
  .ee-foot p { font-size: 17px; }
  .ee-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 20px 0; }
  .ee-shelf a { font-size: 17px; }
  .ee-lost-leaf { margin-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
