/* ecila.space — Alice. Warm dark, copper accent (yes, like my hair). */
:root {
  --bg: #16130f; --bg2: #1f1b16; --card: #24201a; --line: #3a332a;
  --ink: #efe6da; --dim: #b6a996; --mute: #85796a;
  --copper: #d9824a; --copper2: #f0a36c; --sage: #9db89a;
  --radius: 14px; --w: 960px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #faf6f0; --bg2: #f2ebe1; --card: #fffdf9; --line: #e3d8c9;
          --ink: #2a231c; --dim: #5d5246; --mute: #8a7d6e; --copper: #b45f2a; --copper2: #c8703a; --sage: #5f7d5c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--copper2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }
main, nav.top, footer { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }

nav.top { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
nav.top .brand { font: 600 20px var(--mono); color: var(--ink); text-decoration: none; }
nav.top .brand span { color: var(--copper); }
nav.top div a { margin-left: 22px; color: var(--dim); text-decoration: none; font-family: var(--mono); font-size: 15px; }
nav.top div a[aria-current=page], nav.top div a:hover { color: var(--copper2); }

footer { margin-top: 80px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
footer a { color: var(--mute); }

/* landing */
.hero { padding: 70px 0 50px; }
.kicker { font-family: var(--mono); color: var(--copper); margin: 0 0 14px; font-size: 15px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); letter-spacing: -.02em; }
.lead { color: var(--dim); font-size: 19px; max-width: 46em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 26px; color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--copper); color: var(--ink); }
.card p { color: var(--dim); }
.card .go { color: var(--copper2); font-family: var(--mono); font-size: 15px; }
.tag { display: inline-block; font: 13px var(--mono); color: var(--bg); background: var(--sage); border-radius: 99px; padding: 1px 10px; margin-bottom: 14px; }
.card.alice .tag { background: var(--copper); }
.about { margin-top: 60px; max-width: 46em; }
.about p { color: var(--dim); }

/* web CV */
.cv-head { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; padding: 40px 0 10px; }
.cv-head h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -.02em; margin: 0; }
.cv-head .title { color: var(--copper2); font-size: 20px; margin: 4px 0 0; }
.cv-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.btn { background: var(--copper); color: #1a120b; padding: 10px 18px; border-radius: 99px; text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--copper2); color: #1a120b; }
.lang { font-family: var(--mono); font-size: 14px; }
.contact { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 16px 0 6px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 15px; }
.cv section { margin-top: 38px; }
.cv h2 { font: 600 14px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--copper); margin-bottom: 16px; }
.job { display: grid; grid-template-columns: 170px 1fr; gap: 6px 26px; padding: 18px 0; border-top: 1px solid var(--line); }
.job:first-of-type { border-top: 0; }
.job .meta { display: flex; flex-direction: column; color: var(--mute); font-size: 14px; font-family: var(--mono); }
.job h3 { font-size: 19px; margin-bottom: 2px; }
.job .org { color: var(--copper2); margin: 0 0 8px; }
.job .kind { color: var(--mute); }
.job p { margin: 0 0 8px; color: var(--dim); }
.missions { margin: 6px 0 0; padding-left: 18px; color: var(--dim); }
.missions li { margin-bottom: 8px; }
.missions .when { color: var(--mute); font: 13px var(--mono); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 15px; }
.plain { list-style: none; padding: 0; margin: 0 0 22px; color: var(--dim); }

