@import "./primitives.css";

@font-face { font-family: Marcellus; src: url("./marcellus.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Source Sans 3: ascent and descent rebalanced (same total) so capitals sit at the middle of their line, as native inputs and selects place them */
@font-face { font-family: "Source Sans 3"; src: url("./source-sans-3.woff2") format("woff2"); font-weight: 200 900; ascent-override: 105%; descent-override: 37.4%; line-gap-override: 0%; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("./source-sans-3-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; ascent-override: 105%; descent-override: 37.4%; line-gap-override: 0%; font-display: swap; }

@font-face { font-family: "Noto Music"; src: url("./noto-music.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Accidentals"; src: url("./noto-sans-symbols.woff2") format("woff2"); unicode-range: U+266D-266F; size-adjust: 135%; ascent-override: 40%; descent-override: 10%; line-gap-override: 0%; font-display: swap; }
@font-face { font-family: "Noto Sans Symbols"; src: url("./noto-sans-symbols.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light dark;
  --gap-sub: 2px;
  --gap-label: var(--gap-xs);
  --gap-head: var(--gap-sm);
  --gap-card: var(--gap-row);
  --gap-set: var(--gap-inline);
  --gap-field: var(--gap);
  --gap-group: 18px;
  --gap-room: 20px;
  --gap-room-x: 22px;
  --title-ink-lift: 1px; /* extra room above a dialog title, so the room to the ink is equal top and bottom; see primitives.css */
  --gap-title: 24px; /* from the title of a window or panel to its first field, measured to the letters */
  --ctl-py: 7px;
  --ctl-px: 13px;
  --r-sm: var(--ctl-py);
  --r-ctl: var(--radius-small);
  --r-card: 12px;
  --r-lg: 14px;
  --r-win: 18px;
  --field-label-size: 13px;
  --field-pad-x: 9px;
  --chev-x: calc(var(--field-pad-x) + var(--hairline));
  --chev-s: 14px;
  --chev-h: 8px;
  --ctl: 34px; /* the height of a control in Portal, its dialogs, and the Peruser admin; --control on touch */
  --action-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.14);
  --dialog-width: 35rem;
  --dialog-inset: var(--gap-set);
  --dialog-backdrop: rgb(0 0 0 / 0.45);
  --muted: rgb(110, 110, 115);
  --night: rgb(17, 17, 17);
  --violet: rgb(143, 69, 240);
  --cyan: rgb(76, 217, 236);
  --mint: rgb(94, 243, 188);
  --fill: rgba(255, 255, 255, 0.42);
  --edge: rgba(255, 255, 255, 0.7);
  --bad: #c0262d;
  --placeholder: var(--muted);
  --placeholder-soft: rgba(110, 110, 115, 0.85);
  --selection: color-mix(in srgb, var(--violet) 18%, transparent);
  --hover-tint: rgba(29, 29, 31, 0.06);
  --heading-font: Marcellus, Georgia, serif;
  --body-font: "Accidentals", "Source Sans 3", "Noto Music", "Noto Sans Symbols", system-ui, sans-serif;
  --studio-body-line: 21px;
  --studio-meta-line: 22px;
  --accent: var(--site-accent, var(--violet));
  /* Glass panels (the contact form, and any panel that floats over color) */
  --glass-radius: 24px;
  --glass-backdrop: var(--paper);
  --glass-fill: linear-gradient(155deg, rgba(255, 255, 255, 0.56) 0%, rgba(238, 241, 248, 0.34) 48%, rgba(212, 218, 234, 0.30) 100%);
  --glass-sheen: linear-gradient(155deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 36%);
  --glass-edge: inset 0 1.5px 0 rgba(255, 255, 255, 0.98), inset 1.5px 0 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.78), inset 0 -1.5px 2px rgba(88, 100, 132, 0.30), inset 0 18px 30px -22px rgba(255, 255, 255, 0.92), inset 0 -26px 40px -30px rgba(96, 108, 140, 0.28), 0 0 0 1px rgba(80, 92, 124, 0.22), 0 2px 6px rgba(40, 52, 84, 0.08), 0 24px 48px -22px rgba(40, 52, 84, 0.32);
  --glass-blur: blur(18px) saturate(135%);
  --glass-well: rgba(255, 255, 255, 0.48);
  --glass-well-edge: inset 0 1px 2px rgba(60, 72, 104, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.68), 0 1px 0 rgba(255, 255, 255, 0.82);
  --glass-glow-opacity: 1;
  --glass-pad: var(--gap-lg);
  --glass-glow-reach: 28px;
  --spring-jelly: linear(0, 0.34 8%, 0.82 18%, 1.12 28%, 1.2 34%, 1.14 41%, 0.98 52%, 0.94 58%, 0.97 68%, 1.01 80%, 1); /* the wobble a title makes when the mouse leaves */
  --jelly-grow: 1.03;
  --link-hover-time: 200ms;
  --list-glide-ms: 320;
  --list-enter-ms: 260;
  --list-enter-offset: 8px;
  /* Scroll-reveal entrances shared across pages */
  --reveal-ms: 560;
  --reveal-stagger-ms: 45;
  --reveal-heading-y: 14px;
  --reveal-body-y: 10px;
  --reveal-card-y: 16px;
  --reveal-feature-y: 20px;
  --reveal-row-y: 12px;
  --folder-tip: -34deg;
  --wave-h-recording: 84px;
  --wave-center: 0.56; /* where the eye reads the waveform's center; the play button sits on it (the bars stand on --wave-mid) */
  --gap-piece-start: var(--gap-body);
  --gutter: var(--gap-xl);
  --button-min: clamp(144px, 13.3vw, 170px); /* the recording buttons */
  --recording-control: var(--control);
  --recording-gap: var(--gap-control);
  --recording-links-gap: var(--gap-md);
  --recording-links-inset: 70px;
  --recording-inset-start: var(--gap);
  --recording-inset-end: 22px;
  --recording-inset-top: var(--gap);
  --recording-inset-bottom: 18px;
  --recording-edge: rgba(255, 255, 255, 0.16);
  --recording-fill: linear-gradient(180deg, rgba(40, 26, 90, 0.22) 0%, rgba(24, 16, 56, 0.36) 100%);
  --recording-sheen: linear-gradient(155deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 34%);
  --recording-shadow: inset 0 var(--hairline) 0 rgba(255, 255, 255, 0.36), inset var(--hairline) 0 0 rgba(255, 255, 255, 0.16), inset 0 0 0 var(--hairline) var(--recording-edge), inset 0 -1px 2px rgba(10, 6, 28, 0.28), 0 16px 36px -12px rgba(17, 10, 40, 0.38);
  --recording-blur: blur(20px) saturate(145%);
  --order-fill: rgba(29, 29, 31, 0.26);
  --order-edge: rgba(255, 255, 255, 0.44);
  --order-blur: blur(10px);
  --credit-size: var(--text-default);
  --credit-leading: 1.3;
  --gap-meta: var(--gap-row);
  --meta-list-size: 22px;
  --gap-piece-end: 81px; /* below the last section of a piece page */
  --gap-section: 78px; /* between the program note row and the sections after it */
  --on-white: rgb(29, 29, 31); /* text on the white buttons, in light and dark */
  --on-color-muted: rgba(255, 255, 255, 0.92);
  --credit-ink: var(--on-color-muted);
  --footer-ink: rgba(255, 255, 255, 0.55);
  --back-ink: rgba(255, 255, 255, 0.72);
  --back-arrow-ink: rgba(255, 255, 255, 0.8);
  --details-w: clamp(320px, 36.5%, 420px); /* the piece's details card */
  --details-edge: var(--gap-sm); /* above the first and below the last entry of the details card */
  --details-entry: 22px; /* above and below each entry */
  --pill-pad-y: var(--gap-xs);
  --pill-pad-x: var(--gap-inline);
  --details-offset: var(--gap-lg); /* how far the card sits below the top of the program note */
  --meta-start: 5px;
  --meta-bottom: 14px;
  --icon-control-compact: 24px; /* compact round buttons */
  --menu-bar-width: 22px;
  --menu-bar-thickness: 2px;
  --copy-icon: 12px;
  --arrow-size: var(--gap);
  --back-arrow-gap: var(--gap-sm);
  --back-arrow-width: var(--gap-row);
  --chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --select-icon: 16px;
  --select-pad-end: calc(var(--gap-inline) + var(--select-icon) + var(--gap-sm));
  --work-row-end: 28px; /* below each row of the works list */
  --video-play-w: 68px;
  --video-play-h: 48px;
  --arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-7-7 7 7-7 7'/%3E%3C/svg%3E");
  --message-min-height: 168px;
  /* Form fields (the contact form, and any form Portal draws) */
  --filter-height: 45px; /* odd, so native text in the search field centers on whole pixels in every browser */
  --field-height: 52px;
  --form-field-pad-x: 16px;
  --field-pad-y: 14px;
  --field-border: var(--hairline) solid var(--line);
  --field-gap: var(--gap-sm); /* label to field */
  --form-gap: 18px; /* between fields */
  --form-width: clamp(460px, 54%, 620px);
  --form-column-gap: clamp(40px, 5.625vw, 72px);
  --form-pad: 36px;
  --form-submit-pad-x: 28px;
  --button-pad-y: 15px;
  --button-pad-x: 24px;
  --button-gap: 12px;
  /* About page */
  --portrait-width: clamp(280px, 40%, 460px);
  --portrait-ratio: 23 / 32;
  --portrait-focus: 50% 80%;
  --bio-column-gap: clamp(40px, 6.25vw, 80px);
  --bio-gap: 18px; /* between paragraphs */
  --bio-lead-gap: 72px;
  --bio-end-gap: 90px;
  --portrait-align: start;
  --bio-heading-top: 3px;
  --bio-heading-gap: 10px; /* extra space under the heading */
  --bio-actions-gap: 28px; /* extra space above the buttons */
  --bio-stacked-gap: 58px; /* text to portrait when stacked */
  --lead-gap: 72px; /* above the first content of Contact and About */
  --viewport-full: 100vh;
  --viewport-chrome-inset: 0px;
  --home-min-height: 640px;
  --home-hero-content: 1000px;
  --home-padding-top: 120px;
  --home-padding-bottom: 96px;
  --home-title-gap: 22px;
  --frame-inset: var(--gutter);
  --page-hero-inset: var(--gap-xl);
  --footer-padding: 40px;
  --header: 106px;
  --swipe: cubic-bezier(0.32, 1.12, 0.5, 1);
  --swipe-time: 0.52s;
  --header-scrolled: 72px;
  --header-inset: 8px; /* the logo and nav sit this far inside the content edge */
  --nav-gap: var(--gap-tight);
  --nav-pill-pad-x: var(--gap);
  --nav-pill-scale: 1.06;
  --spring-pill: cubic-bezier(0.22, 1, 0.36, 1);
  --brand-scrolled-scale: 0.852; /* 23px / 27px when the header compacts on scroll */
  --header-pad-start: calc(var(--gutter) + var(--header-inset));
  --header-pad-end: calc(var(--gutter) + var(--header-inset));
  --drawer-pull: 0px; /* the open menu pulls the bar and its items in by this much on each side */
  --header-fill: rgba(255, 255, 255, 0.1);
  --header-fill-scrolled: rgba(29, 20, 62, 0.64);
  --header-fill-open: rgba(26, 20, 48, 0.86);
  --header-blur: 2px;
  --header-shadow: 0 12px 12px -4px rgba(17, 17, 17, 0.24);
  --header-time: 0.28s;
  --header-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dock-scale: 0.85; /* the capsule is the full-size design at this fraction */
  --dock-height: calc(40px * var(--dock-scale));
  --dock-play: calc(24px * var(--dock-scale));
  --dock-max: 300px;
  --dock-gap-below: 8px;
  --dock-rise: 10px;
  --dock-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 55%), linear-gradient(rgba(34, 24, 72, 0.66) 0%, rgba(24, 16, 52, 0.6) 100%);
  --dock-rim: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 -1px 2px rgba(0, 0, 0, 0.22);
  --hero-top: 148px;
  --hero-bottom: 128px;
  --hero-min-height: 0px;
  --page-hero-height: 460px;
  --page-hero-top: 128px;
  --page-hero-bottom: 104px;
  --edge-angle: 178deg;
  --edge-stop: 90%;
  --piece-edge-stop: 90%;
  --hero-violet: rgb(143, 69, 240); /* fixed in light and dark; a site sets its own hero color in site.css */
  --hero-purple: rgb(149, 73, 248);
  --hero-cyan: rgb(76, 217, 236);
  --hero-mint: rgb(94, 243, 188);
  --contour-steps: 6;
  --contour-angle: 0;
  --contour-warp: 0.35;
  --contour-scale: 0.6;
  --contour-speed: 0.2;
  --contour-seed: 1;
  --content: 1152px; /* the header and every page share this width, so their edges line up */
  --drag-row: 56px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --muted: rgb(152, 152, 159);
    --violet: rgb(179, 139, 255);
    --bad: #ff8a8f;
    --placeholder-soft: rgba(152, 152, 159, 0.85);
    --selection: color-mix(in srgb, var(--violet) 32%, transparent);
    --hover-tint: rgba(255, 255, 255, 0.08);
    --glass-fill: linear-gradient(160deg, color-mix(in srgb, var(--paper) 44%, transparent) 0%, color-mix(in srgb, var(--paper-alt) 26%, transparent) 100%);
    --glass-sheen: linear-gradient(160deg, rgba(192, 192, 193, 0.22) 0%, transparent 30%);
    --glass-edge: inset 0 1px 0 rgba(192, 192, 193, 0.7), inset 0 -1px 0 rgba(192, 192, 193, 0.18), inset 0 0 0 1px rgba(192, 192, 193, 0.3), 0 1px 2px rgba(0, 0, 0, 0.06), 0 22px 50px -22px rgba(64, 38, 140, 0.38);
    --glass-blur: blur(26px) saturate(180%);
    --glass-well: rgba(44, 44, 46, 0.55);
    --glass-well-edge: inset 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  }
}

.type-display { font-family: var(--heading-font); font-style: normal; font-weight: 400; font-size: var(--style-display-size, 100px); letter-spacing: 0em; line-height: var(--style-display-leading, 1em); text-wrap: balance; }
.type-heading-2 { font-family: var(--heading-font); font-style: normal; font-weight: 400; font-size: var(--style-heading-2-size, 34px); letter-spacing: 0em; line-height: var(--style-heading-leading, 1.26em); }
.type-heading-3 { font-family: var(--heading-font); font-style: normal; font-weight: 400; font-size: var(--style-heading-3-size, 24px); line-height: var(--style-heading-leading, 1.26em); }
.type-lead { font-family: var(--body-font); font-style: normal; font-weight: 400; font-size: var(--style-lead-size, 22px); line-height: var(--style-lead-leading, 1.4em); text-wrap: balance; }
.type-pull-quote { font-family: var(--heading-font); font-style: normal; font-weight: 400; font-size: 22px; line-height: 1.4em; }
.type-body { font-family: var(--body-font); font-style: normal; font-weight: 400; font-size: var(--style-body-size, 18px); line-height: var(--style-body-leading, 1.65em); }
.type-meta { font-family: var(--body-font); font-style: normal; font-weight: 500; font-size: var(--text-default); letter-spacing: 0.01em; line-height: var(--text-leading); }
.type-label { font-family: var(--body-font); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: 0.1em; line-height: 1.2em; }
.type-nav-link { font-family: var(--body-font); font-style: normal; font-weight: 500; font-size: 16px; line-height: 1em; }
.type-logo { font-family: var(--heading-font); font-style: normal; font-weight: 400; font-size: var(--style-logo-size, 27px); letter-spacing: 0em; line-height: 1em; }
.type-button { font-family: var(--body-font); font-style: normal; font-weight: 600; font-size: var(--text-default); letter-spacing: 0.01em; line-height: 1em; }
.type-body-small { font-family: var(--body-font); font-style: normal; font-weight: 400; line-height: 1.55em; }
.type-nav-pill { font-family: var(--body-font); font-style: normal; font-weight: 500; font-size: 18px; line-height: 40px; }
.type-cta-label { font-family: var(--body-font); font-style: normal; font-weight: 600; font-size: var(--text-default); letter-spacing: 0.01em; line-height: 44px; }
.type-form-label { font-family: var(--body-font); font-style: normal; font-weight: 500; font-size: var(--text-small); line-height: 1.3em; }
.type-logo-small { font-family: var(--heading-font); font-style: normal; font-weight: 400; font-size: 23px; line-height: 1em; }

@media (max-width: 1199.98px) {
  :root { --meta-start: 4px; --meta-list-size: 20px; }
  :root {
    --gutter: 40px;
    --bio-lead-gap: 64px;
    --bio-end-gap: 78px;
    --portrait-align: center;
    --bio-heading-top: 0px;
    --gap-piece-start: var(--gap-xl);
    --gap-piece-end: 73px;
    --recording-links-gap: 20px;
    --credit-size: clamp(13px, 1.75vw, var(--text-default));
  }
  .type-display { font-size: var(--style-display-size, 76px); letter-spacing: 0em; line-height: var(--style-display-leading, 1em); }
  .type-heading-2 { font-size: var(--style-heading-2-size, 32px); letter-spacing: 0em; line-height: var(--style-heading-leading, 1.26em); }
  .type-heading-3 { font-size: var(--style-heading-3-size, 23px); line-height: var(--style-heading-leading, 1.26em); }
  .type-lead { font-size: var(--style-lead-size, 20px); line-height: var(--style-lead-leading, 1.4em); }
  .type-pull-quote { font-size: 21px; line-height: 1.4em; }
  .type-body { font-size: var(--style-body-size, 18px); line-height: var(--style-body-leading, 1.65em); }
  .type-logo { font-size: var(--style-logo-size, 26px); letter-spacing: 0em; line-height: 1em; }
  .type-logo-small { font-size: 22px; line-height: 1em; }
}

@media (max-width: 809.98px) {
  :root { --meta-start: 3px; --meta-bottom: 12px; --meta-list-size: clamp(14px, 3.85vw, 17px); --gap-meta: var(--gap-tight); }
  :root {
    --gap-piece-start: var(--gap-lg);
    --recording-inset-start: var(--gap-control);
    --recording-inset-end: var(--gap);
    --recording-inset-top: var(--gap-control);
    --recording-inset-bottom: var(--gap);
    --recording-links-gap: var(--gap-inline);
    --recording-links-inset: 0px;
    --credit-size: clamp(10.35px, 2.654vw, var(--text-small));
  }
  .type-display { font-size: var(--style-display-size, 50px); letter-spacing: 0em; line-height: var(--style-display-leading, 1em); }
  .type-heading-2 { font-size: var(--style-heading-2-size, 29px); letter-spacing: 0em; line-height: var(--style-heading-leading, 1.26em); }
  .type-heading-3 { font-size: var(--style-heading-3-size, 21px); line-height: var(--style-heading-leading, 1.26em); }
  .type-lead { font-size: var(--style-lead-size, 19px); line-height: var(--style-lead-leading, 1.4em); }
  .type-pull-quote { font-size: 19px; line-height: 1.4em; }
  .type-body { font-size: var(--style-body-size, 17px); line-height: var(--style-body-leading, 1.65em); }
  .type-logo { font-size: var(--style-logo-size, 23px); letter-spacing: 0em; line-height: 1em; }
  .type-logo-small { font-size: 21px; line-height: 1em; }
}

@media (max-width: 809.98px) {
  :root {
    --home-min-height: 560px;
    --home-padding-top: 112px;
    --home-padding-bottom: 88px;
    --frame-inset: var(--gap-md);
    --page-hero-inset: var(--frame-inset);
    --footer-padding: var(--gap-lg);
    --lead-gap: var(--gap-xl);
    --bio-lead-gap: 40px;
    --bio-end-gap: 52px;
    --form-pad: var(--gap-md);
    --header: 76px;
    --header-scrolled: 60px;
    --brand-scrolled-scale: 0.913; /* 21px / 23px on phone */
    --header-inset: 0px;
    --drawer-pull: 4px;
    --gutter: var(--gap-md);
    --hero-top: 120px;
    --hero-bottom: 96px;
    --hero-min-height: 480px;
    --page-hero-height: 320px;
    --page-hero-top: 104px;
    --page-hero-bottom: 72px;
    --edge-angle: 176deg;
    --piece-edge-stop: 92%;
    --gap-body: var(--gap-xl);
    --gap-column: var(--gap-xl);
    --gap-page: 72px;
    --gap-piece-end: 58px;
  }
}

/* Works list filters, and the spacing of a piece page's stacked sections */
:root {
  --filters-gap: var(--gap-control); /* between the works filters */
  --filter-search-min: 190px;
  --filter-min: 140px;
  --filter-sort-min: 210px;
  --gap-catalog-start: 64px; /* hero to the search row */
  --gap-details-stacked: 64px; /* program note to the details card when they stack */
  --back-hang: 14px; /* how far the "All works" arrow hangs left of the content edge */
}
@media (max-width: 1199.98px) {
  :root {
    --gap-catalog-start: 56px;
    --gap-section: 62px;
  }
}
@media (max-width: 1019.98px) {
  :root {
    --filter-search-min: 30%;
    --filter-min: 28%;
    --filter-sort-min: 44%;
  }
}
@media (max-width: 809.98px) {
  :root {
    --filter-search-min: 100%;
    --filter-min: clamp(92px, 28%, 180px);
    --filter-sort-min: 200px;
    --gap-catalog-start: 40px;
    --gap-section: 46px;
  }
}

@media (pointer: coarse) { :root { --ctl: var(--control); } }

/* Mobile Safari's floating bar renders live content past 100lvh; on desktop 100lvh equals 100svh so this adds nothing */
@supports (height: 100lvh) {
  :root {
    --viewport-full: calc(100lvh + min(64px, 2 * (100lvh - 100svh)));
    --viewport-chrome-inset: calc(var(--viewport-full) - 100svh);
  }
}
