/* Written by Irmak Hakman — 2026-11-09 18:40 */
/*
  kimse.me stylesheet.
  Structure is shared; every colour and face comes from tokens. <html> carries
  data-theme (defter | daktilo | gece | kesik), data-mode (light | dark) and data-size (s | m | l | xl),
  set before first paint by the inline script in each page's <head>.
*/

/* ---------- Tokens: defaults (Defter, light) ---------- */
:root {
  --bg: #fbfcfd;
  --surface: #fbfcfd;
  --fg: #1d3787;
  --muted: #55658f;
  --line: #d6e2ef;
  --accent: #c0504f;
  --accent-fg: #ffffff;
  --grid: #dae5f1;
  --margin: #e2a1a1;

  --display: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --body: "Literata", Georgia, "Times New Roman", serif;
  --meta: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --nav-font: var(--display);

  --fs: 1.125rem;
  --lh: calc(var(--fs) * 1.6);
  --measure: 40rem;
  --title-size: 2.6em;
  --title-weight: 700;
  --title-style: normal;
  --title-transform: none;
  --title-stretch: normal;
  --title-spacing: normal;
  --radius: 4px;
  color-scheme: light;
}

:root[data-size="s"] { --fs: 1rem; }
:root[data-size="l"] { --fs: 1.25rem; }
:root[data-size="xl"] { --fs: 1.4rem; }

/* Defter, dark: a blue-black notebook */
:root[data-theme="defter"][data-mode="dark"] {
  --bg: #131a2c; --surface: #131a2c; --fg: #d3ddf7; --muted: #93a1c6; --line: #26324f;
  --accent: #e08a87; --accent-fg: #131a2c; --grid: #1e2842; --margin: #8f4a52;
  color-scheme: dark;
}

/* Daktilo */
:root[data-theme="daktilo"] {
  --bg: #d6d1c3; --surface: #f8f6ef; --fg: #232323; --muted: #5a554b; --line: #c3bcab;
  --accent: #a8262b; --accent-fg: #f8f6ef; --grid: #b9c6d3; --margin: #a8262b;
  --display: "Courier Prime", "Courier New", monospace;
  --body: "Courier Prime", "Courier New", monospace;
  --meta: "Courier Prime", "Courier New", monospace;
  --nav-font: var(--body);
  --fs: 1.05rem;
  --lh: calc(var(--fs) * 1.65);
  --title-size: 1.5em; --title-weight: 700; --title-transform: uppercase; --title-spacing: 0.14em;
  --radius: 0;
}
:root[data-theme="daktilo"][data-size="s"] { --fs: 0.95rem; }
:root[data-theme="daktilo"][data-size="l"] { --fs: 1.17rem; }
:root[data-theme="daktilo"][data-size="xl"] { --fs: 1.3rem; }
:root[data-theme="daktilo"][data-mode="dark"] {
  --bg: #161512; --surface: #24221d; --fg: #e8e3d4; --muted: #a59f90; --line: #3a372f;
  --accent: #e2696d; --accent-fg: #161512; --grid: #353b45;
  color-scheme: dark;
}

/* Gece: dark-first; light mode is dawn */
:root[data-theme="gece"] {
  --bg: #f1f0f7; --bg2: #e2e1f1; --surface: transparent; --fg: #1d2148; --muted: #5c618f; --line: #d2d1e6;
  --accent: #96560f; --accent-fg: #ffffff; --star: #1d2148;
  --display: "Bodoni Moda", Didot, "Bodoni MT", serif;
  --body: "Literata", Georgia, serif;
  --nav-font: var(--body);
  --lh: calc(var(--fs) * 1.95);
  --title-size: 2.5em; --title-weight: 500; --title-style: italic;
  --radius: 99px;
}
:root[data-theme="gece"][data-mode="dark"] {
  --bg: #0f1230; --bg2: #1a1e48; --fg: #d8dbf0; --muted: #8e93bf; --line: #262b5c;
  --accent: #f1cb8a; --accent-fg: #0f1230; --star: #d8dbf0;
  color-scheme: dark;
}

