/* ============================================================
   Morning Work — chrome, palettes and routine styles for the
   Toolshed morning check-in (date, yesterday & tomorrow,
   weather, feelings). Shares the 11 palettes with the Work
   Cycle Timer, Math Playground and the Toolshed site: keep the
   html[data-theme] blocks in sync with site.css
   (SwankyMcGee.github.io), math.css (math-playground) and
   styles.css (work-cycle-timer). --accent2 marks the "right /
   settled" state: filled blanks and highlighted answers.
   ============================================================ */

:root {
  --bg: #f2f6f8;
  --surface: #ffffff;
  --surface-2: #e9eff3;
  --text: #33414d;
  --dim: #6b7c8a;
  --border: #d5dfe6;
  --accent: #4d84a6;
  --accent2: #628f5d;
  --hold-bg: #fdf3dd;
  --hold-text: #7a5c1e;
  --hold-border: #eeddb3;
}

* { box-sizing: border-box; }

/* Author display beats the UA's [hidden] — the lesson from the site:
   any element we give display:flex needs this guard. */
[hidden] { display: none !important; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  transition: background-color .35s ease, color .35s ease;   /* gentle palette switch */
}

a { color: var(--accent); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header / nav ---------- */

.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .7rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  align-items: center;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}

.brand .brand-sub { font-weight: 500; color: var(--dim); }

.head-tools {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

/* The standard Toolshed control cluster (Chime · Fullscreen ·
   Settings · Home) — right-aligned, wraps before anything collides. */
.header-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.2rem 1.2rem 2.5rem;
}

h1 { font-size: 1.7rem; margin: .6rem 0 .4rem; }
h2 { font-size: 1.2rem; margin: 1.4rem 0 .5rem; }
p { margin: .45rem 0; }

.hero-tagline {
  color: var(--dim);
  font-size: 1.02rem;
  margin: .3rem 0 0;
}

.lbl { font-weight: 700; color: var(--text); }

/* ---------- Footer (shared Toolshed scene + rotating wisdom) ---------- */

