/* Switzer by Indian Type Foundry, bundled under the Fontshare Free Font License. */
@font-face {
  font-family: Switzer;
  src: url("/switzer-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Cutwake Display";
  src: url("/cutwake-display.woff") format("woff");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0020, U+002D-002E, U+0041-005A;
}

:root {
  color-scheme: dark;
  --sheet: #0a0a0c;
  --rule: #303038;
  --ink: #f4f4f6;
  --muted: #a8a8b2;
  --nav-surface: #121216;
  --field: #7b7b86;
  --raised: #121216;
  --delivery: #070709;
  --accent: #f4f4f6;
  --action: #f59e0b;
  --action-hover: #fbbf44;
  --action-ink: #171004;
  --button-fill: linear-gradient(#232329, #17171c);
  --chassis-shadow: inset 0 1px #ffffff0b, 0 3px 8px #00000028;
  --button-shadow: inset 0 1px #ffffff25, 0 1px 2px #0000005c;
  --well-shadow: inset 0 1px 4px #00000066;
  --gutter: clamp(21px, 5.1vw, 86px);
  --display: "Cutwake Display", Switzer, system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-family: Switzer, system-ui, sans-serif;
  background: var(--sheet);
  color: var(--ink);
}

:root[data-theme="light"] {
  color-scheme: light;
  --sheet: #f2f2f4;
  --rule: #d4d4dc;
  --ink: #0d0d0f;
  --muted: #54545b;
  --nav-surface: #ffffff;
  --field: #6d6d78;
  --raised: #ffffff;
  --delivery: #eaeaef;
  --accent: #0d0d0f;
  --action: #985307;
  --action-hover: #794207;
  --action-ink: #ffffff;
  --button-fill: linear-gradient(#ffffff, #f3f3f6);
  --chassis-shadow: inset 0 1px #ffffffff, 0 3px 8px #1c1c2710;
  --button-shadow: inset 0 1px #ffffff25, 0 1px 2px #1c1c2729;
  --well-shadow: inset 0 1px 4px #1c1c2715;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
:where(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.frame { width: min(1440px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.site-head { background: var(--nav-surface); color: var(--ink); border-bottom: 1px solid var(--rule); }
.site-head nav, .nav-links { display: flex; align-items: center; }
.site-head nav { min-height: 72px; justify-content: space-between; gap: 12px; }
.nav-links { gap: clamp(14px, 2.6vw, 36px); }
.site-head a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 610; }
.site-head a:hover { color: var(--accent); }
.site-head .wordmark { font: 800 34px/1 var(--display); letter-spacing: .027em; text-transform: uppercase; }
.nav-studio {
  padding-inline: 13px;
  gap: 10px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background-color: var(--raised);
  background-image: var(--button-fill);
  box-shadow: var(--button-shadow);
}
.site-head .nav-studio:hover { color: var(--accent); border-color: var(--accent); }

.primary {
  display: inline-flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
  padding-inline: 18px;
  border-radius: 3px;
  background: var(--action);
  box-shadow: var(--button-shadow);
  color: var(--action-ink);
  font-size: 15px;
  font-weight: 670;
}
.primary:hover { background: var(--action-hover); }
.arrow { position: relative; width: 13px; height: 12px; flex: none; }
.arrow::before, .arrow::after { content: ""; position: absolute; }
.arrow::before { right: 0; top: 2.5px; width: 6px; height: 6px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.arrow::after { right: 0; top: 6px; width: 12px; height: 1.5px; background: currentColor; }

.product-page .site-head nav { min-height: 73px; }
.product-page .wordmark { font-size: 36px; }
.skip-link {
  position: fixed;
  inset-block-start: 9px;
  inset-inline-start: var(--gutter);
  z-index: 2;
  max-width: calc(100% - 2 * var(--gutter));
  padding: 10px 14px;
  overflow: hidden;
  overflow-wrap: anywhere;
  clip-path: inset(50%);
  background: var(--raised);
  color: var(--ink);
}
.skip-link:focus { clip-path: none; }

.introduction {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(23px, 3.4vw, 56px);
  padding-block: clamp(61px, 7.4vw, 119px) clamp(54px, 6.6vw, 102px);
}
.intro-copy h1 {
  font: 800 clamp(66px, 7.62vw, 125px)/.83 var(--display);
  text-transform: uppercase;
  letter-spacing: -.012em;
}
.intro-copy h1 span { display: block; }
.intro-copy h1 span + span { margin-top: .055em; }
.intro-copy > p {
  max-width: 30ch;
  margin-top: clamp(24px, 2.5vw, 39px);
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.42;
}
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 19px; margin-top: 22px; }
.text-link, .workflow-link { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; width: fit-content; font-size: 14px; line-height: 1.28; font-weight: 640; }
.text-link { color: var(--ink); }
.text-link:hover, .workflow-link:hover, .private-note:hover { text-decoration: underline; text-underline-offset: 4px; }
.private-note { display: inline-flex; align-items: center; min-height: 36px; margin-top: 9px; font-size: 13px; color: var(--muted); }

.studio-screenshot {
  min-width: 0;
}
.studio-image {
  display: block;
  padding: clamp(4px, .6vw, 10px);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--raised);
  box-shadow: var(--chassis-shadow);
}
.studio-image:hover { border-color: var(--field); }
.studio-screenshot img { display: block; width: 100%; height: auto; border-radius: 2px; }
.studio-screenshot figcaption, .audition-credit {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.audition-credit { margin: 0; padding: 0 12px 10px; }
.audition-credit a { text-decoration: underline; text-underline-offset: 3px; }

.audition {
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin-top: 10px;
  background: var(--raised);
  box-shadow: var(--chassis-shadow);
}
.audition-deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  background: var(--delivery);
  box-shadow: var(--well-shadow);
}
.audition button {
  min-height: 42px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background-color: var(--raised);
  background-image: var(--button-fill);
  box-shadow: var(--button-shadow);
  color: var(--ink);
  padding: 4px 12px;
  font: 630 13px/1.12 Switzer, system-ui, sans-serif;
  cursor: pointer;
  transition: border-color 110ms cubic-bezier(.2, .7, .2, 1);
}
.audition button:hover { border-color: var(--field); }
.audition button:focus-visible { position: relative; z-index: 1; }
.audition .audition-play {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  background: var(--action);
  color: var(--action-ink);
  border-color: var(--action);
}
.audition .audition-play:hover { background: var(--action-hover); border-color: var(--action-hover); }
.audition-play > span:first-child {
  width: 0;
  height: 0;
  border-block: 5px solid transparent;
  border-inline-start: 8px solid currentColor;
}
.audition[data-playing] .audition-play > span:first-child {
  width: 8px;
  height: 9px;
  border: 0;
  border-inline: 2.5px solid currentColor;
}
.audition-versions { display: inline-flex; }
.audition-versions button + button { margin-inline-start: -1px; }
.audition-versions button[aria-pressed="true"] {
  position: relative;
  z-index: 1;
  border-color: var(--field);
  background: var(--delivery);
  box-shadow: var(--well-shadow);
}
#audition-time {
  justify-self: end;
  color: var(--muted);
  white-space: nowrap;
  font: 520 11px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}
#audition-position {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 3px;
  accent-color: var(--ink);
}
.audition-status { padding: 0 12px 10px; color: var(--muted); font-size: 13px; }
.audition-status:empty { display: none; }

.workflow { padding-block: clamp(29px, 4.2vw, 57px) clamp(53px, 6vw, 88px); border-top: 1px solid var(--rule); }
.workflow h2, .delivery-copy h2 {
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 645;
  line-height: 1.02;
  letter-spacing: -.06em;
  text-wrap: pretty;
}
.workflow-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 23px;
  border-block: 1px solid var(--rule);
}
.workflow-options article {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 25px clamp(17px, 2.3vw, 34px) 17px;
}
.workflow-options article:first-child { padding-inline-start: 0; }
.workflow-options article + article { border-inline-start: 1px solid var(--rule); }
.workflow-options h3, .package-summary h3 { font-size: clamp(19px, 1.75vw, 25px); letter-spacing: -.037em; line-height: 1.17; font-weight: 655; }
.workflow-options p, .delivery-copy p { margin-top: 12px; max-width: 33ch; color: var(--muted); font-size: 15px; line-height: 1.5; }
.workflow-link { color: var(--accent); }
.workflow-options .workflow-link { margin-top: 17px; }

.delivery-section {
  background: var(--delivery);
  color: var(--ink);
  border-block: 1px solid var(--rule);
  padding-block: clamp(42px, 6.1vw, 88px);
}
.delivery-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(26px, 7vw, 110px); align-items: center; }
.delivery-copy h2 { max-width: 13ch; }
.delivery-copy p { max-width: 39ch; margin-top: 17px; font-size: 17px; }
.delivery-copy .workflow-link { margin-top: 8px; }
.package-summary {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: var(--chassis-shadow);
  padding: clamp(19px, 2.2vw, 32px);
}
.package-summary h3 { margin-bottom: 13px; }
.package-summary dl > div {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: 4px 15px;
  border-top: 1px solid var(--rule);
  padding-block: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.package-summary dl > div:last-child { padding-bottom: 2px; }
.package-summary dt { font-weight: 660; }
.package-summary dd { color: var(--muted); }

.verification {
  display: grid;
  grid-template-columns: minmax(0, .6fr) minmax(0, 1fr);
  gap: clamp(14px, 3.5vw, 48px);
  padding-block: clamp(30px, 5.25vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.verification h2 { font-size: clamp(25px, 3vw, 38px); font-weight: 645; line-height: 1.08; letter-spacing: -.045em; }
.verification p { max-width: 65ch; color: var(--muted); font-size: 15px; line-height: 1.6; }
.verification p + p { margin-top: 10px; }
.verification p strong { color: var(--ink); }
.verification-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 9px; }

.product-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 20px;
  padding-block: 14px;
  min-height: 76px;
  color: var(--muted);
  font-size: 13px;
}
.product-footer p { margin-block: 5px; }
.product-footer nav { display: flex; flex-wrap: wrap; gap: 2px 20px; align-items: center; }
.product-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.product-footer nav a { color: var(--ink); }
.product-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.appearance { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.appearance select { color: var(--ink); background: var(--raised); border: 1px solid var(--field); border-radius: 4px; box-shadow: var(--button-shadow); padding: 6px; font: inherit; min-height: 36px; }
.appearance select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.changelog { max-width: 940px; padding-block: clamp(28px, 5vw, 68px); }
.changelog h1 { margin-bottom: clamp(24px, 4vw, 42px); font: 800 clamp(36px, 6.5vw, 83px)/.99 var(--display); text-transform: uppercase; }
.release-entry { display: grid; grid-template-columns: minmax(135px, .29fr) minmax(0, 1fr); gap: 15px 24px; padding-block: 23px; border-top: 1px solid var(--rule); }
.release-entry header h2 { font: 600 24px/1.15 var(--mono); }
.release-entry time { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; }
.release-entry h3 { margin: 0 0 5px; font-size: 15px; }
.release-entry ul { margin: 0; padding-inline-start: 18px; color: var(--muted); line-height: 1.55; }
.release-entry li + li { margin-top: 5px; }
.release-entry ul + h3 { margin-top: 16px; }

@media (max-width: 960px) {
  .introduction { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .intro-copy h1 { font-size: clamp(66px, 13vw, 110px); }
  .intro-copy > p { max-width: 38ch; }
  .studio-screenshot { width: 100%; }
}
@media (max-width: 670px) {
  .introduction { padding-block: 42px 35px; }
  .intro-copy > p { margin-top: 19px; }
  .intro-actions { margin-top: 18px; }
  .private-note { margin-top: 5px; }
  .workflow-options { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .workflow-options article { padding: 17px 0 9px; }
  .workflow-options article + article { border-inline-start: 0; border-block-start: 1px solid var(--rule); }
  .workflow-options .workflow-link { margin-top: 5px; }
  .delivery-layout { grid-template-columns: minmax(0, 1fr); }
  .verification { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .site-head nav, .product-page .site-head nav { min-height: 60px; }
  .site-head .wordmark, .product-page .wordmark { font-size: 28px; }
  .site-head a { font-size: 13px; }
  .nav-studio { padding-inline: 9px; }
  .nav-studio .arrow, .product-page .nav-links a[href^="#"] { display: none; }
  .nav-links { gap: 10px; }
  .audition-deck { gap: 6px; padding: 8px; }
  .audition button { min-height: 44px; padding-inline: 9px; }
  .audition .audition-play { gap: 6px; }
  #audition-time { font-size: 11px; }
  .package-summary dl > div, .release-entry { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .intro-copy h1 { font-size: clamp(54px, 18.3vw, 66px); }
  .audition-deck { grid-template-columns: minmax(0, 1fr) auto; }
  #audition-time { grid-column: 2; }
  #audition-position { grid-column: 1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .audition button { transition: none; }
}
