/*
Theme Name:  Raymond Kulick
Theme URI:   https://raymondkulick.com
Author:      OhYeahLive / Sunscope Entertainment Corporation
Author URI:  https://ohyeahlive.com
Description: Custom author theme for Raymond Kulick — poet, prose writer, social commentator. Built by OhYeahLive, a division of Sunscope Entertainment Corporation.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raymond-kulick
Tags:        one-column, custom-colors, custom-menu, featured-images, full-width-template, theme-options
*/

/* ─── TOKEN SYSTEM ─────────────────────────────────────────────── */
:root {
  --ink:        #0D0D0D;
  --paper:      #E8DEC8;
  --paper-dark: #D4C9AF;
  --rose:       #C4737A;
  --gold:       #B8962E;
  --slate:      #3D5A73;
  --smoke:      #1A1A1A;
  --mist:       rgba(232,222,200,0.08);

  --display:  'Playfair Display', Georgia, serif;
  --lyric:    'Lora', Georgia, serif;
  --body:     'Inter', system-ui, sans-serif;

  --max:      1100px;
  --gap:      clamp(3rem, 8vw, 7rem);
}

/* ─── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ─── NAV ────────────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

#site-nav.scrolled {
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist);
}

.site-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.site-name span {
  display: block;
  font-family: var(--body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 0.1rem;
}

#primary-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

#primary-menu a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,222,200,0.6);
  transition: color 0.2s;
}

#primary-menu a:hover,
#primary-menu .current-menu-item a { color: var(--paper); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--paper);
  transition: all 0.3s;
}

/* ─── HERO ───────────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 8vw, 8rem) clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(196,115,122,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 15% 70%, rgba(61,90,115,0.12) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 38%;
  background: repeating-linear-gradient(
    transparent, transparent 28px,
    rgba(232,222,200,0.035) 28px,
    rgba(232,222,200,0.035) 29px
  );
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s ease forwards;
}

.hero-lyric {
  font-family: var(--lyric);
  font-style: italic;
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: 1.2;
  color: var(--paper);
  max-width: 820px;
}

.hero-lyric .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeWord 0.5s ease forwards;
}

.hero-lyric .word.accent { color: var(--gold); }

.hero-attribution {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(232,222,200,0.35);
  opacity: 0;
  animation: fadeUp 0.6s 2.4s ease forwards;
}

.hero-cta {
  margin-top: 3.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 2.6s ease forwards;
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: #d4848b; transform: translateY(-2px); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(232,222,200,0.28);
}
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-2px); }

/* ─── SECTION BASE ───────────────────────────────────────────────── */
.site-section {
  padding: var(--gap) clamp(1.5rem, 8vw, 8rem);
  max-width: calc(var(--max) + clamp(3rem, 16vw, 16rem));
  margin: 0 auto;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 2rem;
}

.site-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(232,222,200,0.14) 25%,
    rgba(232,222,200,0.14) 75%,
    transparent
  );
}

/* ─── ABOUT ──────────────────────────────────────────────────────── */
#about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-image-wrap { position: relative; }

.about-image-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  right: -1.5rem; bottom: -1.5rem;
  border: 1px solid rgba(196,115,122,0.22);
  z-index: -1;
  pointer-events: none;
}

.about-body p {
  color: rgba(232,222,200,0.72);
  margin-bottom: 1.2rem;
  line-height: 1.85;
}

.about-pull {
  font-family: var(--lyric);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--gold);
  line-height: 1.55;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* ─── BOOKS / RELEASES ───────────────────────────────────────────── */
#books-section { background: var(--smoke); }

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.book-card { position: relative; }

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  filter: grayscale(10%);
  transition: filter 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #1e1e1e 0%, #2a2020 100%);
  border: 1px solid rgba(232,222,200,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232,222,200,0.18);
  font-family: var(--display);
  font-style: italic;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.book-card:hover .book-cover { filter: grayscale(0%); transform: translateY(-4px); }

.book-meta { padding: 1.1rem 0 0; }

.book-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 0.3rem;
}