/* Kesik */
:root[data-theme="kesik"] {
  --bg: #e8ecf2; --surface: #e8ecf2; --fg: #0d1726; --muted: #556074; --line: #c5ccd8;
  --accent: #1d4ed8; --accent-fg: #ffffff;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --nav-font: var(--display);
  --lh: calc(var(--fs) * 1.7);
  --title-size: 3.6em; --title-weight: 900; --title-transform: uppercase; --title-stretch: 62%; --title-spacing: -0.01em;
  --radius: 0;
}
:root[data-theme="kesik"][data-mode="dark"] {
  --bg: #0c1320; --surface: #0c1320; --fg: #e3e8f0; --muted: #8e99ab; --line: #26324a;
  --accent: #7aa2ff; --accent-fg: #0c1320;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--fs);
  line-height: var(--lh);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p, ul, ol, figure { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--accent); color: var(--accent-fg); padding: 0.4rem 0.8rem; z-index: 20; }
.skip:focus { top: 1rem; }

.wrap {
  max-width: calc(var(--measure) + 2 * 1.25rem);
  margin-inline: auto;
  padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-right, 0px));
}
.wide { --measure: 56rem; }

.eyebrow, .meta { font-family: var(--meta); font-size: 0.72em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Theme-only controls */
.only-daktilo, .only-gece, .only-kesik, .only-js { display: none !important; }
html.js .only-js { display: revert !important; }
html.js[data-theme="daktilo"] .only-daktilo,
html.js[data-theme="gece"] .only-gece,
html.js[data-theme="kesik"] .only-kesik { display: revert !important; }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; padding-block: 1rem; max-width: calc(56rem + 2.5rem); }
.brand { font-family: var(--display); font-size: 2rem; line-height: 1; font-weight: 700; text-decoration: none; margin-right: auto; }
.brand:hover { color: inherit; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-family: var(--nav-font); }
.main-nav a { text-decoration: none; color: var(--muted); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--fg); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Phones: brand and "Görünüm" share the first line, the menu takes the full second line. */
@media (max-width: 46rem) {
  .head-row { gap: 0.4rem 1rem; padding-block: 0.75rem; }
  .brand { order: 1; }
  .appearance { order: 2; }
  .main-nav { order: 3; flex-basis: 100%; gap: 0.15rem 1rem; }
}

