/* Ehoro Village · site v3 (Oct 2026). Monochrome, Notion-inspired: white paper, ink, hairline borders,
   block-based layout, a live slash-command demo, a cursor spotlight, gentle scroll reveals. */
:root {
  --bg: #ffffff; --bg-2: #f7f7f5; --bg-3: #efefed; --ink: #111111; --ink-2: #37352f; --muted: #787774; --line: #e9e9e7;
  --card: #ffffff; --shadow: 0 1px 2px rgba(15,15,15,.04), 0 4px 16px rgba(15,15,15,.06); --dot: rgba(17,17,17,.13);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace; --wrap: 1080px; --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0f; --bg-2: #171717; --bg-3: #202020; --ink: #f5f5f4; --ink-2: #d6d5d2; --muted: #9b9a97; --line: #2a2a2a;
    --card: #141414; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --dot: rgba(255,255,255,.12);
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f0f; --bg-2: #171717; --bg-3: #202020; --ink: #f5f5f4; --ink-2: #d6d5d2; --muted: #9b9a97; --line: #2a2a2a;
  --card: #141414; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --dot: rgba(255,255,255,.12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--sans); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s; }
a:hover { background-size: 100% 1px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--bg); padding: 8px 12px; }
::selection { background: var(--ink); color: var(--bg); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; font-size: 16px; letter-spacing: -.01em; background: none; }
.brand svg { width: 22px; height: auto; } .brand svg .px { fill: var(--ink); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 8px; padding: 0; }
.nav ul a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink-2); font-size: 14.5px; background: none; }
.nav ul a:hover, .nav ul a[aria-current="page"] { background: var(--bg-3); color: var(--ink); }
.nav .end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--bg-3); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); font-weight: 560; font-size: 14.5px; padding: 9px 15px; border-radius: 8px; border: 1px solid var(--ink); white-space: nowrap; transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); background-size: 0 0; }
.btn.ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
@media (max-width: 760px) { .nav ul { display: none; } }

/* type */
.label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.label::before { content: ""; width: 6px; height: 6px; background: var(--ink); border-radius: 1px; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(44px, 7.4vw, 86px); line-height: .98; letter-spacing: -.04em; }
h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.04; margin-bottom: 14px; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; margin-bottom: 6px; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; line-height: 1.55; }
.muted { color: var(--muted); }
section { padding: 96px 0; position: relative; }
@media (max-width: 600px) { section { padding: 64px 0; } }

/* hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.dots { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), #000 0%, transparent 70%); mask-image: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), #000 0%, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero .lede { margin: 22px 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* the slash-command demo */
.page-demo { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.page-demo .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-demo .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.page-demo .bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.page-demo .body { padding: 22px 24px 26px; min-height: 330px; }
.page-demo .title { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-bottom: 4px; }
.page-demo .sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.blk { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 15px; color: var(--ink-2); animation: pop .35s ease both; }
.blk .ic { width: 22px; height: 22px; border-radius: 5px; background: var(--bg-3); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink); flex: none; }
.blk.done .ic { background: var(--ink); color: var(--bg); }
.line-in { display: flex; align-items: center; gap: 2px; font-size: 15px; color: var(--ink); margin-top: 6px; min-height: 26px; }
.caret { width: 1.5px; height: 18px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.menu { margin-top: 8px; width: min(100%, 300px); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); background: var(--card); padding: 6px; animation: pop .2s ease both; }
.menu p { margin: 4px 8px 6px; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.menu div { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 6px; font-size: 14px; color: var(--ink-2); }
.menu div.on { background: var(--bg-3); color: var(--ink); }
.menu div b { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 12px; background: var(--bg); }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 44px; width: max-content; animation: slide 38s linear infinite; font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.marquee .track span::before { content: "◆"; margin-right: 44px; font-size: 7px; vertical-align: middle; color: var(--line); }
@keyframes slide { to { transform: translateX(-50%); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 40px; }
.stats div { padding: 22px 20px; border-right: 1px solid var(--line); background: var(--card); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 40px; letter-spacing: -.04em; color: var(--ink); line-height: 1; font-weight: 700; }
.stats span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(2) { border-right: 0; } .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* blocks and cards */
.grid { display: grid; gap: 14px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .g2 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: transform .2s, box-shadow .25s, border-color .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 18%, var(--line)); }
.card .glyph { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; margin-bottom: 16px; background: var(--bg-2); }
.card .glyph svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.card .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--line); }
.card .meta strong { color: var(--ink); font-weight: 600; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); margin: 0 4px 6px 0; }
.tag.dark { background: var(--ink); color: var(--bg); }

/* Notion-style block handle on hover */
.block { position: relative; }
.block::before { content: "⋮⋮"; position: absolute; left: -26px; top: 2px; color: var(--muted); font-size: 13px; letter-spacing: -3px; opacity: 0; transition: opacity .15s; }
.block:hover::before { opacity: .7; }
@media (max-width: 1140px) { .block::before { display: none; } }

