/* karlypike.com: a reading-first notebook. Karly chose "Twilight Mist" 2026-11-04, every
   color from her Ponkie's Creations 33 palette: Moon Mist page, Midnight Ink text, Twilight
   Navy accent. Pure white was ruled out (too close to fanfiction.net). */
:root {
  --paper: #D5D7E2;
  --ink: #2A3042;
  --soft: #46506D;
  --accent: #46506D;
  --accent-light: #ECE6FF;
  --box: #2A3042;
  --box-ink: #ECE6FF;
  --rule: #AFABA6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #46506D; --ink: #ECE6FF; --soft: #D5D7E2; --accent: #9FD3E8; --accent-light: #2A3042; --box: #2A3042; --box-ink: #ECE6FF; --rule: #717A91; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.15rem/1.7 var(--serif); }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

header.site, main, footer.site { max-width: 40rem; margin: 0 auto; padding: 0 1.25rem; }
header.site { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 1.25rem; padding-top: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
header.site .name { font-size: 1.5rem; font-style: italic; color: var(--ink); text-decoration: none; }
header.site nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font: 0.95rem var(--sans); }
header.site nav a { color: var(--soft); text-decoration: none; }
header.site nav a:hover { color: var(--accent); }

main { padding-top: 2rem; padding-bottom: 3rem; }
h1, h2, h3 { line-height: 1.25; font-weight: 600; }
h1 { font-size: 2.1rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--soft); margin-top: 2.5rem; }
.hello { background: var(--box); color: var(--box-ink); border-radius: 12px; padding: 1.5rem 1.5rem 0.5rem; }
.hello h1 { font-style: italic; }
.lede, .summary { color: var(--soft); font-style: italic; }
.empty { color: var(--soft); font-style: italic; }

.cards { list-style: none; padding: 0; margin: 0; }
.card { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.card h3 { font-size: 1.4rem; margin: 0.15rem 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0.25rem 0; }
.kind, .meta { font: 0.8rem var(--sans); color: var(--soft); margin: 0; }
.kind { text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.kind a { text-decoration: none; }

.tags { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 0.9rem; font: 0.9rem var(--sans);
  background: var(--box); color: var(--box-ink); border-radius: 8px; padding: 0.75rem 1rem; margin: 1rem 0; }
.tags dt { font-weight: 600; } .tags dd { margin: 0; }

.prose p { margin: 0 0 1.1em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--soft); }
.prose .break { text-align: center; margin: 2em 0; }

.pn { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1rem;
  border-top: 1px solid var(--rule); font: 0.95rem var(--sans); }

footer.site { border-top: 1px solid var(--rule); padding-top: 1rem; padding-bottom: 2rem;
  font: 0.85rem var(--sans); color: var(--soft); }
footer.site p { margin: 0.25rem 0; }

/* Moth touches (Karly's pen name is the Rambling Moth): the header moth sits in a porch-light
   glow with two tiny moths circling it, and scene breaks are a small moth. */
:root { --moth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 44'%3E%3Cg id='a'%3E%3Cpath d='M30 18 C22 14 11 13 2 15 C5 21 11 27 19 29 C24 30 28 27 30.5 23 Z M30.5 24 C26 27 20 30 18.5 35 C21 38 27 36 31 29 Z'/%3E%3Cpath d='M30.6 14 Q27 7 20 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate(64 0) scale(-1 1)'/%3E%3Cellipse cx='32' cy='25' rx='3' ry='10'/%3E%3Ccircle cx='32' cy='15.5' r='3'/%3E%3C/svg%3E"); }
header.site .name { display: inline-flex; align-items: center; gap: 0.7rem; }
.light { position: relative; display: inline-block; width: 3.2rem; height: 2.2rem; flex: none; }
.light::before { content: ""; position: absolute; inset: -1.5rem -1.7rem; z-index: -1;
  background: radial-gradient(closest-side, rgba(241, 196, 91, 0.55), rgba(241, 196, 91, 0)); }
.moth { position: relative; width: 100%; height: 100%; display: block; }
.m-ant { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; }
.m-fore { fill: var(--ink); }
.m-hind { fill: var(--soft); }
.m-spot { fill: var(--paper); opacity: 0.7; }
.flit { position: absolute; width: 10px; height: 7px; background: var(--soft); opacity: 0.75;
  -webkit-mask: var(--moth) center / contain no-repeat; mask: var(--moth) center / contain no-repeat;
  animation: flit 7s ease-in-out infinite; }
.f1 { top: -0.7rem; right: -1rem; }
.f2 { bottom: -0.5rem; left: -1.1rem; width: 8px; height: 6px; animation-duration: 9s; animation-delay: -3s; }
@keyframes flit {
  0%, 100% { transform: translate(0, 0) rotate(-10deg); }
  25% { transform: translate(6px, -5px) rotate(15deg); }
  50% { transform: translate(-3px, -9px) rotate(-5deg); }
  75% { transform: translate(-7px, -2px) rotate(10deg); }
}
@media (prefers-reduced-motion: reduce) { .flit { animation: none; } }
.prose .break span { display: inline-block; width: 2rem; height: 1.4rem; background: var(--accent);
  -webkit-mask: var(--moth) center / contain no-repeat; mask: var(--moth) center / contain no-repeat; }
