/* ==========================================================================
   Homepage style sheet (Chinese and English)

   All visual decisions live in the token table below. Components only use
   var(--token). To change the look, edit :root. To add or switch a reading
   style, add another [data-style="..."] block that overrides tokens; the
   layout rules stay untouched.
   ========================================================================== */

:root {
  /* Type */
  --font-serif: Georgia, 'Songti SC', 'Noto Serif SC', 'Noto Serif CJK SC', 'Source Han Serif SC', 'Source Han Serif CN', 'STSong', 'SimSun', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  --font-mono: Consolas, 'Courier New', Monaco, monospace;
  --font-body: var(--font-serif);
  --base-size: 16px;
  --leading: 1.92;
  --tracking: .012em;
  --measure: 780px;
  /* Running prose stays at a comfortable reading measure even when the page
     frame widens on large screens. */
  --prose: var(--measure);

  /* Paper and ink */
  --paper: #F7F4EC;
  --paper-deep: #F1EDE3;
  --paper-card: #FCFAF4;
  --paper-note: #F3EFE4;
  --ink: #3B3731;
  --ink-strong: #2E2B26;
  --ink-soft: #6F695F;
  --ink-faint: #8C8579;
  --rule: #E2DCCF;
  --rule-strong: #B7AE9D;
  --celadon: #93A395;
  --celadon-deep: #5E6F63;
  --ochre: #A98A5F;

  /* Links and accents */
  --link: var(--celadon-deep);
  --link-hover: #8A6C45;
  --link-line: rgba(94, 111, 99, .28);
  --link-line-hover: rgba(138, 108, 69, .45);
  --selection: #DDE4D8;
  --h1-rule: #C4B79E;

  /* Notes and code */
  --note-bg: var(--paper-note);
  --note-border: #E2DBCD;
  --note-ink: #57524A;
  /* Code sits on a warm near-black slab: the one dark anchor on the paper. */
  --code-bg: #1C1B18;
  --code-border: #2B2822;
  --code-bar-bg: #151411;
  --code-bar-rule: #302C25;
  --code-bar-ink: #9C9789;
  --code-ink: #E8E2D5;
  --code-kw: #A9C4A4;
  --code-ty: #DCB783;
  --code-fn: #93BCCB;
  --code-st: #DA9C7B;
  --code-cm: #8E897B;
  --code-nm: #D0B27A;
  --code-pr: #CE9DA9;
  --inline-code-ink: #6B5D49;
  --inline-code-bg: #F0EBE0;

  /* Controls and chrome */
  --btn-border: var(--rule-strong);
  --btn-border-hover: #8C8578;
  --btn-bg-hover: #EFEAE0;
  --tag-rule: #D7D0C2;
  --pref-active-bg: #EFEAE0;

  /* Sizes and spacing */
  --h1-size: clamp(1.55rem, 3.6vw, 1.95rem);
  --h2-size: 1.06rem;
  --h3-size: .91rem;
  --note-size: .91rem;
  --small-size: .76rem;
  --meta-size: .735rem;
  --btn-size: .82rem;
  --code-size: .76rem;
  --icon-size: 18px;
  --pad-y: 56px;
  --pad-x: 30px;
  --pad-bottom: 84px;
  --h1-gap: 30px;
  --h2-gap-top: 64px;
  --h2-gap-bottom: 20px;
  --h3-gap-top: 38px;
  --h3-gap-bottom: 10px;
  --radius: 2px;

  /* Section mark before h2 */
  --mark-w: 2px;
  --mark-h: .82em;
  --mark-gap: .62em;
  --mark-va: -.04em;
  --mark-bg: var(--celadon);

  font-size: var(--base-size);
}

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--leading);
  letter-spacing: var(--tracking);
}

::selection { background: var(--selection); color: var(--ink-strong); }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x) var(--pad-bottom);
}

/* Brand mark in the wide-screen right margin: a quiet gray ghost, never a
   second focal point. Hidden until there is actually room for it. */
.page-mark { display: none; }

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--link-line);
  transition: color .18s ease, border-color .18s ease;
}

a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-line-hover);
}

b, strong { font-weight: 600; color: var(--ink-strong); }

/* Reading controls and language switch */
.langbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 46px;
  color: var(--ink-faint);
  font-size: var(--meta-size);
  line-height: 1.6;
  letter-spacing: .12em;
}

.prefs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.prefs { gap: 2px; }

.prefs-sep {
  width: 1px;
  height: 12px;
  margin: 0 8px;
  background: var(--rule);
}

.pref {
  appearance: none;
  margin: 0;
  padding: 4px 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-faint);
  line-height: 0;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.pref:hover {
  color: var(--ink);
  border-color: var(--rule);
}

