/* LUMINA STUDIO — base tokens, reset, typography */

@font-face {
  font-family: "Pretendard-fallback";
  src: local("Apple SD Gothic Neo"), local("Malgun Gothic");
  font-display: swap;
}

:root {
  /* Ink & gold editorial palette */
  --ink: #0b0b0c;
  --ink-2: #131315;
  --ink-3: #1c1c1f;
  --gold: #c9a227;
  --gold-light: #e8d9a8;
  --gold-dim: #8a742a;
  --off-white: #f4f1e9;
  --off-white-dim: #cfc9bc;
  --line: rgba(244, 241, 233, 0.14);
  --line-strong: rgba(244, 241, 233, 0.28);

  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body: "Pretendard", "Pretendard-fallback", -apple-system, "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;

  --container: 1240px;
  --gap: clamp(1rem, 3vw, 2.5rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.3s;
  --dur: 0.6s;
  --dur-slow: 1.1s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

label {
  display: block;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Headings: serif English display + Pretendard Korean */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--off-white);
}

.kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* Focus visibility — WCAG 2.2 AA */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--gold);
  color: var(--ink);
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  z-index: 200;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus-visible {
  top: 1rem;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

.duotone {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}

.duotone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.82) sepia(0.35);
}

.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.34), rgba(11, 11, 12, 0.55) 60%, rgba(11, 11, 12, 0.86));
  mix-blend-mode: multiply;
}

.duotone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--gold);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn:hover {
  background: transparent;
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}
