@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg:          #080b18;
  --surface:     #0d1124;
  --surface-2:   #111830;
  --border:      #1e2540;
  --text:        #ccc8bc;
  --text-muted:  #606880;
  --accent:      #b8965a;
  --accent-l:    #d4b47a;
  --accent-d:    #7a6030;
  --cream:       #faf5e8;
  --nav-h:       72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.75;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-d); }
::selection { background: var(--accent-d); color: var(--cream); }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(12,11,9,0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  z-index: 1000;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-style: italic;
  color: var(--accent-l);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-l); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--accent); transition: all 0.3s; }

/* PAGE WRAPPER */
.page-wrapper { padding-top: var(--nav-h); }

/* HERO */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 80px 48px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 65% 45%, rgba(184,150,90,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 70% at 25% 75%, rgba(184,150,90,0.04) 0%, transparent 60%);
}
.hero-content { position: relative; text-align: center; max-width: 840px; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px; display: block;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 400; line-height: 1.05; color: var(--cream); margin-bottom: 32px;
}
.hero h1 em { font-style: italic; color: var(--accent-l); }
.hero-rule {
  width: 80px; height: 1px; background: var(--accent);
  margin: 0 auto 32px; position: relative;
}
.hero-rule::before, .hero-rule::after {
  content: '◆'; position: absolute; top: -6px;
  font-size: 7px; color: var(--accent);
}
.hero-rule::before { left: -12px; }
.hero-rule::after  { right: -12px; }
.hero p { font-size: 19px; color: var(--text-muted); max-width: 500px; margin: 0 auto 48px; font-style: italic; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* PAGE HERO */
.page-hero {
  padding: 72px 48px 56px; text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(184,150,90,0.05) 0%, transparent 70%);
}
.page-hero-content { position: relative; }
.page-eyebrow {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent-d); margin-bottom: 14px; display: block;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 60px); font-weight: 400; color: var(--cream); line-height: 1.1;
}
.page-hero h1 em { font-style: italic; color: var(--accent-l); }

/* SECTIONS */
.section { padding: 96px 52px; max-width: 1120px; margin: 0 auto; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt .section { max-width: 100%; padding-left: 52px; padding-right: 52px; }
.section-header { margin-bottom: 64px; text-align: center; }
.section-label { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 16px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(34px, 4.5vw, 52px); font-weight: 400; color: var(--cream); line-height: 1.1; }
.section-title em { font-style: italic; color: var(--accent-l); }
.section-rule { width: 56px; height: 1px; background: var(--accent-d); margin: 24px auto 0; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 80px; align-items: start; }
.portrait-wrap { position: relative; }
.portrait-frame {
  background: var(--surface-2);
  border: 1px solid var(--border); position: relative; overflow: hidden;
  line-height: 0;
}
.portrait-frame::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(184,150,90,0.08) 0%, transparent 50%);
  pointer-events: none; z-index: 1;
}
.portrait-frame img { width: 100%; height: auto; display: block; }
.portrait-ph {
  width: 100%; height: 100%; min-height: 360px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--text-muted);
}
.portrait-ph svg { opacity: 0.2; }
.portrait-ph span { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.5; }
.portrait-offset {
  position: absolute; top: 14px; left: 14px; right: -14px; bottom: -14px;
  border: 1px solid var(--accent-d); z-index: -1;
}
.about-text h2 { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 400; color: var(--cream); margin-bottom: 6px; }
.about-text .role { color: var(--accent); font-style: italic; font-size: 18px; margin-bottom: 32px; display: block; }
.about-text p { margin-bottom: 20px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.stat { text-align: center; }
.stat-n { font-family: 'Playfair Display', serif; font-size: 40px; color: var(--accent); display: block; line-height: 1; }
.stat-l { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; display: block; }

/* CONTACT */
.contact-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.contact-form { margin-top: 48px; display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.form-group label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.form-group input, .form-group textarea {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 13px 16px; color: var(--text); font-family: 'EB Garamond', serif; font-size: 17px;
  outline: none; transition: border-color 0.3s; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-d); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; border: 1px solid var(--accent-d);
  background: transparent; color: var(--accent-l);
  font-family: 'EB Garamond', serif; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent-d); transform: translateX(-101%); transition: transform 0.3s;
}
.btn:hover::before { transform: translateX(0); }
.btn span { position: relative; z-index: 1; }
.btn-solid { background: var(--accent-d); color: var(--cream); }
.btn-solid::before { background: var(--accent); }
.btn-full { width: 100%; justify-content: center; }

