/* YARI homepage. Type and color match the Night watch popup
   (shared/theme.css + wiz/samurai.css): Sawarabi Mincho for the page title,
   IBM Plex Sans for body and section labels. Self-hosted fonts, no CDNs. */

@font-face {
  font-family: "Sawarabi Mincho";
  src: url("fonts/SawarabiMincho-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif CJK JP";
  src: url("fonts/NotoSerifCJKjp-glyph-yari.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+69CD;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #0A0B0D;
  --paper-raised: #141518;
  --ink: #F3F0E8;
  --ink-soft: #B8B4AC;
  --ink-faint: #A8A49C;
  --gold: #C9A35B;
  --gold-hover: #e0c07a;
  --accent: #E0192E;
  --line: rgba(201, 163, 91, 0.35);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sawarabi Mincho", "Times New Roman", serif;
  --wrap: 68rem;
  --pad: 2rem;
  --gutter: 1.5rem;
  color-scheme: dark;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0%, #1A1C20 0%, var(--paper) 42rem);
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100vh;
}

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

a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--gold-hover);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--gold);
  color: #0A0B0D;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}

.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: flex-end;
  padding: 1.2rem 0 1.05rem;
}

.logo-link {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: min(14rem, 64vw);
  height: auto;
}

/* Type: section labels match the popup’s h2 (Plex 600, caps, gold). */

h2 {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.3;
}

/* Hero */

.hero {
  padding: 2.75rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1.75rem;
}

.hero-copy {
  min-width: 0;
  max-width: 44rem;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.35rem, 5.6vw, 4.35rem);
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--gold);
}

.hero-copy h1 span[lang="ja"] {
  font-family: "Noto Serif CJK JP", var(--display);
  font-weight: 400;
}

.hero-lede {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 34rem;
}

.cta-soon {
  display: inline-block;
  margin: 0;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  background: transparent;
}

.spear {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.spear-gleam {
  animation: spear-gleam 6.5s ease-in-out 1.2s infinite;
}

@keyframes spear-gleam {
  0%, 22%, 100% { opacity: 0; transform: translateX(0); }
  8% { opacity: 0.85; }
  18% { opacity: 0; transform: translateX(840px); }
}

/* Features, shots, AI */

.look,
.features,
.ai {
  padding: 2.15rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.feature-row li {
  margin: 0;
  padding: 0;
}

.feature-row h3 {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}

.feature-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.shots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: start;
}

.shot {
  margin: 0;
}

.shot img {
  border: 1px solid var(--line);
  background: var(--paper-raised);
}

.shot-banner img {
  width: 100%;
}

.shot figcaption {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  line-height: 1.45;
}

.shot-popup {
  display: flex;
  flex-direction: column;
  width: 16rem;
}

.shot-popup img {
  width: 16rem;
}

.ai p {
  margin: 0;
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Footer band */

.site-footer {
  padding: 1.25rem 0 1.5rem;
  color: var(--ink-faint);
  font-size: 0.8125rem;
}

.footer-band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1.5rem;
}

.footer-made,
.footer-links {
  margin: 0;
}

.footer-made a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-made a:hover,
.footer-made a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

/* Responsive */

@media (max-width: 800px) {
  :root { --pad: 1.25rem; }

  .hero {
    padding: 2.1rem 0 1.85rem;
  }

  .hero-inner {
    row-gap: 1.15rem;
  }

  .feature-row,
  .shots {
    grid-template-columns: 1fr;
  }

  .feature-row {
    row-gap: 1.15rem;
  }

  .look,
  .features,
  .ai {
    padding: 1.75rem 0;
  }

  .shot-popup {
    width: min(16rem, 100%);
  }

  .shot-popup img {
    width: min(16rem, 100%);
  }
}

@media (max-width: 560px) {
  :root { --pad: 1.1rem; }

  .header-bar {
    padding: 1.1rem 0 1rem;
  }

  .logo {
    width: min(12rem, 78vw);
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .spear-gleam {
    animation: none;
    opacity: 0;
  }
}
