:root {
  --bg: #07141d;
  --ink: #f2f7ee;
  --muted: #a9bdc2;
  --soft: #6f8d96;
  --line: #24424d;
  --teal: #72d0c1;
  --amber: #f6b15c;
  --amber-soft: #ffd88f;
  --max-width: 1120px;
  --header-height: 72px;
  font-family:
    "Sora",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 20, 29, 0) 0, var(--bg) 760px),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  image-rendering: pixelated;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(114, 208, 193, 0.55);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--teal);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 12px;
  color: var(--bg);
  background: var(--amber-soft);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(7, 20, 29, 0.76);
  border-bottom: 1px solid rgba(114, 208, 193, 0.16);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--bg);
  background: var(--amber-soft);
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 3px rgba(246, 177, 92, 0.65),
    4px 4px 0 rgba(0, 0, 0, 0.34);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, 78svh);
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.hero__shade,
.pixel-sky {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -3;
  background-image: image-set(
    url("assets/hero-path.webp") type("image/webp"),
    url("assets/hero-path.png") type("image/png")
  );
  background-position: center right;
  background-size: cover;
  image-rendering: auto;
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 20, 29, 0.96) 0%, rgba(7, 20, 29, 0.78) 34%, rgba(7, 20, 29, 0.28) 68%, rgba(7, 20, 29, 0.12) 100%),
    linear-gradient(180deg, rgba(7, 20, 29, 0.18) 0%, rgba(7, 20, 29, 0.32) 64%, var(--bg) 100%);
}

.pixel-sky {
  z-index: -1;
  opacity: 0.48;
  background-image:
    radial-gradient(circle at 14% 22%, var(--amber-soft) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 14%, var(--teal) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 31%, var(--ink) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 18%, var(--amber-soft) 0 1px, transparent 2px);
  background-size: 340px 260px;
  image-rendering: pixelated;
  animation: star-shift 18s steps(4, end) infinite;
}

.hero__content {
  width: min(100% - 36px, var(--max-width));
  margin: 0 auto;
  padding-top: calc(var(--header-height) + 142px);
}

.hero-kanji,
.section-kicker {
  margin: 0;
  color: var(--amber-soft);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kanji {
  font-family: "Noto Serif JP", Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.28),
    0 0 24px rgba(246, 177, 92, 0.18);
  text-transform: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 960px;
  margin: 12px 0 0;
  font-size: clamp(2.9rem, 8.4vw, 6.8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.32),
    0 0 36px rgba(114, 208, 193, 0.22);
}

.section {
  width: min(100% - 36px, var(--max-width));
  margin: 0 auto;
  padding: 92px 0;
}

.section--about {
  padding-top: 76px;
}

.section__header {
  max-width: 840px;
  margin-bottom: 32px;
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: var(--muted);
  font-size: 1.04rem;
}

.about-grid p,
.contact-section p {
  margin: 0;
}

.about-grid span[lang="ja"] {
  color: var(--ink);
  white-space: nowrap;
}

.build-section {
  padding-top: 36px;
}

.build-strip {
  max-width: 760px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(114, 208, 193, 0.08), rgba(246, 177, 92, 0.04)),
    rgba(11, 27, 38, 0.72);
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.build-strip p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  padding-bottom: 118px;
}

.contact-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.contact-section a {
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  display: flex;
  width: min(100% - 36px, var(--max-width));
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  color: var(--soft);
  border-top: 1px solid rgba(114, 208, 193, 0.2);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  color: rgba(169, 189, 194, 0.48);
  font-size: 0.88rem;
}

@keyframes star-shift {
  0%,
  100% {
    opacity: 0.42;
    transform: translateY(0);
  }

  50% {
    opacity: 0.62;
    transform: translateY(4px);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.84rem;
  }

  .hero {
    min-height: min(680px, 84svh);
  }

  .hero__image {
    background-position: 64% center;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(7, 20, 29, 0.88) 0%, rgba(7, 20, 29, 0.7) 48%, var(--bg) 100%),
      linear-gradient(90deg, rgba(7, 20, 29, 0.92), rgba(7, 20, 29, 0.34));
  }

  .hero__content {
    width: min(100% - 32px, var(--max-width));
    padding-top: 168px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
  }

  .section {
    width: min(100% - 32px, var(--max-width));
    padding: 70px 0;
  }

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

@media (max-width: 430px) {
  .brand {
    font-size: 0.96rem;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    min-width: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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