/* ============================================================
   THE EPIC PRESS — style.css
   World-class publisher · 2025-02-10 · FINAL
   ============================================================ */

/* ---------------------------
   0) Theme Variables
---------------------------- */
:root {
  --bg: #FAFAF7;
  --bg-warm: #F3F1EC;
  --bg-hero: #0F1C28;
  --text: #1A1A1A;
  --text-light: #444444;
  --text-muted: #888888;
  --white: #FFFFFF;
  --line: #E0DDD6;
  --line-dark: rgba(255,255,255,0.15);
  --accent: #1B1B2F;
  --accent-hover: #2D2D47;
  --gold: #C4A265;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 4px;
  --wrap: 1100px;
  --nav-h: 72px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}


/* ---------------------------
   1) Reset & Base
---------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

::selection {
  background: rgba(184,150,90,0.25);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--text-light);
}


/* ---------------------------
   2) Layout
---------------------------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 48px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 0 0 40px;
}

.hide-mobile { display: inline; }

@media (max-width: 600px) {
  .hide-mobile { display: none; }
}


/* ---------------------------
   3) Nav
---------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-hero);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  letter-spacing: .18em;
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--white);
  font-family: var(--sans);
}

.links {
  display: flex;
  gap: 40px;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.7);
}

.links a:hover { color: var(--white); }


/* ---------------------------
   4) Buttons
---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  border: none;
}

.btn.primary {
  background: var(--accent);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--accent-hover);
}

.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}

.btn.outline:hover {
  background: var(--text);
  color: var(--white);
}

.btn.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--line);
}

.btn.ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Hero buttons */
.hero .btn.primary {
  background: var(--gold);
  color: #0F1C28;
  padding: 18px 44px;
  font-size: 17px;
}

.hero .btn.primary:hover {
  background: #D4B275;
}

.hero .btn.outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 18px 44px;
  font-size: 17px;
}

.hero .btn.outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
}

.cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}


/* ---------------------------
   5) Hero — CONFIRMED LAYOUT
---------------------------- */
.hero {
  background: var(--bg-hero);
  color: var(--white);
  overflow: hidden;
  position: relative;
  height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 60px 0 120px;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.scroll-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all .2s ease;
  animation: bounce 2s infinite;
  z-index: 10;
}

.scroll-hint:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.hero-text .kicker {
  color: var(--gold);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 24px;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(72px, 9vw, 130px);
  font-weight: 700;
  color: var(--white);
  line-height: 0.92;
  margin: 0 0 36px;
}

.hero-text .sub {
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  line-height: 1.6;
  margin: 0 0 48px;
  max-width: 540px;
}

/* Covers */
.hero-covers {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - var(--nav-h) - 40px);
  overflow: hidden;
}

.cover-stack {
  display: flex;
  gap: 16px;
  align-items: center;
  height: 100%;
  max-width: 100%;
}

.cover {
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  height: 92%;
  width: auto;
  max-width: calc(50% - 8px);
  object-fit: contain;
  transition: transform .3s ease;
}

.cover:hover {
  transform: translateY(-6px);
}


/* ---------------------------
   6) Books Section
---------------------------- */
.books-section {
  padding: 72px 0 64px;
}

.section-title {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}

.book-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.book-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease;
}

.book-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.1);
}

.book-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.book-info h3 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}

.book-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text-light);
  margin: 0 0 12px;
  line-height: 1.5;
}

.book-author {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 22px;
}

.book-desc {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-light);
  margin: 0 0 18px;
}

.book-release {
  font-size: 15px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 26px;
}

.book-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ---------------------------
   7) About Strip
---------------------------- */
.about-strip {
  padding: 64px 0 72px;
}

.about-content {
  max-width: 800px;
}

.about-content .section-title {
  margin-bottom: 16px;
}

.about-content p {
  font-size: 20px;
  line-height: 1.8;
  margin: 0 0 28px;
}


/* ---------------------------
   8) Catalog Page (/books/)
---------------------------- */
.pagehead {
  padding: 48px 0 32px;
}

.pagehead .kicker {
  color: var(--gold);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
}

.pagehead h1 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.pagehead .sub {
  font-size: 18px;
  color: var(--text-light);
  margin: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card.book.wide {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}

.card.book.wide .media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card.book.wide .body h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
}

.card.book.wide .body .meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-light);
  margin: 0 0 20px;
  line-height: 1.5;
}

.card.book.wide .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}


/* ---------------------------
   8.5) Latest Briefings
---------------------------- */
.briefings-section {
  padding: 72px 0 64px;
}

.briefings-source {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.briefings-source a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.briefings-source a:hover {
  text-decoration: underline;
}

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.briefing-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
}

.briefing-placeholder p {
  font-size: 15px;
  color: var(--text-muted);
}

.briefing-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease, transform .2s ease;
}

.briefing-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.briefing-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-hero);
}

.briefing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.9;
}

.briefing-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.briefing-thumb-placeholder span {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: -1px;
}

.briefing-body {
  padding: 20px 24px 24px;
}

.briefing-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}

.briefing-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--text);
}

.briefing-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-light);
  margin: 0 0 14px;
}

.briefing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.briefing-date {
  font-size: 12px;
  color: var(--text-muted);
}

.briefing-read {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.briefings-cta {
  text-align: center;
  margin-top: 32px;
}

/* Nav Blog link accent */
.links .blog-link {
  color: var(--gold);
}

.links .blog-link:hover {
  color: #D4B275;
}


/* ---------------------------
   9) Footer
---------------------------- */
.footer {
  padding: 0 0 56px;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  letter-spacing: .18em;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 15px;
  color: var(--text-light);
  margin: 0 0 16px;
}

.footer-links a:hover {
  color: var(--text);
}

.fine {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 4px;
}


/* ---------------------------
   10) Responsive
---------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    padding: 0 40px;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 60px;
  }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 100vh;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px 60px;
  }

  .hero-text .sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-covers {
    order: -1;
    height: 50vh;
  }

  .cover-stack {
    justify-content: center;
  }

  .cta {
    justify-content: center;
  }

  .book-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px;
  }

  .book-cover img {
    max-width: 300px;
    margin: 0 auto;
  }

  .book-actions {
    justify-content: center;
  }

  .section-title {
    font-size: 40px;
  }

  .book-info h3 {
    font-size: 32px;
  }

  .card.book.wide {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .card.book.wide .media img {
    max-width: 280px;
    margin: 0 auto;
  }

  .card.book.wide .actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }

  .hero-inner {
    padding: 32px 20px 40px;
  }

  .hero-text h1 {
    font-size: 44px;
  }

  .hero-text .sub {
    font-size: 18px;
  }

  .hero-covers {
    height: 40vh;
  }

  .section-title {
    font-size: 32px;
  }

  .book-info h3 {
    font-size: 26px;
  }

  .book-card {
    padding: 20px;
  }

  .book-desc {
    font-size: 16px;
  }

  .brand {
    font-size: 16px;
  }

  .links {
    gap: 24px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .card.book.wide {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cover, .book-card { transition: none; }
}

/* ---------------------------
   11) i18n — Korean hero text sizing
---------------------------- */
[data-lang="ko"] .hero-text h1 {
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
  [data-lang="ko"] .hero-text h1 {
    font-size: 48px;
  }
}

@media (max-width: 600px) {
  [data-lang="ko"] .hero-text h1 {
    font-size: 36px;
  }
}
