/* Doodlemoth colours ("Dusk moth"): slate blue, grey and ink, with moth yellow for whatever is chosen or the one thing to tap.
   Loaded after each page's own styles, so these values win. Red stays only in the drawings (step-out strokes, the signature). */
:root {
  --desk: #e6ebf1; --card: #f3f5f8; --paper: #fbfcfd; --ink: #1f2d3d; --graphite: #55687c; --rule: #c9d3dd; --chop: #4a6a8a;
  --moth: #f0c23b; --moth-edge: #e2b12a; --on-moth: #1f2d3d;
  --tile-shadow: 0 1px 1px rgba(31, 45, 61, .16), 0 12px 26px -8px rgba(31, 45, 61, .35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --desk: #161d26; --card: #1f2833; --paper: #26303c; --ink: #e8ecf0; --graphite: #a3b0be; --rule: #34404e; --chop: #9db7d3; color-scheme: dark; }
}
:root[data-theme="dark"] { --desk: #161d26; --card: #1f2833; --paper: #26303c; --ink: #e8ecf0; --graphite: #a3b0be; --rule: #34404e; --chop: #9db7d3; color-scheme: dark; }

/* the woven band behind the header (and the home page's opening) */
.band { color: #f3f5f8; background:
  radial-gradient(ellipse 60% 80% at 22% 60%, rgba(31, 45, 61, .78), rgba(31, 45, 61, .45) 55%, transparent 85%),
  radial-gradient(ellipse 40% 55% at 98% 5%, rgba(201, 211, 221, .30), transparent 72%),
  radial-gradient(ellipse 35% 40% at 45% 0%, rgba(201, 211, 221, .18), transparent 70%),
  radial-gradient(ellipse 70% 45% at 40% 105%, rgba(201, 211, 221, .26), transparent 70%),
  linear-gradient(180deg, rgba(31, 45, 61, .35), rgba(60, 72, 85, .25) 60%, rgba(31, 45, 61, .55)),
  #34404e url(/weave.jpg) 0 0 / 384px 384px repeat;
  --ink: #f3f5f8; --graphite: #d3dee8; --card: rgba(31, 45, 61, .6); --rule: rgba(220, 228, 236, .35); --chop: #f0c23b; }
.band.slim { padding-bottom: 14px; margin-bottom: 8px; }
.band.slim .mast { padding-bottom: 4px; }
.band > .wrap { color: inherit; }
.band .mast a, .band .mast nav a { color: #f3f5f8; }
.band .lockup { filter: invert(1) brightness(1.05) !important; }
.band h1 { text-shadow: 0 2px 14px rgba(15, 25, 35, .6); }
.band .lede, .band legend, .band .date, .band figcaption, .band p { text-shadow: 0 1px 2px rgba(15, 25, 35, .7); }
.band button, .band .seg label { color: #f3f5f8; }
.band .tile { box-shadow: 0 2px 2px rgba(10, 20, 30, .3), 0 18px 34px -10px rgba(10, 20, 30, .6); }

/* yellow = chosen, or the main thing to tap */
button.primary, .btn.primary, .post-form button,
.seg input:checked + label, .seg button[aria-pressed="true"], .chips button[aria-pressed="true"],
.band .seg input:checked + label {
  background: var(--moth) !important; border-color: var(--moth-edge) !important; color: var(--on-moth) !important; text-shadow: none !important; }
button.primary:hover, .btn.primary:hover, .post-form button:hover { background: #f4cd55 !important; }
.post { border-top: 4px solid var(--moth); }
.ptile .best { background: var(--moth); color: var(--on-moth); }

/* step numbers as yellow chips: the recipe on the home page and the step-outs on pattern pages */
.num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px;
  background: var(--moth); color: var(--on-moth) !important; font-size: 1.45rem !important; line-height: 1 !important; }
ol.how li::before { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 10px;
  background: var(--moth); color: var(--on-moth) !important; font-size: 1.25rem !important; }

/* phones: the header links stay on one line and scroll sideways instead of wrapping word by word */
@media (max-width: 640px) {
  .mast nav { display: flex; gap: 16px; width: 100%; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .mast nav::-webkit-scrollbar { display: none; }
  .mast nav a { margin: 0 !important; }
}
