/* 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); }
