:root {
  color-scheme: dark;
  --bg: #010102;
  --surface: #111113;
  --ink: #f7efe5;
  --muted: #b9aa9c;
  --line: #2c2a2d;
  --accent: #b9a7ff;
  --accent-soft: #d4c9ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(1, 1, 2, 0.96), rgba(1, 1, 2, 0.96)),
    radial-gradient(circle at 78% 8%, rgba(159, 123, 255, 0.12), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(210, 98, 143, 0.08), transparent 28%),
    radial-gradient(ellipse at 82% 82%, rgba(142, 63, 118, 0.19), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 68%, transparent);
  text-underline-offset: 0.18em;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.hero {
  max-width: 760px;
  padding: 48px 0 56px;
}

.eyebrow,
time {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12em;
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 8vw, 5.4rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 20px;
  font-size: 1.45rem;
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.note-list {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.note-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.note-item h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.note-item p {
  grid-column: 2;
  color: var(--muted);
}

.note-detail {
  max-width: 760px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--muted);
}

.note-detail header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.note-detail h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 7vw, 4.4rem);
}

.note-detail header p,
.prose {
  color: var(--muted);
}

.prose {
  padding-top: 32px;
  font-size: 1.05rem;
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding-top: 16px;
  }

  .note-item {
    display: block;
  }

  .note-item p {
    margin-bottom: 0;
  }
}
