@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("assets/fonts/noto-sans-jp-subset.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #080808;
  --ink: #cdc4ba;
  --bright: #eee8e0;
  --muted: #a49d94;
  --line: #34312e;
  --accent: #ce7452;
  --display: Fraunces, Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(22px, 4.5vw, 80px);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:not(:disabled),
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  max-width: 1600px;
  margin: auto;
  min-height: 92px;
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand-mark {
  font:
    36px/1 "Noto Sans JP", sans-serif;
}
.brand-platform {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-left: 7px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header nav a {
  text-decoration: none;
  font-size: 13px;
}
.site-header nav a:hover,
.text-link:hover,
.footer-bottom a:hover {
  color: var(--bright);
}
.site-header nav .nav-install {
  border: 1px solid var(--line);
  padding: 10px 18px;
}
.nav-install span {
  margin-left: 20px;
}
.hero {
  padding-top: 26px;
}
.hero-topline,
.hero-foot,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow,
.release-link,
.hero-foot,
.preview-topline,
.technical-label,
.card-eyebrow,
.path-note,
.section-number {
  font: 11px/1.5 var(--mono);
  letter-spacing: 0.09em;
}
.eyebrow {
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.release-link {
  color: var(--muted);
  text-decoration: none;
}
.release-link span {
  margin-left: 12px;
}
.hero-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: clamp(35px, 4vw, 64px);
  align-items: center;
  padding-block: 64px 72px;
}
.japanese {
  font: 12px/1.5 "Noto Sans JP", sans-serif;
  letter-spacing: 0.26em;
  color: var(--muted);
  margin-bottom: 22px;
}
h1 {
  font: 430 clamp(72px, 7.7vw, 116px) / 0.97 var(--display);
  letter-spacing: -0.065em;
  color: var(--bright);
}
h1 em,
h2 em {
  font-weight: 380;
}
h1 em {
  color: var(--ink);
}
.hero-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 15px 22px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition:
    background 0.15s,
    color 0.15s;
}
.primary {
  color: var(--paper);
  background: var(--ink);
}
.primary:hover {
  background: var(--bright);
  border-color: var(--bright);
}
.text-link {
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.desktop-preview {
  min-width: 0;
  margin-top: 40px;
}
.preview-topline {
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.preview-topline > span:last-child {
  font: 23px/1 "Noto Sans JP", sans-serif;
}
.preview-image {
  display: block;
  position: relative;
  padding: 7px;
  border: 1px solid #5b514b;
  background: #201c19;
  box-shadow: 0 25px 80px #0009;
}
.preview-image img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.image-expand {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #080808d9;
  color: var(--bright);
  border: 1px solid #ffffff30;
}
.preview-bottomline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
#preview-caption {
  font: 11px/1.5 var(--mono);
  color: var(--muted);
}
#preview-caption span {
  font: 13px/1.5 var(--sans);
  color: var(--ink);
  margin-left: 14px;
}
.preview-controls {
  display: flex;
  gap: 5px;
}
.preview-controls button {
  width: 36px;
  height: 36px;
  padding: 0;
  font: 11px var(--mono);
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
}
.preview-controls button[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--bright);
}
.preview-controls button:hover {
  background: #ffffff09;
}
.showroom-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  text-decoration: none;
  color: var(--muted);
  padding-top: 17px;
}
.hero-foot {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.hero-foot i {
  font-style: normal;
  margin-inline: 13px;
  color: var(--accent);
}
.foundation,
.install {
  padding-block: 84px 0;
}
.section-symbol {
  font: 25px/1 "Noto Sans JP", sans-serif;
  margin-right: 5px;
}
.section-number {
  color: var(--muted);
}
.foundation-intro,
.install-heading {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  align-items: end;
  margin-top: 35px;
}
h2 {
  font: 420 clamp(35px, 4vw, 60px) / 1.12 var(--display);
  letter-spacing: -0.045em;
}
.foundation-intro > p,
.install-heading > p {
  color: var(--muted);
  font-size: 15px;
  max-width: 460px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principles article {
  padding: 28px 34px 29px 0;
}
.principles article + article {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}
.principle-index {
  font: 11px var(--mono);
  color: var(--accent);
}
.principles h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 400;
  margin: 18px 0 12px;
  letter-spacing: -0.035em;
}
.principles p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.technical-label {
  display: block;
  margin-top: 24px;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--muted);
}
.foundation-docs {
  margin-top: 22px;
}
.install-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 38px;
  border: 1px solid var(--line);
}
.install-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: start;
}
.iso-card {
  background: #12110f;
}
.existing-card {
  border-left: 1px solid var(--line);
}
.card-eyebrow {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}
.beta-tag {
  color: var(--accent);
  border: 1px solid #624435;
  padding: 4px 8px;
  font-size: 9px;
}
.path-symbol {
  font-size: 22px;
  line-height: 1;
}
.install-card h3 {
  font: 420 clamp(29px, 2.6vw, 40px) / 1.15 var(--display);
  letter-spacing: -0.04em;
  margin-top: 26px;
}
.install-card > p:not(.path-note):not(.copy-status) {
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
  max-width: 440px;
}
.install-caution {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 24px 0 26px;
  padding-left: 14px;
  border-left: 1px solid var(--accent);
}
.install-caution strong {
  color: var(--ink);
  font-weight: 500;
}
.install-card > .button,
.install-card > .text-link {
  margin-top: auto;
}
.path-note {
  font-size: 9px;
  letter-spacing: 0.015em;
  color: var(--muted);
  margin-top: 18px;
}
.command-block {
  width: 100%;
  background: #111110;
  border: 1px solid var(--line);
  margin-top: 25px;
  padding: 18px 16px;
  display: flex;
  align-items: start;
  gap: 16px;
}
.command-block code {
  color: var(--bright);
  font: 12px/1.8 var(--mono);
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1;
  user-select: all;
}
.copy-button {
  border: 0;
  padding: 3px 0;
  color: var(--ink);
  background: transparent;
  font: 11px var(--mono);
}
.copy-button:hover {
  color: var(--bright);
}
.copy-status {
  min-height: 37px;
  padding-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.install-support {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}
.install-support a {
  color: var(--ink);
  margin-left: 8px;
}
.upstream {
  margin-top: 86px;
  padding-top: 42px;
  padding-bottom: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #cdc4ba;
  color: #14120f;
}
.upstream-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 70px;
  align-items: end;
  margin-top: 30px;
}
.upstream h2 {
  font-size: clamp(34px, 3.7vw, 56px);
}
.upstream-content p {
  font-size: 15px;
  max-width: 350px;
  margin-bottom: 22px;
}
.upstream .button {
  background: #14120f;
  color: #e5ded4;
  border-color: #14120f;
}
.upstream .button:hover {
  background: #302b25;
}
.upstream a:focus-visible {
  outline-color: #14120f;
}
.site-footer {
  padding-top: 36px;
  padding-bottom: 28px;
}
.footer-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-top > p {
  font: italic 20px var(--display);
}
.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.footer-bottom nav {
  display: flex;
  gap: 24px;
}
.footer-bottom nav a {
  text-decoration: none;
}
.lightbox {
  position: fixed;
  max-width: min(95vw, 1600px);
  max-height: 95vh;
  padding: 48px 10px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}
