/* RAMEN SOUNDS — prototype stylesheet (2026-11-19)
   Achromatic base; colour belongs to each plugin's GUI and its single accent. */

:root {
  --bg: #060708;
  --surface: #0b0c0e;
  --raised: #131518;
  --line: #1f2226;
  --line-strong: #33383e;
  --ink: #eef0f2;
  --body: #c9ced4;
  --muted: #8a929c;

  --accent: var(--ink);
  --accent-ducking: #ff6a13;
  --accent-stepgate: #12e0ff;
  --accent-rameneq: #4aabd4;
  --accent-mashimashi: #3d8fd1;
  --accent-ninniku: #a57ce6;

  --radius: 2px;
  --radius-card: 4px;

  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

[data-product="ducking-machine"] { --accent: var(--accent-ducking); }
[data-product="step-gate"] { --accent: var(--accent-stepgate); }
[data-product="rameneq"] { --accent: var(--accent-rameneq); }
[data-product="mashimashi-fuzz"] { --accent: var(--accent-mashimashi); }
[data-product="ninniku-fuzz"] { --accent: var(--accent-ninniku); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 16px/1.8 var(--font-jp);
  font-feature-settings: "palt" 0;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
code, pre, .mono { font-family: var(--font-mono); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- labels & small type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font: 600 11px/1.4 var(--font-en); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.label::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.label.plain::before { display: none; }
.meta { font: 500 12.5px/1.7 var(--font-mono); color: var(--muted); letter-spacing: .01em; }
.lead { font-size: 17px; color: var(--body); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- header ---------- */
.test-notice { border-bottom: 1px solid var(--line); background: var(--surface); }
.test-notice p { margin: 0; padding: 10px 0; font: 500 13px/1.6 var(--font-jp); color: var(--body); }
.test-notice strong { color: var(--ink); margin-right: .6em; }
@media (max-width: 640px) { .test-notice strong { display: block; margin-right: 0; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 7, 8, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand { display: block; margin-right: auto; }
.brand img { height: 56px; width: auto; margin-left: -6px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: var(--radius);
  color: var(--muted); text-decoration: none;
  font: 500 14px/1 var(--font-jp);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ink); border-radius: 0; }
.nav .nav-download {
  margin-left: 8px; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.nav .nav-download:hover { border-color: var(--ink); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--ink); font: 600 11px/1 var(--font-en); letter-spacing: .14em;
  padding: 10px 12px; cursor: pointer;
}

@media (max-width: 860px) {
  /* Without JavaScript the links simply wrap under the logo; with it they fold into the menu. */
  .header-inner { flex-wrap: wrap; height: auto; min-height: 64px; }
  .brand img { height: 46px; }
  .nav { flex-wrap: wrap; }
  .js .header-inner { flex-wrap: nowrap; height: 72px; }
  .js .nav-toggle { display: block; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .js .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .js .nav a[aria-current="page"] { box-shadow: none; color: var(--ink); }
  .js .nav .nav-download { margin: 16px 0 0; text-align: center; padding: 14px; border: 1px solid var(--line-strong); }
  .js .nav:not(.is-open) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink);
  font: 600 14px/1.3 var(--font-jp); text-decoration: none; cursor: pointer;
  text-align: center;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { background: #fff; }
[data-product] .btn.primary.accent { background: var(--accent); border-color: var(--accent); color: #060708; }
.btn[disabled] { opacity: .5; cursor: progress; }
.text-link { font-size: 14px; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---------- sections ---------- */
main { display: block; }
.section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.section.first { border-top: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.35; }
.section-head p { margin: 0; }
h2.title { font-size: clamp(24px, 3vw, 32px); line-height: 1.4; margin-bottom: 20px; }
h3 { font-size: 18px; line-height: 1.5; }

/* ---------- home hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 {
  font: 600 clamp(44px, 6.4vw, 76px)/1.02 var(--font-en);
  letter-spacing: .01em; margin-bottom: 28px;
}
.hero .tagline { color: var(--ink); font-size: clamp(18px, 2vw, 21px); font-weight: 500; margin-bottom: 12px; }
.hero .actions { margin-top: 32px; }
.label-credit { display: inline-block; margin-top: 36px; opacity: .85; }
.label-credit:hover { opacity: 1; }
.label-credit img { height: 26px; width: auto; }

.shot-link { display: block; text-decoration: none; }
.shot {
  margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: #000; overflow: hidden;
}
.shot.glow { box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 45%, transparent); }
.shot-link:hover .shot { border-color: var(--line-strong); }
.shot-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }

/* ---------- plugin cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Home: three products with a signature colour on the first row, the other four below. */
.card-grid.lineup { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.lineup > :nth-child(-n+3) { grid-column: span 4; }
.lineup > :nth-child(n+4) { grid-column: span 4; }
.lineup > :nth-child(n+4) h3 { font-size: 18px; }
.lineup > :nth-child(n+4) .card-body { padding: 18px 18px 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  transition: border-color .15s ease;
}
.card:hover, .card:focus-within { border-color: var(--line-strong); }
.card[data-accent]:hover, .card[data-accent]:focus-within { border-color: var(--accent); }
.card-media {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: #000; border-bottom: 1px solid var(--line);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.card-media.fill img { object-fit: cover; padding: 0; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.card-body .label { margin-bottom: 10px; }
.card h3 { font: 600 21px/1.3 var(--font-en); letter-spacing: .02em; margin-bottom: 4px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--line-strong); }
.card .meta { margin-bottom: 12px; }
.card p { font-size: 14.5px; line-height: 1.75; flex: 1; margin-bottom: 16px; }
.card .formats { margin: 0 0 16px; }
.card .more { font-size: 14px; align-self: flex-start; }

.group-title { display: flex; align-items: baseline; gap: 16px; margin: 56px 0 20px; }
.group-title:first-of-type { margin-top: 0; }
.group-title h2 { font-size: 20px; }

/* ---------- download strip / panels ---------- */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.platform {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 10px;
}
.platform h2, .platform h3 { font: 600 26px/1.2 var(--font-en); }
.platform p { margin: 0; }
.platform .actions { margin-top: 12px; }
.platform progress { width: 100%; height: 4px; accent-color: var(--ink); }
.platform [data-download-status] { font: 500 12.5px/1.7 var(--font-mono); color: var(--muted); min-height: 1.7em; }
.platform .note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.platform-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }

.download-title span { display: inline-block; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.3; letter-spacing: 0; margin-bottom: 16px; }
.crumbs { font: 500 12px/1.6 var(--font-mono); color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }

/* ---------- product page ---------- */
.product-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.product-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.product-head h1 {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font: 600 clamp(36px, 5.2vw, 56px)/1.1 var(--font-en); letter-spacing: .02em;
  margin-bottom: 18px;
}
.product-head .lead { margin-bottom: 0; }
.product-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.product-cta .meta { text-align: right; }
.duck { width: 54px; height: 54px; object-fit: contain; }
.eq-lockup { position: relative; display: block; width: min(100%, 420px); }
.eq-lockup img { width: 100%; }
/* The logo's black "Ramen" letters are re-drawn in white on the dark page (the original file stays untouched). */
.eq-lockup::after {
  content: ""; position: absolute; inset: 0; background: #fff; pointer-events: none;
  -webkit-mask: url("../img/rameneq-character-logo.png") center / 100% 100% no-repeat;
  mask: url("../img/rameneq-character-logo.png") center / 100% 100% no-repeat;
  clip-path: inset(52.7687% 35.4916% 14.658% 23.741%);
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.jump { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 28px; font-size: 14px; }
.jump a { color: var(--muted); }
.jump a:hover { color: var(--ink); }

.preview-btn {
  display: block; width: 100%; padding: 0; margin: 0;
  background: none; border: 0; cursor: zoom-in; color: inherit; text-align: left;
}
.preview-btn .shot { transition: border-color .15s ease; }
.preview-btn:hover .shot { border-color: var(--line-strong); }
figure { margin: 0; }
figcaption { margin-top: 12px; font: 500 12px/1.7 var(--font-mono); color: var(--muted); }

.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: use; }
.uses article { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.uses .num { font: 500 12px/1 var(--font-mono); color: var(--accent); display: block; margin-bottom: 16px; }
.uses h3 { margin-bottom: 8px; }
.uses p { font-size: 15px; margin: 0; }

.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); }
.features { list-style: none; border-top: 1px solid var(--line); }
.features li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 12px; height: 1px; background: var(--accent); }
.steps { list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 12px/2.3 var(--font-mono); color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery.single { grid-template-columns: minmax(0, 1fr); }

.note-block { border-left: 2px solid var(--line-strong); padding: 4px 0 4px 18px; color: var(--body); font-size: 15px; }

/* status (配布状況) */
.status { border-top: 1px solid var(--line); margin: 0; }
.status div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.status dt { font: 600 12px/1.9 var(--font-en); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.status dd { margin: 0; }
.status .mono { font-size: 13.5px; color: var(--ink); }
.status-notes { margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.status-notes p { margin-bottom: .6em; }

.related { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }

/* ---------- tables / code ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
caption { text-align: left; padding: 0 0 12px; color: var(--ink); font-weight: 600; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 11px/1.6 var(--font-en); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td.mono { font-size: 13.5px; color: var(--ink); white-space: nowrap; }
pre.code {
  margin: 16px 0; padding: 16px 18px; overflow-x: auto;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 13px; line-height: 1.7; color: var(--ink);
}
code.inline { font-size: .9em; background: var(--raised); padding: .1em .4em; border-radius: var(--radius); color: var(--ink); overflow-wrap: anywhere; }
.hash { font: 500 12px/1.7 var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
ol.plain { padding-left: 1.4em; }
ol.plain li { margin-bottom: .4em; }
ul.dots { padding-left: 1.2em; }
ul.dots li { margin-bottom: .4em; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 18px; }
.prose h3 { margin: 28px 0 10px; }
.prose > * + h2 { margin-top: 8px; }
.stack > * + * { margin-top: 20px; }

/* ---------- TRANSMIT modes ---------- */
.modes-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.modes-tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); cursor: pointer; padding: 12px 16px 14px; text-align: left;
  font: 500 14px/1.4 var(--font-jp);
}
.modes-tabs button .mono { display: block; font-size: 11px; color: var(--muted); }
.modes-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.modes-tabs button:hover { color: var(--ink); }
.mode { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.mode + .mode { margin-top: 56px; }
.js .mode[hidden] { display: none; }
.mode h3 { font-size: 22px; margin: 6px 0 14px; }
.transmit-wordmark { width: min(100%, 360px); }
.controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.controls article { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.controls h3 { font: 600 15px/1.4 var(--font-en); letter-spacing: .06em; margin-bottom: 8px; }
.controls p { font-size: 14.5px; margin: 0; }

/* ---------- image preview dialog ---------- */
.image-preview {
  width: min(96vw, 1600px); max-width: none; max-height: 94vh; padding: 0;
  background: transparent; border: 0; color: var(--ink); overflow: visible;
}
.image-preview::backdrop { background: rgba(0, 0, 0, .9); }
.image-preview figure { display: flex; flex-direction: column; align-items: center; }
.image-preview img { max-height: calc(94vh - 90px); width: auto; max-width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: #000; }
.image-preview figcaption { text-align: center; }
.image-preview-close {
  display: block; margin: 0 0 12px auto;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 600 12px/1 var(--font-en); letter-spacing: .12em; padding: 12px 14px; cursor: pointer;
}
body.preview-open { overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid .brand img { height: 104px; width: auto; }
.footer-grid h2 { font: 600 11px/1.4 var(--font-en); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--body); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.footer-logos > a { flex: none; margin-right: 0; }
.footer-grid .footer-label img { height: 76px; width: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineup > :nth-child(n) { grid-column: span 6; }
  .lineup > :first-child { grid-column: span 12; }
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .two-col, .mode { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; }
  .product-head { grid-template-columns: minmax(0, 1fr); }
  .product-cta { align-items: flex-start; }
  .product-cta .meta { text-align: left; }
  .uses { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .card-grid, .card-grid.two, .platforms, .gallery { grid-template-columns: minmax(0, 1fr); }
  .lineup > :nth-child(n) { grid-column: 1 / -1; }
  .controls { grid-template-columns: minmax(0, 1fr); }
  .status div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .modes-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .modes-tabs button { flex: 0 0 auto; }
  .btn { width: 100%; }
  .actions .text-link { width: 100%; }
  .hero h1 { margin-bottom: 20px; }
  .product-head h1 { font-size: 31px; gap: 10px; }
  .duck { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