/* callout and toggles */
.callout { display: flex; gap: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.callout .sq { width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; flex: none; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; font-weight: 560; color: var(--ink); }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "▸"; font-size: 13px; transition: transform .2s; color: var(--muted); }
details[open] summary::before { transform: rotate(90deg); }
details p { margin: 10px 0 0 22px; color: var(--muted); }

/* case list (work page) */
.case { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.case:first-child { border-top: 0; }
.case dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 10px 20px; }
.case dt { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 3px; } .case dd { margin: 0; }
@media (max-width: 800px) { .case { grid-template-columns: 1fr; gap: 14px; } .case dl { grid-template-columns: 1fr; gap: 2px; } .case dd { margin-bottom: 8px; } }

/* person */
.person { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .person { grid-template-columns: 1fr; gap: 20px; } }
.props { border-top: 1px solid var(--line); }
.props div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.props span:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 2px; }
@media (max-width: 600px) { .props div { grid-template-columns: 1fr; gap: 2px; } }
.lab { display: grid; grid-template-columns: 88px 1fr auto; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--card); }
.lab img { width: 88px; height: 88px; image-rendering: pixelated; border-radius: 8px; background: var(--bg-3); filter: grayscale(1) contrast(1.1); transition: filter .3s; }
.lab:hover img { filter: none; }
@media (max-width: 640px) { .lab { grid-template-columns: 64px 1fr; } .lab img { width: 64px; height: 64px; } .lab .btn { grid-column: 1 / -1; justify-self: start; } }

/* closing band */
.band { background: var(--ink); color: var(--bg); }
.band h2, .band .label { color: var(--bg); } .band .label::before { background: var(--bg); }
.band .lede { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.band .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.band .btn.ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
footer { padding: 30px 0 44px; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
footer .right { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }
@media (max-width: 600px) { footer .right { margin-left: 0; } }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee .track, .caret, .blk, .menu { animation: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* v4 additions: logo, steps, audience, articles */
.brand img { width: 26px; height: 26px; object-fit: contain; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 28px; }
.who div { padding: 20px; border-right: 1px solid var(--line); background: var(--card); }
.who div:last-child { border-right: 0; }
.who b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.who span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .who { grid-template-columns: 1fr 1fr; } .who div:nth-child(2) { border-right: 0; } .who div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .who { grid-template-columns: 1fr; } .who div { border-right: 0; border-bottom: 1px solid var(--line); } .who div:last-child { border-bottom: 0; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; counter-reset: s; }
.steps div { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps div::before { content: "0" counter(s); font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 8px; }
.steps b { display: block; color: var(--ink); font-size: 18px; letter-spacing: -.01em; margin-bottom: 4px; }
.steps span { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.posts { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 24px; }
.post-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); background: none; }
.post-row:hover { background: none; }
.post-row:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.post-row time, .post-row .rt { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.post-row p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; gap: 4px; } }
.article { max-width: 720px; margin: 0 auto; padding: 56px 24px 24px; }
@media (max-width: 600px) { .article { padding: 36px 16px 16px; } }
.article .crumbs { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.article .crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.05; letter-spacing: -.03em; }
.article .dek { font-size: 19px; color: var(--muted); margin: 16px 0 10px; line-height: 1.5; }
.article .byline { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.prose { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 26px; margin: 40px 0 10px; letter-spacing: -.02em; }
.prose h3 { font-size: 19px; margin: 26px 0 6px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; } .prose li { margin-bottom: 8px; }
.prose a { color: var(--ink); background-size: 100% 1px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ink); color: var(--ink); font-size: 18px; }
.prose .callout { margin: 26px 0; font-size: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 20px; }
.prose th { text-align: left; font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--ink); padding: 6px 8px 6px 0; }
.prose td { border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; vertical-align: top; }
.related { max-width: 720px; margin: 10px auto 0; padding: 0 24px 40px; }
@media (max-width: 600px) { .related { padding: 0 16px 32px; } }

/* v5 polish: mobile menu, focus, contrast */
.menu-btn { display: none; }
.mnav { border-top: 1px solid var(--line); background: var(--bg); }
.mnav .wrap { display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 12px; }
.mnav a { padding: 11px 2px; border-bottom: 1px solid var(--line); color: var(--ink); background: none; font-size: 16px; }
.mnav a:last-child { border-bottom: 0; font-weight: 600; }
@media (max-width: 760px) { .menu-btn { display: grid; } .nav .end .btn { display: none; } }
@media (min-width: 761px) { .mnav { display: none !important; } }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
:root { --muted: #6b6a66; }
.nav .mnav .wrap { height: auto; align-items: stretch; gap: 0; }
