:root {
  --bg:          #F4F4F4;
  --bg-white:    #FFFFFF;
  --ink:         #141414;
  --ink-2:       #2A2A2A;
  --muted:       #6E6E6E;
  --muted-2:     #A9A9A9;
  --rule:        #E5E5E5;
  --rule-soft:   #EFEFEF;
  --accent:      #C89B3C;
  --accent-ink:  #9A7426;
  --chip-bg:     #F0F0F0;
  --foot-bg:     #0E0E0E;
  --foot-muted:  #8B8B8B;
  --foot-accent: #D6A243;
  --max:         1120px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-white);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
.link {
  color: var(--accent-ink);
  border-bottom: 1px solid var(--accent);
  transition: color .18s, border-color .18s;
}
.link:hover { color: var(--ink); border-color: var(--ink); }
p { text-wrap: pretty; }

/* ================= NAV ================= */
.top { background: var(--bg); }
.nav {
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
  padding: 28px 32px 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  padding-bottom: 6px;
  transition: background .18s ease;
}
.brand:hover .brand-mark { background: var(--accent-ink); }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name {
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: lowercase;
}
.brand-name .dot { color: var(--accent); }
.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: -14px; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background .18s ease;
}
.nav-links a:hover { background: #EAEAEA; }
.nav-links .ext { font-size: 11px; color: var(--muted); }

/* ================= HERO ================= */
.hero { padding: 48px 32px 40px; }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 360px;
}
.hello {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 18px;
}
.about-label {
  margin: -8px 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.li {
  display: inline-grid; place-items: center;
  width: 17px; height: 17px;
  margin: 0 1px 0 3px;
  vertical-align: -1px;
  border-radius: 3px;
  background: var(--muted);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  padding-bottom: 1px;
  transition: background .18s ease;
}
.li:hover { background: #0A66C2; color: #fff; }
.path {
  list-style: none; margin: 0 0 36px; padding: 0;
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--muted);
}
.path li { display: inline-flex; align-items: baseline; gap: 10px; }
.path li + li::before { content: "→"; color: var(--muted-2); }
.path .now { color: var(--ink); font-weight: 600; }
.path .now span { color: var(--muted); font-weight: 400; }
.path .next { color: var(--accent-ink); font-weight: 600; }
.musing {
  max-width: 620px;
  margin: -16px 0 36px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}
.musing p { margin: 0 0 10px; }
.musing ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 6px; }
.musing li::marker { color: var(--muted-2); }

.cards { display: grid; gap: 24px; max-width: 520px; }
.card {
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--accent);
}
.card-title {
  font-size: 15px; font-weight: 600;
  margin: 0 0 6px; letter-spacing: -0.005em;
}
.card-body { font-size: 14px; color: var(--muted); margin: 0; }

.scroll-arrow {
  display: block; width: max-content;
  margin: 24px auto 0;
  color: var(--muted-2);
  font-size: 18px;
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-arrow { animation: none; } }

/* ================= SECTIONS ================= */
.write { padding: 88px 32px 96px; }
.write-inner { max-width: var(--max); margin: 0 auto; }
.topic {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: start;
  scroll-margin-top: 24px;
}
.topic:first-child { padding-top: 0; }
.topic:last-child { border-bottom: 0; }
.topic-name {
  grid-column: 1;
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.topic-arrow {
  grid-column: 2; grid-row: 1;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--muted);
  border-radius: 6px;
  font-size: 14px;
  transition: background .18s, color .18s, transform .18s;
}
.topic-arrow:hover { background: var(--ink); color: #fff; transform: translate(2px, -2px); }
.topic-body { grid-column: 1; display: grid; gap: 18px; max-width: 720px; }
.topic-dek { margin: 0; color: var(--muted); font-size: 15px; }

.chips {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 12px;
  background: var(--chip-bg);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
  transition: background .18s ease;
}
a.chip:hover { background: #E5E5E5; }
.chip-k { font-weight: 600; }
.chip-v { color: var(--muted); }
.chip-note { color: var(--accent-ink); font-size: 11.5px; }


/* ================= NOTE ================= */
.note { background: var(--bg); padding: 64px 32px; }
.note-inner { max-width: var(--max); margin: 0 auto; }
.note .card { max-width: 620px; }
.note .card-body { font-size: 15px; color: var(--ink-2); }

/* ================= FOOTER ================= */
footer { background: var(--foot-bg); color: #fff; padding: 44px 32px 28px; }
.foot-inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.foot-name { color: var(--foot-accent); font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em; }
.foot-links { display: flex; justify-content: center; gap: 20px; margin-top: 10px; font-size: 12.5px; color: var(--foot-muted); }
.foot-links a:hover { color: #fff; }
.foot-fine {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11.5px; color: var(--foot-muted);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 860px) {
  .nav { padding: 24px 20px 8px; }
  .nav-links { display: none; }
  .hero { padding: 32px 20px 32px; }
  .hero-inner { min-height: 0; }
  .hello { font-size: 28px; }
  .write { padding: 56px 20px 64px; }
  .note { padding: 48px 20px; }
  footer { padding: 40px 20px 24px; }
}