.site-foot {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.2rem 1.4rem;
  color: var(--dim);
  font-size: .85rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.foot-scene {
  position: relative;
  display: block;
  width: min(100%, 1080px);
  aspect-ratio: 1100 / 160;
  margin: 0 auto;
  padding-top: .4rem;
  /* One generated panorama per palette, painted from --foot-img so it
     tracks the theme switch. The twinkles stay inline SVG on top. */
  background: var(--foot-img) center / cover no-repeat;
}
.foot-scene svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.foot-phrase { margin: .3rem 0 0; font-size: .95rem; font-weight: 700; color: var(--text); }
.foot-phrase a { color: var(--accent); }
.foot-wisdom {
  margin: .35rem 0 0;
  min-height: 1.4em;
  font-style: italic;
  color: var(--dim);
  transition: opacity .6s ease;
}
.foot-wisdom.fading { opacity: 0; }
.foot-meta { margin: .55rem 0 0; font-size: .8rem; }

/* Scene life — slow sways, switched off under reduced motion. */
.foot-scene .sway { transform-box: fill-box; transform-origin: 50% 0%; }
.foot-scene .nod { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .foot-scene .sway { animation: toolSway 6s ease-in-out infinite alternate; }
  .foot-scene .nod { animation: sproutNod 7s ease-in-out infinite alternate; }
  .foot-scene .glow { animation: twinkle 4.5s ease-in-out infinite alternate; }
}
@keyframes toolSway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
@keyframes sproutNod { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes twinkle { from { opacity: .3; } to { opacity: .85; } }
@media (prefers-reduced-motion: reduce) {
  .foot-wisdom { transition: none; }
}

/* ---------- Hold-to-activate (kid-safe buttons) ----------
   Each holdable button sets --hold-dur; the .holding class runs
   the fill for that long. */

.hold-btn {
  --hold-dur: 1s;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .34rem .8rem;
  min-height: 40px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

.hold-btn:hover { border-color: var(--accent); }
.hold-btn.holding { border-color: var(--accent); color: var(--accent); }
.hold-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hold-btn .hold-emoji { font-size: 1.05rem; }
.hold-icon { display: inline-flex; align-items: center; }
.hold-icon svg { display: block; }

.hold-track {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 4px;
  height: 4px;
  border-radius: 2px;
  background: var(--surface);
  overflow: hidden;
}

.hold-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.holding .hold-fill {
  animation: holdFill var(--hold-dur, 1s) linear forwards;
}

@keyframes holdFill {
  from { width: 0; }
  to   { width: 100%; }
}

.hold-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.hold-btn.primary .hold-track { background: rgba(0, 0, 0, .18); }
.hold-btn.primary.holding { color: #ffffff; }

html[data-theme="high"] .hold-btn.primary,
html[data-theme="dark"] .hold-btn.primary,
html[data-theme="midnight"] .hold-btn.primary,
html[data-theme="warm"] .hold-btn.primary {
  color: #0b0d10;
}

html[data-theme="high"] .hold-btn.primary.holding,
html[data-theme="dark"] .hold-btn.primary.holding,
html[data-theme="midnight"] .hold-btn.primary.holding,
html[data-theme="warm"] .hold-btn.primary.holding {
  color: #0b0d10;
}

.hold-btn[aria-disabled="true"] {
  opacity: .5;
  cursor: default;
  pointer-events: none;
}

/* ---------- Header palette picker (morning.js injects this) ---------- */

.theme-wrap {
  position: relative;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .34rem .8rem;
  min-height: 40px;
  cursor: pointer;
}

.theme-btn:hover { border-color: var(--accent); }

.theme-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.theme-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  z-index: 30;
  width: min(21.5rem, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
  padding: .5rem;
}

.theme-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  width: 100%;
  font: inherit;
  font-size: .95rem;
  text-align: left;
  color: var(--text);
  background: none;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: .45rem .6rem;
  cursor: pointer;
}

.theme-opt:hover { background: var(--surface-2); }

.theme-opt.active {
  border-color: var(--accent);
  background: var(--surface-2);
}

.theme-opt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.theme-name { flex: 1; }

.theme-chips {
  display: inline-flex;
  gap: 3px;
  flex: none;
}

.theme-chip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.motif-btn {
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  background: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: .45rem .6rem;
  margin-top: .35rem;
  cursor: pointer;
}

.motif-btn:hover { background: var(--surface-2); }
.motif-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.motif-state { font-weight: 700; color: var(--accent); }

/* ---------- Cards / setup panel ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.setup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .9rem 1.1rem 1.1rem;
  margin-top: 1rem;
}

.setup-title {
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 .3rem;
}

.setup-note {
  font-size: .87rem;
  color: var(--dim);
  margin: 0 0 .6rem;
}

/* ---------- The chooser: which parts to do ---------- */

.part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .8rem;
}

.part-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: .9rem 1rem;
  min-height: 132px;
  cursor: pointer;
}

.part-card:hover { border-color: var(--accent); }
.part-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.part-card[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.pc-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1rem;
}

.pc-emoji { font-size: 1.35rem; }
.pc-desc { color: var(--dim); font-size: .9rem; flex: 1; }

.pc-check {
  font-size: .85rem;
  font-weight: 700;
  color: var(--dim);
}

.part-card[aria-pressed="true"] .pc-check { color: var(--accent2); }

/* ---------- The run: label, progress, stage ---------- */

.part-label {
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
  margin: .4rem 0 .3rem;
}

.progress {
  display: flex;
  justify-content: center;
  gap: .45rem;
  margin: 0 0 .5rem;
}

.pdot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
}

.pdot.done { background: var(--accent2); border-color: var(--accent2); }
.pdot.now { border-color: var(--accent); background: var(--surface); }

.stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1.3rem;
}

.prompt-line {
  color: var(--dim);
  font-size: .97rem;
  margin: 0 0 .5rem;
  min-height: 1.5em;
}

