/* chuckyguzman.com skin for Little Keepsake (/zine/app).
   Loaded after the app's own stylesheet; scripts/sync-zine.mjs links it into index.html.
   Restyles the editor chrome only. The zine pages you print keep their own themes. */

@font-face { font-family: "Fell"; src: url(fonts/im-fell-english-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fell"; src: url(fonts/im-fell-english-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fell SC"; src: url(fonts/im-fell-english-sc.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --void: #050505;
  --ink: #0b0b0b;
  --panel: #111110;
  --bone: #e9e6dc;
  --ash: #9b988f;
  --dim: #6f6c65;
  --red: #e0332b;
  --line: #3a3935;
  --accent: var(--bone);
  --fell: "Fell", "Iowan Old Style", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
  font-family: var(--mono);
  color: var(--bone);
  background: var(--void);
}

html body {
  background:
    radial-gradient(ellipse at 20% -10%, #1b1530 0%, transparent 55%),
    radial-gradient(ellipse at 90% 10%, #121a24 0%, transparent 45%),
    var(--void);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
html ::selection { background: var(--bone); color: var(--void); }

/* Buttons: square, mono, uppercase, bone outline like the site's .ob-btn */
html button {
  background: transparent; color: var(--bone); border: 1px solid var(--line); border-radius: 0;
  font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
html button:hover:not(:disabled) { background: var(--bone); color: var(--void); border-color: var(--bone); }
html button:focus-visible, html input:focus-visible, html select:focus-visible, html textarea:focus-visible, html summary:focus-visible, html a:focus-visible {
  outline: 1px solid var(--bone); outline-offset: 4px; box-shadow: 0 0 0 4px var(--void), 0 0 0 5px var(--red);
}
html .primary { background: var(--bone); color: var(--void); border: 1px solid var(--bone); font-weight: 500; letter-spacing: .12em; }
html .primary:hover:not(:disabled) { background: transparent; color: var(--bone); }
html .subtle { color: var(--ash); }

/* Header */
html header { border-bottom-color: var(--line); }
html .host-brand { display: flex; flex-direction: column; gap: 6px; }
html .host-link {
  font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); text-decoration: none;
}
html .host-link::before { content: "← "; }
html .host-link:hover { color: var(--bone); }
html .brand { font: italic 400 28px/1 var(--fell); letter-spacing: 0; color: var(--bone); }
html .brand span { font: 400 9px var(--mono); letter-spacing: .25em; color: var(--ash); }
html .privacy { color: var(--ash); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
html .privacy span { color: var(--red); }
html .file-actions button { font-size: 11px; }

/* Intro */
html .eyebrow { font: 400 11px var(--mono); letter-spacing: .12em; color: var(--ash); }
html .eyebrow::before { content: "// "; }
html h1 { font: 400 54px/1.02 var(--fell); letter-spacing: -.5px; color: var(--bone); }
html h1 em { font-style: italic; color: var(--bone); opacity: .72; }
html p { color: var(--ash); }
html .spec { border-left-color: var(--line); color: var(--ash); text-transform: uppercase; letter-spacing: .08em; }
html .spec b { font: 400 32px var(--fell); color: var(--bone); text-transform: none; letter-spacing: 0; }

/* Workspace */
html .workspace { background: rgba(11, 11, 11, .88); border-color: var(--line); border-radius: 0; box-shadow: none; }
html .panel-heading h2 { font: 400 15px var(--fell); letter-spacing: .02em; color: var(--bone); }
html .panel-heading > span { color: var(--dim); }
html .drop { background: var(--ink); border-color: var(--line); border-radius: 0; color: var(--bone); }
html .drop.over { background: #1a1917; }
html .drop span:not(.plus), html .drop small { color: var(--ash); }
html .plus { color: var(--bone); }
html .drop:focus-within { outline: 1px solid var(--bone); }
html .page-item { border-radius: 0; }
html .page-item.selected { background: #1a1917; border-color: var(--line); }
html .page-select { color: var(--bone); text-transform: none; letter-spacing: 0; }
html .page-select:hover:not(:disabled) { background: transparent; color: var(--bone); }
html .page-select small { color: var(--dim); }
html .moves button, html .preview-nav button { border: 0; color: var(--ash); }
html .moves button:hover:not(:disabled), html .preview-nav button:hover:not(:disabled) { background: transparent; color: var(--bone); }
html .preview-panel { background: var(--panel); border-color: var(--line); }
html .preview-heading, html .preview-nav { color: var(--ash); letter-spacing: .08em; text-transform: uppercase; }
html .paper { box-shadow: 0 18px 40px #000a; }
html .resolution { color: var(--ash); }

/* Controls */
html .controls label { color: var(--ash); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
html .controls small { color: var(--dim); text-transform: none; letter-spacing: 0; }
html .controls input:not([type=range]), html textarea, html select {
  background: var(--ink); color: var(--bone); border: 1px solid var(--line); border-radius: 0; font-family: var(--mono);
}
html textarea::placeholder, html input::placeholder { color: var(--dim); }
html hr { border-top-color: var(--line); }
html .layouts button { color: var(--ash); letter-spacing: .04em; }
html .layouts button.active { border-color: var(--bone); background: #1a1917; color: var(--bone); }
html input[type=range], html .controls .depth-control input, html .mini-toggle input { accent-color: var(--bone); }
html .theme-description { color: var(--ash); }

/* Export + notes */
html .finish { border-bottom-color: var(--line); }
html .finish h2 { font: 400 38px var(--fell); color: var(--bone); }
html .export-choice { color: var(--ash); text-transform: uppercase; letter-spacing: .08em; }
html #status, html .import-status, html #mini-warning { color: var(--bone) !important; }
html .print-notes { background: var(--ink); border: 1px solid var(--line); border-radius: 0; }
html .print-notes h3 { font: 400 22px var(--fell); color: var(--bone); }
html .print-notes li { color: var(--ash); }
html .print-notes b { color: var(--bone); }
html .print-notes summary, html #mini-options summary, html #mini-options a, html details summary { color: var(--bone); }
html #mini-preview canvas { box-shadow: 0 6px 20px #000a; }
html a { color: var(--bone); }

/* Footer */
html footer { font: italic 400 15px var(--fell); color: var(--ash); }
html footer span { font: 400 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* Simplify: the headings carry themselves, so the small labels above them go. */
html .eyebrow { display: none; }
html .intro h1 { margin-top: 0; }
html .finish h2 { margin-top: 0; }
html .host-brand { gap: 4px; }
html .print-steps summary h3 { font: 400 20px var(--fell); color: var(--bone); }
html .print-steps summary::marker { color: var(--ash); }

@media (max-width: 800px) {
  html .brand { font-size: 24px; }
  html .brand span { display: none; }
  html .host-link { font-size: 10px; }
  html .intro h1 { font-size: 34px; line-height: 1.05; }
  html .intro p { font-size: 13px; }
  /* Adding photos is the first step on a phone: make it the one solid button. */
  html .sequence .drop { background: var(--bone); color: var(--void); border: 1px solid var(--bone); }
  html .sequence .drop b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
  html .sequence .drop .plus { color: var(--void); }
  html .sequence .drop:focus-within { outline: 1px solid var(--bone); outline-offset: 4px; }
  html .preview-panel { border-top: 1px solid var(--line); }
  html .finish h2 { font-size: 32px; }
}

/* Browser surfaces in the palette */
html { scrollbar-color: var(--line) var(--void); }
html .page-list { scrollbar-color: var(--dim) var(--ink); }

@media (max-width: 800px) {
  /* Page strip: compact thumb + number + arrows, so nothing overlaps */
  html .page-item { min-width: 0; flex: 0 0 auto; gap: 6px; padding: 6px 4px 6px 6px; }
  html .page-select { gap: 8px; flex: 0 0 auto; }
  html .page-select small { display: none; }
  html .moves button { min-width: 32px; min-height: 30px; }
  /* Touch can't drag; the arrows are the way to reorder */
  html .sequence > p.small:not(.import-status) { display: none; }
  html footer { flex-direction: column; gap: 10px; }
  html footer span { max-width: none; }
}

/* Step numbers + first-visit walkthrough, in the site's look */
html .step-num { border-color: var(--line); color: var(--bone); font: 500 11px/1 var(--mono); border-radius: 0; }
html .link-button { color: var(--bone); font: 400 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 0; text-decoration: underline; }
html .link-button:hover:not(:disabled) { background: transparent; color: var(--bone); text-decoration-color: var(--red); }
html .tour-shade { background: rgba(5, 5, 5, .72); }
html .tour-target { background: var(--ink); box-shadow: 0 0 0 10px var(--ink), 0 0 0 11px var(--bone), 0 0 0 16px rgba(233, 230, 220, .1); }
html #save.tour-target { box-shadow: 0 0 0 3px var(--void), 0 0 0 4px var(--bone); }
html .tour-actions button { font-size: 11px; }
html .file-actions .tour-target, html #save.tour-target { background: var(--void); }
html .tour { background: var(--ink); color: var(--bone); border: 1px solid var(--bone); border-radius: 0; box-shadow: 0 24px 60px #000c; }
html .tour h2 { font: 400 24px/1.15 var(--fell); color: var(--bone); }
html .tour p { color: var(--ash); font-size: 13px; line-height: 1.65; }
html .tour-count { color: var(--dim); font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
html .tour-skip { color: var(--ash); border: 0; }
html .tour-skip:hover:not(:disabled) { background: transparent; color: var(--bone); }
html .font-note { color: var(--dim); }
html .font-sample { color: var(--bone); }

html .layout-group { color: var(--dim); font-family: var(--mono); }
/* Comic book panel photo buttons */
.slot { color: var(--ash); }
.slot.active { border-color: var(--bone); background: #1a1917; color: var(--bone); }
.slot-thumb.empty { background: #1a1917; color: var(--dim); }
.panel-note { color: var(--dim); }
/* Comic book: per-panel speech bubble field */
.bubble-field #bubble-num { color: var(--bone); }

/* This page mini editor tabs (phones) */
@media (max-width: 800px) {
  html .preview-panel { background: var(--panel); box-shadow: 0 14px 22px -14px #000; }
  html .editor-tabs { border-color: var(--line); }
  html .editor-tabs button { color: var(--dim); font: 500 11px var(--mono); letter-spacing: .1em; }
  html .editor-tabs button[aria-selected=true] { color: var(--bone); border-bottom-color: var(--bone); background: transparent; }
  html .editor-tabs button:hover:not(:disabled) { background: transparent; color: var(--bone); }
}
@media (max-width: 800px) {
  html .page-editor .editor-tabs { background: #0b0b0b; }
}
