/* HOSHI Jewellery — Design Tokens */

:root {
  /* Palette */
  --off-white: #F8F5F0;
  --paper: #F1ECE3;
  --ink: #0C0C0C;
  --ink-soft: #1A1714;
  --urushi: #0A0908;

  /* Pearl gradient */
  --pearl-50: #FBF8F2;
  --pearl-100: #F4EEE3;
  --pearl-200: #E8DED0;
  --pearl-300: #D6CBB8;
  --pearl-400: #BDB2A0;
  --pearl-500: #A8A19A;
  --pearl-600: #8A8378;
  --pearl-700: #5E5851;

  /* Accent — deep gold / 朱 / platinum */
  --gold: #9C7E3A;
  --gold-soft: #C9A961;
  --platinum: #D8D3CB;
  --shu: #8B2B1F; /* deep vermilion, sparingly */

  /* Type */
  --serif-en: "Didot", "Bodoni 72", "Bodoni Moda", "Playfair Display", serif;
  --serif-jp: "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  --serif-display: "Didot", "Bodoni Moda", "Playfair Display", serif;
  --sans: "Helvetica Neue", "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing / rhythm */
  --rhythm: 8px;
  --gutter: 32px;
  --max-w: 1440px;

  /* Motion */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--serif-jp);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1, "liga" 1;
}

body {
  overflow-x: hidden;
}

::selection {
  background: var(--ink);
  color: var(--off-white);
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
  font-weight: inherit;
}

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

/* Utilities */
.hoshi-didot { font-family: var(--serif-display); font-weight: 400; letter-spacing: 0.02em; }
.hoshi-mincho { font-family: var(--serif-jp); font-weight: 300; }
.hoshi-sans { font-family: var(--sans); font-weight: 300; letter-spacing: 0.08em; }
.hoshi-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--pearl-700);
  font-weight: 400;
}
.hoshi-tate {
  writing-mode: vertical-rl;
  font-feature-settings: "vpal" 1;
}
.hoshi-rule {
  height: 1px;
  background: currentColor;
  opacity: 0.15;
  border: 0;
}
.hoshi-hairline {
  height: 1px;
  background: currentColor;
  opacity: 0.08;
  border: 0;
}

/* Scrollbar minimalism */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--pearl-400); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--pearl-600); }

/* Fade / reveal */
@keyframes hoshi-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hoshi-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hoshi-reveal {
  animation: hoshi-fade-up 1.2s var(--ease) both;
}

/* Kinsugi line — for hairline dividers */
.hoshi-kinsugi {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-soft) 50%, var(--gold) 80%, transparent);
  opacity: 0.5;
}

/* Dark mode root class */
.theme-urushi {
  background: var(--urushi);
  color: var(--pearl-100);
}
.theme-urushi ::selection {
  background: var(--pearl-100);
  color: var(--urushi);
}