.book-sub {
  font-size: 0.75rem;
  color: rgba(232,222,200,0.42);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.book-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  border-bottom: 1px solid rgba(196,115,122,0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.book-link:hover { color: var(--paper); border-color: var(--paper); }

/* ─── WORDS / EXCERPTS ───────────────────────────────────────────── */
#words-section {
  text-align: center;
  background: linear-gradient(180deg, var(--ink) 0%, #111 100%);
}

.excerpt-block {
  max-width: 680px;
  margin: 3rem auto 0;
  text-align: left;
}

.excerpt-piece-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--rose);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  margin-top: 3rem;
}

.excerpt-piece-label:first-child { margin-top: 0; }

.excerpt-text {
  font-family: var(--lyric);
  font-style: italic;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 2;
  color: rgba(232,222,200,0.78);
  white-space: pre-line;
}

.excerpt-prose {
  font-family: var(--body);
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  line-height: 1.9;
  color: rgba(232,222,200,0.72);
  margin-bottom: 1rem;
}

/* ─── EVENTS ─────────────────────────────────────────────────────── */
#events-section { background: var(--smoke); }

.events-list {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(232,222,200,0.09);
}

.event-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(232,222,200,0.07);
  transition: background 0.2s, padding 0.2s;
}

.event-row:hover { background: rgba(232,222,200,0.025); padding-left: 0.6rem; }

.event-date-num {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--paper);
  line-height: 1;
}

.event-date-month {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 0.25rem;
}

.event-venue {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 0.2rem;
}

.event-location {
  font-size: 0.78rem;
  color: rgba(232,222,200,0.42);
  letter-spacing: 0.05em;
}

.btn-event {
  padding: 0.6rem 1.4rem;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(196,115,122,0.38);
  color: var(--rose);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.btn-event:hover { background: var(--rose); color: #fff; border-color: var(--rose); }

/* ─── PRESS QUOTES ───────────────────────────────────────────────── */
#press-section { background: var(--ink); }

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.press-card {
  padding: 2rem;
  border: 1px solid rgba(232,222,200,0.08);
  background: rgba(232,222,200,0.025);
}

.press-quote {
  font-family: var(--lyric);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(232,222,200,0.82);
  margin-bottom: 1.2rem;
}

.press-source {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── CONTACT / MAILING ──────────────────────────────────────────── */
#contact-section { text-align: center; }

.contact-sub {
  color: rgba(232,222,200,0.5);
  max-width: 420px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.email-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto 3rem;
  border: 1px solid rgba(232,222,200,0.2);
}

.email-form input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.9rem;
}

.email-form input::placeholder { color: rgba(232,222,200,0.28); }

.email-form button {
  padding: 1rem 1.5rem;
  background: var(--rose);
  border: none;
  color: #fff;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.email-form button:hover { background: #d4848b; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,222,200,0.38);
  transition: color 0.2s;
}

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

/* ─── FOOTER ─────────────────────────────────────────────────────── */
#colophon {
  padding: 2rem clamp(1.5rem, 8vw, 8rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(232,222,200,0.07);
  font-size: 0.7rem;
  color: rgba(232,222,200,0.22);
  letter-spacing: 0.06em;
}

#colophon a { color: rgba(232,222,200,0.35); transition: color 0.2s; }
#colophon a:hover { color: var(--paper); }

/* ─── SCROLL REVEAL ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeWord {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── MOBILE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #about-section { grid-template-columns: 1fr; }
  .about-image-wrap::before { display: none; }

  #primary-menu {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,13,13,0.97);
    padding: 6rem 2rem 3rem;
    z-index: 99;
    backdrop-filter: blur(12px);
  }

  #primary-menu.open { display: flex; }
  #primary-menu a { font-size: 1.2rem; letter-spacing: 0.1em; }

  .nav-hamburger { display: flex; position: relative; z-index: 101; }

  .event-row {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }

  .event-row .btn-event { grid-column: 2; }

  .hero-cta { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── WORDPRESS CORE ─────────────────────────────────────────────── */
.wp-block-image img { max-width: 100%; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 2rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 2rem; margin-bottom: 1rem; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