.lightbox::backdrop {
  background: #000e;
}
.lightbox img {
  width: auto;
  max-height: calc(95vh - 65px);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  right: 12px;
  top: 9px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
body:has(.lightbox[open]) {
  overflow: hidden;
}

@media (min-width: 1600px) {
  .hero-layout {
    padding-block: 80px 90px;
  }
}

@media (max-width: 1000px) {
  .site-header nav {
    gap: 20px;
  }
  .hero-layout {
    grid-template-columns: 1fr 1.25fr;
    gap: 28px;
  }
  h1 {
    font-size: clamp(62px, 8.5vw, 85px);
  }
  .hero-actions {
    gap: 20px;
  }
  .hero-actions .button {
    padding-inline: 16px;
    gap: 18px;
  }
  .desktop-break {
    display: none;
  }
  .foundation-intro,
  .install-heading,
  .upstream-content {
    gap: 35px;
  }
  .preview-bottomline {
    align-items: start;
    flex-direction: column;
  }
  .principles article {
    padding-right: 22px;
  }
  .principles article + article {
    padding-left: 22px;
  }
  .technical-label {
    font-size: 8px;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 76px;
    gap: 14px;
  }
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .brand-mark {
    font-size: 28px;
  }
  .brand-platform {
    font-size: 11px;
    margin-left: 3px;
  }
  .site-header nav > a:not(.nav-install) {
    display: none;
  }
  .site-header nav .nav-install {
    font-size: 11px;
    padding: 9px 12px;
  }
  .nav-install span {
    margin-left: 8px;
  }
  .hero {
    padding-top: 22px;
  }
  .eyebrow,
  .release-link {
    font-size: 9px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 38px 0 30px;
    gap: 34px;
  }
  .japanese {
    font-size: 11px;
    margin-bottom: 18px;
  }
  h1 {
    font-size: clamp(70px, 16vw, 104px);
  }
  .hero-description {
    margin-top: 24px;
    font-size: 14px;
    max-width: 330px;
  }
  .hero-actions {
    margin-top: 24px;
    gap: 25px;
  }
  .desktop-preview {
    margin-top: 10px;
  }
  .preview-topline {
    font-size: 8px;
  }
  .preview-image {
    padding: 4px;
  }
  .preview-bottomline {
    flex-direction: row;
    align-items: center;
  }
  #preview-caption {
    font-size: 9px;
  }
  #preview-caption span {
    margin-left: 5px;
    font-size: 11px;
  }
  .preview-controls {
    gap: 0;
  }
  .preview-controls button {
    width: 31px;
    height: 36px;
    font-size: 10px;
  }
  .showroom-link {
    font-size: 11px;
  }
  .hero-foot {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    font-size: 8px;
    padding-block: 18px;
  }
  .hero-foot i {
    margin-inline: 10px;
  }
  .foundation,
  .install {
    padding-top: 54px;
  }
  .foundation-intro,
  .install-heading,
  .upstream-content {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 25px;
  }
  h2 {
    font-size: clamp(34px, 8vw, 48px);
  }
  .foundation-intro > p,
  .install-heading > p {
    font-size: 14px;
  }
  .principles {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
  .principles article,
  .principles article + article {
    border-left: 0;
    padding: 24px 0;
  }
  .principles article + article {
    border-top: 1px solid var(--line);
  }
  .principles h3 {
    margin: 12px 0 10px;
  }
  .technical-label {
    font-size: 9px;
    margin-top: 15px;
  }
  .install-paths {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
  .existing-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .install-card {
    padding: 25px;
  }
  .install-card h3 {
    font-size: 34px;
  }
  .path-note {
    font-size: 9px;
  }
  .install-support {
    font-size: 12px;
  }
  .install-support a {
    display: inline-block;
    margin-left: 0;
  }
  .upstream {
    margin-top: 54px;
    padding-block: 32px 38px;
  }
  .upstream h2 {
    font-size: 35px;
  }
  .footer-top,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
  .footer-top > p {
    font-size: 18px;
  }
  .footer-bottom {
    margin-top: 24px;
  }
  .footer-bottom nav {
    flex-wrap: wrap;
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
