/* Nagi Studios — shared styles. No external resources. */

:root {
  --bg: #fbfcfd;
  --bg-soft: #f1f4f8;
  --surface: #ffffff;
  --text: #1d2530;
  --text-soft: #4f5b6a;
  --line: #dde3ea;
  --accent: #2f5d8a;
  --accent-hover: #234a70;
  --accent-text: #ffffff;
  --frost: #e6eef7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 45, .05), 0 8px 24px rgba(20, 30, 45, .06);
  --max: 68rem;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161d;
    --bg-soft: #171e27;
    --surface: #1b232d;
    --text: #e7ecf2;
    --text-soft: #a6b1be;
    --line: #2a3440;
    --accent: #9cc3ea;
    --accent-hover: #bcd6f1;
    --accent-text: #0e1620;
    --frost: #1f2b38;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -999px; top: .5rem;
  background: var(--surface); padding: .5rem 1rem; border-radius: 8px; z-index: 10;
}
.skip:focus { left: .5rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: baseline; gap: .5rem; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.brand .kanji { font-size: 1.35rem; color: var(--accent); font-weight: 500; }
.site-nav { display: flex; gap: 1.25rem; font-size: .95rem; }
.site-nav a { color: var(--text-soft); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Sections */
section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
section + section { border-top: 1px solid var(--line); }
.soft { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--text-soft); margin-bottom: .75rem; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--text-soft); max-width: 40rem; }
.muted { color: var(--text-soft); }
.small { font-size: .9rem; }

/* Hero */
.hero { text-align: center; padding-top: clamp(3.5rem, 10vw, 7rem); }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero-icon { width: 128px; height: 128px; margin: 0 auto 1.5rem; filter: drop-shadow(0 10px 22px rgba(30, 60, 100, .18)); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 2rem 0 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.9rem; padding: .65rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid var(--accent); transition: background .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--frost); }
.fineprint { font-size: .88rem; color: var(--text-soft); }

.hero-shot { margin: 3rem auto 0; max-width: 56rem; }
.shot { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.shot img { width: 100%; }
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--text-soft); margin-top: .6rem; text-align: center; }

/* Grids */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

.feature { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 800px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.flip > :first-child { order: 2; }
}

.effects { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.effects li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.effects strong { display: block; }
.effects span { color: var(--text-soft); font-size: .95rem; }

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-top: 2rem; }
.gallery img { border-radius: 10px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding-left: 1.6rem; position: relative; margin-bottom: .6rem; }
ul.checks li::before { content: "❄"; position: absolute; left: 0; color: var(--accent); font-size: .9em; }

/* Product card (home) */
.product-card { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 720px) { .product-card { grid-template-columns: 9rem 1fr; } }
.product-card img { width: 9rem; height: 9rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
details p { margin: .75rem 0 0; color: var(--text-soft); }

/* Tables / legal */
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--text); }
.legal .meta { color: var(--text-soft); font-size: .92rem; }
dl.spec { display: grid; grid-template-columns: 1fr; margin: 1.5rem 0; border-top: 1px solid var(--line); }
dl.spec > div { display: grid; gap: .25rem 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { dl.spec > div { grid-template-columns: 14rem 1fr; } }
dl.spec dt { font-weight: 600; }
dl.spec dd { margin: 0; }
.placeholder { background: #fff3c4; color: #5a4300; padding: 0 .25em; border-radius: 3px; }
@media (prefers-color-scheme: dark) { .placeholder { background: #4a3d10; color: #ffe9a8; } }

.release { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.release h2 { margin-bottom: .2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .9rem; color: var(--text-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: 1rem; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--text); }
