/* Day / night palettes + "steel beam" accents. Shared by every page. */
:root { --steel-solid:#c4c8cd; color-scheme:dark; }
:root[data-theme="day"] {
  --ink:#0a0a0a; --paper:#ffffff; --mute:#6b6b6b; --hair:#dedede;
  --steel-solid:#4c5258; color-scheme:light;
}
html, body { transition: background-color .35s ease, color .35s ease; }
:root[data-theme="day"] input, :root[data-theme="day"] textarea { color-scheme:light; }
:root[data-theme="day"] input::placeholder, :root[data-theme="day"] textarea::placeholder { color:#9a9a9a; }
:root[data-theme="day"] .drop a[aria-disabled="true"]:hover .soon { color:#aaa; }

/* Steel: polished silver band + brushed streaks + two faint rows of rivet heads, clipped to the letters */
h1 .hi, .brand .hi, .clock .time, .name { color: var(--steel-solid); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 .hi, .brand .hi, .clock .time, .name {
    --rivet: radial-gradient(circle at 40% 38%, rgba(255,255,255,.85) 0 .02em, rgba(150,156,164,.7) .03em, rgba(30,34,40,.55) .05em, transparent .06em);
    --streaks: repeating-linear-gradient(180deg, rgba(255,255,255,.09) 0 1px, rgba(0,0,0,.07) 1px 2px, transparent 2px 4px);
    background-image: var(--rivet), var(--rivet), var(--streaks),
      linear-gradient(180deg, #f7f8fa 0%, #d3d7dc 28%, #8e959d 50%, #e3e6e9 62%, #a7adb4 82%, #cfd3d8 100%);
    background-size: .26em .26em, .26em .26em, 100% 100%, 100% 100%;
    background-repeat: repeat-x, repeat-x, no-repeat, no-repeat;
    background-position: .04em 22%, .04em 80%, 0 0, 0 0;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
  /* day: darker gunmetal so it still reads on white */
  :root[data-theme="day"] h1 .hi, :root[data-theme="day"] .brand .hi, :root[data-theme="day"] .clock .time, :root[data-theme="day"] .name {
    --rivet: radial-gradient(circle at 40% 38%, rgba(255,255,255,.75) 0 .02em, rgba(170,176,184,.6) .03em, rgba(10,12,16,.6) .05em, transparent .06em);
    background-image: var(--rivet), var(--rivet), var(--streaks),
      linear-gradient(180deg, #9ca2a9 0%, #626970 30%, #2d3237 50%, #757b82 63%, #3f444a 84%, #5b6168 100%);
  }
}

/* Sun / moon switch */
button.theme-toggle {
  all: unset; cursor: pointer; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; align-self: center;
  width: 1.5rem; height: 1.5rem; margin: -.3rem -.3rem -.3rem 0;
  color: var(--ink); transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
button.theme-toggle svg { width: .95rem; height: .95rem; display: block; }
button.theme-toggle .moon { display: none; }
:root[data-theme="day"] button.theme-toggle .sun { display: none; }
:root[data-theme="day"] button.theme-toggle .moon { display: block; }
button.theme-toggle:hover { transform: rotate(-25deg); }
button.theme-toggle:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.top-right { display: inline-flex; align-items: center; gap: 1.4rem; }
