/* ==========================================================================
   Foundation
   Design tokens, reset, base element styles, web fonts.
   LINOA NAIL — Editorial Beauty Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color — Base */
  --color-ivory: #F6F3EE;
  --color-offwhite: #FBFAF7;

  /* Color — Sub */
  --color-greige: #D8D0C5;
  /* A soft step between --color-ivory and --color-greige — for surfaces
     that should read as "the same room, a touch deeper" rather than a
     distinct colour block (e.g. the intro's panels against the FV's ivory
     background). Deliberately closer to ivory than to greige. */
  --color-veil: #EEE9E2;
  --color-warm-beige: #C8B7A4;
  --color-mocha: #8A7462;
  /* Darker variant of mocha used wherever it carries readable text
     (prices, hover-state button labels) — #8A7462 alone falls to ~4:1
     against ivory, below the 4.5:1 body-text minimum. */
  --color-mocha-deep: #7A6353;

  /* Color — Text */
  --color-charcoal: #2E2B29;
  --color-text-secondary: #6E6761;

  /* Color — Semantic aliases */
  --color-bg: var(--color-ivory);
  --color-surface: var(--color-offwhite);
  --color-border: var(--color-greige);
  --color-text: var(--color-charcoal);
  --color-text-muted: var(--color-text-secondary);
  --color-accent: var(--color-mocha);

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;

  --fs-display: clamp(3.4rem, 3rem + 4vw, 8rem);
  --fs-h1: clamp(2.4rem, 2rem + 2.4vw, 4.2rem);
  --fs-h2: clamp(1.9rem, 1.6rem + 1.4vw, 2.8rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-body-lg: clamp(1.05rem, 1rem + 0.2vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;
  --fs-eyebrow: 0.8rem;

  --lh-tight: 1.15;
  --lh-heading: 1.3;
  --lh-body: 1.85;

  --ls-eyebrow: 0.18em;
  --ls-display: 0.02em;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: clamp(3rem, 2.4rem + 3vw, 6rem);
  /* Section rhythm. Adjacent sections each carry this on their own
     top/bottom, so the gap between two sections' content is effectively
     double this value — kept modest so that doubled gap reads as
     "generous" rather than "empty" at desktop widths (was capped at 9rem,
     which produced ~288px between sections at 1440px+). */
  --space-2xl: clamp(4.5rem, 3.8rem + 2.5vw, 6.5rem);
  --space-3xl: clamp(6rem, 5rem + 5vw, 11rem);

  /* Layout */
  --content-width: 1320px;
  --content-width-narrow: 760px;
  --container-padding: clamp(1.25rem, 1rem + 2vw, 3rem);

  /* Border / radius — kept minimal & sharp per Editorial direction */
  --radius-sm: 2px;
  --border-hairline: 1px solid var(--color-border);

  /* Motion */
  --duration-fast: 200ms;
  --duration-base: 500ms;
  --duration-slow: 900ms;
  --duration-loading: 2000ms;
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index scale.
     --z-header sits ABOVE --z-mobile-nav on purpose: the fullscreen nav
     panel lives outside .l-header in the DOM (see component.css for why),
     so the header — hamburger trigger included — must out-rank it here to
     stay visible/clickable (as the close control) while the panel is
     open. --z-loading stays the highest of the three so the loading/intro
     overlays always sit above absolutely everything else. */
  --z-header: 250;
  --z-mobile-nav: 200;
  --z-loading: 500;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body,
h1, h2, h3, h4, p,
figure,
blockquote,
dl, dd {
  margin: 0;
}

ul[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea {
  font: inherit;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: 'palt' 1;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--lh-heading);
  color: var(--color-text);
}

p {
  max-width: 62ch;
}

/* Focus visibility — never removed, only restyled */
:focus-visible {
  outline: 2px solid var(--color-charcoal);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--color-mocha);
  color: var(--color-offwhite);
}

/* Visually hidden but available to assistive technology */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
