:root {
  --ink: #16130f;
  --ink-2: #2a241c;
  --paper: #f4ecd9;
  --paper-2: #e7dcc4;
  --seal: #c4452d;
  --seal-deep: #8e2d1c;
  --moss: #2f5d49;
  --mist: #7d766a;
  --line: rgba(22, 19, 15, 0.12);
  --shadow: 0 24px 50px rgba(22, 19, 15, 0.12);
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "Syne", "IBM Plex Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--seal-deep); }
a:hover { color: var(--seal); }

.wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: .5rem .8rem;
  z-index: 20;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 236, 217, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}

.mon {
  width: 2.15rem;
  height: 2.15rem;
  flex: none;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand-name span { color: var(--seal); }

nav ul {
  display: flex;
  gap: .2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  padding: .45rem .7rem;
  border-radius: 999px;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: .4rem .65rem;
  font: inherit;
  cursor: pointer;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(1200px 280px at 80% -10%, rgba(196, 69, 45, 0.16), transparent 60%),
    linear-gradient(180deg, #efe4c8 0%, var(--paper) 70%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--seal-deep);
  font-weight: 600;
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--seal);
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: .4rem 0 .8rem;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); max-width: 14ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.lede {
  font-size: 1.2rem;
  max-width: 42rem;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: .75rem 1.15rem;
  font-weight: 650;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--seal); color: #fff; }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

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

.card {
  background: #fffdf6;
  border: 1px solid var(--line);
  padding: 1.3rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

.card p { margin: 0; color: var(--ink-2); }
.num {
  font-family: var(--display);
  color: var(--seal);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .08em;
}

section { padding: 3.2rem 0; }

.band {
  background: var(--ink);
  color: var(--paper);
}
.band a { color: #f3c2b8; }
.band .card {
  background: #1f1a15;
  color: var(--paper);
  border-color: rgba(243, 236, 217, 0.12);
  box-shadow: none;
}
.band .card p { color: #d9d0bd; }

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: start;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list li {
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}

.note {
  border-left: 4px solid var(--seal);
  padding: .2rem 0 .2rem 1rem;
}

.prose h2 { margin-top: 2.2rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  font-size: .92rem;
  color: var(--mist);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--seal); }

.kanji {
  font-size: 5rem;
  line-height: 1;
  color: var(--seal);
  font-family: "Noto Serif JP", serif;
  opacity: .9;
}

code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: .88em;
  background: var(--paper-2);
  padding: .08em .35em;
  border-radius: .3em;
}

.split-app {
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
}

.video-short {
  margin: 0;
  justify-self: end;
  width: min(360px, 100%);
  scroll-margin-top: 5.2rem;
}
.list { margin-top: .4rem; }
.split-app p { color: var(--ink-2); }
.video-short iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 1.1rem;
  background: #111;
  box-shadow: var(--shadow);
}
.video-short figcaption {
  margin-top: .7rem;
  font-size: .88rem;
  color: var(--mist);
}

.shot-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}
.shot {
  margin: 0;
}
.shot a {
  display: block;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111;
}
.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.shot figcaption {
  margin-top: .55rem;
  font-size: .85rem;
  color: var(--mist);
}

@media (max-width: 860px) {
  .grid-3, .grid-2, .split { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    inset: 4.4rem 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .6rem 1.2rem 1rem;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; }
  .video-short { justify-self: stretch; width: min(320px, 100%); margin-inline: auto; }
  .shot-rail {
    display: flex;
    overflow-x: auto;
    gap: .8rem;
    scroll-snap-type: x mandatory;
    padding-bottom: .4rem;
    margin-inline: -1.2rem;
    padding-inline: 1.2rem;
  }
  .shot {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }
}