/* BOOKS */
.books-grid { display: flex; flex-direction: column; gap: 72px; }
.book-entry { border: 1px solid var(--border); padding: 48px; background: var(--surface); position: relative; }
.book-entry::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--accent-l), var(--accent-d));
}
.book-entry-top { margin-bottom: 36px; }
.book-num { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent-d); display: block; margin-bottom: 8px; }
.book-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 400; color: var(--cream); margin-bottom: 10px; }
.book-desc { color: var(--text-muted); max-width: 640px; font-style: italic; }
.book-editions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.edition-card { display: flex; flex-direction: column; }
.edition-lang-label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.edition-lang-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.cover-wrap {
  position: relative; margin-bottom: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  line-height: 0;
}
.cover-wrap img { width: 100%; height: auto; display: block; transition: transform 0.4s; }
.cover-wrap:hover img { transform: scale(1.02); }
.cover-missing { aspect-ratio: 5/7; }
.cover-missing {
  width: 100%; height: 100%; min-height: 160px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px;
}
.cover-missing-icon { font-size: 28px; opacity: 0.2; }
.cover-missing-txt { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); text-align: center; line-height: 1.7; opacity: 0.7; }
.edition-btns { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.edbtn {
  display: block; padding: 9px 12px; text-align: center;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid; transition: all 0.3s; line-height: 1.3;
}
.edbtn-ebook { border-color: var(--accent-d); color: var(--accent-l); }
.edbtn-ebook:hover { background: var(--accent-d); color: var(--cream); }
.edbtn-print { border-color: var(--accent-d); color: var(--accent-l); }
.edbtn-print:hover { background: var(--accent-d); color: var(--cream); }
.edbtn-soon { border-color: var(--border); color: var(--text-muted); cursor: default; font-style: italic; opacity: 0.5; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.blog-card { border: 1px solid var(--border); background: var(--surface); padding: 36px; transition: border-color 0.3s; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--accent-d); }
.blog-meta { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.blog-dot { width: 3px; height: 3px; background: var(--accent-d); border-radius: 50%; }
.blog-card h3 { font-family: 'Playfair Display', serif; font-size: 23px; font-weight: 400; color: var(--cream); line-height: 1.25; margin-bottom: 14px; }
.blog-card p { color: var(--text-muted); font-style: italic; flex: 1; margin-bottom: 28px; line-height: 1.6; }
.read-more { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 8px; transition: gap 0.3s; }
.read-more:hover { gap: 14px; }

/* MUSIC */
.music-categories { display: flex; flex-direction: column; gap: 56px; }
.music-cat-title {
  font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 400; color: var(--cream);
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.music-cat-title::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }
.track-list { display: flex; flex-direction: column; gap: 3px; }
.track {
  display: flex; align-items: center; padding: 15px 18px; gap: 18px;
  border: 1px solid transparent; text-decoration: none; transition: all 0.3s; background: var(--surface);
}
.track:hover { border-color: var(--border); background: var(--surface-2); }
.track-idx { font-size: 13px; color: var(--text-muted); width: 22px; text-align: right; flex-shrink: 0; }
.track-icon {
  width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 10px; flex-shrink: 0; transition: all 0.3s;
}
.track:hover .track-icon { background: var(--accent-d); border-color: var(--accent-d); color: var(--cream); }
.track-info { flex: 1; }
.track-name { color: var(--text); font-size: 17px; display: block; }
.track-sub { color: var(--text-muted); font-size: 14px; font-style: italic; }
.track-badge { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); padding: 3px 9px; border: 1px solid var(--border); flex-shrink: 0; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 48px 52px; text-align: center; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 20px; font-style: italic; color: var(--accent); display: block; margin-bottom: 20px; }
.footer-nav { display: flex; justify-content: center; gap: 32px; list-style: none; margin-bottom: 28px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.3s; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .book-editions { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait-wrap { max-width: 300px; }
}
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(12,11,9,0.98);
    border-bottom: 1px solid var(--border); padding: 20px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .section, .section-alt .section { padding: 60px 24px; }
  .hero, .page-hero { padding: 60px 24px; }
  .book-entry { padding: 24px 18px; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 36px 24px; }
}
@media (max-width: 480px) {
  .book-editions { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}
