/* ashineko.com — dark showcase. The pieces supply the colour; the page stays out of the way.
   Sections: tokens · reset · typography · layout · header · reels · about · footer. */

:root {
  color-scheme: dark;
  --bg:      #0b0c10;
  --bg-2:    #14161c;
  --ink:     #eef1f5;
  --ink-2:   #9aa3ad;
  --rule:    #262b34;
  --accent:  #6fd6c6;

  /* One gothic face for Latin; a Mincho webfont for Japanese (owner's call, 2026-09-09). */
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ja: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;

  --step--1: 0.9375rem;
  --step-0:  1.125rem;
  --step-1:  1.25rem;
  --step-2:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-3:  clamp(1.5rem, 1.35rem + 0.7vw, 1.85rem);
  --step-4:  clamp(1.9rem, 1.5rem + 1.9vw, 3rem);

  --s-1: 0.375rem;
  --s-2: 0.75rem;
  --s-3: 1.25rem;
  --s-4: 2rem;
  --s-5: 3.25rem;
  --s-6: 5.25rem;

  --measure: 68ch;
  --wide: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, pre { margin: 0; }
ul, ol { padding-left: 1.25em; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
@supports (min-height: 100dvh) { body { min-height: 100dvh; } }

h1, h2, h3, h4 { font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); line-height: 1.1; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p, ul, ol, blockquote, pre, table { margin-block: var(--s-3); }
main h2 { margin-top: var(--s-5); }
main a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
main a:hover { text-decoration-thickness: 2px; }

/* Japanese: Mincho throughout, headings a full step smaller (a kanji at Latin size shouts). */
:lang(ja) { font-family: var(--font-ja); line-height: 1.85; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4 { letter-spacing: 0; line-height: 1.5; }
:lang(ja) h1 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2.1rem); }
:lang(ja) h2 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); }
:lang(ja) h3 { font-size: 1.125rem; }

main {
  flex: 1;
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding: var(--s-4) var(--s-3) var(--s-6);
}

body > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding: var(--s-3);
}
.brand { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.brand:hover { color: var(--accent); }
body > header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-1) var(--s-3); font-size: var(--step--1); }
body > header nav a { color: var(--ink-2); text-decoration: none; }
body > header nav a:hover { color: var(--ink); }
body > header nav a.lang { border: 1px solid var(--rule); border-radius: 99px; padding: 0 0.7em; }
body > header nav a.lang:hover { border-color: var(--accent); }

.intro { max-width: var(--measure); margin-bottom: var(--s-4); }
.intro p { color: var(--ink-2); margin-block: var(--s-2) 0; }

/* ── reels ─────────────────────────────────────────────────────────────── */
.reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.reel {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--bg-2);
  color: #fff;
  text-decoration: none;
}
.reel--featured { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.reel video { opacity: 0; transition: opacity 0.25s ease-out; }
.reel.is-playing video { opacity: 1; }
.reel img { transition: transform 0.6s ease-out; }
.reel__cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: var(--s-5) var(--s-3) var(--s-3);
  background: linear-gradient(transparent, rgb(0 0 0 / 0.82));
}
.reel__cap strong { font-size: var(--step-2); font-weight: 650; line-height: 1.2; }
.reel--featured .reel__cap strong { font-size: var(--step-3); }
.reel__cap > span { font-size: var(--step--1); line-height: 1.4; color: rgb(255 255 255 / 0.82); }
.reel__desktop { display: none; font-style: normal; font-size: 0.8125rem; color: rgb(255 255 255 / 0.7); }
.reel:focus-visible { outline-offset: 3px; }
@media (hover: hover) {
  .reel:hover { outline: 2px solid var(--accent); outline-offset: 2px; }
  .reel:hover img { transform: scale(1.03); }
}
@media (hover: none) { .reel__desktop { display: block; } }
@media (max-width: 640px) {
  .reels { grid-template-columns: 1fr; }
  .reel--featured { aspect-ratio: 16 / 9; }
  .reel__cap { padding: var(--s-4) var(--s-2) var(--s-2); }
}
@media (prefers-reduced-motion: reduce) {
  .reel img, .reel video { transition: none; }
  .reel:hover img { transform: none; }
}

/* ── about, notes, errors ──────────────────────────────────────────────── */
.about, main > h1, main > p { max-width: var(--measure); }
.about > h1:first-child { margin-bottom: var(--s-3); }
.about table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.about th, .about td { text-align: left; vertical-align: top; padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: 1px solid var(--rule); }
.about th { color: var(--ink-2); font-weight: 500; }
.note { color: var(--ink-2); font-size: var(--step--1); border-left: 2px solid var(--rule); padding-left: var(--s-2); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--bg-2); padding: 0.1em 0.35em; border-radius: 3px; }

body > footer {
  display: flex;
  gap: var(--s-3);
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
}
body > footer a { color: var(--ink-2); text-decoration: none; }
body > footer a:hover { color: var(--accent); }