.pref[aria-pressed="true"] {
  color: var(--ink-strong);
  background: var(--pref-active-bg);
  border-color: var(--rule);
}

.pref:disabled {
  opacity: .32;
  cursor: default;
}

.pref:focus-visible {
  outline: 1px solid var(--celadon);
  outline-offset: 1px;
}

.ico {
  display: block;
  width: var(--icon-size);
  height: var(--icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang {
  display: inline-flex;
  padding: 4px 6px;
  color: var(--ink-faint);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color .18s ease, background .18s ease;
}

.langbar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.lang:hover {
  color: var(--ink);
  background: var(--pref-active-bg);
  border-color: var(--rule);
}

h1 {
  margin: 0 0 var(--h1-gap);
  font-size: var(--h1-size);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: .035em;
  color: var(--ink-strong);
}

h1::after {
  content: "";
  display: block;
  width: 2.2em;
  height: 1px;
  margin-top: .72em;
  background: var(--h1-rule);
}

h2 {
  margin: var(--h2-gap-top) 0 var(--h2-gap-bottom);
  font-size: var(--h2-size);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--ink-strong);
}

h2::before {
  content: "";
  display: inline-block;
  width: var(--mark-w);
  height: var(--mark-h);
  margin-right: var(--mark-gap);
  vertical-align: var(--mark-va);
  background: var(--mark-bg);
}

h3 {
  margin: var(--h3-gap-top) 0 var(--h3-gap-bottom);
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

p { margin: 0 0 1.4em; }

/* Hero data anchors: three facts, one hairline, no card. */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 26px;
  margin: 30px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  min-width: 0;
}

.hero-stats li::marker { content: none; }

.hero-stats b {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--ink-strong);
}

.hero-stats span {
  font-size: var(--meta-size);
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

ul, ol {
  margin: 0 0 1.5em;
  padding-left: 1.35em;
}

li { margin: .55em 0; }
li::marker { color: var(--celadon); }

img#ide {
  float: right;
  width: 350px;
  max-width: 100%;
  margin: 6px 0 26px 34px;
  padding: 8px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  aspect-ratio: 800 / 480;
}

.note {
  margin: 2em 0;
  padding: 18px 22px;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-left: 2px solid var(--celadon);
  border-radius: var(--radius);
  color: var(--note-ink);
  font-size: var(--note-size);
  line-height: 1.85;
}

.note-fold summary {
  cursor: pointer;
  color: var(--ink-strong);
  font-weight: 600;
}

.note-fold summary::marker {
  color: var(--celadon);
}

.note-fold summary:hover {
  color: var(--celadon-deep);
}

.note-fold[open] summary {
  margin-bottom: 8px;
}

.note-fold p {
  margin: 0;
}

.small {
  font-size: var(--small-size);
  color: var(--ink-faint);
  letter-spacing: .02em;
}

/* Code: a dark slab on warm paper, shared by prose pages and the homepage. */
.cd {
  margin: 20px 0 30px;
  padding: 18px 20px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  overflow-x: auto;
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: var(--code-size);
  line-height: 1.82;
}

.cd .kw { color: var(--code-kw); font-weight: 600; }
.cd .ty { color: var(--code-ty); }
.cd .fn { color: var(--code-fn); }
.cd .st { color: var(--code-st); }
.cd .cm { color: var(--code-cm); font-style: italic; }
.cd .nm { color: var(--code-nm); }
.cd .pr { color: var(--code-pr); }

code {
  font-family: var(--font-mono);
  font-size: .87em;
  color: var(--inline-code-ink);
  background: var(--inline-code-bg);
  padding: .08em .34em;
  border-radius: var(--radius);
}

.btn {
  display: inline-block;
  margin: 8px 8px 8px 0;
  padding: 10px 22px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  font-size: var(--btn-size);
  font-weight: 500;
  letter-spacing: .08em;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--ink-strong);
}

.tag {
  display: inline-block;
  margin: 4px 10px 4px 0;
  padding: 1px 8px;
  background: none;
  border: 1px solid var(--tag-rule);
  border-radius: 0;
  color: var(--ink-soft);
  font-size: var(--meta-size);
  letter-spacing: .06em;
}

footer {
  margin-top: 76px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: var(--meta-size);
  line-height: 1.8;
  letter-spacing: .03em;
}

.home-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.footer-sep {
  color: var(--rule-strong);
}

