@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --background: 40 30% 97%;
  --foreground: 20 10% 12%;
  --border: 30 15% 85%;
  --divider: 355 55% 50%;
  --headline: 20 15% 8%;
  --subtitle: 20 8% 35%;
  --muted-foreground: 20 8% 50%;
  --primary: 355 55% 50%;
  --card: 40 25% 95%;
  --accent: 355 55% 50%;
}

*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: hsl(var(--border));
}

html {
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

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

.font-serif {
  font-family: 'Noto Serif SC', serif;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Layout Core */
.min-h-screen { min-height: 100vh; }
.relative { position: relative; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }

/* Display & Flex/Grid */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.self-start { align-self: flex-start; }

/* Margins & Paddings */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.-mx-6 { margin-left: -1.5rem; margin-right: -1.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-8 { padding-top: 2rem; }
.pb-12 { padding-bottom: 3rem; }

/* Typography */
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-\[11px\] { font-size: 11px; }

.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-wide { letter-spacing: 0.025em; }
.uppercase { text-transform: uppercase; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.whitespace-nowrap { white-space: nowrap; }

/* Colors */
.text-foreground { color: hsl(var(--foreground)); }
.text-foreground\/60 { color: hsl(var(--foreground) / 0.6); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-muted-foreground\/70 { color: hsl(var(--muted-foreground) / 0.7); }
.text-headline { color: hsl(var(--headline)); }
.text-headline\/40 { color: hsl(var(--headline) / 0.4); }
.text-subtitle { color: hsl(var(--subtitle)); }
.text-primary { color: hsl(var(--primary)); }

.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-divider { background-color: hsl(var(--divider)); }
.bg-accent\/10 { background-color: hsl(var(--accent) / 0.1); }

/* Borders & Radius */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-border { border-color: hsl(var(--border)); }
.border-accent { border-color: hsl(var(--accent)); }
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-lg { border-radius: 0.5rem; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.w-12 { width: 3rem; }
.h-0\.5 { height: 0.125rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.h-px { height: 1px; }
.w-1\/2 { width: 50%; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.object-cover { object-fit: cover; }

/* Backgrounds */
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-no-repeat { background-repeat: no-repeat; }

/* Grid Gaps */
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.375rem * var(--tw-space-y-reverse)); }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(1rem * var(--tw-space-y-reverse)); }

/* Fade Up Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.vertical-word {
  transform: rotate(90deg) translateX(-30px) !important;
}
.vertical-word.visible {
  transform: rotate(90deg) translateX(0) !important;
}

/* Specific Utilities */
.opacity-\[0\.15\] { opacity: 0.15; }

/* Responsive MD (>= 768px) */
@media (min-width: 768px) {
  .md\:rounded-lg { border-radius: 0.5rem; }
  .md\:-mx-6 { margin-left: -1.5rem; margin-right: -1.5rem; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .md\:gap-5 { gap: 1.25rem; }
  .md\:p-10 { padding: 2.5rem; }
}

/* Transition delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