/* ── business sections (below the showcase) ────────────────────────────── */
:root { --warn: #e6a95c; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.biz { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--rule); scroll-margin-top: var(--s-3); }
.biz__head { max-width: var(--measure); margin-bottom: var(--s-4); }
.biz__head h2, .ask h2 { margin-top: 0; font-size: var(--step-4); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
:lang(ja) .biz__head h2, :lang(ja) .ask h2 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.9rem); line-height: 1.5; letter-spacing: 0; }
.biz__head p { color: var(--ink-2); margin-block: var(--s-2) 0; }

/* The systems, set like a schedule: what the business has on the left, what I build for it on the right. */
.schedule { margin: 0; }
.schedule__row { display: grid; grid-template-columns: minmax(9rem, 1fr) 4fr; gap: var(--s-3); padding-block: var(--s-3); border-top: 1px solid var(--rule); }
.schedule__row:last-child { border-bottom: 1px solid var(--rule); }
.schedule dt { color: var(--accent); font-size: var(--step--1); font-weight: 500; padding-top: 0.2em; }
.schedule dd { margin: 0; }
.schedule ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); }
.schedule li { display: grid; gap: var(--s-1); align-content: start; }
.schedule li:only-child { grid-column: span 2; }
.schedule strong { font-size: var(--step-1); font-weight: 650; line-height: 1.25; }
.schedule li span { color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; }
:lang(ja) .schedule li span { line-height: 1.75; }

/* Equipment: the live panel beside the path a reading takes. */
.plant { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-5); align-items: start; }
.monitor { background: var(--bg-2); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.monitor__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-1) var(--s-3); padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--rule); font-size: var(--step--1); }
.monitor__name { font-weight: 650; }
.monitor__status { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.monitor__status::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.5em; border-radius: 50%; background: currentColor; }
.monitor[data-state="drift"] .monitor__status, .monitor[data-state="order"] .monitor__status { color: var(--warn); }
.monitor[data-state="serviced"] .monitor__status { color: var(--accent); }
.monitor__plot { position: relative; }
.monitor svg { display: block; width: 100%; height: clamp(190px, 26vw, 300px); }
.monitor svg * { vector-effect: non-scaling-stroke; fill: none; }
.monitor__grid line { stroke: var(--rule); stroke-width: 1; }
.monitor__limit { stroke: var(--warn); stroke-width: 1; stroke-dasharray: 6 5; }
.monitor__now { stroke: var(--ink-2); stroke-width: 1; opacity: 0.45; }
.monitor__trace { stroke: var(--accent); stroke-width: 1.75; stroke-linejoin: round; }
.monitor__forecast { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: 0.9; }
.monitor svg .monitor__cone { fill: var(--accent); opacity: 0.1; }
.monitor[data-state="drift"] .monitor__forecast, .monitor[data-state="order"] .monitor__forecast { stroke: var(--warn); }
.monitor[data-state="drift"] svg .monitor__cone, .monitor[data-state="order"] svg .monitor__cone { fill: var(--warn); }
.monitor__tag { position: absolute; font-size: 0.75rem; line-height: 1; color: var(--ink-2); white-space: nowrap; }
.monitor__tag--limit { left: var(--s-2); top: calc(29% - 1.3em); color: var(--warn); }
.monitor__tag--now { left: 65.625%; bottom: var(--s-1); transform: translateX(-50%); background: var(--bg-2); padding: 2px 6px; }
.monitor__tag--forecast { right: var(--s-2); bottom: var(--s-1); }
.monitor figcaption { padding: var(--s-1) var(--s-3) var(--s-2); border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.8125rem; }

.path { list-style: none; margin: 0; padding: 0; }
.path li { position: relative; display: grid; gap: 2px; padding: 0 0 var(--s-3) var(--s-4); }
.path li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); z-index: 1; }
.path li::after { content: ""; position: absolute; left: 8px; top: 0.5em; bottom: -0.5em; width: 1px; background: var(--rule); }
.path li:last-child { padding-bottom: 0; }
.path li:last-child::after { display: none; }
.path strong { font-weight: 650; line-height: 1.3; }
.path span { color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; }
:lang(ja) .path span { line-height: 1.75; }

.ask { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-5); }
.ask p { color: var(--ink-2); margin-block: var(--s-2) 0; max-width: var(--measure); }
main .ask__action { flex: none; padding: 0.7em 1.5em; border-radius: 99px; background: var(--accent); color: var(--bg); font-weight: 650; text-decoration: none; }
main .ask__action:hover { background: var(--ink); }

@media (max-width: 900px) {
  .plant { grid-template-columns: 1fr; gap: var(--s-4); }
  .schedule ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .biz { margin-top: var(--s-5); padding-top: var(--s-4); }
  .schedule__row { grid-template-columns: 1fr; gap: var(--s-2); }
  .schedule ul { grid-template-columns: 1fr; }
  .schedule li:only-child { grid-column: auto; }
}