.footer-label {
  margin-left: 4px;
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

footer a {
  color: var(--celadon-deep);
  border-bottom: none;
}

footer a:hover { color: var(--ochre); border-bottom: none; }

/* ==========================================================================
   Reading style: plain white, sans-serif, less ornament.
   Only tokens change here; all layout rules above stay shared.
   ========================================================================== */
html[data-style="plain"] {
  --font-body: var(--font-sans);
  --leading: 1.85;
  --tracking: .006em;
  --paper: #FCFCF9;
  --paper-deep: #F5F5F1;
  --paper-card: #FFFFFF;
  --paper-note: #F7F7F3;
  --ink: #353632;
  --ink-strong: #1F211E;
  --ink-soft: #686B64;
  --ink-faint: #8B8E86;
  --rule: #E7E7E0;
  --rule-strong: #CFCFC7;
  --celadon: #8FA09B;
  --celadon-deep: #5F716B;
  --ochre: #9B805F;
  --link-hover: #8B6F4D;
  --h1-rule: #D8D8D0;
  --note-border: #E5E5DE;
  --pref-active-bg: #F1F1EC;
  --btn-bg-hover: #F1F1EC;
  --tag-rule: #DDDDD6;
  --mark-w: 14px;
  --mark-h: 1px;
  --mark-gap: .56em;
  --mark-va: .18em;
}

html[data-style="plain"] h1,
html[data-style="plain"] h2,
html[data-style="plain"] h3 {
  font-family: inherit;
  letter-spacing: .01em;
}

@media only screen and (max-width: 720px) {
  :root {
    --pad-y: 34px;
    --pad-x: 20px;
    --pad-bottom: 58px;
    --h1-gap: 24px;
    --h2-gap-top: 48px;
    --h3-gap-top: 30px;
  }
  .langbar { margin-bottom: 34px; gap: 14px; }
  h1 { font-size: 1.53rem; }
  img#ide {
    float: none;
    display: block;
    width: 100%;
    margin: 0 0 28px;
    padding: 6px;
  }
}

/* ==========================================================================
   Homepage additions: source window, feature grid, download panel.
   These reuse the tokens above so both reading styles stay consistent.
   ========================================================================== */

.code-window {
  margin: 20px 0 30px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 48px -38px rgba(28, 27, 24, .72);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--code-bar-bg);
  border-bottom: 1px solid var(--code-bar-rule);
}

.code-window-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.code-window-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5E574B;
}

.code-window-dots i:nth-child(1) { background: #6E6353; }
.code-window-dots i:nth-child(2) { background: #7C6D4E; }
.code-window-dots i:nth-child(3) { background: #586458; }

.code-window-name {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--meta-size);
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--code-bar-ink);
}

.code-copy {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--code-bar-rule);
  border-radius: 2px;
  background: transparent;
  color: var(--code-bar-ink);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.code-copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.code-copy .check-icon { display: none; }
.code-copy.copied .copy-icon { display: none; }
.code-copy.copied .check-icon { display: block; }

.code-copy:hover {
  color: var(--code-ink);
  border-color: rgba(232, 226, 213, .34);
  background: rgba(232, 226, 213, .08);
}

.code-copy.copied {
  color: var(--code-kw);
  border-color: var(--code-kw);
}

.code-copy:focus-visible {
  outline: 1px solid var(--celadon);
  outline-offset: 1px;
}

.code-window-body {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  background: var(--code-bg);
  border: 0;
  border-radius: 0;
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: var(--code-size);
  line-height: 1.85;
  letter-spacing: 0;
}

.code-window-body .kw { color: var(--code-kw); font-weight: 700; }
.code-window-body .ty { color: var(--code-ty); }
.code-window-body .fn { color: var(--code-fn); }
.code-window-body .st { color: var(--code-st); }
.code-window-body .cm { color: var(--code-cm); font-style: italic; }
.code-window-body .nm { color: var(--code-nm); }
.code-window-body .pr { color: var(--code-pr); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 28px;
}

.feature-card {
  padding: 17px 17px 18px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: border-color .18s ease, background .18s ease;
}

.feature-card:hover {
  border-color: var(--rule-strong);
}

.feature-icon {
  width: 20px;
  height: 20px;
  margin: 0 0 10px;
  color: var(--celadon-deep);
}

.feature-card h3 {
  margin: 0 0 5px;
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .02em;
  color: var(--ink-strong);
}

.feature-card p {
  margin: 0;
  font-size: .8rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.resource-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.resource-link::after {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
  transition: transform .18s ease, opacity .18s ease;
}

.resource-link:hover {
  border-color: var(--rule-strong);
  color: var(--celadon-deep);
  background: var(--paper-deep);
}

.resource-link:hover::after {
  transform: translateX(2px) rotate(45deg);
  opacity: 1;
}

.resource-link:focus-visible {
  outline: 1px solid var(--celadon);
  outline-offset: 1px;
}

/* Two tiers keep the six resources from reading as one flat wall. */
.resource-link.resource-primary {
  background: var(--celadon-deep);
  border-color: var(--celadon-deep);
  color: var(--paper);
  font-weight: 600;
}

.resource-link.resource-primary::after { opacity: .85; }

.resource-link.resource-primary:hover {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: var(--paper);
}

.resource-link.resource-secondary {
  background: var(--paper-card);
  border-color: var(--celadon);
  color: var(--celadon-deep);
  font-weight: 600;
}

.resource-link.resource-secondary:hover {
  background: var(--paper-deep);
  border-color: var(--celadon-deep);
  color: var(--celadon-deep);
}

.lang:focus-visible,
.footer-links a:focus-visible {
  outline: 1px solid var(--celadon-deep);
  outline-offset: 1px;
}

.quick-note {
  margin: 0;
  font-size: .94rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.quick-note b {
  color: var(--ink-strong);
}

.quick-paths {
  margin: 0;
  padding-left: 13px;
  border-left: 2px solid var(--rule);
  font-size: .94rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.quick-path + .quick-path { margin-top: 20px; }

.quick-detail { margin: 0; }

.quick-platform {
  margin-right: .45em;
  font-family: var(--font-mono);
  font-size: var(--meta-size);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--celadon-deep);
}

.quick-platform::after { content: ':'; }

html[lang="zh-CN"] .quick-platform::after { content: '：'; }

.quick-path .download-panel { margin: 12px 0 0; }

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 26px 0 0;
  padding: 20px 22px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--celadon-deep);
  border-radius: 2px;
}

.download-copy { min-width: 0; }

.download-label {
  margin: 0 0 3px;
  font-family: var(--font-mono);
  font-size: var(--meta-size);
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--celadon-deep);
}

