/* scene-name.css · sorahseong.com header, desktop and tablet (681px and up)
   The Scene button becomes a quiet menu item, so the main menu stays the star:
       | [picture] Scene ⌄
   A thin divider after "CV", a small picture of the current scene (Classic a door, Forest a tree,
   City View buildings, Treetops a firefly), "Scene" in the menu's own font, and a little chevron that
   turns up while the panel is open. The yellow button and the scene name floating above it are gone.
   The button still tells screen readers "Scene: <name>" (its existing aria-label). */
@media (min-width: 681px) {
  body .header-scene { --scene-ink: #171717; }
  body[data-site-scene="treetop"] .header-scene { --scene-ink: #ffffff; }

  body[data-site-scene] .header .header-scene > summary {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 6px 2px 6px 16px !important;
    gap: 7px !important;
    background: none !important;
    border: 0 !important;
    border-left: 1px solid color-mix(in srgb, var(--scene-ink) 22%, transparent) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--scene-ink) !important;
    font: 13px/1 Arial, Helvetica, sans-serif !important;
  }
  body[data-site-scene] .header .header-scene .header-scene-word {
    font: 13px/1 Arial, Helvetica, sans-serif !important;
    letter-spacing: normal;
    color: inherit;
  }
  body[data-site-scene] .header .header-scene > summary:hover .header-scene-word,
  body[data-site-scene] .header .header-scene[open] .header-scene-word {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }
  body[data-site-scene] .header .header-scene > summary:focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: 4px;
    border-radius: 3px !important;
  }

  /* the current scene's picture, drawn in the text colour */
  body[data-site-scene] .header-scene > summary > .current-scene-name {
    order: -1;
    position: static;
    transform: none;
    inset: auto;
    align-self: center;
    width: 15px;
    height: 15px;
    overflow: hidden;
    font-size: 0;
    color: inherit;
    text-shadow: none;
    background: currentColor;
    -webkit-mask: var(--scene-mark) center / contain no-repeat;
    mask: var(--scene-mark) center / contain no-repeat;
  }

  /* the "+" becomes a small chevron */
  body[data-site-scene] .header .header-scene .header-scene-plus {
    font-size: 0;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 1px;
    border-right: 1.3px solid currentColor;
    border-bottom: 1.3px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease, margin .2s ease;
  }
  body[data-site-scene] .header .header-scene[open] .header-scene-plus { transform: rotate(225deg); margin-top: 3px; }

  body[data-site-scene="plain"] .header-scene { --scene-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4.5 14.5V6.5a3.5 3.5 0 0 1 7 0v8M2.5 14.5h11%22/%3E%3Ccircle cx=%229.6%22 cy=%2210.2%22 r=%22.8%22 fill=%22black%22 stroke=%22none%22/%3E%3C/svg%3E"); }
  body[data-site-scene="forest"] .header-scene { --scene-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 1.8l3.6 5H9.8l3 4H3.2l3-4H4.4zM8 10.8v3.7%22/%3E%3C/svg%3E"); }
  body[data-site-scene="nyc"] .header-scene { --scene-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 14.5V8h3V3.5h4.5v11M9.5 14.5V6.5h4.5v8M1 14.5h14%22/%3E%3C/svg%3E"); }
  body[data-site-scene="treetop"] .header-scene { --scene-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 1.8v2.6M8 11.6v2.6M1.8 8h2.6M11.6 8h2.6M3.6 3.6l1.8 1.8M10.6 10.6l1.8 1.8M12.4 3.6l-1.8 1.8M5.4 10.6l-1.8 1.8%22/%3E%3Ccircle cx=%228%22 cy=%228%22 r=%221.7%22 fill=%22black%22 stroke=%22none%22/%3E%3C/svg%3E"); }
}

@media (min-width: 681px) and (prefers-reduced-motion: reduce) {
  body[data-site-scene] .header .header-scene .header-scene-plus { transition: none; }
}