/* The fill-in sentence with its dashed blanks. */
.sentence {
  font-size: clamp(1.3rem, 4.2vw, 1.9rem);
  font-weight: 800;
  line-height: 2;
  margin: .2rem 0 .7rem;
}

.sentence-line { margin: .1rem 0; }

.blank {
  display: inline-block;
  min-width: 3em;
  max-width: 100%;
  text-align: center;
  padding: .02em .4em;
  margin: 0 .1em;
  border: 2px dashed var(--border);
  border-radius: .4em;
  background: var(--surface-2);
  color: var(--dim);
  font-weight: 700;
}

.blank.filled {
  border-style: solid;
  border-color: var(--accent2);
  color: var(--accent2);
  animation: blankPop .25s ease;
}

@keyframes blankPop {
  from { transform: scale(.92); }
  to   { transform: scale(1); }
}

/* Big answer choices — one row of up to 4, wrapping. */
.choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin: .8rem 0 .4rem;
}

.choice {
  font: inherit;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: .55rem 1.3rem;
  min-width: 5.2rem;
  min-height: 60px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.choice:hover { border-color: var(--accent); }
.choice:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.choice.correct {
  border-color: var(--accent2);
  background: var(--surface-2);
  color: var(--accent2);
}

.choice.soft { opacity: .5; }        /* not the answer — stays visible, no red */

/* After two tries the right one blinks kindly until tapped. */
.choice.nudge {
  border-color: var(--accent2);
  outline: 3px solid var(--accent2);
  outline-offset: 2px;
  animation: nudgeBlink 1.2s ease-in-out infinite;
}

@keyframes nudgeBlink {
  0%, 100% { outline-color: var(--accent2); }
  50%      { outline-color: transparent; }
}

/* Weather / feelings tiles: emoji over a name. */
.choice.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  min-width: 6.4rem;
  padding: .7rem 1rem;
}

.choice.tile .t-emoji { font-size: 2rem; line-height: 1.15; }
.choice.tile .t-name { font-size: 1rem; font-weight: 700; }

.choice.tile[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.choice.tile[aria-pressed="true"] .t-emoji { transform: scale(1.12); }
.choice.tile .t-emoji { transition: transform .15s ease; }

/* ---------- Feelings: the four-zone chart ----------
   The zone colours are fixed and semantic (blue/green/yellow/red
   as the framework defines them) — they deliberately do not
   follow the palette. Pastel panels with dark text stay readable
   on every background, including the dark palettes. */

.zone-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: .7rem;
  justify-items: stretch;
}

.zone {
  background: var(--z-bg);
  border: 2px solid var(--z-border);
  border-radius: 14px;
  padding: .7rem .8rem .85rem;
  color: var(--z-text);
  text-align: left;
}

.zone-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 800;
  font-size: 1rem;
}

.zone-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--z-dot);
  border: 1px solid rgba(0, 0, 0, .18);
  flex: none;
}

.zone-hint {
  margin: .15rem 0 .5rem;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--z-text);
  opacity: .85;
}

.zone-feelings {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.feeling {
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  color: var(--z-text);
  background: rgba(255, 255, 255, .82);
  border: 1.5px solid var(--z-border);
  border-radius: 999px;
  padding: .35rem .7rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}

.feeling:hover { background: #ffffff; }
.feeling:focus-visible { outline: 3px solid var(--z-deep); outline-offset: 2px; }

.feeling[aria-pressed="true"] {
  background: var(--z-deep);
  border-color: var(--z-deep);
  color: #ffffff;
}

.feeling .f-face { width: 26px; height: 26px; display: block; flex: none; }

.zone-credit {
  grid-column: 1 / -1;
  font-size: .78rem;
  color: var(--dim);
  margin: 0;
  text-align: center;
}

/* Feedback line: gentle, never a buzzer. */
.feedback {
  min-height: 1.6em;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent2);
  margin: .3rem 0 0;
}

.feedback.neutral { color: var(--dim); font-weight: 500; }

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: 1rem;
}

