:root {
  color-scheme: light dark;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  --background: #ffffff;
  --surface: #fafafa;
  --foreground: oklch(0.145 0 0);
  --muted: oklch(0.968 0 0);
  --muted-foreground: oklch(0.46 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --border: oklch(0.915 0 0);
  --shot-border: oklch(0.915 0 0);
  --input: oklch(0.88 0 0);
  --ring: oklch(0.205 0 0);

  --warning-surface: oklch(0.98 0.018 85);
  --destructive: oklch(0.51 0.22 27.325);
  --destructive-surface: oklch(0.976 0.014 25);
  --destructive-border: oklch(0.51 0.22 27.325 / 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;

  --duration-state: 150ms;
  --easing-state: cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1040px;
  --prose-max: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --surface: #0a0a0a;
    --foreground: oklch(0.985 0 0);
    --muted: oklch(0.215 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --primary: oklch(0.922 0 0);
    --primary-foreground: oklch(0.145 0 0);
    --border: oklch(1 0 0 / 11%);
    --shot-border: oklch(1 0 0 / 8%);
    --input: oklch(1 0 0 / 16%);
    --ring: oklch(0.87 0 0);

    --warning-surface: oklch(0.21 0.024 75);
    --destructive: oklch(0.704 0.191 22.216);
    --destructive-surface: oklch(0.21 0.028 25);
    --destructive-border: oklch(0.704 0.191 22.216 / 0.28);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--background);
  color: var(--foreground);
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.55;
}

::selection {
  background-color: var(--warning-surface);
  color: var(--foreground);
}

img,
picture,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: auto;
  text-decoration-color: var(--input);
  transition:
    color var(--duration-state) var(--easing-state),
    text-decoration-color var(--duration-state) var(--easing-state);
}

a:hover {
  text-decoration-color: currentColor;
}

button,
a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--muted);
  border-radius: 5px;
  padding: 0.12em 0.36em;
  overflow-wrap: break-word;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.32rem;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--muted-foreground);
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  vertical-align: 0.06em;
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: 12px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

/* Header */

.site-header {
  padding-block: 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}

.bodo-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 4px 2px;
}

.bodo-mark {
  flex-shrink: 0;
}

.bodo-wordmark {
  display: inline-grid;
  align-items: center;
  justify-items: start;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--foreground);
}

.bodo-wordmark-en,
.bodo-wordmark-ja {
  grid-area: 1 / 1;
  transition:
    transform 200ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.bodo-wordmark-ja {
  opacity: 0;
  transform: translateY(35%);
  pointer-events: none;
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  .bodo-brand:hover .bodo-wordmark-en,
  .bodo-brand:focus-visible .bodo-wordmark-en {
    opacity: 0;
    transform: translateY(-35%);
  }

  .bodo-brand:hover .bodo-wordmark-ja,
  .bodo-brand:focus-visible .bodo-wordmark-ja {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted-foreground);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  color: var(--foreground);
}

.icon-arrow {
  flex-shrink: 0;
}

/* Hero */

.hero {
  padding-block-start: clamp(24px, 4.5vw, 52px);
  padding-block-end: clamp(56px, 8vw, 96px);
}

.hero-copy {
  max-width: var(--prose-max);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  margin-block-start: 16px;
  margin-block-end: 0;
  max-width: 56ch;
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
  line-height: 1.5;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* Buttons: explicitly no box-shadow */

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  user-select: none;
  white-space: nowrap;
  transition:
    background-color var(--duration-state) var(--easing-state),
    border-color var(--duration-state) var(--easing-state),
    color var(--duration-state) var(--easing-state);
}

.btn-ghost {
  height: 30px;
  padding-inline: 10px;
  font-size: 13px;
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

/* Product shot frames */

.shot-frame {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--shot-border);
  background-color: var(--surface);
}

.shot-frame img {
  width: 100%;
  height: auto;
}

.shot-hero {
  margin-block-start: clamp(28px, 4.5vw, 44px);
}

/* Feature moments */

.moments {
  padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 96px);
}

.moment {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.moment + .moment,
.moment + .moment-wide {
  margin-block-start: clamp(56px, 9vw, 108px);
}

.moment-copy h2,
.moment-wide-copy h2,
.install-head h2 {
  margin: 0;
  font-size: clamp(1.375rem, 2.6vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.moment-copy p,
.moment-wide-copy p,
.install-head p {
  margin-block-start: 12px;
  margin-block-end: 0;
  max-width: 52ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.tone-danger {
  color: var(--destructive);
  font-weight: 500;
}

.moment-wide {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.moment-wide-copy {
  max-width: var(--prose-max);
}

/* Install section */

.install {
  padding-block: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--border);
}

.install-inner {
  max-width: var(--prose-max);
}

.code-block {
  margin-block-start: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--surface);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.code-block pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--foreground);
}

.code-block pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.facts {
  margin-block-start: 36px;
  margin-block-end: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.fact dt {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--foreground);
}

.fact dd {
  margin-inline-start: 0;
  margin-block-start: 6px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13.5px;
  color: var(--muted-foreground);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sep {
  opacity: 0.55;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--foreground);
}

/* Responsive layouts */

@media (min-width: 640px) {
  .code-block pre {
    padding: 16px;
    font-size: 14px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
  }
}

@media (min-width: 860px) {
  .moment {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 48px;
  }

  .moment-reverse {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  }

  .moment-reverse .moment-copy {
    order: 2;
  }

  .moment-reverse .shot-frame {
    order: 1;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .bodo-wordmark-en,
  .bodo-wordmark-ja {
    transform: none !important;
  }
}
