/* Cary Castle, the landing page. Colours from the site's own materials: blue lias (the page), Cary stone (the walls,
   the links), turf, and ink. Type: IM Fell English (Fell's 17th-century types) for the chronicle and the headings,
   Alegreya Sans for the rest. */
:root {
  --lias: #dde0da;
  --lias-deep: #56636b;
  --ink: #23272b;
  --cary: #8b4c1b;   /* 4.8:1 on the lias for the small brown text (was #94551f, 4.4) */
  --cary-light: #c98a4e;
  --turf: #34502a;
  --night: #1d232a;
  --fell: "IM Fell English", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--lias); }
body { margin: 0; background: var(--lias); color: var(--ink); font: 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--cary); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible, .whole :focus-visible { outline-color: var(--cary-light); }   /* on the dark bands */
cite { font-style: italic; }
h1, h2, h3 { font-family: var(--fell); font-weight: 400; margin: 0; }

/* the hero: the reconstruction, and the chronicle's sentence over it */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #f3efe6; background: var(--night); overflow: hidden; }
.hero picture { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
@media (max-aspect-ratio: 4/5) { .hero-img { object-position: 50% 0%; } }
/* the loop over the picture (index.html): framed as the picture, shown once it plays */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%;
  opacity: 0; transition: opacity 0.8s; pointer-events: none; }
.hero-video.on { opacity: 1; }
.hero-pause { position: absolute; z-index: 2; top: 16px; right: 16px; font: inherit; font-size: 14px; color: #f3efe6;
  background: rgba(29, 35, 42, 0.55); border: 1px solid rgba(243, 239, 230, 0.45); border-radius: 4px; padding: 6px 12px; cursor: pointer; }