.download-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-strong);
}

.download-panel .small { margin: .35em 0 0; }

.download-panel .btn {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 20px;
}

.btn-solid {
  background: var(--celadon-deep);
  border-color: var(--celadon-deep);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: var(--paper);
}

@media only screen and (max-width: 720px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .resource-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { padding: 15px 16px 16px; }
  .hero-stats { gap: 12px 18px; }
  .hero-stats b { font-size: 1.15rem; }
  .download-panel { flex-direction: column; align-items: flex-start; gap: 16px; }
  .download-panel .btn { width: 100%; text-align: center; }
  .download-panel .btn {
    font-size: clamp(12px, 3.6vw, 14px);
    letter-spacing: .02em;
    white-space: nowrap;
  }
  .code-window-body { font-size: .72rem; padding: 16px; }
  .home-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media only screen and (max-width: 560px) {
  html[lang="en"] h1 {
    font-size: clamp(16px, 5.2vw, 23px);
    letter-spacing: .01em;
    white-space: nowrap;
  }
}

@media only screen and (max-width: 480px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .resource-links { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-stats li {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
}

/* Wide desktop: a little more measure and vertical air. The reading column
   still stays well short of full width, so Song-style whitespace remains. */
@media only screen and (min-width: 1200px) {
  :root {
    --measure: 1200px;
    --prose: 880px;
    --pad-x: 40px;
    --pad-y: 72px;
    --pad-bottom: 104px;
    --h2-gap-top: 72px;
    --h3-gap-top: 42px;
  }

  /* The 1200px frame gives code windows and grids room to breathe; paragraphs
     keep a readable line length instead of stretching across the whole page. */
  .wrap > p,
  .wrap > ul,
  .wrap > ol,
  .wrap > .note,
  .wrap > .quick-paths,
  .wrap .download-panel {
    max-width: var(--prose);
  }

  .wrap { position: relative; }

  .page-mark {
    display: block;
    position: absolute;
    /* Sit beside the hero paragraph, not the headline: that is where the
       right-hand gap is tallest, so the mark actually fills it. */
    top: calc(var(--pad-y) + 200px);
    right: var(--pad-x);
    width: 96px;
    height: auto;
    opacity: .1;
    filter: grayscale(1) contrast(.85);
    mix-blend-mode: multiply;
    pointer-events: auto;
    user-select: none;
    transition: opacity .25s ease, filter .25s ease, transform .25s ease;
  }

  /* Easter egg: the ghost mark wakes up in full color on hover. */
  .page-mark:hover {
    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
    transform: scale(1.04);
  }
}

/* Large monitors: the physical point size of 16px body text reads as tiny on a
   1920px+ screen. Scale the whole rem-based type ramp, and the reading measure
   with it, so the page keeps the same proportions instead of shrinking. */
@media only screen and (min-width: 1440px) {
  :root {
    --base-size: 17px;
    --prose: 920px;
  }
}

@media only screen and (min-width: 1680px) {
  :root {
    --base-size: 18px;
    --prose: 960px;
    --pad-y: 80px;
    --pad-bottom: 116px;
  }
}