/* Plain tap buttons (not hold) for flow. */
.btn {
  font: inherit;
  font-size: .97rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .55rem 1.3rem;
  min-height: 46px;
  cursor: pointer;
}

.btn:hover { border-color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

html[data-theme="high"] .btn.primary,
html[data-theme="dark"] .btn.primary,
html[data-theme="midnight"] .btn.primary,
html[data-theme="warm"] .btn.primary {
  color: #0b0d10;
}

.btn[disabled] { opacity: .5; cursor: default; }

.btn[aria-disabled="true"] {
  opacity: .5;
  cursor: default;
  pointer-events: none;
}

/* ---------- Done screen ---------- */

.done-screen { text-align: center; padding: .4rem 0 .2rem; }
.rd-emoji { font-size: 2.6rem; line-height: 1.1; }
.rd-title { font-size: 1.6rem; margin: .35rem 0 .3rem; }
.rd-line { font-size: 1.05rem; margin: .25rem 0; text-align: left; }
.rd-line .rd-face { width: 22px; height: 22px; vertical-align: -5px; }
.rd-line strong { color: var(--accent2); }

.recap { margin-top: .8rem; text-align: left; }
.recap .rd-line { margin: .35rem 0; }

/* ---------- Background morning motifs (toggleable) ----------
   Whisper-quiet sunrise pattern behind everything. Toggle lives
   in the palette panel ("Background patterns") and shares the
   site's homeMotifs setting. Low/high contrast get no pattern. */

body.morning::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 230px 230px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='230' height='230'><g fill='none' stroke='%23808080' stroke-opacity='0.13' stroke-width='2' stroke-linecap='round'><circle cx='46' cy='46' r='12'/><path d='M46 24 v-7 M46 68 v7 M24 46 h-7 M68 46 h7 M31 31 l-5 -5 M61 61 l5 5 M61 31 l5 -5 M31 61 l-5 5'/><path d='M148 66 a9 9 0 0 1 5 -16 a11 11 0 0 1 21 3 a8 8 0 0 1 3 13 z'/><path d='M170 150 v13 M183 146 v13 M196 150 v13'/><path d='M60 158 l3 -8 3 8 8 3 -8 3 -3 8 -3 -8 -8 -3 z'/><path d='M112 96 h18 M112 106 h12'/></g></svg>");
}

html.motifs-off body.morning::before { display: none; }
html[data-theme="low"] body.morning::before,
html[data-theme="high"] body.morning::before { display: none; }

/* ---------- Shared color palettes (all 11) ----------
   morning.js sets html[data-theme] before first paint. These
   blocks mirror site.css (SwankyMcGee.github.io) exactly, plus
   --accent2 = the palette's second accent (THEMES chips[4]). */

html[data-theme="calm"] {
  --bg: #f2f6f8;
  --surface: #ffffff;
  --surface-2: #e9eff3;
  --text: #33414d;
  --dim: #6b7c8a;
  --border: #d5dfe6;
  --accent: #4d84a6;
  --accent2: #628f5d;
  --hold-bg: #fdf3dd;
  --hold-text: #7a5c1e;
  --hold-border: #eeddb3;

  --foot-img: url("img/footers/calm.jpg");
}

html[data-theme="lavender"] {
  --bg: #f5f3fb;
  --surface: #ffffff;
  --surface-2: #ece8f7;
  --text: #3d3a52;
  --dim: #75708f;
  --border: #ddd7ef;
  --accent: #7a6fc0;
  --accent2: #6a9a76;
  --hold-bg: #fdf3dd;
  --hold-text: #7a5c1e;
  --hold-border: #eeddb3;

  --foot-img: url("img/footers/lavender.jpg");
}

html[data-theme="mint"] {
  --bg: #eef8f3;
  --surface: #ffffff;
  --surface-2: #e0f0e8;
  --text: #2f4640;
  --dim: #648076;
  --border: #cfe6dc;
  --accent: #35837e;
  --accent2: #6f9a58;
  --hold-bg: #fdf3dd;
  --hold-text: #7a5c1e;
  --hold-border: #eeddb3;

  --foot-img: url("img/footers/mint.jpg");
}

