/* Ortsgeschichte: readable paper leaves, progressively enhanced as a book. */
/* A distinct, persistent entrance so the photo album cannot hide the history. */
.enchanted .journey-nav.has-history-shortcut { display: grid; grid-template-columns: 95px minmax(0,1fr) auto; column-gap: 12px; }
.journey-history-shortcut { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid #dcb979; border-radius: 5px 13px 5px 13px; background: #ecd09a; color: #30281c; font-size: .77rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.journey-history-shortcut:hover { background: #ffe3ab; }
.album-history-link { display: flex; width: fit-content; align-items: center; gap: 14px; min-height: 48px; margin-top: 12px; padding: 10px 0; color: #ffe3a6; font-size: .96rem; font-weight: 800; text-underline-offset: 5px; }
.history-intro-open { margin-top: 23px; }
.journey-history-shortcut:focus-visible, .album-history-link:focus-visible { outline: 3px solid #ffe0a1; outline-offset: 4px; }
@media(max-width:1000px) {
 .enchanted .journey-nav.has-history-shortcut { grid-template-columns: 95px minmax(0,1fr); row-gap: 5px; margin-bottom: -119px; }
 .journey-history-shortcut { grid-column: 1 / -1; min-height: 44px; padding-block: 5px; }
 html:has(.journey-nav.has-history-shortcut) { scroll-padding-top: 148px; }
}
@media(max-width:800px) {
 .enchanted .journey-nav.has-history-shortcut { grid-template-columns: minmax(0,1fr); column-gap: 5px; }
}
@media(max-width:620px) { .album-history-link { margin-inline: auto; font-size: .85rem; } }
.history-page {
  --history-paper: #f3e3bd;
  --history-ink: #352e22;
  --history-brown: #735036;
  --history-rule: #98774655;
  background:
    radial-gradient(ellipse at 18% 18%, #8a622329, transparent 43%),
    radial-gradient(ellipse at 88% 52%, #58764924, transparent 42%),
    linear-gradient(165deg, #132e24, #0c1e18 70%, #18291e);
  color: #f3e5c5;
}
.history-main { width: min(1280px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0 88px; }
.history-intro { max-width: 780px; margin: 0 auto 38px; text-align: center; }
.history-intro .eyebrow { color: #e7bf7c; font-size: .75rem; letter-spacing: .15em; }
.history-intro h1 { margin: 0 0 20px; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1.04; color: #fff0ce; }
.history-intro > p:not(.eyebrow) { max-width: 62ch; margin: 0 auto; font-size: 1.02rem; line-height: 1.75; color: #dbd6bc; }
.history-chapters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  margin: 30px auto 38px;
  padding: 15px 24px;
  border-block: 1px solid #b89c5c66;
  background: linear-gradient(90deg, transparent, #9d763511 45%, transparent);
}
.history-chapters a {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  color: #e8dfc2;
  font-size: .85rem;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid #b79b5a26;
}
.history-chapters a > span:first-child { flex: 0 0 auto; color: #bfa16c; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; }
.history-chapters a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.history-chapters a:hover, .history-chapters a[aria-current], .history-chapters a.history-current { color: #ffe4ad; text-decoration: underline; text-decoration-color: #caa269; text-underline-offset: 5px; }
.history-chapters a[aria-current] > span:first-child, .history-chapters a.history-current > span:first-child { color: #ffe4ad; }
.history-reader { position: relative; isolation: isolate; }
.history-ornament { display: block; width: 170px; height: 44px; margin: 0 auto 14px; color: #cca263; }
.history-teaser-intro { max-width: 760px; margin: 0 auto 35px; text-align: center; }
.history-teaser-intro h2 { margin-bottom: 20px; }
.history-teaser-intro > p:last-child { max-width: 55ch; margin: 0 auto; }
.history-teaser-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 25px; padding-top: 28px; font-size: .82rem; }
.history-reader { scroll-margin-top: 20px; }
.history-spread {
  --history-paper: #f3e3bd;
  --history-ink: #352e22;
  --history-brown: #735036;
  --history-rule: #98774655;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 0 0 52px;
  padding: 11px 12px 16px;
  border: 1px solid #b08a4a;
  border-radius: 12px 16px 17px 12px;
  color: var(--history-ink);
  background:
    repeating-linear-gradient(7deg, #50302100 0 3px, #a3763622 3px 4px),
    linear-gradient(90deg, #482f20, #6b4829 48%, #342a1b 50%, #785231 52%, #46321e);
  box-shadow: 0 3px 0 #372316, 0 7px 0 #6c492e, 0 12px 0 #35291a, 0 22px 48px #020a0870;
  isolation: isolate;
  scroll-margin-top: 28px;
}
.history-spread::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #d8b47660;
  border-radius: 8px 12px 13px 8px;
  pointer-events: none;
  z-index: -1;
}
.history-spread::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 11px;
  bottom: 16px;
  left: calc(50% - 17px);
  width: 34px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #81644014 25%, #4c38234a 47%, #3627194d 50%, #ffefc235 54%, transparent);
}
.history-leaf {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 31px 38px 29px;
  background-color: var(--history-paper);
  background-image:
    radial-gradient(ellipse at 7% 94%, #a9752730, transparent 50%),
    radial-gradient(ellipse at 88% 12%, #fff9deaa, transparent 55%),
    repeating-linear-gradient(0deg, #89673308 0 1px, transparent 1px 4px);
  color: var(--history-ink);
  box-shadow: inset 0 0 24px #89633228, 0 4px 0 #d0b88e, 0 5px 0 #9e835f, 0 7px 0 #e0cba8;
  line-height: 1.65;
}
.history-picture { margin: 0; border-radius: 7px 0 0 6px; border-right: 1px solid #ab8d5e57; padding-right: 42px; }
.history-picture figcaption { padding-top: 18px; font-size: .83rem; line-height: 1.65; }
.history-inline-pager { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding: 20px 24px 6px; color: #fff0cf; font-size: .85rem; }
.history-inline-pager a { min-height: 44px; display: flex; align-items: center; }
.history-reader[data-book-ready=true] .history-inline-pager { display: none; }
.history-writing { border-radius: 0 7px 6px 0; padding-left: 42px; }
.history-leaf::before, .history-leaf::after {
  content: '';
  position: absolute;
  width: 29px;
  height: 29px;
  pointer-events: none;
  opacity: .62;
}
.history-leaf::before { top: 13px; left: 13px; border-top: 1px solid #a3854e; border-left: 1px solid #a3854e; border-radius: 10px 0 0; }
.history-leaf::after { bottom: 13px; right: 13px; border-bottom: 1px solid #a3854e; border-right: 1px solid #a3854e; border-radius: 0 0 10px; }
.history-leaf-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 16px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--history-rule); color: #6d5336; font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.history-photo { display: block; width: 100%; height: auto; max-height: 430px; aspect-ratio: 1.16; object-fit: contain; padding: 8px; border: 1px solid #a0865a88; background: #ead6af; box-shadow: 0 7px 16px #56381726; }
.history-credit { display: block; padding: 16px 0 10px; font-size: .72rem; line-height: 1.6; color: #675338; overflow-wrap: anywhere; }
.history-credit small { font-size: inherit; }
.history-credit a { color: #4d5739; text-decoration-thickness: 1px; }
.history-folio { margin-top: auto; padding-top: 23px; color: #795f3d; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.1rem; text-align: center; letter-spacing: .13em; }
.history-folio::before, .history-folio::after { content: '—'; margin: 0 10px; opacity: .6; }
.history-date { color: #825532; font-size: .71rem; line-height: 1.5; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.history-title { color: #35412a; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2.35rem, 3.35vw, 3rem); font-weight: 600; line-height: 1.06; letter-spacing: -.025em; margin: 0 0 20px; overflow-wrap: break-word; }
.history-question { color: #72482a; font-weight: 800; font-size: .99rem; line-height: 1.5; margin: 0 0 19px; padding: 0 0 16px; border-bottom: 1px solid var(--history-rule); }
.history-prose { color: #3e392b; font-size: 1.025rem; line-height: 1.75; }
.history-prose p { max-width: none; margin: 0 0 15px; }
.history-prose p:last-child { margin-bottom: 0; }
.history-sources { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 13px; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--history-rule); color: #5b573d; font-size: .73rem; line-height: 1.55; }
.history-sources a { max-width: 100%; color: #3e583c; overflow-wrap: anywhere; text-decoration-thickness: 1px; }
.history-sources strong, .history-sources > span { font-size: .69rem; font-weight: 800; letter-spacing: .04em; }
.history-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 15px; font-size: .79rem; font-weight: 800; color: #495c38; }
.history-related a { overflow-wrap: anywhere; }
.history-writing > .button { align-self: flex-start; max-width: 100%; margin-top: 22px; border-color: #315139; background: #315139; color: #fff1ce; font-size: .87rem; }
.history-source-card { position: relative; margin: 0; padding: 25px 25px 29px; min-height: 280px; border: 1px solid #97866b; border-left: 4px solid #6c7058; color: #343b31; background: #e9e1ce; box-shadow: 5px 6px 0 #ab9b7f35; }
.history-source-card::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: 10px; right: 10px; border: 1px solid #8e856740; pointer-events: none; }
.history-source-card .eyebrow { color: #62654e; font-size: .66rem; letter-spacing: .09em; }
.history-source-card h2, .history-source-card h3, .history-source-card strong { color: #3c4539; }
.history-source-card h2, .history-source-card h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.95rem; line-height: 1.1; margin-bottom: 18px; }
.history-source-card p { font-size: .93rem; line-height: 1.65; margin-top: 14px; }
.history-source-card p:first-child { margin-top: 0; }
.history-source-card > div { margin-top: 25px; padding-top: 20px; border-top: 1px solid #a9997f; }
.history-source-card > div > strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.4rem; }
.history-source-card h3 { margin: 6px 0 12px; font-size: 1.6rem; }
.history-source-card .history-document-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.history-source-card .history-document-note { font-size: .77rem; }
.history-source-card ul { padding-left: 19px; font-size: .88rem; }
.history-source-card li + li { margin-top: 9px; }
.history-pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; margin: 30px 0 0; }
.history-pager a { display: flex; justify-content: center; align-items: center; width: fit-content; min-height: 48px; max-width: 100%; padding: 12px 21px; border: 1px solid #bda06b8c; border-radius: 5px 15px 5px 15px; color: #f8e7bc; background: #35533a66; font-size: .9rem; font-weight: 800; line-height: 1.4; text-decoration: none; text-align: center; }
.history-pager a:last-child { justify-self: end; }
.history-pager a:hover { background: #5672437a; }
.history-pager a[aria-disabled=true] { opacity: .4; cursor: default; }
.history-position { color: #d0c8ad; text-align: center; font-size: .79rem; line-height: 1.5; }
.history-motion { display: block; margin: 25px auto 0; padding: 10px 15px; min-height: 44px; border: 1px solid #baa37255; border-radius: 20px; background: transparent; color: #d4cfb8; font-size: .78rem; }
.history-motion:hover { border-color: #e3bb79; color: #ffe6b3; }
.history-footnote { display: block; max-width: 78ch; margin: 38px auto 0; padding: 21px 0 0; border-top: 1px solid #bfa87638; background: none; color: #bfc4ac; font-size: .8rem; line-height: 1.75; text-align: center; }
.history-footnote p + p { margin-top: 12px; }
.history-footnote p { max-width: none; }
.history-footnote a { color: #dec898; }
.history-teaser { padding-top: 65px; padding-bottom: 75px; }
.history-teaser .section-heading { max-width: 750px; margin-bottom: 35px; }
.history-teaser .history-spread { margin-bottom: 0; }
.history-teaser .history-photo { aspect-ratio: 1.4; max-height: 340px; }
.history-teaser .history-leaf { padding-top: 30px; padding-bottom: 28px; }
.history-teaser .history-writing { justify-content: center; }
.history-teaser .history-title { font-size: clamp(2.3rem, 3.3vw, 3.1rem); }
.history-teaser .history-prose { font-size: 1rem; }
.history-reader [hidden], .history-teaser [hidden], .history-pager[hidden], .history-motion[hidden] { display: none !important; }
.history-reader[data-book-ready=true] .history-spread { margin-bottom: 0; }
.history-page a:focus-visible, .history-page button:focus-visible, .history-teaser a:focus-visible { outline: 3px solid #c87a2b; outline-offset: 5px; }
body[data-motion=enabled] .history-reader.is-turning { animation: history-leaf-turn .32s ease-out; }
@keyframes history-leaf-turn { from { opacity: .55; transform: translateX(7px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1080px) {
  .history-main { width: calc(100% - 44px); padding-top: 28px; }
  .history-leaf { padding-left: 27px; padding-right: 27px; }
  .history-picture { padding-right: 31px; }
  .history-writing { padding-left: 31px; }
  .history-chapters { gap: 0 18px; padding-inline: 12px; }
  .history-title { font-size: 2.4rem; }
  .history-prose { font-size: 1rem; }
}
@media (max-width: 760px) {
  .history-main { width: calc(100% - 32px); padding: 24px 0 56px; }
  .history-intro { margin-bottom: 26px; padding: 0 8px; }
  .history-intro h1 { font-size: clamp(2.6rem, 8vw, 3.4rem); }
  .history-intro > p:not(.eyebrow) { font-size: .96rem; }
  .history-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 26px 0 28px; padding: 10px 4px; }
  .history-chapters a { gap: 9px; min-height: 65px; font-size: .77rem; }
  .history-chapters a > span:first-child { font-size: 1.32rem; }
  .history-spread { grid-template-columns: minmax(0, 1fr); padding: 8px 8px 13px; gap: 9px; border-radius: 9px 13px 14px 9px; margin-bottom: 40px; }
  .history-spread::after { display: none; }
  .history-leaf { padding: 29px 27px 25px; border: 0; border-radius: 4px; }
  .history-leaf::before { top: 11px; left: 11px; width: 22px; height: 22px; }
  .history-leaf::after { bottom: 11px; right: 11px; width: 22px; height: 22px; }
  .history-leaf-top { margin-bottom: 20px; font-size: .63rem; }
  .history-photo { max-height: 430px; aspect-ratio: 1.15; padding: 6px; }
  .history-title { font-size: clamp(2.1rem, 7.5vw, 2.7rem); }
  .history-prose { font-size: 1rem; line-height: 1.73; }
  .history-question { font-size: .94rem; }
  .history-date { font-size: .68rem; }
  .history-pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 27px; }
  .history-pager a { width: 100%; min-height: 48px; font-size: .83rem; padding: 11px 13px; }
  .history-position { grid-column: 1 / -1; grid-row: 2; font-size: .77rem; }
  .history-footnote { text-align: left; padding-inline: 7px; font-size: .77rem; }
  .history-teaser { padding: 48px 18px 58px; }
  .history-teaser .history-photo { max-height: 330px; aspect-ratio: 1.45; }
  .history-teaser .history-leaf { padding: 28px 25px 24px; }
  .history-teaser .history-title { font-size: 2.35rem; }
}
@media (max-width: 380px) {
  .history-main { width: calc(100% - 24px); }
  .history-chapters { gap: 0 12px; }
  .history-chapters a { gap: 7px; font-size: .72rem; }
  .history-leaf, .history-teaser .history-leaf { padding-left: 21px; padding-right: 21px; }
  .history-title, .history-teaser .history-title { font-size: 2.12rem; }
  .history-source-card { padding: 23px 18px; }
  .history-teaser { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-motion=enabled] .history-reader.is-turning { animation: none; }
  .history-page *, .history-teaser * { scroll-behavior: auto !important; }
}
@media print {
  .history-page { background: white; color: #222; }
  .history-main { width: 100%; padding: 0; }
  .history-page .masthead, .history-chapters, .history-pager, .history-motion { display: none !important; }
  .history-reader .history-spread[hidden], .history-reader .history-leaf[hidden] { display: grid !important; }
  .history-spread { break-inside: avoid; page-break-inside: avoid; margin: 25px 0; background: none; box-shadow: none; border-color: #bbb; }
  .history-leaf { background: #fff; box-shadow: none; }
  .history-intro h1, .history-intro > p:not(.eyebrow), .history-footnote { color: #222; }
  .history-spread::before, .history-spread::after { display: none; }
}

/* Mobile: keep the four seasons; hide only the history shortcut. */
@media (max-width: 800px) {
  .enchanted .journey-nav.has-history-shortcut { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: -62px; }
  .enchanted .journey-nav .journey-history-shortcut { display: none; }
  html:has(.journey-nav.has-history-shortcut) { scroll-padding-top: 90px; }
}
@media (max-width: 520px) {
  .enchanted .journey-nav.has-history-shortcut { margin-bottom: -66px; }
  html:has(.journey-nav.has-history-shortcut) { scroll-padding-top: 85px; }
}
