:root {
  color-scheme: dark;
  --ink: #070808;
  --ink-soft: #0d0f0f;
  --panel: rgba(18, 20, 20, 0.86);
  --panel-solid: #121414;
  --line: rgba(237, 224, 207, 0.15);
  --line-strong: rgba(237, 224, 207, 0.3);
  --paper: #ede2d2;
  --paper-dim: #b9afa1;
  --ember: #e14a36;
  --ember-bright: #ff674d;
  --ember-dark: #7b211a;
  --eye: #91c8a3;
  --eye-dark: #335e43;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 84% 8%, rgba(225, 74, 54, 0.13), transparent 28rem),
    radial-gradient(circle at 10% 38%, rgba(145, 200, 163, 0.045), transparent 24rem),
    linear-gradient(180deg, #090a0a 0%, #060707 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff7ec;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  color: #fff;
  background: var(--ember-dark);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(780px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 8, 0.76);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 24px;
  height: 38px;
  flex: 0 0 auto;
}

.brand-mark::before {
  position: absolute;
  inset: 1px 10px 5px;
  content: "";
  background: linear-gradient(to bottom, var(--paper), #887f74);
  clip-path: polygon(50% 0, 100% 84%, 50% 100%, 0 84%);
}

.brand-mark::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 10px;
  height: 10px;
  content: "";
  border: 2px solid var(--ember);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-18deg);
  box-shadow: 0 0 18px rgba(225, 74, 54, 0.55);
}

