/* ============================================
   HOPS FOR TODAY — style.css
   Palette pulled from cover art:
   amber gold, warm cream, dark oak, hop green
   ============================================ */

:root {
  --amber:       #C97B1A;
  --amber-light: #E8A832;
  --amber-pale:  #F5DFA0;
  --cream:       #FAF3E0;
  --oak:         #3B1F0A;
  --oak-mid:     #6B3A1F;
  --hop-green:   #5A7A3A;
  --foam:        #FFF8EC;
  --text-dark:   #2A1500;
  --text-mid:    #5C3D1E;
  --text-light:  #9B7040;
  --rule:        rgba(201, 123, 26, 0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Grain texture overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---- HEADER ---- */

.site-header {
  background: linear-gradient(160deg, var(--oak) 0%, var(--oak-mid) 100%);
  padding: 2rem 1.5rem 2.5rem;
  border-bottom: 4px solid var(--amber);
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0px,
    var(--amber) 8px,
    var(--amber-light) 8px,
    var(--amber-light) 16px
  );
  opacity: 0.6;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cover-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--amber);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.cover-thumb:hover {
  transform: scale(1.05);
}

.footer-cover {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid var(--amber);
  display: block;
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-text {
  flex: 1;
}

.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--amber-light);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.site-subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--amber-pale);
  margin-top: 0.4rem;
  line-height: 1.4;
  opacity: 0.9;
}

.byline {
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- MAIN STAGE ---- */

.entry-stage {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.date-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  text-align: center;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.entry-card {
  background: var(--foam);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow:
    0 2px 0 var(--amber),
    0 6px 30px rgba(58, 31, 10, 0.1);
  position: relative;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.entry-card::before {
  content: '🍺';
  position: absolute;
  top: -1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  line-height: 1;
}

.entry-body {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.85;
}

.entry-body p + p {
  margin-top: 1.2em;
}

.loading-text {
  color: var(--text-light);
  font-style: italic;
  text-align: center;
}

.thought-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.thought-block strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

/* ---- AUDIO ---- */

.audio-block {
  margin-top: 1.8rem;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.7s forwards;
}

.audio-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

audio {
  width: 100%;
  max-width: 420px;
  accent-color: var(--amber);
}

/* ---- DAILY GRAPHIC ---- */

.entry-graphic {
  margin-top: 1.8rem;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.8s forwards;
}

.entry-graphic img {
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 16px rgba(58,31,10,0.12);
}

/* ---- FOOTER / CTA ---- */

.site-footer {
  background: var(--oak);
  color: var(--amber-pale);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
  border-top: 4px solid var(--amber);
}

.cta-block {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.cta-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--amber-pale);
  margin-bottom: 1.4rem;
  line-height: 1.4;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 3px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0.4rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.buy-button {
  background: var(--amber);
  color: var(--oak);
}

.buy-button:hover {
  background: var(--amber-light);
}

.subscribe-button {
  background: transparent;
  color: var(--amber-pale);
  border: 1px solid var(--amber);
}

.subscribe-button:hover {
  background: rgba(201, 123, 26, 0.15);
}

.subscribe-block {
  max-width: 500px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,123,26,0.2);
  text-align: center;
}

.subscribe-label {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.mailerlite-placeholder {
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(201,123,26,0.3);
  border-radius: 4px;
  padding: 1.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
}

.footer-fine {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

/* ---- ANIMATIONS ---- */

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

/* ---- RESPONSIVE ---- */

@media (max-width: 540px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .entry-card {
    padding: 2rem 1.4rem 1.6rem;
  }

  .site-title {
    font-size: 2rem;
  }
}
