/* About · /about, Cleo's model sheet · /about/cleo, and the 404 page */

/* ---------- my card ---------- */
.about-hero .ph-text { flex-basis: 380px; }
.me-card-wrap { flex: 0 1 300px; display: flex; justify-content: center; margin: 0 auto; perspective: 1000px; }
.me-card { --frame: var(--card-2); width: min(260px, 70vw); transform: rotate(3deg); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.1); }
@media (hover: hover) { .me-card-wrap:hover .me-card { transform: rotate(0deg) rotateY(-10deg) translateY(-6px); } }
.me-art { background: radial-gradient(var(--paper) 1.4px, transparent 2px) 0 0 / 11px 11px, var(--portrait); }

/* ---------- columns ---------- */
.about-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 30px 28px; padding: 32px clamp(14px, 3vw, 34px) 36px; }
.about-main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.about-side { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.about-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; gap: 22px; }

.hello-body { position: relative; padding: 22px clamp(16px, 3vw, 28px) 24px; font-size: 19px; line-height: 28px; }
.hello-body p { margin-bottom: 28px; }
.hello-body .signoff { margin: 0; font-family: var(--f-cute); font-size: 18px; text-align: right; }

.facts { width: 100%; border-collapse: collapse; background: var(--paper-hi); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-size: 18px; line-height: 1.45; }
.facts th { width: 1%; padding: 8px 12px; border: 1px solid var(--ink); font-weight: 500; text-align: left; white-space: nowrap; }
.facts td { padding: 8px 12px; border: 1px solid var(--ink); }
.th-a1 { background: var(--a1-soft); } .th-a2 { background: var(--a2-soft); } .th-a3 { background: var(--a3-soft); } .th-a4 { background: var(--a4-soft); }

.now-list { gap: 4px 16px; font-size: 21px; }
.now .now-list dt { color: var(--a4-text); }
.now .now-list dt::after { content: " ▸"; color: var(--muted); }

.cleo-panel-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 16px 18px; text-align: center; font-size: 17px; line-height: 1.55; }
.cleo-panel-body svg { width: min(200px, 60vw); height: auto; }
.contacts { padding: 10px 12px 6px; }
.contacts a { color: var(--a2-text); }
.contact-note { padding: 0 12px 8px; font-size: 16px; }
.contact-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--a1-soft); }
.colophon .tbox-body { display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.55; }
.colophon .term-dl { font-size: 18px; }
.btn88-h { font-family: var(--f-cute); font-size: 16px; }
.btn88-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn88 { flex: 0 0 auto; image-rendering: pixelated; }
.btn88-code { flex: 1 1 200px; min-width: 0; padding: 6px 8px; background: var(--panel); color: var(--a2-soft); font-family: var(--f-term); font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }

/* ---------- Cleo's model sheet ---------- */
.cs-head .ph-text { flex-basis: 360px; }
.cs-facts { flex: 1 1 320px; max-width: 470px; margin: 0 auto; padding: 14px 18px; font-size: 21px; box-shadow: 5px 5px 0 var(--a3); }
.cs-sec { padding: 28px clamp(14px, 3.5vw, 40px) 8px; }
.pose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 18px 16px; }
.pose { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--paper-hi); border: 2px solid var(--ink); }
.pose-art { height: 208px; display: flex; align-items: flex-end; justify-content: center; padding: 8px 8px 8px; overflow: hidden; border: 1.5px solid var(--ink); background-color: var(--a4-soft); background-image: radial-gradient(color-mix(in srgb, var(--gold) 45%, transparent) 1px, transparent 1.6px); background-size: 10px 10px; }
.pose-art svg { width: 100%; height: 100%; }
@media (max-width: 520px) { .pose-art { height: 170px; } .pose { padding: 10px; } }
.pose figcaption { display: flex; flex-direction: column; gap: 2px; }
.pose-t { font-family: var(--f-display); font-size: 17px; line-height: 1.3; }
.pose-w { font-family: var(--f-term); font-size: 19px; line-height: 1.25; color: var(--muted-ink); }
.pose-a { display: inline-flex; align-items: center; min-height: 40px; font-size: 16px; }
.cs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; gap: 22px 20px; padding: 22px clamp(14px, 3.5vw, 40px) 34px; }
.eyes-body { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.eyes-art { flex: 0 0 auto; margin: 0 auto; padding: 10px 14px 0; overflow: hidden; border: 1.5px solid var(--ink); background-color: var(--a4-soft); background-image: radial-gradient(color-mix(in srgb, var(--gold) 45%, transparent) 1px, transparent 1.6px); background-size: 10px 10px; }
.eyes-art svg { display: block; width: 150px; height: auto; overflow: hidden; }
.eyes-text { flex: 1 1 180px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.55; }
.eye-states { display: flex; flex-direction: column; gap: 2px; }
.eye-states b { font-family: var(--f-term); font-size: 20px; font-weight: 400; color: var(--a1-deep); }
.t-gold-ink { color: #8A5E00; font-weight: 600; }
.gear { display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.6; }
.gear b { font-family: var(--f-term); font-size: 21px; font-weight: 400; color: var(--a1-deep); }
.sub-h { border-top: 2px solid var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px 6px; }
.swatches li { width: 66px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--f-term); font-size: 16px; line-height: 1.1; text-align: center; }
.sw { width: 38px; height: 38px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.sw-hex { color: var(--muted-ink); }

/* ---------- 404 ---------- */
.lost { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px 36px; padding: 44px clamp(16px, 4vw, 48px); }
.lost .ph-text { gap: 14px; }
.lost-term { align-self: stretch; max-width: 540px; padding: 10px 14px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--a1); font-size: 21px; line-height: 1.35; overflow-wrap: anywhere; }
.lost-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.cleo-lost { width: min(270px, 72vw); height: auto; }
.lost .cleo-spot { margin: 0 auto; }

/* ---------- Cleo's wardrobe: 4 columns, wide drawings span 2, the night sky the whole row ---------- */
.wardrobe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
.wardrobe-grid > .is-wide, .wardrobe-grid > .is-full { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .wardrobe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wardrobe-grid > .is-wide { grid-column: span 2; }
}
.wardrobe .pose-art { height: 290px; align-items: center; }
.wardrobe-grid > .is-full .pose-art { height: 280px; }
.pa-pixel svg { image-rendering: pixelated; }
.pa-cleosay { background: var(--panel); }
.pa-cleosay .ascii { margin: 0; font-size: 17px; line-height: 1.1; overflow: hidden; }
@media (max-width: 520px) { .pa-cleosay .ascii { font-size: 11px; } }
.pa-pixel { padding: 20px 28px; }
.pa-ghost svg { animation: haunt 4s ease-in-out infinite; }
@media (max-width: 520px) { .wardrobe .pose-art { height: 210px; } .wardrobe-grid > .is-wide .pose-art, .wardrobe-grid > .is-full .pose-art { height: 170px; } }
