/* KOZOKOZO Storefront Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;700&display=swap');

/* Import Component Styles */
@import url('components.css');

/* CSS Variables - Single Source of Truth */
:root {
  --paper: #FAF6EE;        /* lighter warm cream */
  --paper-2: #F3EBE0;      /* subtle parchment */
  --ink: #1E2424;          /* near-black/charcoal */
  --muted: #6C6456;        /* warm grey-brown */
  --navy: #303952;         /* deep navy bar */
  --red: #8B2C2C;          /* heritage red */
  --gold: #B08A3C;         /* accent gold */
  --terracotta: #C4735C;   /* warm muted rust */
  --white: #FFFFFF;
  --line: rgba(30,36,36,.15);
  --shadow: 0 10px 30px rgba(0,0,0,.10);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
  padding-bottom: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding-top: 130px; /* Space for fixed header (announcement 32px + header ~70px + buffer) */
  margin-bottom: 100vh; /* Space for parallax footer reveal */
  background-color: var(--white);
  position: relative;
  z-index: 2;
}

/* Page Titles */
.page-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

/* Loading State */
.is-loading {
  position: relative;
  min-height: 200px;
}

.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error State */
.error-state {
  text-align: center;
  padding: 3rem 1rem;
}

.error-state__message {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.error-state__retry {
  margin-top: 1rem;
}
