/* Sumo Casa Oriental · sistema visual compartido
   Concepto: una casa de noche. Tinta sumi, papel washi, laca roja de las mesas
   y el arco circular (丸窓) del salón como forma recurrente. Tema único oscuro, deliberado. */
:root {
  color-scheme: dark;
  --sumi: #0e0c0b;          /* fondo: tinta */
  --sumi-2: #17130f;        /* superficies */
  --sumi-3: #231c17;        /* superficies elevadas */
  --washi: #efe6d6;         /* texto: papel */
  --washi-2: #bcb09d;       /* texto secundario */
  --washi-3: #857a6c;       /* notas */
  --urushi: #8f1f15;        /* laca roja de las mesas */
  --urushi-deep: #5e140e;
  --shu: #d65a3f;           /* bermellón para texto pequeño sobre negro */
  --kin: #c8a86d;           /* hoja de oro, filetes */
  --line: rgba(239, 230, 214, .13);
  --line-2: rgba(239, 230, 214, .26);

  --f-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --f-body: "Shippori Mincho B1", "Yu Mincho", Georgia, serif;
  --f-ui: "Zen Kaku Gothic New", "Hiragino Sans", "Segoe UI", system-ui, sans-serif;
  --f-brush: "Yuji Boku", "Shippori Mincho B1", "Yu Mincho", serif;

  --t-xs: .75rem; --t-sm: .875rem; --t-base: 1.0625rem; --t-md: 1.3rem;
  --t-lg: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --t-xl: clamp(2.4rem, 1.5rem + 4vw, 4.6rem);
  --t-xxl: clamp(4rem, 2rem + 10vw, 11rem);

  --ease: cubic-bezier(.22, .7, .12, 1);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--sumi);
  color: var(--washi);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--urushi); color: var(--washi); }
:focus-visible { outline: 1.5px solid var(--kin); outline-offset: 3px; }

.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.22em; }
.ico-lg { width: 1.75em; height: 1.75em; }

/* Etiquetas */
.label {
  font-family: var(--f-ui); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--kin);
}

/* Sello hanko: cuadro de laca con un kanji en pincel */
.hanko {
  --size: 2.4rem;
  width: var(--size); height: var(--size); flex: none;
  display: inline-grid; place-items: center;
  background: var(--urushi); color: var(--washi);
  font-family: var(--f-brush); font-size: calc(var(--size) * .58); line-height: 1;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px rgba(239,230,214,.18), inset 0 0 0 4px var(--urushi);
  position: relative;
}
.hanko::after { /* textura de tinta del sello */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 30% 20%, rgba(0,0,0,.18), transparent 40%),
              radial-gradient(circle at 80% 85%, rgba(0,0,0,.22), transparent 35%);
}
.hanko.outline { background: transparent; color: var(--shu); box-shadow: inset 0 0 0 1.5px var(--shu); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .95em 1.6em; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--washi); text-decoration: none; cursor: pointer;
  font-family: var(--f-ui); font-size: var(--t-sm); letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { border-color: var(--washi); }
.btn .ico { transition: transform .5s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-laca { background: var(--urushi); border-color: var(--urushi); }
.btn-laca:hover { background: #a3271b; border-color: #a3271b; }
.btn-papel { background: var(--washi); color: var(--sumi); border-color: var(--washi); }
.btn-papel:hover { background: #fff8ec; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* Grano de papel sobre todo el sitio */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Textura de laca de las mesas (veta horizontal) */
.laca {
  background-color: var(--urushi-deep);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 30%, rgba(0,0,0,.35)),
    repeating-linear-gradient(178deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px, rgba(0,0,0,.06) 9px 11px, transparent 11px 23px),
    linear-gradient(100deg, #6a170f, #8a1e14 40%, #6e1810 70%, #8f2016);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
