/* ==========================================================
   Sophisticated Chicken Press — Shared Stylesheet
   ========================================================== */

/* --- Variables --- */
:root {
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --white: rgba(255,255,255,.94);
  --white-soft: rgba(255,255,255,.82);
  --line: rgba(255,255,255,.28);
  --purple-top: #52206E;
  --purple-mid: #3A0F57;
  --purple-bottom: #2A083F;
}

/* --- Reset --- */
* { box-sizing: border-box; }
html, body { height: 100%; }

html {
  background: #240634; /* darkest end of gradient, prevents flash on short pages */
}

/* --- Base body --- */
body {
  margin: 0;
  font-family: var(--serif);
  color: var(--white);
  background:
    radial-gradient(900px 520px at 50% 35%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(0,0,0,.28), transparent 60%),
    linear-gradient(180deg, var(--purple-top) 0%, var(--purple-mid) 55%, var(--purple-bottom) 100%);
}

/* --- Logo --- */
.logo {
  width: min(200px, 40vw);
  height: auto;
  margin: 0 auto 26px;
  display: block;
  filter: drop-shadow(0 20px 32px rgba(0,0,0,.28));
}

/* --- Shared h1 base --- */
h1 {
  margin: 0;
  font-weight: 600;
  letter-spacing: .01em;
}

/* --- Press row (decorative divider with label) --- */
.press-row {
  margin: 18px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--white-soft);
}

.press-row .line {
  width: 110px;
  height: 1px;
  background: var(--line);
}

.press-row .press {
  font-size: 18px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

/* --- Hamburger menu toggle --- */
.menu-toggle {
  position: fixed;
  top: 28px;
  right: 28px;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #FBC4AD;
  margin: 6px 0;
  transition: transform .3s ease, opacity .3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Dropdown nav menu --- */
.menu {
  position: fixed;
  top: 64px;
  right: 28px;
  width: 260px;
  background: #FBC4AD;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.50);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1000;
}

.menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 14px 0;
}

.menu li { margin: 0; }

.menu a {
  display: block;
  padding: 14px 22px;
  font-family: var(--serif);
  font-size: 18px;
  color: #2A1544;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.menu a:hover { background: rgba(255,255,255,0.08); }

/* --- White content sections (books, author) --- */
.white-section {
  background: #ffffff;
  color: #2A083F;
  position: relative;
}

.white-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58,15,87,.35), transparent);
}

/* --- Footer / copyright (light-on-dark variant) --- */
.copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* --- Accessibility utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Shared responsive --- */
@media (max-width: 520px) {
  .press-row .line { width: 74px; }
}
