/* NARAMILE — Design Tokens
   Aesthetic direction: Kurokawa Echoes editorial — generous whitespace,
   warm off-white, deep ink, elegant serif type.
*/

:root {
  /* Color — neutral white/gray alternating backgrounds */
  --paper:        #ffffff;   /* primary background (white) */
  --paper-2:      #c9c9c9;   /* alternating section bg (gray) */
  --paper-deep:   #b8b8b8;   /* map/card tertiary */
  --ink:          #1a1a1a;   /* primary text */
  --ink-2:        #333333;   /* secondary text */
  --ink-soft:     #6b6b6b;   /* muted */
  --line:         #9a9a9a;   /* hairlines on gray */
  --line-soft:    #dddddd;   /* hairlines on white */
  --accent-sake:  #8b2e1f;   /* deep sake red — accent */
  --accent-moss:  #5a6b4a;   /* moss green */
  --accent-ochre: #9a7b3b;   /* ochre */
  --accent-sumi:  #1a1a1a;   /* sumi ink */

  /* Type */
  --f-mincho: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --f-serif-en: "Cormorant Garamond", "Shippori Mincho", serif;
  --f-sans-jp: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --f-sans-en: "Jost", "Inter", system-ui, sans-serif;

  /* Scale */
  --s-xs: 4px; --s-sm: 8px; --s-md: 16px; --s-lg: 24px;
  --s-xl: 40px; --s-2xl: 72px; --s-3xl: 120px; --s-4xl: 180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans-jp);
  font-weight: 400;
  line-height: 1.75;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Typographic utilities */
.jp-display { font-family: var(--f-mincho); font-weight: 500; letter-spacing: 0.04em; }
.en-display { font-family: var(--f-serif-en); font-weight: 400; font-style: italic; letter-spacing: 0.01em; }
.vertical-jp {
  writing-mode: vertical-rl;
  font-family: var(--f-mincho);
  letter-spacing: 0.3em;
}
.micro-en {
  font-family: var(--f-sans-en);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.micro-jp {
  font-family: var(--f-sans-jp);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

/* Paper texture */
.paper-texture {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(139, 46, 31, 0.015) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(90, 107, 74, 0.02) 0%, transparent 50%);
}
.paper-texture::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
  z-index: 1;
}

/* Custom scrollbar for horizontal strips */
.h-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.h-scroll::-webkit-scrollbar { height: 4px; }
.h-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.h-scroll::-webkit-scrollbar-track { background: transparent; }

/* Hairline underlines */
.hairline-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 0.3s ease;
}
.hairline-link:hover { gap: 18px; }
.hairline-link .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.hairline-link:hover .arrow { transform: translateX(4px); }
