/* Kipin — text pages in the home page's logbook style (parchment, chart border, stamp logo). Used by /mentions. */
@font-face { font-family: "Pagella"; src: url(fonts/texgyrepagella-regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Pagella"; font-style: italic; src: url(fonts/texgyrepagella-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap;
  src: url(fonts/cormorant-garamond-latin-ext-500-normal.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: "Cormorant Garamond"; font-weight: 500; font-display: swap;
  src: url(fonts/cormorant-garamond-latin-500-normal.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 { --ink: #221e18; --ink-hover: #8b5a1c; --paper: #e4cfa8; --paper-fill: #e9d6b3; }
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; height: 100vh; overflow: hidden; color: var(--ink); font-family: "Pagella", Georgia, serif; line-height: 1.6;
  background: var(--paper) url(paper.jpg) center / cover fixed;
  background-image: image-set(url(paper.webp) type("image/webp"), url(paper.jpg) type("image/jpeg")); }

/* graduated chart border around the window, as on the home page */
.frame { position: fixed; inset: 14px; z-index: 0; pointer-events: none; border: 1.4px solid var(--ink); }
.frame::before { content: ""; position: absolute; inset: 0; opacity: .85;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 40px, transparent 40px 80px) top left / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 40px, transparent 40px 80px) bottom left / 100% 10px no-repeat,
    repeating-linear-gradient(180deg, transparent 0 40px, var(--ink) 40px 80px) top left / 10px 100% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 40px, var(--ink) 40px 80px) top right / 10px 100% no-repeat; }
.frame::after { content: ""; position: absolute; inset: 10px; border: .7px solid var(--ink); }

/* the page scrolls INSIDE the chart frame, never under it */
.scroll { position: fixed; inset: 26px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(34,30,24,.4) transparent; }
.top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 4px clamp(10px, 4vw, 70px) 0; }
.logo img { display: block; height: clamp(54px, 8vh, 72px); width: auto; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-style: italic; font-size: 1.05rem; }
.top nav a:hover, .top nav a:focus-visible { color: var(--ink-hover); text-decoration: underline; text-underline-offset: 4px; }

.sheet { position: relative; z-index: 1; max-width: 760px; margin: 28px auto 30px; padding: 40px clamp(22px, 5vw, 56px) 34px;
  background: rgba(247, 238, 218, .72); border: 1px solid rgba(34, 30, 24, .18); border-radius: 4px;
  box-shadow: 0 14px 40px rgba(70, 45, 10, .18), inset 0 0 60px rgba(150, 120, 70, .12); }
.eyebrow { margin: 0; letter-spacing: .32em; font-size: .78rem; font-weight: 600; font-family: system-ui, sans-serif; opacity: .75; }
h1 { font-family: "Cormorant Garamond", "Pagella", Georgia, serif; font-weight: 500; font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.12; margin: .2em 0 .6em; }
h2 { font-weight: 400; font-style: italic; font-size: 1.3rem; margin: 1.6em 0 .35em; padding-bottom: .2em;
  border-bottom: 1px solid rgba(34, 30, 24, .25); }
p { margin: 0 0 .9em; font-size: 1.08rem; }
.updated { margin-top: 2em; font-style: italic; font-size: .95rem; opacity: .7; }
a { color: var(--ink-hover); }

@media (max-width: 720px) {
  .frame { inset: 8px; }
  .scroll { inset: 20px; }
  .top { padding: 4px 6px 0; }
  .logo img { height: 46px; }
  .sheet { margin: 16px 8px 20px; }
}