.brand-jp {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.brand-en {
  display: block;
  margin-top: 0.18rem;
  color: var(--paper-dim);
  font-size: 0.62rem;
  letter-spacing: 0.21em;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.desktop-nav a {
  position: relative;
  color: var(--paper-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.58rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--paper);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  display: grid;
  width: 42px;
  height: 42px;
  place-content: center;
  place-items: center;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span,
.mobile-nav summary::before,
.mobile-nav summary::after {
  width: 16px;
  height: 1px;
  content: "";
  background: var(--paper);
  transition: transform 160ms ease, opacity 160ms ease;
}

.mobile-nav summary {
  grid-template-rows: repeat(3, 1px);
  gap: 4px;
}

.mobile-nav[open] summary span {
  opacity: 0;
}

.mobile-nav[open] summary::before {
  transform: translateY(5px) rotate(45deg);
}

.mobile-nav[open] summary::after {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  display: grid;
  width: min(280px, calc(100vw - 40px));
  padding: 0.65rem;
  background: #121414;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.mobile-menu a {
  padding: 0.72rem 0.9rem;
  color: var(--paper-dim);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 10px;
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  color: var(--paper);
  background: rgba(225, 74, 54, 0.09);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  min-height: calc(100svh - 74px);
  padding-block: clamp(4.5rem, 10vw, 8rem);
  gap: clamp(3rem, 8vw, 7rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--eye);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero h1,
.page-hero h1,
.article-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.055em;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(3rem, 8.3vw, 6.9rem);
}

.title-reading {
  display: block;
  margin-top: 0.9rem;
  color: var(--paper-dim);
  font-family: var(--sans);
  font-size: clamp(0.62rem, 1.3vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.38em;
}

.hero-lead {
  max-width: 39rem;
  margin: 2rem 0 0;
  color: var(--paper-dim);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 2;
}

.hero-lead strong {
  color: var(--paper);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.25rem;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, #b73427, var(--ember));
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(225, 74, 54, 0.2);
}

.hero-emblem {
  position: relative;
  display: grid;
  min-height: 490px;
  place-items: center;
}

.hero-emblem::before {
  position: absolute;
  width: min(28vw, 310px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(225, 74, 54, 0.32);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(225, 74, 54, 0.025),
    0 0 90px rgba(225, 74, 54, 0.12);
}

.long-blade {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 370px;
  background: linear-gradient(90deg, #65645e 0%, #f2e8d8 48%, #8d887f 54%, #272929 100%);
  clip-path: polygon(50% 0, 100% 8%, 84% 88%, 50% 100%, 16% 88%, 0 8%);
  filter: drop-shadow(0 0 24px rgba(237, 226, 210, 0.18));
}

.long-blade::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 8px;
  content: "";
  background: linear-gradient(90deg, var(--ember-dark), var(--ember), var(--ember-dark));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 24px rgba(225, 74, 54, 0.32);
}

.emblem-label {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 1.4rem;
  max-width: 14rem;
  padding: 1rem 1.1rem;
  background: rgba(9, 10, 10, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--eye);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--eye);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(145, 200, 163, 0.72);
  animation: breathe 2.8s ease-in-out infinite;
}

.emblem-label p {
  margin: 0.55rem 0 0;
  color: var(--paper-dim);
  font-size: 0.75rem;
  line-height: 1.65;
}

@keyframes breathe {
  50% { opacity: 0.42; transform: scale(0.8); }
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 2rem;
  margin-bottom: 2.6rem;
}

.section-no {
  color: var(--ember);
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.section-title,
.card-title {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.45;
  letter-spacing: 0.055em;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-copy {
  max-width: 42rem;
  margin: 0.9rem 0 0;
  color: var(--paper-dim);
}

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

.card {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2rem);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.16);
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

a.card:hover {
  color: inherit;
  border-color: rgba(225, 74, 54, 0.52);
  transform: translateY(-4px);
}

.card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  background: linear-gradient(to bottom, var(--ember), transparent 75%);
}

.card-kicker {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--eye);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-title {
  font-size: clamp(1.22rem, 2.5vw, 1.6rem);
}

.card p {
  margin: 0.85rem 0 0;
  color: var(--paper-dim);
  font-size: 0.9rem;
  line-height: 1.8;
}

.card-meta,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  color: var(--paper-dim);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.chip.live {
  color: var(--eye);
  border-color: rgba(145, 200, 163, 0.3);
  background: rgba(145, 200, 163, 0.05);
}

.quote-block {
  position: relative;
  margin: 0;
  padding: clamp(2rem, 6vw, 4rem);
  background:
    linear-gradient(135deg, rgba(225, 74, 54, 0.13), transparent 56%),
    var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.quote-block::before {
  display: block;
  margin-bottom: 1.3rem;
  color: var(--ember);
  content: "“";
  font-family: Georgia, serif;
  font-size: 4.8rem;
  line-height: 0.5;
}

.quote-block p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.045em;
}

.quote-block cite {
  display: block;
  margin-top: 1.3rem;
  color: var(--paper-dim);
  font-size: 0.76rem;
  font-style: normal;
  letter-spacing: 0.09em;
}

.page-hero {
  padding-block: clamp(4.5rem, 11vw, 8rem) clamp(3rem, 8vw, 5rem);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.page-intro {
  max-width: 48rem;
  margin: 1.6rem 0 0;
  color: var(--paper-dim);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin-top: 1.6rem;
  color: var(--paper-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.collection-list {
  display: grid;
  gap: 1rem;
}

.collection-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 1.5rem;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.collection-item:hover {
  color: inherit;
  border-color: rgba(225, 74, 54, 0.45);
  transform: translateX(4px);
}

.record-id {
  color: var(--eye);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.collection-item h2,
.collection-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.5;
}

.collection-item p {
  margin: 0.35rem 0 0;
  color: var(--paper-dim);
  font-size: 0.76rem;
  line-height: 1.55;
}

.arrow {
  color: var(--ember);
  font-size: 1.2rem;
}

.notice {
  margin-bottom: 2rem;
  padding: 1.1rem 1.25rem;
  color: var(--paper-dim);
  background: rgba(145, 200, 163, 0.045);
  border: 1px solid rgba(145, 200, 163, 0.18);
  border-radius: 12px;
  font-size: 0.82rem;
}

.notice strong {
  color: var(--eye);
}

.article-wrap {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.article-header {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
}

.article-body {
  padding-block: 2.5rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 2.15;
}

.article-body h2 {
  margin: 3.2rem 0 1.2rem;
  color: var(--paper);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.article-body p {
  margin: 1.4rem 0;
}

.article-body strong {
  color: #fff5e8;
}

.article-body blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 1.7rem;
  color: #fff0df;
  background: rgba(225, 74, 54, 0.08);
  border-left: 3px solid var(--ember);
  border-radius: 0 12px 12px 0;
  font-size: 1.08em;
  font-weight: 700;
}

.signature {
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: var(--paper-dim);
  text-align: right;
  border-top: 1px solid var(--line);
}

.definition-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

.definition-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1.55fr);
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.definition-row dt {
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.definition-row dd {
  margin: 0;
  color: var(--paper-dim);
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 0 1.6rem;
  list-style: none;
  border-left: 1px solid var(--line-strong);
}

.timeline li {
  position: relative;
  padding: 0 0 2.3rem 1.4rem;
}

.timeline li::before {
  position: absolute;
  top: 0.55rem;
  left: -1.92rem;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--ember);
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--ember-dark);
}

.timeline time {
  color: var(--eye);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.timeline h2,
.timeline h3 {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.timeline p {
  margin: 0.5rem 0 0;
  color: var(--paper-dim);
  font-size: 0.9rem;
}

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.footer-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-copy,
.footer-credit {
  margin: 0.55rem 0 0;
  color: var(--paper-dim);
  font-size: 0.7rem;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem 1rem;
}

.footer-links a {
  color: var(--paper-dim);
  font-size: 0.72rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--paper);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-emblem {
    min-height: 320px;
  }

  .hero-emblem::before {
    width: 220px;
  }

  .long-blade {
    height: 280px;
  }

  .emblem-label {
    right: 50%;
    bottom: -0.5rem;
    width: min(280px, 90%);
    transform: translateX(50%);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .shell,
  .narrow {
    width: min(100% - 28px, 1120px);
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-jp {
    font-size: 0.9rem;
  }

  .brand-en {
    font-size: 0.55rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 17vw, 4.5rem);
  }

  .title-reading {
    letter-spacing: 0.28em;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .collection-item {
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
  }

  .collection-item .record-id {
    grid-column: 1 / -1;
  }

  .definition-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
