/* This Seven Goes to Eleven — white page, with the instrument's red felt as
   the one strong accent. Deliberately unrelated to jx-3p.com; the two sites
   share no assets. */
:root {
  --bg: #ffffff;
  --raised: #f7f7f8;
  --line: #e3e3e7;
  --text: #1b1b1f;
  --muted: #5f5f68;
  --felt: #b8362b;
  --amber: #a83428;   /* links: the felt red, dark enough to read on white */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem 5rem; }

/* Header, straight off the panel: black face, brushed-aluminium strip, and
   the red felt that sits above the keybed as the bottom edge. */
/* The header is a panel sitting on the page, not a full-bleed band: inset,
   rounded at the top, shallow enough that the controls read as one row. */
.site-head { max-width: 78rem; margin: 1rem auto 3rem; padding: 0 1rem; }
.site-head .panel {
  background: #0b0b0c;
  border-radius: 10px 10px 0 0;
  padding: .9rem 0;
}
.site-head .panel-inner {
  display: flex; align-items: center; gap: 1.2rem;
  max-width: 46rem; margin: 0 auto; padding: 0 1.5rem;
}
.wordmark {
  flex: 1; min-width: 0; white-space: nowrap;
  color: #fff; text-decoration: none;
  font-size: clamp(1.15rem, 3vw, 2.3rem); font-weight: 500; font-style: italic;
  letter-spacing: -.01em;
}
/* The Crumar script, approximated with a system italic script. Hue comes
   from the header knob (--seven-hue), so turning it colours the logo. */
.seven {
  font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
  font-style: italic; font-weight: 700;
  font-size: 1.25em; padding: 0 .12em;
  color: hsl(var(--seven-hue, 40) 100% 62%);
  text-shadow:
    0 0 6px hsl(var(--seven-hue, 40) 100% 55% / .85),
    0 0 18px hsl(var(--seven-hue, 40) 100% 45% / .5);
}

/* Panel controls: the knob sits left of the headline, the two preset
   buttons right of it, both at the app's own proportions. */

.knob { flex: none; width: 82px; height: 82px; }
#hue-knob { cursor: grab; }
#hue-knob:active { cursor: grabbing; }
#hue-knob:focus { outline: none; }
#hue-knob:focus-visible .k-hit { stroke: #ff3b30; stroke-width: 2; }
/* The rotor turns with the value; the short transition smooths key steps
   without lagging a drag. */
/* Rotation is set on the transform attribute in knob.js — deliberately
   untransitioned; see the note there. */
.knob .k-ribs line { stroke: rgba(255,255,255,.34); }
.knob .k-mark { filter: drop-shadow(0 0 3px currentColor); }

.panel-buttons { flex: none; width: 116px; height: auto; }
.panel-buttons .lbl {
  fill: #e8e8ea; font-family: 'Archivo Narrow', Helvetica, Arial, sans-serif;
  font-weight: 700; font-style: italic; font-size: 15px; letter-spacing: .05em;
  text-anchor: middle;
}
.panel-buttons .btn-bezel { fill: #1a1a1c; }
.panel-buttons .btn-face { fill: url(#bf); stroke: #75757c; stroke-width: 1.5; rx: 3; }
.panel-buttons .f-t { fill: rgba(255,255,255,.2); }
.panel-buttons .f-l { fill: rgba(255,255,255,.04); }
.panel-buttons .f-r { fill: rgba(0,0,0,.3); }
.panel-buttons .f-b { fill: rgba(0,0,0,.45); }
.panel-buttons .plateau { fill: rgba(255,255,255,.035); }
.panel-buttons .edge { fill: none; stroke: #6e6e75; stroke-width: 1.4; }
.panel-buttons .led { fill: #7d2b26; stroke: #1a1a1c; stroke-width: .5; }
.panel-buttons .panel-btn { cursor: pointer; }
.panel-buttons .panel-btn:hover .led { fill: #ff3b30; }
.panel-buttons .panel-btn:hover .btn-face { fill: #2b2b2e; }
@media (max-width: 46rem) {
  .knob { width: 60px; height: 60px; }
  /* Preset buttons don't survive a phone screen; the strip carries the
     navigation instead. */
  .panel-buttons { display: none; }
  .alum-nav { display: flex; }
}

.alum {
  border-bottom: 4px solid var(--felt);
  border-radius: 0 0 3px 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, rgba(0,0,0,.035) 1px 3px),
    linear-gradient(180deg, #d3d3d7 0%, #b9b9bf 55%, #a2a2a9 100%);
  padding: .45rem 0;
}
/* Strip contents sit on the same column as the page copy below. */
.alum-inner {
  display: flex; align-items: baseline; gap: 1rem;
  max-width: 46rem; margin: 0 auto; padding: 0 1.5rem;
  color: #26262a; font-size: .95rem;
}
.alum .tagline { flex: 1; }
.alum-nav { display: none; gap: 1.1rem; }
.alum-nav a { color: #26262a; text-decoration: none; font-weight: 600; }
.alum-nav a:hover { color: #000; }
.alum nav a { color: #26262a; text-decoration: none; font-weight: 600; }
.alum nav a:hover { color: #000; }

/* Page typography. (This block was lost in an earlier edit — the page was
   rendering with browser defaults.) */
h1 { font-size: 2.1rem; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 1.4rem; }
h2 {
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 2.6rem 0 .9rem;
}
p { margin: 0 0 1.15rem; }
a { color: var(--felt); }
main ul { margin: 0 0 1.15rem 1.1rem; }
main li { margin: .3rem 0; }
.lede { font-size: 1.18rem; }
.muted { color: var(--muted); }

/* Feature lists: rules instead of bullets, indented so they sit under the
   heading they belong to. */
.features { list-style: none; margin: 0 0 1.5rem; padding-left: 1.25rem; }
.features li { padding: .55rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.features li:first-child { border-top: 1px solid var(--line); }

.soon {
  background: var(--raised); border: 1px solid var(--line); border-radius: 6px;
  padding: .4rem 1.2rem 1.2rem; margin: 2rem 0 0;
}
.soon h2 { margin-top: 1.2rem; }
.soon p { padding-left: 1.25rem; margin: 1.1rem 0 0; }

/* Follow line (no mailing list — see _includes/subscribe-form.html). */
.follow {
  background: var(--raised); border: 1px solid var(--line); border-radius: 6px;
  padding: .9rem 1.1rem; margin: 2.5rem 0 0; color: var(--muted);
}

/* Contact form (Web3Forms — no backend of our own). */
.contact-form { display: flex; flex-direction: column; gap: .4rem; max-width: 34rem; }
.contact-form label { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.contact-form input[type=email], .contact-form textarea {
  font: inherit; font-size: 1rem; padding: .55rem .7rem;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text);
}
.contact-form textarea { resize: vertical; }
.contact-form button {
  align-self: flex-start; margin-top: 1rem;
  font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
  padding: .55rem 1.4rem; border: none; border-radius: 4px;
  background: var(--felt); color: #fff;
}
.contact-form button:hover { filter: brightness(1.08); }
.contact-form .hp { position: absolute; left: -9999px; }

/* Screenshot with click-to-enlarge. The button wrapper keeps it keyboard
   reachable; the dialog is native, so Escape and backdrop clicks come free. */
/* Gallery: one column on a phone, two side by side with room. */
.shots { display: grid; gap: 1rem; margin: 2rem 0; }
@media (min-width: 40rem) { .shots { grid-template-columns: 1fr 1fr; } }
.shot { margin: 0; }
.shot-open {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; background: none; cursor: zoom-in;
}
.shot-open img { display: block; width: 100%; height: auto; }
.shot figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
dialog.shot-modal {
  width: min(96vw, 1600px); padding: 0; border: none; border-radius: 8px;
  background: none; position: relative; overflow: visible;
}
dialog.shot-modal::backdrop { background: rgba(0, 0, 0, .72); }
dialog.shot-modal img { display: block; width: 100%; height: auto; border-radius: 8px; cursor: zoom-out; }
.shot-caption { color: #e8e8ea; text-align: center; font-size: .9rem; margin: .6rem 0 0; }
/* Arrows sit over the image edges — visible on both light and dark shots. */
.shot-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.6rem; height: 3.4rem; border: none; border-radius: 6px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.9rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.shot-nav:hover { background: rgba(0, 0, 0, .8); }
.shot-nav.prev { left: .5rem; }
.shot-nav.next { right: .5rem; }
@media (max-width: 34rem) { .shot-nav { width: 2.1rem; height: 2.8rem; font-size: 1.5rem; } }

/* Metrics tiles. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem; margin: 0 0 1.5rem; }
.stat {
  background: var(--raised); border: 1px solid var(--line); border-radius: 8px;
  padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem;
}
.stat .lbl { font-size: .85rem; color: var(--muted); }
.stat .val { font-size: 1.7rem; font-weight: 600; }

.post-list { list-style: none; margin: 0; }
.post-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.post-list time { display: block; color: var(--muted); font-size: .9rem; }
.post-date { color: var(--muted); font-size: .9rem; margin-top: -.8rem; }

.site-foot { margin-top: 4rem; }
.foot-strip {
  height: 4px; background: var(--felt);
}
.foot-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .5rem;
  max-width: 46rem; margin: 0 auto; padding: 1.4rem 1.5rem .4rem;
  color: var(--muted); font-size: .9rem; text-align: center;
}
.foot-dot { color: var(--line); }
.foot-ig {
  display: inline-flex; align-items: center; color: var(--muted);
  margin-left: .2rem;
}
.foot-ig:hover { color: var(--felt); }
.foot-fine {
  max-width: 46rem; margin: 0 auto; padding: 0 1.5rem 2.5rem;
  color: var(--text-dim); font-size: .82rem; text-align: center;
}

@media (max-width: 34rem) { .shot-nav { width: 2.1rem; height: 2.8rem; font-size: 1.5rem; } }

/* Metrics tiles. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem; margin: 0 0 1.5rem; }
.stat {
  background: var(--raised); border: 1px solid var(--line); border-radius: 8px;
  padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem;
}
.stat .lbl { font-size: .85rem; color: var(--muted); }
.stat .val { font-size: 1.7rem; font-weight: 600; }

.post-list { list-style: none; margin: 0; }
.post-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.post-list time { display: block; color: var(--muted); font-size: .9rem; }
.post-date { color: var(--muted); font-size: .9rem; margin-top: -.8rem; }

.site-foot {
  max-width: 46rem; margin: 0 auto; padding: 1.5rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
.site-foot .fine { font-size: .82rem; opacity: .8; margin-top: .4rem; }

@media (max-width: 34rem) { body { font-size: 16px; } h1 { font-size: 1.7rem; } }