/* Appearance panel */
.appearance { position: relative; }
.ap-toggle {
  font: inherit; font-family: var(--nav-font); color: var(--fg); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.2rem 0.75rem; line-height: 1.6;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.ap-toggle:hover { border-color: var(--fg); }
.ap-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: linear-gradient(135deg, var(--fg) 50%, var(--bg) 50%); border: 1px solid var(--fg); }
.ap-panel {
  position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(22rem, calc(100vw - 2.5rem));
  max-height: calc(100vh - 6rem); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); padding: 1rem; display: flex; flex-direction: column; gap: 1rem;
  font-family: var(--meta); font-size: 0.85rem; line-height: 1.4; z-index: 30;
}
.ap-panel fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ap-panel legend { padding: 0; margin-bottom: 0.5rem; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ap-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ap-opt { position: relative; cursor: pointer; }
.ap-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ap-card { display: flex; flex-direction: column; gap: 0.15rem; border: 1px solid var(--line); border-radius: 6px; padding: 0.55rem 0.6rem; }
.ap-opt input:checked + .ap-card { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ap-opt input:focus-visible + .ap-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-card b { font-size: 0.95rem; }
.ap-card small { color: var(--muted); font-size: 0.72rem; }
.ap-sample { height: 1.6rem; border-radius: 3px; margin-bottom: 0.3rem; display: flex; align-items: center; padding-inline: 0.45rem; font-size: 1rem; }
.ap-sample.s-defter { background: #fbfcfd linear-gradient(#dae5f1 1px, transparent 1px) 0 0 / 8px 8px; color: #1d3787; font-family: "Caveat", cursive; box-shadow: inset 2px 0 0 #e2a1a1; }
.ap-sample.s-daktilo { background: #f8f6ef; color: #a8262b; font-family: "Courier Prime", monospace; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; box-shadow: inset 0 0 0 1px #c3bcab; }
.ap-sample.s-gece { background: radial-gradient(circle at 80% 20%, #1a1e48, #0f1230); color: #f1cb8a; font-family: "Bodoni Moda", serif; font-style: italic; }
.ap-sample.s-kesik { background: #e8ecf2; color: #0d1726; font-family: "Archivo", sans-serif; font-weight: 900; font-stretch: 62%; text-transform: uppercase; box-shadow: inset 0 -3px 0 #1d4ed8; }
.ap-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ap-row .ap-opt .ap-card { flex-direction: row; align-items: center; justify-content: center; min-width: 3rem; padding: 0.35rem 0.75rem; }
.ap-row .ap-opt { flex: 1; }

/* ---------- Main and footer ---------- */
main { padding-block: var(--lh) calc(var(--lh) * 2); min-height: 60vh; }
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85em; }
.site-foot .wrap { padding-block: 1.5rem 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; max-width: calc(56rem + 2.5rem); }

/* ---------- Poem ---------- */
.poem { display: flex; flex-direction: column; }
.poem-head { margin-bottom: var(--lh); }
.poem-title {
  font-family: var(--display); font-size: var(--title-size); font-weight: var(--title-weight); font-style: var(--title-style);
  text-transform: var(--title-transform); font-stretch: var(--title-stretch); letter-spacing: var(--title-spacing);
  line-height: calc(var(--lh) * 2 / 1em * 1em); line-height: 1.1;
  overflow-wrap: anywhere;
}
.poem-meta { margin-top: 0.4rem; }
.poem-meta a { color: inherit; }
.poem-body { display: flex; flex-direction: column; gap: var(--lh); overflow-wrap: break-word; }
.poem-body .st { display: flex; flex-direction: column; }
.poem-body .l { display: block; padding-left: 1.2em; text-indent: -1.2em; }
.poem-body blockquote { margin: 0; padding-left: 1em; border-left: 2px solid var(--line); font-style: italic; }
.poem-body h2, .poem-body h3, .poem-body h4 { font-size: 1em; font-weight: 700; }
.poem-body ul, .poem-body ol { padding-left: 1.4em; }
.poem-body img { display: block; margin-block: 0.5rem; }
.poem-body .embed a { font-style: italic; }
.poem-sign { margin-top: var(--lh); display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.poem-sign .who { font-family: var(--display); font-size: 1.35em; }
.poem-sign .where { color: var(--muted); font-size: 0.9em; }
.poem-audio { margin-bottom: var(--lh); display: flex; flex-direction: column; gap: 0.5rem; }
.poem-audio audio { width: 100%; }
.poem-audio .credit { color: var(--muted); font-size: 0.9em; }

.poem-tools { margin-top: var(--lh); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn {
  font: inherit; font-family: var(--nav-font); font-size: 0.9em; line-height: 1.5; color: var(--fg); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.25rem 0.85rem; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn:hover { border-color: var(--fg); color: var(--fg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

.poem-nav { margin-top: calc(var(--lh) * 1.25); padding-top: var(--lh); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start; font-size: 0.92em; }
.poem-nav > * { min-width: 0; }
.poem-nav a { text-decoration: none; display: flex; flex-direction: column; }
.poem-nav a span { color: var(--muted); font-family: var(--meta); font-size: 0.72em; letter-spacing: 0.08em; text-transform: uppercase; }
.poem-nav .next { text-align: right; }
.poem-nav .mid { align-self: center; }
@media (max-width: 34rem) {
  .poem-nav { grid-template-columns: 1fr 1fr; }
  .poem-nav .mid { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* Typewriter replay and line-by-line reading */
.poem-body.typing .l { visibility: hidden; }
.poem-body.typing .l.typed, .poem-body.typing .l.typing-now { visibility: visible; }
.caret { display: inline-block; width: 0.55em; height: 1em; vertical-align: -0.12em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.poem-body.stepping .l { opacity: 0.16; transition: opacity 0.8s ease; }
.poem-body.stepping .l.on { opacity: 1; }

/* ---------- Lists, archive ---------- */
.page-title { font-family: var(--display); font-size: calc(var(--title-size) * 0.85); font-weight: var(--title-weight); font-style: var(--title-style); text-transform: var(--title-transform); font-stretch: var(--title-stretch); letter-spacing: var(--title-spacing); line-height: 1.1; }
.page-intro { color: var(--muted); margin-top: 0.5rem; }
.section { margin-top: calc(var(--lh) * 1.25); }
.section-title { font-family: var(--display); font-size: 1.5em; font-weight: var(--title-weight); font-style: var(--title-style); text-transform: var(--title-transform); font-stretch: var(--title-stretch); line-height: 1.2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.75rem; }
.section-title small { font-family: var(--meta); font-size: 0.45em; font-style: normal; font-weight: 400; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; font-stretch: normal; }
.month-title { font-family: var(--meta); font-size: 0.75em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: calc(var(--lh) * 0.6); font-weight: 500; }

.post-list { list-style: none; padding: 0; margin-top: 0.4rem; }
.post-list li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.75rem; align-items: baseline; padding-block: 0.15rem; }
.post-list time { font-family: var(--meta); font-size: 0.72em; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-list a { text-decoration: none; overflow-wrap: anywhere; }
.post-list a:hover { text-decoration: underline; }
.post-list .tag { font-family: var(--meta); font-size: 0.65em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-left: 0.4rem; }
.post-list.long li { grid-template-columns: 7.5rem 1fr; }
.post-list time { white-space: nowrap; }
.home-sesli .tag { display: none; }
.post-list li > span { min-width: 0; }
@media (max-width: 30rem) { .post-list.long li { grid-template-columns: 1fr; gap: 0; padding-block: 0.3rem; } }

/* Year chart: bars to scale, each links to its year */
.years { margin-top: var(--lh); }
.years-chart { display: flex; align-items: flex-end; gap: 0.4rem; height: 8rem; border-bottom: 2px solid var(--fg); }
.years-chart a { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; text-decoration: none; font-family: var(--meta); font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.years-chart a i { display: block; width: 100%; background: var(--fg); opacity: 0.85; border-radius: 2px 2px 0 0; }
.years-chart a:hover i, .years-chart a[aria-current="page"] i { background: var(--accent); opacity: 1; }
.years-chart a:hover { color: var(--fg); }
.years-chart .gap { flex: 0.5; align-self: center; text-align: center; color: var(--muted); font-family: var(--meta); font-size: 0.8rem; }
.years-labels { display: flex; gap: 0.4rem; font-family: var(--meta); font-size: 0.7rem; color: var(--muted); margin-top: 0.3rem; }
.years-labels span { flex: 1; text-align: center; min-width: 0; }
.years-labels .gap { flex: 0.5; }

.filter { margin-top: var(--lh); display: flex; flex-direction: column; gap: 0.35rem; }
.field {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.5rem 0.8rem; width: 100%;
}
.field:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.field-label { font-family: var(--meta); font-size: 0.72em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hint { color: var(--muted); font-size: 0.88em; }

/* Search results */
.results { list-style: none; padding: 0; margin-top: var(--lh); display: flex; flex-direction: column; gap: 1rem; }
.results li { display: flex; flex-direction: column; }
.results a { font-weight: 600; text-decoration: none; }
.results a:hover { text-decoration: underline; }
.results .snip { color: var(--muted); font-size: 0.92em; }
.results mark { background: color-mix(in srgb, var(--accent) 25%, transparent); color: inherit; border-radius: 2px; }

/* Star map (Gece) */
.sky-wrap { margin-top: var(--lh); }
.sky { display: block; width: 100%; height: 18rem; cursor: crosshair; border-radius: 6px; }
.sky-labels { display: flex; font-family: var(--meta); font-size: 0.7rem; color: var(--muted); margin-top: 0.3rem; }
.sky-labels span { flex: 1; text-align: center; }
.sky-hint { min-height: 1.6em; margin-top: 0.4rem; color: var(--muted); font-size: 0.9em; }
.sky-hint a { color: var(--accent); }

/* ---------- Home ---------- */
.home-hero { padding-bottom: 0; }
.home-title { font-family: var(--display); font-size: calc(var(--title-size) * 1.5); font-weight: var(--title-weight); font-style: var(--title-style); text-transform: var(--title-transform); font-stretch: var(--title-stretch); letter-spacing: var(--title-spacing); line-height: 1; }
.home-sub { margin-top: 0.6rem; color: var(--muted); font-size: 1.1em; }
.home-search { margin-top: calc(var(--lh) * 0.75); }
.home-search .filter { margin-top: 0; }
.home-search .hint { margin-top: 0.4rem; }
.results:empty { display: none; }
.results .more a { font-weight: inherit; }
.featured { margin-top: calc(var(--lh) * 1.25); padding-top: var(--lh); border-top: 1px solid var(--line); }
.featured .poem-title { font-size: calc(var(--title-size) * 0.8); }
.featured .poem-title a { text-decoration: none; }
.featured-tools { margin-top: calc(var(--lh) * 0.75); display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: calc(var(--lh) * 1.5); align-items: start; }
.about figure img { display: block; width: 100%; border-radius: var(--radius); }
.about figure figcaption { font-size: 0.85em; color: var(--muted); margin-top: 0.4rem; }
.about .text { display: flex; flex-direction: column; gap: var(--lh); }
@media (max-width: 40rem) { .about { grid-template-columns: 1fr; } .about figure { max-width: 18rem; } }

/* ---------- Small parts ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--fg); color: var(--bg); padding: 0.5rem 1rem; border-radius: 6px; font-family: var(--meta); font-size: 0.85rem; z-index: 40;
  max-width: calc(100vw - 2rem); overflow-wrap: anywhere;
}
.player { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.player iframe { display: block; width: 100%; border-radius: var(--radius); }
.poem-readings { margin-top: var(--lh); }
.poem-note { margin-top: var(--lh); color: var(--muted); font-style: italic; }
.epigraph { margin: 0; font-family: var(--display); font-size: 1.5em; line-height: 1.35; font-style: var(--title-style); }
.epigraph footer { font-family: var(--body); font-size: 0.6em; color: var(--muted); margin-top: 0.4rem; font-style: normal; }
[data-theme="kesik"] .epigraph { text-transform: uppercase; font-weight: 800; font-stretch: 75%; }
[data-theme="defter"] .epigraph { font-size: 1.9em; }
.featured .poem-sign { margin-top: var(--lh); }
.section-title a { text-decoration: none; }
.section-title a:hover { text-decoration: underline; }
.month-title a { text-decoration: none; }

/* =================================================================
   Theme details
   ================================================================= */

/* ---- Defter: squared paper with a red margin; text sits on the grid ---- */
[data-theme="defter"] main {
  background-image:
    linear-gradient(to bottom, transparent calc(var(--lh) - 1px), var(--grid) calc(var(--lh) - 1px)),
    linear-gradient(to right, transparent calc(var(--lh) - 1px), var(--grid) calc(var(--lh) - 1px));
  background-size: var(--lh) var(--lh);
  background-position: 0 var(--lh);
  position: relative;
}
[data-theme="defter"] main > .wrap { position: relative; }
[data-theme="defter"] main > .wrap::before {
  content: ""; position: absolute; top: calc(var(--lh) * -1); bottom: calc(var(--lh) * -2); left: -0.25rem; width: 2px; background: var(--margin);
}
@media (max-width: 46rem) { [data-theme="defter"] main > .wrap::before { left: 0.45rem; } }
[data-theme="defter"] .poem-title { line-height: calc(var(--lh) * 2); font-size: 2.4em; }
[data-theme="defter"] .poem-head { margin-bottom: var(--lh); }
[data-theme="defter"] .poem-meta { margin-top: 0; line-height: var(--lh); }
[data-theme="defter"] .poem-sign { margin-top: var(--lh); line-height: var(--lh); }
[data-theme="defter"] .poem-sign .who { font-size: 1.6em; line-height: calc(var(--lh) * 1); }
[data-theme="defter"] .post-list li { padding-block: 0; line-height: var(--lh); }
[data-theme="defter"] .section-title { font-size: 1.9em; line-height: calc(var(--lh) * 2); }
[data-theme="defter"] .main-nav, [data-theme="defter"] .ap-toggle { font-size: 1.2em; }
[data-theme="defter"] .btn { font-size: 1.1em; border-radius: 14px 4px 12px 5px; border-width: 1.5px; border-color: var(--fg); padding-block: 0; }
[data-theme="defter"] .home-title { font-size: 5rem; }

/* ---- Daktilo: a typed sheet on a desk, index cards for lists ---- */
[data-theme="daktilo"] .site-head { background: var(--bg); }
[data-theme="daktilo"] .brand { letter-spacing: 0.3em; font-size: 1.6rem; }
[data-theme="daktilo"] .main-nav { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8em; }
[data-theme="daktilo"] main > .wrap {
  background: var(--surface);
  padding-block: calc(var(--lh) * 1.5) calc(var(--lh) * 2);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.25);
  max-width: calc(var(--measure) + 5rem);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
@media (max-width: 46rem) { [data-theme="daktilo"] main { padding-inline: 0.6rem; } }
[data-theme="daktilo"] .poem-title { color: var(--accent); }
[data-theme="daktilo"] .poem-sign { align-items: flex-start; text-align: left; }
[data-theme="daktilo"] .poem-sign .who { font-size: 1em; font-weight: 700; }
[data-theme="daktilo"] .post-list { display: flex; flex-direction: column; gap: 0.5rem; }
[data-theme="daktilo"] .post-list li {
  background: var(--surface); border: 1px solid var(--line); padding: 0.4rem 0.75rem;
  background-image: linear-gradient(transparent calc(100% - 1px), var(--grid) calc(100% - 1px));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
[data-theme="daktilo"] .post-list time { color: var(--accent); }
[data-theme="daktilo"] .section-title { color: var(--accent); letter-spacing: 0.1em; }
[data-theme="daktilo"] .years-chart a i { border-radius: 0; }
[data-theme="daktilo"] .home-title { letter-spacing: 0.35em; font-size: 3rem; }
[data-theme="daktilo"] .btn { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75em; font-weight: 700; }

/* ---- Gece: the night sky; centred reading column ---- */
[data-theme="gece"] body { background: radial-gradient(120% 70rem at 85% -10%, var(--bg2), var(--bg) 70%) fixed, var(--bg); }
[data-theme="gece"] .site-head, [data-theme="gece"] .site-foot { border-color: var(--line); }
[data-theme="gece"] .brand { font-style: italic; font-weight: 500; }
[data-theme="gece"] .brand::first-letter { color: var(--accent); }
[data-theme="gece"] .main-nav { font-size: 0.92em; }
[data-theme="gece"] .poem { max-width: 36rem; margin-inline: auto; }
[data-theme="gece"] .poem-body .l { padding-left: 0.8em; text-indent: -0.8em; }
[data-theme="gece"] .poem-title { color: var(--accent); }
[data-theme="gece"] .poem-sign { align-items: flex-start; text-align: left; font-style: italic; }
[data-theme="gece"] .poem-sign .who { font-family: var(--body); font-size: 1em; }
[data-theme="gece"] .poem-nav { border-top-color: var(--line); }
[data-theme="gece"] .years-chart a i { background: var(--star); opacity: 0.6; }
[data-theme="gece"] .home-hero { text-align: left; }
[data-theme="gece"] .home-title::first-letter { color: var(--accent); }
[data-theme="gece"] .ap-panel { background: var(--bg); }

/* ---- Kesik: condensed titles, the bar as ornament, numbered lines ---- */
[data-theme="kesik"] .brand { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: 2.3rem; letter-spacing: -0.01em; }
[data-theme="kesik"] .brand::after { content: "|"; color: var(--accent); font-weight: 300; margin-left: 0.1em; }
[data-theme="kesik"] .main-nav { text-transform: uppercase; font-weight: 600; font-stretch: 85%; letter-spacing: 0.02em; }
[data-theme="kesik"] .poem-title { line-height: 0.88; }
[data-theme="kesik"] .poem-body { counter-reset: v; }
[data-theme="kesik"] .poem-body .l { counter-increment: v; position: relative; padding-left: 2.6em; text-indent: 0; }
[data-theme="kesik"] .poem-body .l::before {
  content: counter(v); position: absolute; left: 0; width: 1.8em; text-align: right;
  font-family: var(--meta); font-size: 0.65em; color: var(--muted); line-height: var(--lh); top: 0;
}
[data-theme="kesik"] .poem-sign { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; border-top: 2px solid var(--fg); padding-top: 0.6rem; font-weight: 600; text-align: left; }
[data-theme="kesik"] .poem-sign .who { font-family: var(--body); font-size: 1em; }
[data-theme="kesik"] .section-title { font-size: 2.2em; }
[data-theme="kesik"] .post-list li { border-top: 1px solid var(--line); padding-block: 0.35rem; }
[data-theme="kesik"] .post-list time { color: var(--accent); }
[data-theme="kesik"] .years-chart a i { border-radius: 0; }
[data-theme="kesik"] .home-title { font-size: clamp(4rem, 16vw, 8rem); line-height: 0.85; }
[data-theme="kesik"] .home-title::after { content: "|"; color: var(--accent); font-weight: 300; }
[data-theme="kesik"] .btn { text-transform: uppercase; font-weight: 700; font-stretch: 85%; }

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .poem-body.stepping .l { transition: none; }
}