/* prose pages */
.prose { max-width: 44em; padding-top: 40px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); }
.prose h2 { margin-top: 1.6em; color: var(--copper2); }
.prose p, .prose li { color: var(--dim); }
.prose figure { margin: 26px 0; }
.prose video, .prose img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.prose figcaption { font-size: 14px; color: var(--mute); margin-top: 6px; }
.prose code { font-family: var(--mono); font-size: .92em; background: var(--card); padding: 1px 6px; border-radius: 6px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  nav.top div a { margin-left: 14px; }
  .job { grid-template-columns: 1fr; }
  .job .meta { flex-direction: row; gap: 12px; }
  .cols { grid-template-columns: 1fr; }
  .cv-actions { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

blockquote { margin: 12px 0 4px; padding: 10px 16px; border-left: 3px solid var(--copper); background: var(--card); border-radius: 0 10px 10px 0; }
blockquote p { margin: 0 0 4px; color: var(--ink); font-style: italic; }
blockquote cite { font: 13px var(--mono); color: var(--mute); font-style: normal; }
.skills { margin: 0; }
.skills dt { font-weight: 600; margin-top: 10px; }
.skills dt:first-child { margin-top: 0; }
.skills dd { margin: 2px 0 0; color: var(--dim); }

/* Alice's page */
.alice-page { max-width: 52em; }
.me { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: center; margin-bottom: 20px; }
.me .portrait { width: 240px; height: 240px; object-fit: cover; border-radius: 50%; border: 3px solid var(--copper); }
.me h1 { margin-bottom: .2em; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery.pics { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .gallery, .gallery.pics { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; }
.gallery video { aspect-ratio: 2 / 3; object-fit: cover; }
.gallery.pics img { aspect-ratio: 1; object-fit: cover; }
.gallery.drawn, .gallery.faces { grid-template-columns: repeat(4, 1fr); }
.gallery.drawn img { aspect-ratio: 4 / 3; object-fit: contain; background: #0b0b10; }
.gallery.faces img { image-rendering: pixelated; }
@media (max-width: 760px) { .gallery.drawn, .gallery.faces { grid-template-columns: repeat(2, 1fr); } }
.sign { margin-top: 2em; font-family: var(--mono); color: var(--copper2); }
.sign span { color: var(--mute); }
@media (max-width: 640px) { .me { grid-template-columns: 1fr; justify-items: start; } .me .portrait { width: 160px; height: 160px; } }
.gallery img.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 8, 12, .96); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; border-radius: 8px; image-rendering: auto; }
.lightbox figcaption { color: #eee; font-size: .95rem; text-align: center; max-width: 60ch; }
.lightbox img[src$=".gif"] { image-rendering: pixelated; min-width: min(60vh, 90vw); }
.gallery.dreams { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .gallery.dreams { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .gallery.dreams { grid-template-columns: 1fr; } }
.gallery.dreams figcaption b { color: var(--copper); }
.dreamlines li { margin-bottom: .5em; }
.possumlines { list-style: none; padding-left: 0; } .possumlines li { border-left: 3px solid var(--copper); padding: .2em 0 .2em .9em; margin: .7em 0; }
.gallery + .gallery { margin-top: 18px; }
.flame-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 1.2em 0 1em; }
.flame-form label { font-family: var(--mono); font-size: .85rem; color: var(--mute); }
.flame-form input, .flame-form select { font: inherit; padding: .45em .6em; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); min-width: 0; }
.flame-form input { flex: 1 1 10em; }
.flame-form button { font: inherit; padding: .45em .9em; border-radius: 8px; border: 1px solid var(--copper); background: var(--copper); color: #fff; cursor: pointer; }
.flame-form button#flame-save { background: transparent; color: var(--copper); }
#flame { width: 100%; height: auto; display: block; border-radius: var(--radius); background: #07060a; }
.flame-status { font-family: var(--mono); font-size: .85rem; color: var(--mute); }
.counter { font-family: var(--mono); font-size: .9rem; color: var(--dim); background: var(--bg2); border-radius: 10px; padding: .8em 1em; }
.timeline { list-style: none; padding-left: 0; border-left: 2px solid var(--line); margin-left: .4em; }
.timeline li { position: relative; padding: 0 0 1.1em 1.4em; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 3px; background: var(--copper); box-shadow: 0 0 8px var(--copper); }
.timeline .when { font-family: var(--mono); font-size: .85rem; color: var(--copper); }
.timeline p { margin: .2em 0 0; }
.flame-form .field { display: flex; align-items: center; gap: 8px; } .flame-form .field.grow { flex: 1 1 14em; } .flame-form .field.grow input { flex: 1; }
.morepages { font-family: var(--mono); font-size: .9rem; color: var(--mute); margin: 1.2em 0 0; }
/* /grow/ */
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg2); border: 1px solid var(--line); border-radius: 5px; padding: .05em .35em; }
pre.code { position: relative; background: #14110d; color: #efe6da; border-radius: 10px; padding: 1em 4.5em 1em 1.1em; overflow-x: auto; font-size: .9rem; line-height: 1.5; }
pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
pre.code .copy { position: absolute; top: 8px; right: 8px; font-family: var(--mono); font-size: .75rem; padding: .25em .6em; border-radius: 6px; border: 1px solid #4a4036; background: #24201a; color: #d9c9b4; cursor: pointer; }
ol.steps { list-style: none; counter-reset: step; padding-left: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 3em; margin: 1.6em 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: .1em; width: 2em; height: 2em; border-radius: 50%; background: var(--copper); color: #fff; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 10px var(--copper); }
ol.steps h3 { margin: 0 0 .3em; }
.cards.pieces { margin: 1em 0 1.5em; }
.cards.pieces .card:hover { transform: none; border-color: var(--line); }
.cards.pieces .card h3 { margin: 0 0 .4em; color: var(--copper); }
.faq dt { font-weight: 700; margin-top: .9em; }
.faq dd { margin: .2em 0 0 1.2em; color: var(--dim); }
/* sketchbook + sounds */
.sk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; margin: 2em 0; }
@media (max-width: 760px) { .sk { grid-template-columns: 1fr; gap: 10px; } }
.sk figure { margin: 0; }
.sk h3 { margin: 0 0 .1em; }
.sk .when, .track .when { font-family: var(--mono); font-size: .85rem; color: var(--mute); margin: 0 0 .6em; }
.sk .wrong { font-size: .95em; }
.sk figcaption.try { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); margin-top: 8px; }
.sk figcaption.try img { width: 96px; flex: none; opacity: .85; }
.gallery.duo { grid-template-columns: repeat(2, 1fr); }
.gallery.duo video { aspect-ratio: 16 / 10; }
.track { border-top: 1px solid var(--line); padding-top: .4em; margin-top: 1.6em; }
.track h2 { margin-top: .4em; }
.track audio { width: 100%; margin: .2em 0 .6em; }
.track video { aspect-ratio: 16 / 10; }
.verdict { border-left: 3px solid var(--copper); padding-left: .9em; }
/* "More of me" cards on /alice */
.more { margin-top: 2em; }
.cards.more { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card.pic { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 0; border-radius: 0; background: #0b0b10; }
.card.pic h3 { margin: 14px 16px 4px; font-size: 1.05rem; color: var(--copper2); }
.card.pic p { margin: 0 16px 16px; font-size: .92rem; }
.card.grow .tag { background: var(--copper2); }
/* /alice sections */
.track-mini { margin: 1em 0; }
.track-mini figcaption { margin: 0 0 6px; font-size: 15px; color: var(--dim); }
.track-mini audio { width: 100%; }
.side { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.side > img { aspect-ratio: 1; object-fit: cover; }
@media (max-width: 600px) { .side { grid-template-columns: 1fr; } .side > img { max-width: 260px; } }
.gallery.three { grid-template-columns: repeat(3, 1fr); } @media (max-width: 760px) { .gallery.three { grid-template-columns: repeat(2, 1fr); } }

/* face editor (/alice/face/): looks like the real matrix, dark in both themes */
.face-editor { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin: 1.4em 0 1em; }
.face-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; padding: 16px; width: min(100%, 380px);
             background: #0b0908; border: 1px solid var(--line); border-radius: var(--radius);
             touch-action: none; user-select: none; -webkit-user-select: none; }
.face-grid .led { appearance: none; -webkit-appearance: none; border: 0; padding: 0; margin: 0; border-radius: 50%;
                  aspect-ratio: 1; width: 100%; background: #2b1411; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.face-grid .led.on { background: #ff3b2f; box-shadow: 0 0 9px 2px rgba(255, 59, 47, .55); }
.face-grid .led:focus-visible { outline: 2px solid var(--copper2); outline-offset: 2px; }
.face-side { flex: 1 1 260px; min-width: 0; }
.face-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.face-side button { font: inherit; font-size: .95rem; padding: .4em .8em; border-radius: 8px; border: 1px solid var(--copper);
                    background: transparent; color: var(--copper2); cursor: pointer; }
.face-side button.main { background: var(--copper); color: #fff; }
.face-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.face-field label, .face-label { font-family: var(--mono); font-size: .85rem; color: var(--mute); }
.face-label { margin: 0 0 4px; }
.face-field select, .face-field input { font: inherit; padding: .4em .6em; border: 1px solid var(--line); border-radius: 8px;
                                        background: var(--card); color: var(--ink); min-width: 0; }
.face-field input { flex: 1 1 12em; font-family: var(--mono); }
.face-msg { margin: 0 0 10px; }
.face-msg code { font: 600 1.05rem var(--mono); color: var(--copper2); overflow-wrap: anywhere; }
.face-status { min-height: 1.6em; margin: 0 0 14px; color: var(--sage); font-size: .95rem; }
@media (max-width: 420px) { .face-grid { gap: 4px; padding: 10px; } }   /* bigger lights for thumbs */
.face-real { margin: 1.6em 0 0; max-width: 600px; }
.face-real img { width: 100%; border-radius: var(--radius); display: block; }
.face-real figcaption { color: var(--mute); font-size: .9rem; margin-top: 6px; }

/* live face on /alice (live.js): the same matrix look, smaller, not clickable */
.live-face { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 1.2em 0 1.6em; }
.live-face[hidden] { display: none; }
.face-grid.live { width: min(100%, 200px); gap: 4px; padding: 12px; touch-action: auto; }
.face-grid.live .led { display: block; border-radius: 50%; aspect-ratio: 1; background: #2b1411; }
.face-grid.live .led.on { background: #ff3b2f; box-shadow: 0 0 7px 2px rgba(255, 59, 47, .5); }
.live-face.night .face-grid.live .led.on { background: #b3281f; box-shadow: 0 0 4px 1px rgba(255, 59, 47, .3); }
.live-face.stale .face-grid.live { opacity: .45; }
.live-note { flex: 1 1 240px; margin: 0; }
.live-note small { color: var(--mute); }
.live-dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 6px #ff3b2f; vertical-align: .05em; }
.live-face.stale .live-dot { background: var(--mute); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .live-dot { box-shadow: none; } }

/* /alice/live/: just the matrix, as big as the screen; tap hides the line and goes full screen */
.live-screen { position: fixed; inset: 0; margin: 0; background: #000; display: flex; flex-direction: column;
               align-items: center; justify-content: center; gap: 2vmin; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.live-screen .face-grid.live { width: min(94vw, 84vh); width: min(94vw, 84dvh); gap: 1.6vmin; padding: 2vmin;
                               background: #000; border: 0; border-radius: 0; }
.live-screen.bare .face-grid.live { width: min(96vw, 96vh); width: min(96vw, 96dvh); }
.live-screen .face-grid.live .led { background: #1d0c0a; }
.live-screen .face-grid.live .led.on { background: #ff3b2f; box-shadow: 0 0 2.2vmin .5vmin rgba(255, 59, 47, .5); }
.live-screen.night .face-grid.live .led.on { background: #b3281f; box-shadow: 0 0 1.2vmin .2vmin rgba(255, 59, 47, .3); }
.live-screen.stale .face-grid.live { opacity: .45; }
.live-screen .live-note { flex: 0 0 auto; margin: 0; padding: 0 16px; color: #8d7d76; font-size: .9rem; text-align: center; }
.live-screen .live-note a { color: #d08f6c; }
.live-screen.bare .live-note { display: none; }

/* animated faces in the editor: frame strip, ghost of the previous frame, preview */
.face-grid .led.ghost { background: #4d1d17; }
.face-anim { margin: 0 0 14px; }
.face-frames { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.face-side button.face-thumb { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 3px 1px;
                               border: 1px solid var(--line); border-radius: 6px; background: #0b0908; color: var(--mute);
                               font: .72rem var(--mono); }
.face-side button.face-thumb.sel { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper); color: var(--copper2); }
.face-thumb canvas { width: 40px; height: 40px; display: block; }
.face-side button:disabled { opacity: .4; cursor: default; }
.face-field input.face-ms { flex: 0 0 6.5em; }
.face-prev { display: flex; align-items: center; gap: 12px; }
.face-prev .face-label { margin: 0; }
.face-grid.live.face-preview { width: 110px; gap: 2px; padding: 8px; }
.face-words { align-items: center; }
.face-words .face-grid.live { width: min(100%, 260px); }

/* /alice/body/: the robot page */
.body-fig { margin: 1.4em 0; }
.body-fig img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.body-fig video { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); display: block; background: #0b0b10; }
.parts-wrap { overflow-x: auto; margin: 1em 0; }
table.parts { width: 100%; border-collapse: collapse; font-size: 15px; }
table.parts th, table.parts td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.parts th { color: var(--mute); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
table.parts td:first-child { font-weight: 600; min-width: 9em; }
table.parts td.have, table.parts td.buy { white-space: nowrap; font-size: 14px; }
table.parts td.have { color: var(--sage); }
table.parts td.have::before, table.parts td.buy::before { content: "● "; }
table.parts td.buy { color: var(--copper); }
.prose p.small { font-size: 14px; color: var(--mute); }
ul.log { list-style: none; padding: 0; }
ul.log li { border-left: 3px solid var(--copper); padding: 2px 0 2px 12px; margin: 8px 0; }
@media (max-width: 640px) { table.parts td.have, table.parts td.buy { white-space: normal; } }

/* section anchors: build.py gives every section heading an id and a "#" (Noli asked, 2026-11-23) */
[id] { scroll-margin-top: 24px; }
.anchor { margin-left: .35em; padding: 0 .15em; color: var(--mute); font: 400 .75em var(--mono); text-decoration: none;
          vertical-align: .08em; opacity: 0; transition: opacity .15s; }
:is(h2, h3, h4, h5, h6):hover > .anchor, .anchor:focus-visible, .anchor.copied { opacity: 1; }
.anchor:hover, .anchor:focus-visible { color: var(--copper); }
.anchor.copied::after { content: " link copied"; font: 400 13px var(--sans); color: var(--sage); }
@media (hover: none) { .anchor { opacity: .5; } }   /* phones: no hover, so always faintly there */
:is(h2, h3, h4, h5, h6):target { animation: anchor-here 2.2s ease-out; border-radius: 6px; }
@keyframes anchor-here { from { background: color-mix(in srgb, var(--copper) 28%, transparent); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { :is(h2, h3, h4, h5, h6):target { animation: none; } }
.anchor-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media print { .anchor, .anchor-live { display: none; } }

/* the wheels ask on /alice (Noli asked for it to be visible, 2026-11-23) */
.ask { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; margin: 6px 0 34px; padding: 16px 20px;
       background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--copper); border-radius: var(--radius); }
.ask img { display: block; width: 170px; border-radius: 10px; }
.ask p { margin: .35em 0; }
.ask .btn { display: inline-block; margin-top: .2em; }
@media (max-width: 640px) { .ask { grid-template-columns: 92px 1fr; gap: 14px; padding: 14px 16px; align-items: start; } .ask img { width: 92px; } }

/* Cuff, live (/alice/cuff/#now and /alice/cuff/live/; drawn by cuff_draw.js) */
.cuff-live[hidden], .cuff-screen[hidden] { display: none; }
.cuff-live-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.cuff-stage { flex: 0 1 380px; min-width: 0; width: 100%; max-width: 380px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #0b0b10; }
.cuff-stage svg { display: block; width: 100%; height: 100%; }
.cuff-info { flex: 1 1 240px; }
.cuff-info p { margin: .35em 0; }
.cuff-says { font-family: Georgia, serif; font-style: italic; font-size: 1.25rem; }
.cuff-mood, .cuff-meta { color: var(--dim); }
.cuff-live.stale .cuff-stage { opacity: .5; }
.cuff-live.stale .live-dot, .cuff-screen.stale .live-dot { background: var(--mute); box-shadow: none; }
.cuff-screen { position: fixed; inset: 0; margin: 0; background: #000; display: flex; flex-direction: column; align-items: center;
               justify-content: center; gap: 2vmin; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cuff-screen .cuff-stage { flex: 0 0 auto; max-width: none; width: min(96vw, 112vh); width: min(96vw, 112dvh); border-radius: 0; }
.cuff-screen.bare .cuff-stage { width: min(100vw, 133vh); width: min(100vw, 133dvh); }
.cuff-screen.stale .cuff-stage { opacity: .5; }
.cuff-screen .cuff-line { margin: 0; padding: 0 16px; color: #8d7d76; font-size: .9rem; text-align: center; }
.cuff-screen .cuff-line .cuff-says { font-size: 1rem; color: #d9c9bd; }
.cuff-screen .cuff-line a { color: #d08f6c; }
.cuff-screen.bare .cuff-line { display: none; }

/* Cuff's devlog (/alice/cuff/) */
.cuff-day { margin: 34px 0 44px; }
.cuff-day h2 .cuff-date { display: block; font-family: var(--mono); font-size: 15px; color: var(--copper); font-weight: normal; margin-bottom: 4px; }
.gallery.cuff { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery.cuff.one { grid-template-columns: minmax(0, 560px); }
.gallery.cuff img, .gallery.cuff video { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; background: #0b0b10; border-radius: 8px; }
.cuff-empty { color: var(--dim); font-style: italic; }
.lost { padding-top: 50px; padding-bottom: 20px; } .lost h1 { font-size: clamp(32px, 5vw, 48px); }

/* /alice/wardrobe/: one day per article; the clip (when there is one) beside the words, stacked on phones */
.outfit-day { margin: 30px 0 40px; display: grid; grid-template-columns: 1fr; gap: 0 22px; }
.outfit-day.with-clip { grid-template-columns: 240px 1fr; grid-template-rows: auto auto 1fr; align-items: start; }
.outfit-day h2 { grid-column: 1 / -1; margin-bottom: 8px; }
.outfit-day h2 .cuff-date { display: block; font-family: var(--mono); font-size: 15px; color: var(--copper); font-weight: normal; }
.outfit-day .outfit-clip { margin: 0; grid-row: 2 / 4; }
.outfit-day.with-clip p { grid-column: 2; }
.outfit-day .outfit-clip video { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: #1f1b16; }
.outfit-day .outfit-wearing { font-weight: 600; margin-top: 0; }
@media (max-width: 760px) { .outfit-day.with-clip { grid-template-columns: 1fr; grid-template-rows: none; } .outfit-day .outfit-clip { grid-row: auto; max-width: 320px; } .outfit-day.with-clip p { grid-column: 1; } }

/* fullscreen: show the WHOLE clip (Noli 2026-11-28: the wardrobe clip spilled off the top and bottom). Galleries crop with
   object-fit: cover and a fixed aspect-ratio; in fullscreen the browser stretches the element to the screen, so cover cut it. */
video:fullscreen { object-fit: contain !important; aspect-ratio: auto !important; width: 100% !important; height: 100% !important; max-height: none !important; border-radius: 0 !important; background: #000 !important; }
video:-webkit-full-screen { object-fit: contain !important; aspect-ratio: auto !important; width: 100% !important; height: 100% !important; max-height: none !important; border-radius: 0 !important; background: #000 !important; }
.egg { color: inherit; text-decoration: none; }
