:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #242424;
  --muted: #626262;
  --line: #dedede;
  --link: #24599b;
  --orange: #bc390e;
  --mono: "IBM Plex Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--ink); background: #dce8f5; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #163d6e; text-decoration-thickness: 2px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.mono { font-family: var(--mono); font-size: .75rem; font-weight: 400; line-height: 1.5; }
.site-shell {
  width: min(46rem, calc(100% - 48px));
  margin: auto;
  display: flex;
  flex-direction: column;
}
.project-page .site-shell { width: min(66rem, calc(100% - 64px)); }
.skip-link { position: fixed; z-index: 20; top: -100px; left: 1rem; padding: 1rem; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; align-items: center; gap: 1.5rem; margin-top: 48px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.wordmark-slot {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 2rem;
  container-type: inline-size;
}
.wordmark {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: flex-end;
  height: 2rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: -.095em;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: font-size 280ms cubic-bezier(.22, 1, .36, 1), letter-spacing 280ms cubic-bezier(.22, 1, .36, 1);
}
/* Keep overflowing text boxes from changing the link's hover target as letters move. */
.wordmark-letters { display: inline-flex; align-items: baseline; pointer-events: none; }
.wordmark-rest {
  display: inline-grid;
  grid-template-columns: 0fr;
  opacity: 0;
  transition: grid-template-columns 180ms cubic-bezier(.4, 0, .2, 1), opacity 100ms ease;
}
.wordmark-rest > span { min-width: 0; overflow: hidden; }
.wordmark-tail {
  display: inline-flex;
  align-items: baseline;
  padding: 0 .2em 0 0;
  transition: padding 180ms cubic-bezier(.4, 0, .2, 1);
}
.wordmark-last-initial { position: relative; display: inline-block; }
.wordmark-dot-track {
  /* This track is exactly as wide as the m, whatever the font or size. */
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(0);
  transition: transform 180ms cubic-bezier(.4, 0, .2, 1);
}
.wordmark-dot-track .wordmark-dot { position: absolute; top: 0; left: 100%; }
.wordmark:is(:hover, :focus-visible) {
  /* Fit the full name within its own header space, leaving the nav still. */
  color: var(--ink);
  font-size: clamp(.875rem, 12cqi, 1.625rem);
  letter-spacing: -.055em;
}
.wordmark:is(:hover, :focus-visible) .wordmark-rest {
  grid-template-columns: 1fr;
  opacity: 1;
  transition: grid-template-columns 300ms cubic-bezier(.22, 1, .36, 1), opacity 160ms ease;
}
.wordmark:is(:hover, :focus-visible) .wordmark-tail {
  padding: 0 0 0 .48em;
  transition: padding 300ms cubic-bezier(.22, 1, .36, 1);
}
.wordmark:is(:hover, :focus-visible) .wordmark-dot-track {
  /* Travel back across the m and its new leading space to follow the h. */
  transform: translateX(calc(-100% - .48em));
  transition: transform 300ms cubic-bezier(.22, 1, .36, 1);
}
.wordmark:is(:hover, :focus-visible) .wordmark-tail .wordmark-rest { transition-delay: 30ms; }
.wordmark-dot { color: var(--orange); }
nav { margin-left: auto; display: flex; flex-shrink: 0; gap: 1.5rem; align-items: center; }
nav a { font-size: 1rem; padding: 6px 0; }
nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2.25rem; font-weight: 400; letter-spacing: -.025em; margin: 0 0 24px; }
h2 { font-size: 1.375rem; font-weight: 400; margin: 0 0 20px; }
p { margin: 0 0 18px; }
.home-intro { padding: 44px 0 24px; }
.home-intro p { max-width: 65ch; }
.site-index { padding-top: 12px; }
.site-index h2 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.index-entries { margin: 0; }
.index-entries > div + div { margin-top: 24px; }
.index-entries dt { font-weight: 700; }
.index-entries dd { margin: 4px 0 0; max-width: 65ch; }
.index-entries p { margin: 0; }
.index-entries .entry-note { margin-top: 5px; font-size: .9375rem; color: var(--muted); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding: 18px 0 32px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: .8125rem; }
.site-footer a { color: var(--muted); }
.back-top { white-space: nowrap; }

/* Each project gets enough room to be used and explained. */
.project-heading { padding: 40px 0 32px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; }
.project-heading h1 { margin: 22px 0 16px; }
.project-heading > p { max-width: 65ch; margin: 0; }
.study-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); align-items: start; gap: 40px; padding-bottom: 16px; }
.study-notes h2 { margin: 0 0 18px; }
.study-notes h3 { font-size: 1.125rem; font-weight: 400; margin: 28px 0 12px; }
.study-notes p, .study-notes ol { font-size: 1.0625rem; margin: 0 0 18px; }
.study-notes ol { padding-left: 20px; }
.study-notes li { padding-left: 5px; margin-bottom: 12px; }
.study-notes strong { font-weight: 700; color: var(--ink); }
.study-notes .study-note { font-size: .875rem; margin: 25px 0 0; }

.about-content, .article-content { padding-top: 44px; }
.about-prose { max-width: 65ch; }
.article-subtitle { margin-top: -14px; color: var(--muted); font-style: italic; }
.publication-status { font-size: .9375rem; color: var(--muted); }
.page-contents { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 36px; font-size: 1rem; }
.article-content section { margin-top: 32px; }
.article-content section h2 { margin-bottom: 14px; }
.article-content section p:last-child { margin-bottom: 0; }

