[hidden] {
  display: none !important;
}
body {
  --top: 58px;
  --side: clamp(214px, 18vw, 275px);
  --pad: clamp(16px, 2vw, 36px);
}
header.mast {
  max-width: none;
  margin: 0;
  position: sticky;
  top: 0;
  height: var(--top);
  padding: 0 var(--pad);
  background: var(--bg);
  z-index: 8;
}
.mast .brand {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mark {
  font: 26px Georgia;
  color: var(--accent);
}
.headtools,
.sidehead,
.sectionhead,
.cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.headtools button {
  font-size: 13px;
}
.workspace {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  height: calc(100dvh - var(--top));
}
#menu {
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-right: 1px solid var(--rule);
  padding: 20px 14px;
}
.sidehead {
  margin-bottom: 18px;
  font-size: 19px;
  font-weight: 700;
}
.sidehead a:hover {
  text-decoration: underline;
}
#menu label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}
#search {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 8px 10px;
  border-radius: 4px;
}
#matches {
  font-size: 12px;
}
#tree details {
  border: 0;
  border-top: 1px solid var(--rule);
  padding: 0;
}
#tree summary {
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 11px 3px;
}
#tree summary::before {
  content: "›";
  font-size: 18px;
  line-height: 14px;
}
#tree details[open] summary::before {
  transform: rotate(90deg);
}
#tree summary small {
  margin-left: auto;
  font-weight: 400;
  color: var(--muted);
}
#tree a {
  display: block;
  font-size: 13px;
  padding: 5px 7px 5px 19px;
  border-left: 2px solid transparent;
}
#tree a:hover,
.examples a:hover {
  background: var(--bg);
  text-decoration: underline;
}
#tree a[aria-current] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg);
  font-weight: 700;
}
#menuToggle,
#menuClose {
  display: none;
}
#home,
#work {
  min-width: 0;
  margin: 0;
  max-width: none;
  padding: var(--pad);
  overflow: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  align-items: center;
  gap: 20px;
  max-width: 1360px;
  margin: auto;
}
.hero .scene {
  width: 100%;
}
.hero h1 {
  font:
    550 clamp(32px, 3.6vw, 64px)/1.12 Georgia,
    AppleMyungjo,
    serif;
  letter-spacing: -0.075em;
  margin: 10px 0;
}
.hero p {
  margin: 8px 0;
  color: var(--muted);
}
.hero .kicker,
#familyName {
  font-size: 13px;
  color: var(--accent);
  font-weight: 650;
}
.sectionhead {
  border-top: 1px solid var(--rule);
  margin: 20px 0 12px;
  padding-top: 12px;
}
.sectionhead h2 {
  margin: 0;
  font-size: 22px;
}
.sectionhead span,
.cardhead small {
  font-size: 12px;
  color: var(--muted);
}
#overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.overviewCard {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.overviewCard .sample {
  height: 16px;
  border-radius: 1px;
}
.cardhead h3 {
  font:
    650 clamp(16px, 1.4vw, 22px)/1.3 system-ui,
    sans-serif;
  letter-spacing: -0.055em;
  margin: 9px 0;
}
.examples {
  margin-bottom: auto;
}
.examples a {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  padding: 2px 0;
}
.overviewCard button {
  border: 0;
  border-top: 1px solid var(--rule);
  background: transparent;
  color: var(--accent);
  border-radius: 0;
  text-align: left;
  padding: 6px 0 0;
  margin-top: 8px;
  font-size: 12px;
}
.station {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(205px, 1fr);
  grid-template-rows: auto 1fr;
  gap: 16px 22px;
  align-items: start;
}
.station .display {
  position: sticky;
  top: 0;
  grid-row: 1 / 3;
  grid-column: 1;
  background: var(--bg);
}
.station .rail,
.station .sheets {
  grid-column: 2;
  margin: 0;
}
.station .rail {
  padding-top: 12px;
}
.station h1 {
  font:
    600 clamp(22px, 2vw, 34px)/1.22 Georgia,
    AppleMyungjo,
    serif;
  margin: 6px 0 18px;
  letter-spacing: -0.065em;
}
.station .sheets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.station .sheet {
  padding: 12px;
}
.station .strip {
  align-items: flex-start;
}
.station .strip span {
  white-space: nowrap;
}
@media (min-width: 901px) and (max-height: 800px) {
  .hero .scene {
    max-width: 420px;
    justify-self: end;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero p {
    font-size: 13px;
  }
  .overviewCard {
    padding: 9px;
  }
  .sectionhead {
    margin: 12px 0 8px;
  }
  .cardhead h3 {
    margin: 6px 0;
  }
}
@media (max-width: 900px) {
  .workspace {
    display: block;
    height: auto;
  }
  .mast {
    position: sticky;
  }
  #menu {
    display: none;
  }
  #menu.open {
    display: block;
    position: fixed;
    z-index: 12;
    inset: var(--top) 0 0;
    padding: 18px max(20px, 6vw);
  }
  #menuClose,
  #menuToggle {
    display: inline-block;
  }
  #work,
  #home {
    overflow: visible;
  }
  .station {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .station > * {
    width: 100%;
  }
  .station .display {
    position: static;
  }
  .station .rail {
    border-top: 1px solid var(--rule);
  }
  .station .sheets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .station .photo {
    margin: auto;
    max-width: 680px;
  }
  .hero h1 {
    font-size: 34px;
  }
}
@media (max-width: 620px) {
  #overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .overviewCard {
    padding: 9px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero h1 br,
  .hero p br {
    display: none;
  }
  .hero .scene {
    max-height: 150px;
    max-width: 285px;
    justify-self: center;
  }
  .sectionhead {
    margin-top: 14px;
  }
  .station .sheets {
    grid-template-columns: 1fr;
  }
  .headtools {
    gap: 4px;
  }
  .headtools button {
    padding: 5px 8px;
  }
  .mast .brand {
    font-size: 20px;
  }
  .examples a {
    font-size: 12px;
  }
  .cardhead {
    gap: 3px;
  }
  .cardhead small {
    white-space: nowrap;
  }
}
body:not(.night) {
  --bg: #fef9f0;
  --paper: #f8f3ea;
  --ink: #1d1c16;
  --accent: #1b3b2b;
  --rule: #c1c8c2;
}
.cardhead h3 {
  font-family: Georgia, AppleMyungjo, serif;
}
.overviewCard .sample {
  border-radius: 2px;
}
.instruments {
  min-width: 0;
}
.instruments .sheets {
  margin-top: 14px;
}
@media (min-width: 901px) {
  #work {
    overflow: hidden;
  }
  .station {
    height: 100%;
    grid-template-rows: minmax(0, 1fr);
  }
  .station .display {
    position: static;
    grid-row: 1;
  }
  .instruments {
    align-self: stretch;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 4px;
  }
}
@media (min-width: 901px) {
  .display {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .display .photo,
  .display .strip {
    flex: none;
  }
  .underScreen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
    min-height: 0;
    overflow: auto;
  }
  .underScreen .sheet {
    height: 100%;
  }
  .display .photo {
    width: min(100%, calc((100dvh - 190px) * 1.895));
    align-self: center;
  }
}
@media (max-width: 900px) {
  .underScreen {
    display: none;
  }
}
