.gj-guide {
  --guide-paper: var(--gj-paper,#fff8e9);
  --guide-ink: var(--gj-ink,#39251d);
  --guide-accent: var(--gj-cherry,#b4382d);
  --guide-photo-ratio: 4/3;
  color: var(--guide-ink); background: var(--guide-paper); max-width: 1180px;
  margin-inline: auto; border: 1px solid color-mix(in srgb,var(--guide-ink) 20%,transparent);
  border-radius: 12px 24px 24px 12px; box-shadow: 0 18px 50px #39251d16, 3px 3px 0 var(--guide-paper), 5px 5px 0 #39251d25;
  overflow: clip; isolation: isolate; text-align: left;
}
.gj-guide [hidden] { display: none !important; }
.gj-guide *, .gj-guide *::before, .gj-guide *::after { box-sizing: border-box; }
.gj-guide h2, .gj-guide h3 { color: var(--guide-ink); font-family: var(--gj-display,Georgia,serif); line-height: 1.04; text-wrap: balance; overflow-wrap: anywhere; margin: 0 0 20px; }
.gj-guide h2 { font-size: clamp(2.3rem,5vw,4.6rem); }
.gj-guide h3 { font-size: clamp(2rem,4vw,3.5rem); }
.gj-guide p { line-height: 1.65; margin: 0 0 20px; overflow-wrap: anywhere; }
.gj-guide button, .gj-guide summary, .gj-guide a { -webkit-tap-highlight-color: transparent; }
.gj-guide button {
  font: inherit; font-weight: 650; min-height: 46px; padding: 11px 18px; border: 1px solid var(--guide-ink);
  background: transparent; color: var(--guide-ink); border-radius: 6px; cursor: pointer; line-height: 1.3;
  transition: transform 180ms,background-color 180ms,color 180ms; text-align: center;
}
.gj-guide button:hover:not(:disabled) { background: var(--guide-ink); color: var(--guide-paper); transform: translateY(-2px); }
.gj-guide button:disabled { opacity: .4; cursor: default; }
.gj-guide :is(button,a,summary):focus-visible { outline: 3px solid var(--guide-accent); outline-offset: 4px; }
.gj-guide :is(h2,h3)[tabindex]:focus { outline: none; }
.gj-guide :is(h2,h3)[tabindex]:focus-visible { outline: 2px dashed var(--guide-accent); outline-offset: 6px; }
.gj-guide-masthead { display: flex; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid #39251d25; font-size: .7rem; letter-spacing: .12em; }
.gj-guide-brand { font-weight: 800; }
.gj-guide-brand span { color: var(--guide-accent); padding-inline: 8px; }
.gj-guide-edition { font-style: italic; letter-spacing: .04em; }
.gj-guide-cover { padding: clamp(22px,4vw,60px); display: grid; gap: 38px; align-items: center; }
.gj-guide-cover-art { position: relative; min-height: 260px; background: var(--guide-accent); border: 9px solid var(--guide-paper); outline: 1px solid #39251d30; transform: rotate(-3deg); box-shadow: 0 12px 20px #39251d20; overflow: hidden; }
.gj-guide-cover-photo { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; }
.gj-guide-cover-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent,#39251d60); pointer-events: none; }
.gj-guide-sun { position: relative; display: block; text-align: center; font: 180px/1.3 Georgia,serif; color: var(--guide-paper); }
.gj-guide-cover-photo + .gj-guide-sun { opacity: .8; font-size: 90px; text-align: right; padding-right: 15px; }
.gj-guide-ticket { position: absolute; z-index: 1; bottom: 22px; left: 20px; padding: 14px 20px; background: var(--guide-paper); color: var(--guide-accent); font-weight: 850; font-size: .75rem; letter-spacing: .13em; border: 2px dashed var(--guide-accent); transform: rotate(6deg); }
.gj-guide-cover-mark { position: absolute; z-index: 1; right: 20px; bottom: 25px; color: #fff8e9; font-size: .7rem; letter-spacing: .1em; }
.gj-guide .gj-guide-kicker { color: var(--guide-accent); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px; }
.gj-guide-cover-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gj-guide-cover-actions button:first-child { background: var(--guide-accent); color: var(--guide-paper); border-color: var(--guide-accent); }
.gj-guide .gj-guide-footnote { font-size: .78rem; font-style: italic; margin: 24px 0 0; }
.gj-guide-vibes { padding: clamp(24px,5vw,70px); }
.gj-guide-mood-grid { display: grid; gap: 14px; margin-top: 30px; }
.gj-guide-mood-grid button { min-height: 86px; font-family: Georgia,serif; font-size: 1.6rem; border-style: dashed; background: #39251d04; }
.gj-guide-mood-grid button:nth-child(2n) { transform: rotate(1deg); }
.gj-guide-mood-grid button:last-child { font: inherit; min-height: 46px; grid-column: 1/-1; border: 0; }
.gj-guide-nav { display: flex; gap: 6px; padding: 14px 18px; overflow-x: auto; overscroll-behavior-x: contain; border-bottom: 1px solid #39251d25; scrollbar-width: thin; }
.gj-guide-nav button { white-space: nowrap; font-size: .78rem; border-color: transparent; flex-shrink: 0; }
.gj-guide-nav button[aria-current], .gj-guide-nav button[aria-pressed=true] { color: var(--guide-paper); background: var(--guide-accent); }
.gj-guide-spread { perspective: 1400px; }
.gj-guide.is-ready .gj-guide-reader { touch-action: pan-y pinch-zoom; }
.gj-guide-chapter { position: relative; padding: 45px; background: #39251d04; border-right: 1px solid #39251d20; }
.gj-guide-chapter-doodle { display: block; color: var(--guide-accent); font-size: 130px; line-height: 1.5; transform: rotate(-12deg); }
.gj-guide-pages { min-width: 0; padding: clamp(18px,4vw,42px); }
.gj-guide-chapter-group { margin-bottom: 30px; }
.gj-guide.is-ready .gj-guide-chapter-group { margin: 0; }
.gj-guide.is-ready .gj-guide-static-heading { display: none; }
.gj-guide-page { transform-origin: left center; margin-bottom: 24px; }
.gj-guide.is-ready .gj-guide-page { margin-bottom: 0; }
.gj-guide-photo { position: relative; padding: 9px 9px 30px; background: #fffefa; border: 1px solid #39251d20; box-shadow: 0 5px 14px #39251d13; margin: 0 0 26px; transform: rotate(-1.3deg); }
.gj-guide-photo::before { content: ''; position: absolute; top: -9px; left: 40%; width: 70px; height: 22px; background: #d7bb8580; transform: rotate(4deg); z-index: 1; }
.gj-guide-photo .gj-image, .gj-guide-photo-placeholder { width: 100%; aspect-ratio: var(--guide-photo-ratio); object-fit: cover; display: block; }
.gj-guide-photo-placeholder { display: grid; place-content: center; background: #e9dfca; color: var(--guide-accent); font: 100px/1 Georgia,serif; }
.gj-guide-photo-label { position: absolute; bottom: 5px; left: 16px; right: 10px; font-size: .73rem; font-style: italic; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gj-guide-stamp { position: absolute; right: 16px; top: 22px; border: 3px double var(--guide-accent); border-radius: 50%; color: var(--guide-accent); background: #fff8e9e8; text-align: center; width: 108px; height: 108px; display: grid; place-content: center; transform: rotate(-12deg); font-weight: 900; font-size: .7rem; letter-spacing: .05em; }
.gj-guide-tip { border-block: 1px dashed #39251d40; margin-block: 20px; }
.gj-guide summary { cursor: pointer; min-height: 46px; padding-block: 12px; font-weight: 700; color: var(--guide-accent); }
.gj-guide-tip p { padding: 10px 14px; background: #e8cb8b25; font-style: italic; }
.gj-guide-links { display: flex; gap: 20px; flex-wrap: wrap; }
.gj-guide-links a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: var(--guide-ink); text-decoration: underline; text-underline-offset: 4px; font-weight: 650; font-size: .85rem; }
.gj-guide-place-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.gj-guide-place-actions button { flex: 1; font-size: .8rem; }
.gj-guide-place-actions button[aria-pressed=true] { color: var(--guide-accent); border-color: var(--guide-accent); background: #b4382d09; }
.gj-guide-phrase { padding: 25px 8px 45px; text-align: center; }
.gj-guide-phrase-star { display: block; font: 140px/1.5 Georgia,serif; color: var(--guide-accent); }
.gj-guide-phrase details { margin-top: 30px; }
.gj-guide-empty { padding: 36px 0; }
.gj-guide-pagination { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid #39251d25; padding: 16px 20px; }
.gj-guide-pagination button { font-size: .8rem; }
.gj-guide-pagination [data-guide-page-count] { font-size: .8rem; }
.gj-guide-pagination [data-guide-action=surprise] { color: var(--guide-accent); border-style: dashed; }
.gj-guide .gj-guide-storage { padding: 14px 22px; margin: 0; font-size: .8rem; border-top: 1px dashed #39251d30; }
.gj-guide-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 640px) {
  .gj-guide-cover { grid-template-columns: .9fr 1.1fr; }
  .gj-guide-cover-art { min-height: 380px; }
  .gj-guide-mood-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .gj-guide.is-ready .gj-guide-spread { display: grid; grid-template-columns: .85fr 1.15fr; }
  .gj-guide-chapter h2 { font-size: clamp(2.5rem,4vw,4rem); }
}
@media (max-width: 1023px) { .gj-guide.is-ready .gj-guide-chapter { padding: 20px 24px; border-right: 0; border-bottom: 1px solid #39251d20; } .gj-guide-chapter h2 { font-size: 1.6rem; margin: 0; } .gj-guide-chapter :is(.gj-guide-kicker,.gj-guide-chapter-doodle,.gj-guide-footnote) { display: none; } .gj-guide-chapter p[data-guide-chapter-intro]:not(:empty) { margin: 10px 0 0; font-size: .85rem; } }
@media (max-width: 420px) { .gj-guide-edition { display: none; } .gj-guide-cover-actions { flex-direction: column; } .gj-guide-pagination [data-guide-action=surprise] { width: 100%; } .gj-guide-masthead { padding-inline: 18px; } }
@media (prefers-reduced-motion: reduce) { .gj-guide *, .gj-guide *::before, .gj-guide *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
