/* Inter, hosted once at skyfallstatus.com/fonts for every skyfallstatus site (SIL Open Font License). */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 600; font-display: swap; src: url(https://skyfallstatus.com/fonts/inter-v20-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 600; font-display: swap; src: url(https://skyfallstatus.com/fonts/inter-v20-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: light;
  --paper: #fdfdfc;
  --ink: #111;
  --muted: #73736e;
  --rule: #f0f0ee;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
/* Chrome would otherwise re-anchor a restored scroll against the rising entrance and settle 8px off after a refresh. */
html { background: var(--paper); -webkit-text-size-adjust: 100%; overflow-anchor: none; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 460 14px/20px Inter, -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: -.09008px; word-spacing: 0; text-align: start; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible { outline: 1px solid #888; outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font: inherit; }
h1, h2, h3 { font-weight: 500; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { color: #111; background: #ededed; }
.page { max-width: 582px; margin: 0 auto; padding: 80px 16px 64px; }
/* Same place as on skyfallstatus.com and its tools page. */
.back { position: fixed; top: 80px; left: 80px; color: rgba(0, 0, 0, .4); font-size: 14px; }
.back:hover { color: var(--ink); }
.back-arrow { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; }
/* Contents, under the Index link. Behaviour and measurements follow the reference: small muted type,
   the section being read turns darker, and the page title appears above the list once the page has moved. */
.toc { position: fixed; top: 138px; left: 80px; max-width: 160px; font-size: 13px; line-height: 1.2; letter-spacing: -.04px; }
.toc ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; color: rgba(18, 18, 18, .4); transition: color .1s; }
.toc li a:hover, .toc li[data-active="true"] a { color: rgba(18, 18, 18, .8); }
.toc-title { padding-bottom: 16px; opacity: 0; visibility: hidden; transition: color .4s, opacity .4s, visibility 0s .4s; }
.toc[data-scrolled="true"] .toc-title { opacity: 1; visibility: visible; transition: color .4s, opacity .4s; }
.toc-title:hover { color: rgba(18, 18, 18, .8); }
.toc-title[data-active="true"] { color: rgb(17, 17, 17); }
.intro { margin-bottom: 32px; }
.date { display: block; margin-top: 4px; color: var(--muted); }
.byline { margin-top: 24px; color: var(--ink); text-wrap: pretty; }
/* Soft marker strokes stay behind the text without changing line wrapping. */
.byline mark { display: inline-block; position: relative; isolation: isolate; color: inherit; background: none; }
.byline mark::before { pointer-events: none; content: ''; z-index: -1; position: absolute; inset: 2px -2px 0; border-radius: 3px 2px 4px 2px; background: #ffeb3b; opacity: .85; transform: rotate(-.6deg); }
.byline mark:last-child::before { transform: rotate(.4deg); }
/* The tool is the one white object on the page. */
.demo { overflow: hidden; background: #fff; border: 1px solid #e3e3df; border-radius: 12px; box-shadow: 0 1px 2px #0000000a, 0 14px 34px -18px #0000001f; }
/* Both action centres sit 24px from the outer right edge: 1px border + 1px padding + 22px half-button. */
.demo-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 1px 0 16px; }
.source-button { display: flex; align-items: center; min-height: 44px; min-width: 0; max-width: calc(100% - 44px); font-size: 12px; font-weight: 400; color: #757570; }
#active-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.source-button sup { align-self: flex-start; margin: 10px 0 0 3px; font-size: 8px; line-height: 1; }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: #73736e; transition: color .16s, background-color .16s; }
.icon-button svg { width: 16px; height: 16px; }
.icon-button:hover { color: #333; background: #00000004; }
.icon-button:active { background: #00000007; }
#import-btn { border-radius: 0; background: transparent; transition: color .16s; }
#import-btn:hover, #import-btn:active { background: transparent; color: #333; }
.text-button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.text-button:hover { color: #333; }

/* A permanent reader; selection navigation scrolls only this element. */
.reader-wrap { margin-top: 4px; border-block: 1px solid var(--rule); }
#editor { height: 420px; max-height: 56dvh; overflow-y: auto; overflow-x: hidden; padding: 28px; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #deded9 transparent; outline-offset: -3px; }
#editor:focus-visible { outline: 1px solid #c3c3bc; }
.block { margin-bottom: 24px; }
.block:last-child { margin-bottom: 8px; }
.block p { color: var(--ink); font-size: 14px; line-height: 25px; overflow-wrap: anywhere; }
.who { display: flex; gap: 12px; margin-bottom: 7px; color: #73736e; font-size: 11px; }
.who:empty { display: none; }
.who b { font-weight: 400; }
.who time { font: 10px var(--mono); }
.s { cursor: text; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color .2s, color .2s; }
.s.match { background: #f4ebf0; cursor: pointer; }
.s.best { background: #f0d5e3; }
.demo-meta { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 20px; }
.stamp { max-width: 60%; color: #73736e; font-size: 10px; line-height: 15px; }
.stamp { font-variant-numeric: tabular-nums; }
.search-label { display: inline-block; animation: timer-breathe 2s ease-in-out infinite; }
.timer-divider { display: inline-block; margin: 0 6px; opacity: .45; }
.search-time { display: inline-block; width: 6ch; font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes timer-breathe { 0%, 100% { opacity: .85; } 50% { opacity: .45; } }
#moment-navigation { display: flex; align-items: center; gap: 1px; margin-left: auto; color: #73736e; font-size: 11px; }
#moment-navigation svg { width: 14px; height: 14px; }
#copy-moments { min-height: 44px; margin-left: auto; font-size: 11px; color: #73736e; }
.search-controls { position: relative; margin-bottom: 24px; }
.find { padding: 0; }
.find-row { display: flex; align-items: center; gap: 9px; padding: 0 4px 0 13px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px #0000001a; transition: background-color .18s, box-shadow .18s; }
.find-row:focus-within { background: #fff; box-shadow: inset 0 0 0 1px #00000052, 0 0 0 3px #0000000a; }
.query-field { display: flex; align-items: center; min-width: 0; flex: 1; height: 44px; }
.find-row input { min-width: 0; flex: 1; padding: 10px 0; border: 0; outline: none; background: transparent; font-size: 14px; font-weight: 400; line-height: 24px; letter-spacing: -.09px; caret-color: #77736f; }
.find-row input::placeholder { color: #8a8a85; }
.search-icon { flex: none; width: 15px; height: 15px; color: #73736e; }
.find-go { flex: none; display: grid; place-items: center; width: 40px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #6e6e69; transition: color .16s, background-color .16s; }
.find-go svg { width: 15px; height: 15px; }
.find-go:hover { background: #00000003; color: #333; }
.find-go:active { background: #00000006; }
.searching .find-row { box-shadow: inset 0 0 0 .5px #00000025; }
.searching .search-icon { animation: breathe 1.2s ease-in-out infinite; }
/* Suggestions: one sentence under the field, its options underlined like links in prose. */
.chips { padding: 10px 4px 0; color: var(--muted); font-size: 13px; line-height: 20px; }
.chips button { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-decoration-color: #d9d9d9; text-underline-offset: 2px; transition: color .1s, text-decoration-color .2s ease; }
.chips button:hover, .chips button.active { color: var(--ink); text-decoration-color: #666; }
@media(max-width:520px) {
  .chips { line-height: 28px; }
}
.source-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; color: #73736e; font-size: 11px; }
.source-note .text-button { min-height: 44px; font-size: 11px; }
.source-note a:hover { color: #333; }

/* Notes under the demo: short sections in the reader's text colour. */
.source-note:has(.text-button[hidden]) { display: none; }
.notes { margin-top: 40px; }
.notes h2:first-child { margin-top: 0; }
.notes h2 { display: flex; align-items: center; gap: 16px; margin: 48px 0 16px; color: var(--ink); scroll-margin-top: 84px; }
.notes h2::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.notes p { color: var(--ink); line-height: 24px; text-align: left; text-wrap: pretty; }
.notes p + p { margin-top: 16px; }
.notes sup { font-size: 8.4px; line-height: 8.4px; vertical-align: super; }
.notes sup a { text-decoration: none; color: rgba(18, 18, 18, .5); }
.notes a { text-decoration: underline; text-decoration-color: #d9d9d9; text-underline-offset: 2px; transition: text-decoration-color .2s ease; }
.notes a:hover { text-decoration-color: #666; }

/* Drawesome's quiet endnotes: breathing room, small raised numbers and muted text. */
.footnotes { padding-top: 40px; color: rgba(0, 0, 0, .4); font-size: 12px; line-height: 1.2; }
.footnotes::before { content: ''; display: block; width: 50px; height: 1px; background: #ededed; }
.footnotes ol { margin: 0; padding: 48px 0 0 4px; list-style: none; counter-reset: footnote; }
.footnotes li { position: relative; padding: 0 0 9px 4px; scroll-margin-top: 84px; counter-increment: footnote; }
.footnotes li::before { content: counter(footnote); position: absolute; right: 100%; top: 0; font-size: 7.2px; line-height: 1.2; }
.footnotes p { margin: 0; }
.footnotes a { color: rgba(0, 0, 0, .65); text-decoration: none; }
.footnotes .fn-back { color: inherit; padding: 4px; }
.footnotes a:hover { color: var(--ink); }
.notes sup a { scroll-margin-top: 84px; }

/* Import feedback. */
.empty { color: var(--muted); }
.empty b { display: block; margin-bottom: 8px; color: #555; font-weight: 500; }
.drop-veil { position: fixed; inset: 0; z-index: 20; display: none; place-items: center; background: #fdfdfcec; backdrop-filter: blur(4px); }
.drop-veil.on { display: grid; }
.drop-veil div { padding: 40px; border: 1px dashed #ccc; border-radius: 8px; }
.toasts { position: fixed; bottom: 24px; left: 50%; z-index: 30; display: grid; gap: 8px; width: max-content; max-width: 90vw; transform: translateX(-50%); pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 6px; background: #252523; color: #fff; font-size: 12px; }
.toast b { font-weight: 500; }
@keyframes breathe { 50% { opacity: .35; } }

/* Entrance, replayed on every load: each block rises into place, 50 ms after the one before. */
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.back, .toc, .intro h1, .date, .byline, .search-tool, .source-note, .notes, .footnotes { animation: reveal .5s ease both; animation-delay: calc(var(--i, 0) * 50ms); }
.toc, .date, .byline { --i: 1; }
.byline + .byline { --i: 2; }
.search-tool { --i: 3; }
.source-note { --i: 6; }
.notes { --i: 7; }
.footnotes { --i: 8; }
@media(max-width:1080px) {
  .toc { display: none; }
}
@media(max-width:1000px) {
  .back { position: static; display: block; max-width: 582px; margin: 32px auto 0; padding: 0 16px; }
  .page { padding-top: 32px; }
}
@media(max-width:768px) {
  .back { margin-top: 36px; padding: 0 24px; }
  .page { padding: 36px 24px 40px; }
  .intro { margin-bottom: 24px; }
  .demo-top { padding: 4px 1px 0 14px; }
  #editor { height: 390px; max-height: 51dvh; padding: 24px 20px; }
  .block { margin-bottom: 22px; }
  .demo-meta { padding: 0 17px; }
  .find { padding: 0; }
  /* Keep a 16px input font, rendered at the surrounding 14px size.
     Compensate its width and height so the caret and tap area still fill the field. */
  .find-row input { font-size: 16px; flex: none; width: calc(100% / .875); height: calc(44px / .875); transform: scale(.875); transform-origin: left center; }
  .source-note { margin-top: 12px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.demo { position: relative; }
.import-menu { position: absolute; z-index: 5; top: 48px; right: 12px; width: 300px; max-width: calc(100% - 24px); padding: 8px; background: var(--paper); border: 1px solid #e5e5e1; border-radius: 9px; box-shadow: 0 5px 20px #00000009; transform-origin: top right; }
.import-menu[inert] { pointer-events: none; }
#import-btn svg { transition: transform .23s cubic-bezier(.2,.8,.2,1); }
#import-btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.import-menu button { border: 0; background: none; min-height: 44px; padding: 10px; text-align: left; font-size: 12px; }
.import-menu > button { display: block; width: 100%; }
.import-menu button:hover { background: #f2f2ef; border-radius: 5px; }
#saved-imports { max-height: 180px; overflow: auto; }
.saved-import { display: flex; align-items: center; }
.saved-import button:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-import button:last-child { flex-shrink: 0; color: var(--muted); }
