:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #343b32;
  background: #fafafa;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 20% 25%, #fff, transparent 65%),
    #f8f8f8;
}

#paper, #oil {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#oil {
  opacity: 0;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 32px clamp(24px, 5vw, 80px) 24px;
}

.announcement-caption {
  margin: 20px 0 0;
  color: #000;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 32px;
  border-bottom: 1px solid #e0e0dc;
}

.site-header a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: inherit;
  font-size: 14px;
  text-decoration: none;
  text-underline-offset: 6px;
}

.site-brand {
  font-weight: 500;
}

.site-header a:hover, .site-header a[aria-current] {
  text-decoration: underline;
}

.site-header a:focus-visible, .blog-entry a:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 4px;
}

.blog-main {
  display: block;
  width: 100%;
  max-width: 960px;
  min-width: 0;
  margin: 0 auto;
  padding: 16px 0 64px;
}

.blog-main h1 {
  margin: 12px 0 36px;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 500;
}

.blog-entries {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-entry {
  max-width: 720px;
  padding: 24px 0;
  border-top: 1px solid #e0e0dc;
  line-height: 1.7;
}

.blog-entry h2 {
  margin: 8px 0 12px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.blog-entry a {
  color: inherit;
  text-underline-offset: 4px;
}

.blog-date {
  margin: 0;
  color: #707070;
  font-size: 13px;
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 0 64px;
}

.announcement { text-align: center; }

.announcement-title {
  margin: 0;
}

.announcement-description {
  max-width: 440px;
  margin: 20px auto 0;
  font-size: 15px;
  line-height: 1.7;
}

.artwork {
  width: clamp(128px, 15vw, 172px);
  margin: 0 auto;
}

.artwork svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.wordmark {
  display: block;
  width: min(320px, 68vw);
  height: auto;
  margin: 28px auto 0;
}

.legal-notice {
  max-width: 760px;
  margin: 0 auto;
  color: #707070;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.beta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 28px;
  padding: 8px 16px;
  border: 1px solid #d5d9d3;
  border-radius: 14px;
  background: #fafafa;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.beta-link img {
  display: block;
  flex-shrink: 0;
}

.beta-link:hover {
  border-color: #707070;
  background: #fff;
}

.beta-link:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 4px;
}

.beta-platforms {
  margin: 10px 0 0;
  color: #707070;
  font-size: 12px;
  line-height: 1.6;
}

.demo-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  font-size: 12px;
}

.demo-links a, .mixing-demo a:not(.beta-link) {
  color: inherit;
  text-underline-offset: 4px;
}

.demo-links a:focus-visible, .mixing-demo a:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 4px;
}

.demo-main {
  display: block;
  min-width: 0;
  padding: 16px 0 64px;
}

.mixing-demo {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.mixing-demo h1 {
  margin: 12px 0;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.mixing-intro, .mixing-science, .mixing-comparison > p {
  max-width: 720px;
  line-height: 1.7;
}

.mixing-science {
  margin-top: 48px;
}

.mixing-science h2, .mixing-comparison h2 {
  margin: 36px 0 12px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.mixing-science h3, .mixing-comparison h3 {
  margin-top: 32px;
  font-size: 18px;
  font-weight: 500;
}

.mixing-note {
  color: #707070;
  font-size: 13px;
}

.spectral-table {
  overflow-x: auto;
}

.spectral-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.spectral-table caption {
  padding-bottom: 12px;
  text-align: left;
}

.spectral-table th, .spectral-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0dc;
  text-align: left;
}

.spectral-table th {
  font-weight: 500;
}

.mixing-science math, .mixing-comparison math {
  margin: 24px 0;
  padding: 6px 0;
  overflow-x: auto;
  font-size: 1.15em;
}

.mixing-calculation {
  padding-left: 24px;
  overflow-wrap: anywhere;
}

.mixing-calculation li {
  margin: 12px 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.comparison-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e0e0dc;
  border-radius: 12px;
  background: #fafafa;
}

.comparison-card h3 {
  margin: 0 0 24px;
}

.comparison-card figure {
  margin: 20px 0 0;
}

.comparison-card figcaption {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.comparison-card img {
  display: block;
  width: 100%;
  height: 64px;
  border-radius: 8px;
}

.comparison-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 0;
  color: #707070;
  font-size: 12px;
}

@media (max-width: 720px) {
  .comparison-grid { grid-template-columns: 1fr; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mixing-demo figure {
  margin: 28px 0 24px;
}

.mixing-demo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border: 1px solid #e0e0dc;
  border-radius: 12px;
  background: #fafafa;
}

@media (max-width: 540px) {
  .page { padding-top: 22px; padding-bottom: 22px; }
  main { padding: 44px 0; }
  .announcement-caption { font-size: 8px; letter-spacing: 1.6px; }
}
