:root {
  --background: #fbfbfb;
  --foreground: #212529;
  --muted: #5f6368;
  --link: #256b58;
  --border: #dee2e6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

.title-block {
  min-height: 140px;
  margin-bottom: 24px;
  position: relative;
}

.logo {
  width: 138px;
  height: auto;
  position: absolute;
  top: -20px;
  right: 0;
}

h1 {
  margin: 0 130px 8px 0;
  font-size: 2.5rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.subtitle {
  max-width: 560px;
  margin: 0 130px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.5;
}

.package-links {
  margin: 16px 0 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.package-links a {
  padding: 6px 13px;
  color: white;
  background: #316b5d;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
}

.package-links a:hover {
  background: #245347;
}

.package-links i {
  margin-right: 5px;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

a:focus-visible,
video:focus-visible {
  outline: 3px solid #74a99a;
  outline-offset: 3px;
}

h2 {
  margin: 3.2rem 0 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.content-section > .section-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease-out var(--reveal-delay, 0ms),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.content-section.section-visible > .section-reveal {
  opacity: 1;
  transform: translateY(0);
}

p {
  margin: 1rem 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

p code {
  padding: 0.12rem 0.28rem;
  color: #9c3567;
  background: #f2f2f2;
  border-radius: 3px;
}

pre {
  margin: 1rem 0 1.4rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  background: #f1f3f5;
  border: 1px solid #e5e7e9;
  border-radius: 4px;
  line-height: 1.5;
}

.media-card {
  margin: 2rem 0;
  padding: 12px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.demo {
  width: min(1000px, calc(100vw - 32px));
  margin: 2.4rem 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.media-card video,
.media-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.commons-inline-icon {
  width: 1.25em;
  height: 1.25em;
  margin: 0 0.08em;
  display: inline-block;
  vertical-align: -0.25em;
}

.trust-flow {
  margin-top: 2.25rem;
}

.figure-card {
  padding: 15px;
}

@media (max-width: 560px) {
  main {
    width: min(100% - 28px, 760px);
    padding-top: 42px;
  }

  .title-block {
    min-height: 108px;
  }

  .logo {
    width: 96px;
    top: -10px;
  }

  h1 {
    margin-right: 110px;
    font-size: 2.15rem;
  }

  .subtitle {
    margin-right: 110px;
    font-size: 1.05rem;
  }

  .media-card {
    margin-right: -4px;
    margin-left: -4px;
    padding: 7px;
  }

  .demo {
    width: calc(100vw - 16px);
    margin: 2rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-section > .section-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