html[data-theme="peach"] {
  --bg: #fdf6ef;
  --surface: #fffdfb;
  --surface-2: #f9ece0;
  --text: #4d3f34;
  --dim: #8a7566;
  --border: #f0e0d0;
  --accent: #c26a3c;
  --accent2: #7a9a5a;
  --hold-bg: #fdf3dd;
  --hold-text: #7a5c1e;
  --hold-border: #eeddb3;

  --foot-img: url("img/footers/peach.jpg");
}

html[data-theme="rose"] {
  --bg: #fdf4f6;
  --surface: #ffffff;
  --surface-2: #f9e7ec;
  --text: #4f3540;
  --dim: #8c6b78;
  --border: #f2dae1;
  --accent: #c25f7e;
  --accent2: #6f9466;
  --hold-bg: #fdf3dd;
  --hold-text: #7a5c1e;
  --hold-border: #eeddb3;

  --foot-img: url("img/footers/rose.jpg");
}

html[data-theme="ocean"] {
  --bg: #eef8fa;
  --surface: #ffffff;
  --surface-2: #dff0f4;
  --text: #2c4750;
  --dim: #5f7f89;
  --border: #cfe6eb;
  --accent: #2f87a3;
  --accent2: #5f9a6a;
  --hold-bg: #fdf3dd;
  --hold-text: #7a5c1e;
  --hold-border: #eeddb3;

  --foot-img: url("img/footers/ocean.jpg");
}

html[data-theme="low"] {
  --bg: #eef1f3;
  --surface: #f6f8f9;
  --surface-2: #eaedef;
  --text: #5b6570;
  --dim: #838d97;
  --border: #e2e6e9;
  --accent: #94b4c3;
  --accent2: #a9c5a5;
  --hold-bg: #f4efe3;
  --hold-text: #8a8172;
  --hold-border: #e8e0cf;

  --foot-img: url("img/footers/low.jpg");
}

html[data-theme="high"] {
  --bg: #000000;
  --surface: #0b0d10;
  --surface-2: #16191e;
  --text: #ffffff;
  --dim: #d0d6dc;
  --border: #ffffff;
  --accent: #56e0ff;
  --accent2: #b7ff5e;
  --hold-bg: #2a2105;
  --hold-text: #ffe066;
  --hold-border: #ffe066;

  --foot-img: url("img/footers/high.jpg");
}

html[data-theme="dark"] {
  --bg: #151a20;
  --surface: #1e242b;
  --surface-2: #252c34;
  --text: #e7edf2;
  --dim: #9aa7b3;
  --border: #323b45;
  --accent: #6fa9c7;
  --accent2: #8fbf88;
  --hold-bg: #3a3320;
  --hold-text: #f0dca6;
  --hold-border: #5c5030;

  --foot-img: url("img/footers/dark.jpg");
}

html[data-theme="midnight"] {
  --bg: #0a0f1e;
  --surface: #121a30;
  --surface-2: #1a2440;
  --text: #e3e9f7;
  --dim: #9aa6c4;
  --border: #2c3a5e;
  --accent: #6fa8ff;
  --accent2: #67d6a5;
  --hold-bg: #1c2745;
  --hold-text: #a9c6f5;
  --hold-border: #3d5585;

  --foot-img: url("img/footers/midnight.jpg");
}

html[data-theme="warm"] {
  --bg: #211a14;
  --surface: #2b221a;
  --surface-2: #352a20;
  --text: #f0e6da;
  --dim: #b3a291;
  --border: #4a3c2e;
  --accent: #d9a05f;
  --accent2: #93b877;
  --hold-bg: #3a3020;
  --hold-text: #f0dca6;
  --hold-border: #5c4c2e;

  --foot-img: url("img/footers/warm.jpg");
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
