/* Mater's website shares the app's type, spacing and interaction rules. */
:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --text: #2b2a27;
  --muted: #62615c;
  --line: #dcdcd5;
  --accent: #32684d;
  --accent-hover: #28553f;
  --on-accent: #ffffff;
  --focus: #32684d;
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-s: 13px;
  --text-m: 14px;
  --text-l: 15px;
  --text-xl: 17px;
  --text-2xl: 20px;
  --text-3xl: 24px;
  --text-4xl: 32px;
  --radius: 10px;
  --shadow: 0 12px 40px #2b2a2710;
  --spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --page-space: 48px;
  --hero-space: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #1b1d1a;
    --surface: #232622;
    --text: #f1f0eb;
    --muted: #b5b7ad;
    --line: #3e443c;
    --accent: #a8cfb7;
    --accent-hover: #c0dfca;
    --on-accent: #18291e;
    --focus: #a8cfb7;
    --shadow: 0 12px 40px #00000024;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #1b1d1a;
  --surface: #232622;
  --text: #f1f0eb;
  --muted: #b5b7ad;
  --line: #3e443c;
  --accent: #a8cfb7;
  --accent-hover: #c0dfca;
  --on-accent: #18291e;
  --focus: #a8cfb7;
  --shadow: 0 12px 40px #00000024;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
}
body {
  max-width: 1440px;
  margin: 0 auto;
  color: var(--text);
  font:
    var(--text-l)/1.6 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  padding: 0 var(--page-space);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:hover {
  color: var(--accent);
}
a:active,
button:active {
  transform: translateY(1px);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
  color: var(--muted);
}
.skip-link {
  position: absolute;
  transform: translateY(-200%);
  padding: 8px 12px;
  background: var(--surface);
}
.skip-link:focus {
  transform: translateY(0);
  z-index: 2;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-3xl);
  font-weight: 650;
  letter-spacing: -1px;
}
.wordmark img {
  display: block;
}
nav,
footer div {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav {
  font-size: var(--text-m);
}
.hero {
  text-align: center;
  padding: var(--hero-space) 0 48px;
}
h1 {
  font-size: var(--text-4xl);
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 550;
  transition:
    background-color 180ms var(--spring),
    transform 180ms var(--spring);
}
.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}
.text-link {
  font-size: var(--text-m);
}
.text-link span {
  margin-left: 4px;
}
.compatibility {
  color: var(--muted);
  font-size: var(--text-s);
  margin: 16px 0 0;
}
.beta-note {
  color: var(--muted);
  font-size: var(--text-xs);
  margin: 4px 0 0;
}
.product-view {
  max-width: 1040px;
  margin: 0 auto;
}
.product-view picture {
  display: block;
}
.product-view img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.essentials {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: var(--text-m);
  padding: 48px 0;
}
.essentials p {
  margin: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-s);
  padding: 24px 0 32px;
}
.theme-button {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.theme-button:hover {
  color: var(--accent);
}
.guide {
  max-width: 640px;
  margin: 64px auto;
}
.guide h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 32px 0 8px;
}
.guide p {
  margin: 8px 0 16px;
}
.guide ol {
  padding-left: 24px;
}
.guide li {
  padding-left: 4px;
  margin: 0 0 16px;
}
.guide a:not(.button) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guide details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.guide summary {
  font-weight: 550;
  cursor: pointer;
}
.guide summary:hover {
  color: var(--accent);
}
.guide details p {
  color: var(--muted);
  font-size: var(--text-m);
  margin: 12px 0 0;
}
.guide code {
  font-size: var(--text-s);
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  :root {
    --page-space: 24px;
    --hero-space: 48px;
  }
  .site-header {
    gap: 16px;
    padding: 20px 0;
  }
  nav,
  footer div {
    gap: 16px;
  }
  nav {
    font-size: var(--text-s);
  }
  .hero {
    padding-bottom: 32px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 16px;
  }
  .essentials {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding: 32px 0;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  footer div {
    flex-wrap: wrap;
  }
  .guide {
    margin: 40px auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