/* The original instrument finish, kept on its own project page. */
.instrument, .synth-instrument { font-family: var(--sans); font-size: 1rem; line-height: 1.45; }
.instrument { padding: 24px; background: #e2e1d9; border: 1px solid #cecdc4; border-radius: 12px; box-shadow: 0 2px 0 #cac9c0, 0 16px 25px -20px #37372d55, inset 0 1px 0 #ffffffa0; scroll-margin-top: 2rem; }
.instrument-top { display: flex; justify-content: space-between; align-items: center; margin: 0 1px 20px; }
.instrument-id { text-transform: uppercase; letter-spacing: .06em; color: #62625a; }
.instrument h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: -.035em; margin: 5px 0 0; }
.instrument-mark { text-align: right; line-height: 1.2; border-left: 1px solid #b7b6ad; padding-left: 12px; color: #616159; }
.screen { position: relative; height: 300px; background: #252925; border: 5px solid #d0cfc7; border-radius: 6px; outline: 1px solid #b8b7ae; overflow: hidden; box-shadow: inset 0 2px 8px #0008; }
.screen canvas { width: 100%; height: 100%; display: block; }
.screen-top, .screen-bottom { display: flex; justify-content: space-between; position: absolute; left: 15px; right: 15px; z-index: 1; color: #bac1b3; font-size: .75rem; pointer-events: none; }
.screen-top { top: 13px; }.screen-bottom { bottom: 12px; }
.screen-top span:last-child { font-size: .75rem; color: #9fb397; }
.instrument-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; padding-top: 24px; }
.ratio-control { border: 0; margin: 0; padding: 0; min-width: 0; flex-shrink: 0; }
.control-label { display: block; margin-bottom: 9px; color: #62625a; font-size: .875rem; }
.ratio-options { display: flex; gap: 5px; }
.ratio-options label { position: relative; cursor: pointer; }
.ratio-options input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ratio-options span { display: block; padding: 10px 11px; border: 1px solid #bfbeb4; border-radius: 3px; font-family: var(--mono); font-size: .875rem; box-shadow: 0 2px 0 #b8b7ad, inset 0 1px 0 #ffffffb3; background: #eeede5; transition: background .15s, transform .15s; }
.ratio-options input:checked + span { background: #35362f; color: #f2f1e8; border-color: #35362f; box-shadow: inset 0 1px 3px #0005; transform: translateY(1px); }
.ratio-options input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.phase-control { flex: 1; min-width: 80px; padding-bottom: 7px; }
input[type="range"] { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: #9e9f93; border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 3px; background: #9e9f93; border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 24px; margin-top: -11px; border: 1px solid #8f9086; border-radius: 3px; background: #eeede5; box-shadow: 0 2px 2px #0002; }
input[type="range"]::-moz-range-thumb { width: 15px; height: 24px; border: 1px solid #8f9086; border-radius: 3px; background: #eeede5; box-shadow: 0 2px 2px #0002; }
.play-button { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; padding: 0; border: 1px solid #c44415; border-radius: 4px; background: #e85a26; box-shadow: 0 2px 0 #a43b18, inset 0 1px 0 #ffffff50; color: #231d18; }
.play-button:hover { background: #f06b3a; }.play-button:active { transform: translateY(2px); box-shadow: inset 0 1px 3px #0002; }
.play-icon { font-family: Arial, sans-serif; font-size: 1rem; }
.instrument-foot { flex-wrap: wrap; border-top: 1px solid #c6c5bb; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 24px; padding-top: 13px; color: #62625a; }

.project-page .screen { height: 350px; }
.no-script-note { position: absolute; left: 20px; right: 20px; top: 40%; text-align: center; color: #e1e6da; }

@media (min-width: 1600px) {
  .project-page .screen { height: 400px; }
}
@media (max-width: 1100px) {
  .study-layout { gap: 36px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .instrument { padding: 19px; }
  .instrument-controls { gap: 14px; }
  .ratio-options span { padding: 10px 8px; }
  .project-page .screen { height: 310px; }
}
@media (max-width: 800px) {
  .project-page .site-shell { width: calc(100% - 48px); }
  .study-layout { grid-template-columns: 1fr; gap: 40px; }
  .instrument { width: 100%; max-width: 620px; padding: 24px; }
  .project-page .screen { height: 350px; }
  .instrument-controls { gap: 24px; }
  .ratio-options span { padding: 10px 14px; }
  .study-notes { max-width: 590px; }
}
@media (max-width: 480px) {
  .site-shell, .project-page .site-shell { width: calc(100% - 40px); }
  .site-header { margin-top: 24px; }
  h1 { font-size: 2rem; }
  .home-intro { padding-top: 32px; }
  .site-footer { margin-top: 40px; }
  .project-heading { padding-top: 30px; }
  .instrument { padding: 16px; border-radius: 9px; }
  .instrument-top { margin-bottom: 16px; }
  .project-page .screen { height: 276px; }
  .screen-top, .screen-bottom { left: 10px; right: 10px; }
  .screen-top span { font-size: .75rem; }
  .instrument-controls { gap: 13px; padding-top: 18px; }
  .ratio-options { gap: 4px; }
  .ratio-options span { padding: 10px 8px; }
  .phase-control { min-width: 65px; }
  .play-button { width: 38px; height: 42px; }
  .instrument-foot { gap: 5px; margin-top: 20px; }
  .about-content, .article-content { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