.hero-pause:hover { background: rgba(29, 35, 42, 0.8); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29, 35, 42, 0) 25%, rgba(29, 35, 42, 0.55) 55%, rgba(29, 35, 42, 0.94) 100%); }
.hero-text { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px 6vh; }
.hero h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1; margin-bottom: 16px; color: #f3efe6; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.chronicle { margin: 0; max-width: 21em; font-family: var(--fell); font-size: clamp(27px, 4.1vw, 54px); line-height: 1.12; }
.chronicle p { margin: 0; text-wrap: pretty; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.chronicle footer { margin-top: 20px; font: 16px/1.4 var(--sans); color: #c9ccc6; }
/* the three ways in, under the quote: one tap from the first screen */
.ways { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ways a { padding: 10px 18px; border: 1px solid rgba(243, 239, 230, 0.6); border-radius: 2px; color: #f3efe6; font-weight: 500;
  text-decoration: none; background: rgba(29, 35, 42, 0.35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ways a:hover { border-color: var(--cary-light); color: var(--cary-light); }
.ways a.first { background: #f3efe6; border-color: #f3efe6; color: var(--ink); }
.ways a.first:hover { background: var(--cary-light); border-color: var(--cary-light); color: var(--ink); }
@media (max-width: 519px) { .chronicle { font-size: 25px; } .ways { gap: 8px; } .ways a { padding: 9px 13px; font-size: 16px; } }

main, .sources { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.intro { padding: 72px 0 24px; max-width: 40em; }
.intro p { margin: 0 0 16px; }
.intro .to-visit { font-weight: 500; }
.intro .lede { font-family: var(--fell); font-size: clamp(23px, 2.4vw, 29px); line-height: 1.32; }

section h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 28px; }

/* three ways in: the walk wide, then the display and the dig side by side, their buttons level */
.open { padding-top: 56px; display: grid; grid-template-columns: 1fr; gap: 56px; }
.open h2 { grid-column: 1 / -1; margin-bottom: -24px; }
.open h3 { font-size: clamp(27px, 2.6vw, 34px); line-height: 1.15; margin: 18px 0 10px; }
.open p { margin: 0 0 12px; max-width: 34em; }
.open .detail { color: var(--lias-deep); }
/* where and how each one is used, above its title, so the three read as a set and you can tell which is for you */
.open .where { margin: 18px 0 0; font: 600 14px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cary); }
.open .where + h3 { margin-top: 6px; }
.pic { display: block; overflow: hidden; background: #c3c8c1; }
.pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px !important; }
.button { display: inline-block; padding: 12px 22px; border-radius: 2px; background: var(--ink); color: var(--lias); font-weight: 500;
  text-decoration: none; }
.button:hover { background: var(--cary); color: #fff; }


/* the walk: its picture, and the app on a phone held at an angle over its corner */
.walk-visual { position: relative; overflow: visible; }
.walk-visual > img { overflow: hidden; }
.phone { position: absolute; left: 4%; bottom: -9%; width: 31%; max-width: 230px; padding: 7px; border-radius: 30px; background: #15181b;
  box-shadow: 0 0 0 1.5px #3b4148, 0 24px 48px rgba(20, 24, 28, 0.45), 0 6px 14px rgba(20, 24, 28, 0.3);
  transform: perspective(1400px) rotateY(16deg) rotateX(4deg) rotateZ(-5deg); transform-origin: 50% 100%; }
.walk .walk-visual .phone img { width: 100%; height: auto; aspect-ratio: auto; border-radius: 23px; object-fit: cover; }
@media (max-width: 819px) { .walk-visual { margin-bottom: 48px; } .phone { width: 36%; bottom: -12%; } }

/* then and now: the 1138 picture under today's, which is cut back to the bar; a drag sideways moves it, the page still
   scrolls up and down over it */
.compare { position: relative; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.compare img { pointer-events: none; }
.compare .now { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 0 var(--at)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--at); width: 3px; margin-left: -1.5px; background: #f3efe6;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.45); pointer-events: none; }
.compare .handle::after { content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px;
  transform: translate(-50%, -50%); border-radius: 50%; background: #f3efe6; color: var(--ink); display: grid; place-items: center;
  font: 700 22px/1 var(--sans); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.compare .tag { position: absolute; top: 12px; padding: 3px 10px; border-radius: 2px; background: rgba(29, 35, 42, 0.78); color: #f3efe6;
  font: 500 15px/1.4 var(--sans); pointer-events: none; }
.compare .then { left: 12px; } .compare .today { right: 12px; }
.compare input { position: absolute; inset: auto 0 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.compare:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }

/* known and guessed, with the keep's plan */
.evidence { padding: 88px 0 40px; display: grid; gap: 32px; }
.evidence h2 { margin-bottom: 0; }
.evidence h3 { font-size: 28px; margin-bottom: 8px; }
.evidence p { margin: 0 0 12px; max-width: 34em; }
.known h3 { color: var(--turf); }
.guessed h3 { color: var(--cary); }
.plan-fig { margin: 0; }


.sources { padding-top: 32px; padding-bottom: 56px; }
.sources p { margin: 0; padding-top: 20px; border-top: 1px solid rgba(86, 99, 107, 0.35); max-width: 46em; font-size: 15px; color: var(--lias-deep); }

/* where the sources disagree: drawn on squared paper, as in Ben's field-book sheet of 31 Oct (work/sheet/; the drawings
   are its rough.js ones, fixed as SVG by work/sheet/landing/extract.mjs) */
.disputes { padding: 40px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.disputes h2 { margin-bottom: 0; }
.paper { --grid: #d5e4e8; --grid-major: #b9d0d6; padding: 24px 20px 20px; color: #1f2b47; background-color: #fbfcf8;
  background-image: linear-gradient(var(--grid-major) 1.3px, transparent 1.3px), linear-gradient(90deg, var(--grid-major) 1.3px, transparent 1.3px),
    linear-gradient(var(--grid) 0.8px, transparent 0.8px), linear-gradient(90deg, var(--grid) 0.8px, transparent 0.8px);
  background-size: 95px 95px, 95px 95px, 19px 19px, 19px 19px; box-shadow: 0 1px 2px rgba(35, 39, 43, 0.12), 0 8px 24px rgba(35, 39, 43, 0.1); }
.paper h3 { font-size: clamp(25px, 2.4vw, 30px); line-height: 1.15; margin-bottom: 18px; }
.paper svg { display: block; overflow: visible; }
.paper .src { margin: 6px 0 0; font-size: 15px; font-style: italic; color: #5e5a54; }
.paper .src cite { font-style: normal; }
.versions { display: grid; gap: 20px; }
.versions .v { background: rgba(251, 252, 248, 0.88); padding: 12px; }
.versions svg { width: 100%; max-width: 240px; height: auto; margin-bottom: 10px; }
.versions h4 { font: 400 23px/1.2 var(--fell); margin: 0 0 6px; }
.versions p { margin: 0; max-width: 30em; }
/* the three versions, animated (index.html's script adds .play as each scrolls into view; a tap replays it). Before it
   plays each drawing shows its end, so nothing is lost without motion */
.versions .v { cursor: pointer; position: relative; }
.versions .replay { position: absolute; top: 6px; right: 6px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0;
  background: none; color: var(--lias-deep); font: 500 15px/1 var(--sans); cursor: pointer; }
.versions .replay:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .versions .replay { display: none; } }
.versions .shot { opacity: 0; }
.versions :is(.flag, .fire, .banner, .fp, .b1, .b2) { transform-box: fill-box; transform-origin: 50% 100% !important; }
.versions :is(.b1, .b2) { transform-origin: 30% 100% !important; }
.versions .banner { transform-origin: 0% 100% !important; }
@media (prefers-reduced-motion: no-preference) {
  /* waiting to play (the script marks the page .anim): the parts that come in are hidden, so it doesn't jump from its end
     to its start as it plays */
  .anim .versions .v:not(.play) :is(.flag, .fire, .banner, .fp, .b1, .b2) { opacity: 0; }
  .anim .versions .v:not(.play) .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
  /* fire and hunger: three swings, fire on the wall, the white flag */
  .v.play .arm { animation: swing 1.2s ease-in 3; }
  .v.play .s1 { animation: fly1 1.2s linear; } .v.play .s2 { animation: fly2 1.2s linear 1.2s; } .v.play .s3 { animation: fly3 1.2s linear 2.4s; }   /* one a swing */
  .v.play .fire { animation: catch 3.6s ease-out both, flicker 0.35s ease-in-out 3.6s 6 alternate; }
  .v.play .f2 { animation-delay: 1.2s, 3.6s; } .v.play .f3 { animation-delay: 2.4s, 3.6s; }
  .v.play .flag { animation: raise 1.2s cubic-bezier(.3, 1.6, .5, 1) 4.2s both; }
  /* forts, then away: the fort drawn, its banner, the footprints */
  .v.play .draw path { stroke-dasharray: 1; animation: draw 1.6s ease-out both; }
  .v.play .banner { animation: pop 0.6s cubic-bezier(.3, 1.8, .5, 1) 1.5s both; }
  .v.play .fp { animation: step 0.4s ease-out both; }
  .v.play .p1 { animation-delay: 2.3s; } .v.play .p2 { animation-delay: 2.7s; } .v.play .p3 { animation-delay: 3.1s; }
  .v.play .p4 { animation-delay: 3.5s; } .v.play .p5 { animation-delay: 3.9s; } .v.play .p6 { animation-delay: 4.3s; }
  .v.play .away { animation-delay: 4.8s; }
  /* talked into it: the threat (shaken), the coaxing, the flag (above, at 4.2 s) */
  .v.play .b1 { animation: pop 0.6s cubic-bezier(.3, 1.8, .5, 1) 0.3s both, shake 0.25s ease-in-out 1.1s 4; }
  .v.play .b2 { animation: pop 0.6s cubic-bezier(.3, 1.8, .5, 1) 2.4s both; }
}
@keyframes swing { 0%, 20% { transform: rotate(-22deg); } 45% { transform: rotate(30deg); } 100% { transform: rotate(-22deg); } }
/* the fireballs' arcs, from the arm's tip to the wall (each a little lower), as points along the curve */
@keyframes fly1 { 0%, 40% { transform: translate(24px, 5px); opacity: 0; } 42% { transform: translate(24.0px, 5.0px); opacity: 1; } 50% { transform: translate(27.7px, 2.7px); opacity: 1; } 57% { transform: translate(31.3px, 1.7px); opacity: 1; } 65% { transform: translate(35.0px, 2.0px); opacity: 1; } 73% { transform: translate(38.7px, 3.7px); opacity: 1; } 80% { transform: translate(42.3px, 6.7px); opacity: 1; } 88% { transform: translate(46.0px, 11.0px); opacity: 1; } 100% { transform: translate(46px, 11.0px); opacity: 0; } }
@keyframes fly2 { 0%, 40% { transform: translate(24px, 5px); opacity: 0; } 42% { transform: translate(24.0px, 5.0px); opacity: 1; } 50% { transform: translate(27.8px, 2.7px); opacity: 1; } 57% { transform: translate(31.7px, 1.9px); opacity: 1; } 65% { transform: translate(35.8px, 2.6px); opacity: 1; } 73% { transform: translate(40.0px, 4.8px); opacity: 1; } 80% { transform: translate(44.4px, 8.4px); opacity: 1; } 88% { transform: translate(49.0px, 13.5px); opacity: 1; } 100% { transform: translate(49px, 13.5px); opacity: 0; } }
@keyframes fly3 { 0%, 40% { transform: translate(24px, 5px); opacity: 0; } 42% { transform: translate(24.0px, 5.0px); opacity: 1; } 50% { transform: translate(27.8px, 2.8px); opacity: 1; } 57% { transform: translate(32.0px, 2.2px); opacity: 1; } 65% { transform: translate(36.5px, 3.2px); opacity: 1; } 73% { transform: translate(41.3px, 5.9px); opacity: 1; } 80% { transform: translate(46.5px, 10.1px); opacity: 1; } 88% { transform: translate(52.0px, 16.0px); opacity: 1; } 100% { transform: translate(52px, 16.0px); opacity: 0; } }
@keyframes catch { 0%, 30% { transform: scale(0); opacity: 0; } 45% { transform: scale(1.3); opacity: 1; } 60%, 100% { transform: scale(1); opacity: 1; } }
@keyframes flicker { from { transform: scale(1, 1); } to { transform: scale(0.85, 1.15); } }
@keyframes raise { from { transform: translateY(7px) scaleY(0.3); opacity: 0; } 20% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; fill-opacity: 0; } 70% { fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes step { from { opacity: 0; transform: translateY(-1.5px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
/* the plan, hand-drawn on the squared paper, with what its marks mean */
.plan-fig svg { width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.plan-fig figcaption { margin-top: 14px; font-size: 16px; line-height: 1.45; color: #1f2b47; }
.paper .lead { margin: -6px 0 16px; max-width: 40em; }
.paper .note { margin: 14px 0 6px; max-width: 46em; font-size: 16px; }
.paper .hand { margin: -8px 0 14px; font: 500 21px/1.2 Caveat, cursive; color: #b5302a; }

/* how a Norman keep was built: the west face in elevation, hand-drawn on the squared paper (work/sheet/landing/anatomy.html,
   fixed as SVG), its parts numbered as in the drawing (Ben, 1 Nov: "the anatomy of a castle where we talk about putlogs
   and merlons") */
.anatomy { padding: 40px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.anatomy h2 { margin-bottom: 0; }
.anatomy-fig { margin: 0; }
.anatomy-fig svg { width: 100%; max-width: 860px; height: auto; margin: 0 auto; }
/* on a phone the whole face fits the screen: it used to scroll sideways, unannounced, hiding numbers 1 and 9-12 */
.anatomy-fig figcaption { margin-top: 14px; font-size: 16px; line-height: 1.45; max-width: 46em; }
.anatomy-fig .src, .plan-fig .src { display: block; }
.parts { margin: 0; padding: 0; list-style: none; counter-reset: part; display: grid; gap: 10px 32px; }
.parts li { counter-increment: part; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: start; line-height: 1.4; }
.parts li::before { content: counter(part); width: 26px; height: 26px; border: 1.5px solid #b5302a; border-radius: 50%; display: grid;
  place-items: center; font: 700 18px/1 Caveat, cursive; color: #b5302a; background: #fbfcf8; }
@media (min-width: 640px) { .parts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .parts { grid-template-columns: 1fr 1fr 1fr; } }

/* the whole story: the history page's contents, as a dark band at the foot of the page */
.whole { margin-top: 64px; background: var(--night); color: #e6e3da; }
.whole-in { max-width: 1180px; margin: 0 auto; padding: 64px 16px 72px; display: grid; gap: 40px; }
.whole .where { margin: 0 0 6px; font: 600 14px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cary-light); }
.whole h2 { margin: 0 0 16px; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; color: #f3efe6; }
.whole .lede { margin: 0; max-width: 26em; font: 400 clamp(21px, 2vw, 25px)/1.35 var(--fell); color: #d9d6cc; text-wrap: pretty; }
.whole .button { background: #f3efe6; color: var(--ink); }
.whole .button:hover { background: var(--cary-light); color: var(--ink); }
.whole .count { font-size: 16px; color: #b9bdb5; }
.whole .count:hover { color: #f3efe6; }
.chapters { list-style: none; margin: 0; padding: 0; counter-reset: ch; border-top: 1px solid rgba(243, 239, 230, 0.18); }
.chapters li { counter-increment: ch; border-bottom: 1px solid rgba(243, 239, 230, 0.18); }
.chapters a { display: grid; grid-template-columns: 2.2em 1fr auto; align-items: baseline; gap: 12px; padding: 14px 4px;
  font: 400 clamp(20px, 1.9vw, 24px)/1.25 var(--fell); color: #f3efe6; text-decoration: none; }
.chapters a::before { content: counter(ch, upper-roman); font-size: 0.8em; color: var(--cary-light); }
.chapters a::after { content: "\2192"; font: 400 20px/1 var(--sans); color: #8d938c; transition: transform 0.2s, color 0.2s; }
.chapters a:hover { color: var(--cary-light); }
.chapters a:hover::after { color: var(--cary-light); transform: translateX(4px); }
@media (min-width: 900px) {
  .whole-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; padding: 88px 16px 96px; }
  .whole-head { position: sticky; top: 32px; }
}
.whole + .sources p { border-top: 0; }
@media (max-width: 519px) { .chapters a { grid-template-columns: 1.7em 1fr auto; gap: 10px; padding: 13px 2px; } }

/* the castle on the map: the 1902 OS sheet against today's ground, the same slider as the 3D castle's */
.oldmap { padding: 56px 0 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.oldmap h2 { margin-bottom: 0; }
.oldmap .compare img { aspect-ratio: 1078 / 750; object-fit: cover; }
.oldmap .compare img:not(.now) { height: auto; }
@media (max-width: 639px) { .oldmap .compare img { aspect-ratio: 1 / 1; } }
.oldmap .compare .handle::after { background: #f3efe6; }
.oldmap .words p { margin: 0 0 12px; max-width: 34em; }
.oldmap .src { font-size: 15px; color: var(--lias-deep); }
@media (min-width: 900px) { .oldmap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 40px; align-items: start; }
  .oldmap h2 { grid-column: 1 / -1; } }

/* plan a visit: the trail map beside what to know before you go */
.visit { padding: 72px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.visit h2 { margin-bottom: 0; }
.visit-map { margin: 0; }
.visit-map img { width: 100%; height: auto; border: 1px solid rgba(86, 99, 107, 0.35); background: #e6eadd; }
.visit-map figcaption { margin-top: 8px; font-size: 15px; color: var(--lias-deep); }
.visit-words h3 { font-size: 25px; margin: 0 0 4px; }
.visit-words p { margin: 0 0 20px; max-width: 32em; }
.visit-words .go { margin-top: 4px !important; }
@media (min-width: 820px) { .visit { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 48px; align-items: start; }
  .visit h2 { grid-column: 1 / -1; } .visit-map { position: sticky; top: 24px; } }
.sources .made, .sources .more { padding-top: 10px; border-top: 0; }

/* the timeline: an ink line with a knot at each year, red where the sources argue */
.story { padding: 56px 0 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.story h2 { margin-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 56em; }
.timeline::before { content: ""; position: absolute; left: calc(6.2em + 11px); top: 12px; bottom: 12px; width: 2px; background: #1f2b47; }
.timeline li { display: grid; grid-template-columns: 6.2em 24px 1fr; column-gap: 12px; align-items: start; padding: 6px 0; position: relative; }
.timeline li::before { content: ""; grid-column: 2; grid-row: 1; justify-self: center; margin-top: 6px; width: 13px; height: 13px; border-radius: 50%;
  background: #c99a3b; border: 1.5px solid #1f2b47; position: relative; }
.timeline li.d::before { width: 17px; height: 17px; margin-top: 4px; background: #b5302a; }
.timeline .yr { grid-column: 1; grid-row: 1; text-align: right; font: 400 21px/1.2 var(--fell); color: #1f2b47; }
.timeline li.d .yr { color: #b5302a; }
.timeline p { grid-column: 3; grid-row: 1; margin: 0; line-height: 1.45; }
@media (min-width: 1000px) {
  .timeline { max-width: none; columns: 2; column-gap: 40px; }
  .timeline::before { display: none; }
  .timeline li { break-inside: avoid; }
  .timeline li::after { content: ""; position: absolute; left: calc(6.2em + 23px); top: 0; bottom: 0; width: 2px; background: #1f2b47; z-index: 0; }
  .timeline li::before { z-index: 1; }
}
.timeline .src { display: block; font-size: 14px; font-style: italic; color: #5e5a54; }
.timeline .yr a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; display: inline-block; padding-block: 8px; margin-block: -8px; }
.paper .more { margin: 18px 0 0; max-width: 40em; font-size: 16px; color: #5e5a54; }
@media (max-width: 519px) {
  .timeline::before { left: 11px; }
  .timeline li { grid-template-columns: 24px 1fr; }
  .timeline li::before { grid-column: 1; }
  .timeline .yr { grid-column: 2; text-align: left; }
  .timeline p { grid-column: 2; grid-row: 2; }
}

/* the section's labels are drawn small: on a phone its four readings are a list above it, the rest written larger */
.readings { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.readings li { font: 500 17px/1.15 Caveat, cursive; color: #5e5a54; }
.readings b { display: block; font-size: 21px; font-weight: 700; color: #1f2b47; }
.hill svg { width: 100%; max-width: 980px; height: auto; }
@media (max-width: 639px) {
  .hill svg { margin-top: -6%; }
  .hill .reading { display: none; }
  .hill text { font-size: 7.4px; }
  .hill svg > text:nth-of-type(2) { transform: translateY(12px); }   /* "springs, Park Pond", below the water, clear of the keep */
  .hill svg > text:nth-of-type(1) { transform: translate(14px, 1px); }   /* "the keep, on its spur", clear of the springs */
}
@media (min-width: 640px) { .readings { display: none; } }
@media (min-width: 820px) {
  .disputes { padding-top: 56px; }
  .paper { padding: 32px 36px 28px; }
  .versions { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

@media (min-width: 820px) {
  .open { grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 88px; }
  .walk { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
  .walk h3 { margin-top: 0; }
  .walk .pic img { aspect-ratio: 4 / 3; }
  .display { grid-column: 1 / 7; }
  .dig { grid-column: 7 / -1; }
  .display, .dig { display: flex; flex-direction: column; }
  .display .words, .dig .words { flex: 1; display: flex; flex-direction: column; }
  .display .go, .dig .go { margin-top: auto !important; padding-top: 20px; }
  .evidence { grid-template-columns: 7fr 5fr; grid-template-rows: auto auto 1fr; column-gap: 48px; align-items: start; }   /* the plan wide enough to read its notes */
  .evidence h2 { grid-column: 1 / -1; }
  .plan-fig { grid-row: 2 / span 2; }
  .known, .guessed { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* wide screens: the keep stands left of centre in the hero, so the chronicle sits to its right, over the bailey */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .hero-img, .hero-video { object-position: 35% 30%; }
  .hero::after { background: linear-gradient(90deg, rgba(29, 35, 42, 0) 50%, rgba(29, 35, 42, 0.65) 66%, rgba(29, 35, 42, 0.92) 100%),
    linear-gradient(180deg, rgba(29, 35, 42, 0) 70%, rgba(29, 35, 42, 0.6) 100%); }
  .hero-text { max-width: none; margin: 0; padding: 0 max(32px, 4vw) 8vh 63%; }
  .chronicle { font-size: clamp(24px, 2.2vw, 40px); }
}
