/* ─── Tokens ─── */
:root {
  --cream: #F4EFE6;
  --limestone: #E0D4C1;
  --lagoon: #0B2846;
  --teal: #1E7C7C;
  --sand: #C4A882;
  --ink: #1C1714;
  --ink-soft: #4A3F35;
  --muted: #7A6F63;
  --surface: #FDFAF6;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(244,239,230,0.95) 0%, rgba(244,239,230,0) 100%);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: baseline; gap: 0.5rem; }
.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lagoon);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 55vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, rgba(30,124,124,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--lagoon);
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}
.hero-headline em { font-style: italic; color: var(--teal); }
.hero-lede {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.7;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wave-accent {
  position: absolute;
  width: 120%;
  height: 50%;
  bottom: -25%;
  left: -10%;
  background: linear-gradient(135deg, transparent 40%, var(--teal) 100%);
  opacity: 0.08;
  border-radius: 50% 50% 0 0;
  transform: rotate(-3deg);
}
.book-pile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}
.book {
  background: var(--lagoon);
  border-radius: 3px 8px 8px 3px;
  padding: 1.25rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 4px 4px 20px rgba(11,40,70,0.25);
  transition: transform 0.3s ease;
}
.book:hover { transform: translateX(6px) rotate(1deg); }
.book::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--teal);
  border-radius: 3px 0 0 3px;
}
.book-tall { padding: 1.5rem 1.75rem; }
.book-wide { background: var(--ink-soft); padding: 1rem 1.5rem; transform: rotate(-0.5deg); }
.book-wide::before { background: var(--sand); }
.book-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}
.book-sub {
  font-size: 0.72rem;
  color: rgba(244,239,230,0.6);
  font-weight: 400;
}
.book-pile .book:nth-child(2) { transform: rotate(0.5deg); }
.book-pile .book:nth-child(3) { transform: rotate(-1deg); }

/* Hero stats */
.hero-stats {
  border-top: 1px solid var(--limestone);
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  gap: 2rem;
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--lagoon);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 3rem;
  background: var(--limestone);
  flex-shrink: 0;
}

/* ─── Story ─── */
.story { background: var(--lagoon); color: var(--cream); padding: 7rem 2rem; }
.story-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5rem;
  align-items: start;
}
.story-mark {
  padding-top: 0.5rem;
}
.chamoru-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--sand);
  writing-mode: vertical-lr;
  text-orientation: mixed;
  letter-spacing: 0.1em;
}
.story-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.story-headline em { font-style: italic; color: var(--sand); }
.story-body {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(244,239,230,0.82);
  line-height: 1.75;
  max-width: 56ch;
  margin-bottom: 1.25rem;
}
.story-body:last-child { margin-bottom: 0; }

/* ─── Section Common ─── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--lagoon);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ─── Collection ─── */
.collection { background: var(--surface); padding: 7rem 2rem; }
.shelf-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3rem;
}
.shelf-item { display: flex; flex-direction: column; gap: 0.75rem; }
.shelf-icon {
  color: var(--teal);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,124,124,0.08);
  border-radius: 8px;
}
.shelf-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lagoon);
  letter-spacing: -0.01em;
}
.shelf-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ─── Authors ─── */
.authors { background: var(--cream); padding: 7rem 2rem; }
.author-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}
.author-card {
  border-left: 3px solid var(--teal);
  padding-left: 1.5rem;
}
.author-nameplate {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--lagoon);
  margin-bottom: 0.6rem;
}
.author-bio {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ─── Philosophy ─── */
.philosophy { background: var(--surface); padding: 7rem 2rem; }
.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.philosophy-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--lagoon);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.philosophy-headline em { font-style: italic; color: var(--teal); }
.philosophy-body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 48ch;
  margin-bottom: 1rem;
}
.philosophy-word { display: flex; flex-direction: column; gap: 1.25rem; }
.word-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--limestone);
}
.chamoru-word {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--lagoon);
  margin-bottom: 0.5rem;
}
.chamoru-trans {
  display: block;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Closing ─── */
.closing { background: var(--lagoon); padding: 7rem 2rem; text-align: center; }
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.closing-headline em { font-style: italic; color: var(--sand); }
.closing-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(244,239,230,0.65);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--cream);
  padding: 3rem 2rem;
  border-top: 1px solid var(--limestone);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lagoon);
}
.footer-tagline {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
}
.footer-links span {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding-top: 6rem; }
  .hero-visual { display: none; }
  .shelf-grid { grid-template-columns: 1fr 1fr; }
  .author-grid { grid-template-columns: 1fr; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 3rem; }
  .story-inner { grid-template-columns: 1fr; gap: 2rem; }
  .chamoru-mark { writing-mode: horizontal-tb; }
}
@media (max-width: 600px) {
  .shelf-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}