/* hakone.org. From the landing design (docs/landing/DESIGN.md). Dark only. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/source-sans-3-4320f018.woff2") format("woff2");
}

/* Shared tokens and components also apply to future pages. */
:root {
  color-scheme: dark;
  --canvas: #11110f;
  --surface: #191917;
  --surface-selected: #2b2b26;
  --ivory: #fbefe2;
  --text: #eeeae3;
  --muted: #b8b5ae;
  --line: #42423a;
  --orange: #fe6702;
  --link: #ffac70;
  --container: 1080px;
  --gutter: 28px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 16px/1.6 "Source Sans 3", "Segoe UI", Tahoma, sans-serif; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a, summary, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration: underline; color: var(--ivory); }
button, h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ivory); font-weight: 600; text-wrap: balance; }
h1 { font-size: 52px; line-height: 1.15; }
h2 { font-size: 32px; line-height: 1.25; }
h3 { font-size: 22px; line-height: 1.3; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
::selection { color: var(--canvas); background: var(--link); }
.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.icon { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 300; padding: 12px 20px; color: #11110f; background: var(--ivory); font-weight: 600; }
.skip-link:focus { top: 16px; }
.skip-link:hover { color: #11110f; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 11px 24px; border: 1px solid transparent; border-radius: 4px; font-size: 18px; line-height: 1.4; font-weight: 600; text-decoration: none; }
.button--orange { background: var(--orange); color: #22170f; }
.button--orange:hover { background: #ff7b25; color: #22170f; text-decoration: none; }
.button--small { min-height: 42px; padding: 8px 14px; gap: 9px; font-size: 14px; }
.button--small .icon { width: 16px; height: 16px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 4px; }
.icon-button:hover { color: var(--ivory); background: var(--surface-selected); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.text-link .icon { width: 16px; height: 16px; }
.section-space { padding-block: 72px; }

/* A conventional navigation bar, without translucency or decorative effects. */
.site-header { position: relative; z-index: 50; min-height: 78px; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--ivory); text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.wordmark > span { font-size: 29px; font-weight: 600; line-height: 1.2; }
.wordmark img { width: 35px; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a { color: var(--muted); font-size: 16px; line-height: 1.5; padding-block: 12px; text-decoration: none; }
.site-nav > a:hover, .site-nav > a[aria-current] { color: var(--ivory); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.github-link { display: inline-flex; padding: 10px; color: var(--muted); }
.github-link:hover { color: var(--ivory); }
.menu-toggle, .site-nav .mobile-source { display: none; }

/* Product information and download are the first things on the page. */
.hero { padding-top: 60px; }
.hero-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "preview copy"; gap: 44px; align-items: center; }
.hero-copy { grid-area: copy; }
.hero-preview { grid-area: preview; }
.hero-preview img { width: 100%; height: auto; border: 1px solid var(--line); }
.hero-preview figcaption { color: var(--muted); font-size: 14px; margin-top: 11px; }
.hero-description { font-size: 22px; line-height: 1.5; margin-top: 18px; max-width: 650px; }
.hero-detail { color: var(--muted); font-size: 17px; max-width: 650px; margin-top: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 26px; }
.platform-note { color: var(--muted); font-size: 14px; margin-top: 13px; }

/* The images are source design exports, shown plainly with useful controls. */
.showcase-section { padding-block: 10px 72px; }
.showcase h2 { font-size: 28px; margin-bottom: 22px; }
.product-frame { padding: 8px; border: 1px solid var(--line); background: #0e0e0e; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 9px 8px 4px; margin-bottom: 8px; background: var(--surface); }
.preview-tabs { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; }
.preview-tabs button { min-height: 48px; padding: 10px 22px; background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; font-size: 16px; }
.preview-tabs button[aria-selected="true"] { color: var(--ivory); border-bottom-color: var(--orange); background: var(--surface-selected); }
.preview-tabs button:hover { color: var(--ivory); }
.preview-panel { aspect-ratio: 16 / 9; }
.preview-panel img { width: 100%; height: 100%; object-fit: contain; }
.preview-panel:focus-visible { outline-offset: -4px; }
.showcase-caption { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 80ch; }
html:not(.js) .preview-tabs, html:not(.js) .preview-expand, html:not(.js) .download-platforms { display: none; }

/* Feature information sits beside a relevant image rather than inside cards. */
.features-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 76px; align-items: center; }
.features-copy h2 { margin-bottom: 24px; }
.feature-list { margin: 0; padding-left: 21px; }
.feature-list li { padding-left: 5px; }
.feature-list li::marker { color: var(--orange); }
.feature-list li + li { margin-top: 20px; }
.feature-list strong { color: var(--ivory); font-size: 18px; font-weight: 600; }
.feature-list p { color: var(--muted); margin-top: 3px; max-width: 48ch; }
.settings-preview img { width: 100%; height: auto; border: 1px solid var(--line); }
.settings-preview figcaption { color: var(--muted); font-size: 14px; margin-top: 11px; }

/* Project history and development links are kept together. */
.about-section { background: var(--surface); border-block: 1px solid var(--line); padding: 56px 28px; }
.about-section > .container, .download-section > .container { width: min(var(--container), 100%); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 84px; }
.about-copy h2 { margin-bottom: 21px; }
.about-copy p { color: var(--muted); max-width: 65ch; }
.about-copy p + p { margin-top: 17px; }
.about-copy > .text-link { margin-top: 23px; }
.development-copy { padding-top: 6px; }
.development-copy h3 { margin-bottom: 20px; }
.development-copy p { color: var(--muted); max-width: 36ch; }
.project-links { margin: 20px 0 0; padding-left: 18px; }
.project-links li + li { margin-top: 8px; }
.project-links li::marker { color: var(--muted); }

/* Native disclosure elements preserve keyboard and no-script use. */
.faq-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 58px; align-items: start; }
.faq-layout > h2 { max-width: 13ch; }
.faq-list { min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; list-style: none; padding: 18px 32px 18px 0; font-size: 17px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 17px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary:hover { color: var(--link); }
.faq-answer { padding: 0 30px 20px 0; }
.faq-answer p { color: var(--muted); font-size: 16px; }
.faq-answer p + p { margin-top: 12px; }

/* Download selection is a simple form with real package destinations. */
.download-section { padding: 54px 28px 66px; border-top: 1px solid var(--line); background: var(--surface); }
.download-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.download-copy h2 { margin-bottom: 22px; }
.download-copy p { color: var(--muted); max-width: 53ch; }
.download-copy p + p { margin-top: 15px; }
.download-copy strong { color: var(--ivory); font-weight: 600; }
.download-platforms { display: flex; border-bottom: 1px solid var(--line); }
.download-platforms button { min-height: 48px; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; font-size: 16px; }
.download-platforms button[aria-selected="true"] { color: var(--ivory); border-bottom-color: var(--orange); background: var(--surface-selected); }
.download-platforms button:hover { color: var(--ivory); }
.download-platforms .icon { width: 18px; height: 18px; }
.download-panel { padding-top: 22px; }
.download-detail { font-size: 15px; color: var(--muted); }
.download-button { margin-top: 20px; }
.download-instructions { font-size: 14px; color: var(--muted); margin-top: 15px; max-width: 47ch; overflow-wrap: anywhere; }
.architecture-control { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.architecture-control label { font-size: 15px; color: var(--muted); }
.architecture-control select { min-height: 44px; padding: 8px 12px; background: var(--canvas); border: 1px solid var(--line); border-radius: 4px; color: var(--text); font-size: 16px; }
.noscript-note { font-size: 15px; margin-top: 15px; }

/* Shared site footer and attribution. */
.site-footer { padding-top: 48px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; padding-bottom: 35px; }
.footer-brand .wordmark > span { font-size: 27px; }
.footer-brand .wordmark img { width: 32px; height: 28px; }
.footer-brand > p { color: var(--muted); font-size: 14px; margin-top: 15px; max-width: 25ch; }
.footer-column h2 { font-size: 18px; line-height: 1.4; margin: 3px 0 16px; }
.footer-column > a { display: block; margin-top: 9px; font-size: 14px; }
.footer-column a span { margin-left: 4px; }
.footer-credits { padding-block: 22px; border-block: 1px solid var(--line); }
.footer-credits p { color: var(--muted); font-size: 13px; max-width: 105ch; }
.footer-credits p + p { margin-top: 9px; }
.footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; padding-block: 20px; color: var(--muted); font-size: 13px; }
.footer-bottom > a { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom .icon { width: 14px; height: 14px; }
.footer-bottom .back-top { margin-left: auto; }

/* Image enlargement has a functional backdrop and no decorative glass effect. */
.preview-dialog { width: min(1450px, calc(100vw - 40px)); max-width: none; max-height: calc(100vh - 40px); padding: 20px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.preview-dialog::backdrop { background: #000d; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 16px; }
.dialog-header h2 { font-size: 24px; }
.dialog-image { width: 100%; height: auto; max-height: calc(100vh - 190px); object-fit: contain; background: #0e0e0e; }
.preview-dialog > p { margin-top: 14px; font-size: 14px; color: var(--muted); }
.dialog-close { flex-shrink: 0; }

/* Primitives for a documentation, releases, or other future page. */
.page-intro { max-width: 800px; padding-block: 60px 35px; }
.page-intro p { color: var(--muted); font-size: 20px; line-height: 1.5; margin-top: 22px; }
.prose { max-width: 70ch; padding-bottom: 72px; color: var(--muted); }
.prose h2, .prose h3 { margin: 36px 0 18px; }
.prose p + p { margin-top: 18px; }

@media (max-width: 1000px) {
  .site-nav { gap: 22px; }
  .header-inner { gap: 22px; }
  .github-link { display: none; }
  .hero-content { gap: 32px; }
  h1 { font-size: 46px; }
  .features-layout, .about-layout { gap: 48px; }
  .faq-layout, .download-layout { gap: 42px; }
  .download-platforms button { padding-inline: 13px; }
  .footer-top { gap: 25px; grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; grid-template-areas: "copy" "preview"; gap: 30px; }
  .hero-preview { width: min(680px, 100%); }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; }
  .site-header, .header-inner { min-height: 70px; }
  .header-inner { gap: 15px; }
  .wordmark > span { font-size: 27px; }
  .wordmark img { width: 31px; height: 27px; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; order: 3; }
  .site-nav { position: absolute; top: 69px; left: 0; right: 0; background: var(--surface); padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > a { padding: 12px 4px; font-size: 16px; }
  .site-nav .mobile-source { display: inline-flex; align-items: center; gap: 8px; }
  .site-nav .mobile-source .icon { width: 16px; height: 16px; }
  .js .site-nav:not(.is-open) { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-top: 14px; }
  html:not(.js) .site-nav { position: static; order: 4; width: 100%; flex-direction: row; flex-wrap: wrap; padding: 0 0 12px; border: 0; gap: 0 20px; }
  html:not(.js) .menu-toggle { display: none; }
  .hero { padding-top: 45px; }
  h1 { font-size: 38px; }
  .hero-description { font-size: 20px; margin-top: 16px; }
  .hero-detail { font-size: 16px; }
  .hero-actions { gap: 20px; margin-top: 22px; }
  .platform-note { font-size: 14px; }
  .section-space { padding-block: 54px; }
  .showcase-section { padding-bottom: 54px; }
  .showcase h2 { font-size: 28px; margin-bottom: 18px; }
  .preview-tabs button { padding-inline: 16px; font-size: 15px; }
  .features-layout { grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
  .feature-list li + li { margin-top: 17px; }
  .feature-list p { font-size: 16px; }
  .settings-preview { margin-top: 9px; }
  .about-section { padding: 45px 24px; }
  .about-layout { grid-template-columns: 1.5fr 1fr; gap: 35px; }
  .faq-layout { grid-template-columns: 1fr; gap: 25px; }
  .faq-layout > h2 { max-width: none; }
  .download-layout { grid-template-columns: 1fr; gap: 30px; }
  .download-options { max-width: 520px; }
  .download-platforms { width: fit-content; max-width: 100%; }
  .download-section { padding: 45px 24px 50px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand > p { max-width: none; }
  .footer-credits p { font-size: 13px; max-width: 75ch; }
}
@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .header-inner { gap: 10px; }
  .header-actions .button { padding-inline: 12px; }
  .hero-content { gap: 24px; }
  .hero { padding-top: 36px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-description { max-width: 30ch; font-size: 20px; }
  .hero-detail { max-width: 43ch; }
  .hero-actions { gap: 18px; }
  .hero-actions .button { padding-inline: 20px; }
  .platform-note { max-width: 39ch; }
  .showcase h2 { font-size: 27px; }
  .preview-toolbar { padding-right: 3px; gap: 2px; }
  .preview-tabs { flex-wrap: nowrap; }
  .preview-tabs button { padding: 10px 11px; font-size: 14px; }
  .preview-expand { width: 36px; }
  .showcase-caption { font-size: 14px; }
  .features-layout { grid-template-columns: 1fr; gap: 30px; }
  .features-copy h2 { margin-bottom: 20px; }
  .settings-preview { margin: 0; max-width: 420px; }
  .about-layout { grid-template-columns: 1fr; gap: 34px; }
  .about-section, .download-section { padding-left: 20px; padding-right: 20px; }
  .development-copy { padding-top: 0; }
  .development-copy h3 { margin-bottom: 15px; }
  .development-copy p { max-width: none; }
  .project-links { margin-top: 15px; }
  .faq-list summary { font-size: 17px; padding-right: 28px; }
  .faq-answer { padding-right: 10px; }
  .download-platforms button { padding-inline: 15px; font-size: 16px; gap: 7px; }
  .download-platforms .icon { width: 17px; height: 17px; }
  .download-copy p { max-width: 43ch; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 29px 24px; }
  .footer-bottom { gap: 13px 20px; }
  .footer-bottom .back-top { margin-left: 0; }
  .preview-dialog { width: calc(100vw - 24px); padding: 14px; }
  .dialog-header h2 { font-size: 22px; }
  .preview-dialog > p { font-size: 14px; }
  .page-intro { padding-top: 40px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .wordmark { gap: 8px; }
  .wordmark > span { font-size: 25px; }
  .wordmark img { width: 29px; height: 25px; }
  .header-actions .button { padding-inline: 10px; }
  .preview-tabs button { padding-inline: 9px; }
  .preview-expand { width: 32px; }
  .download-platforms button { padding-inline: 12px; font-size: 15px; }
  .download-platforms .icon { width: 16px; height: 16px; }
  .hero-actions { gap: 16px; }
  .about-section, .download-section { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
