/* ============================================================
   MY PD DIARIES — Landing Page Styles
   Aesthetic: Sage/cream editorial (matches workwithtiff.com lock)
   Typography: Newsreader (display) + Inter (body) + Playfair italic (accent)
   ============================================================ */

:root {
  /* Palette — locked from workwithtiff.com aesthetic */
  --bg: #f1f4f1;
  --ink: #1f2d26;
  --accent: #3e6b4e;
  --muted: #9fb5a5;
  --border: #c7d0c8;
  --paper: #fafbf9;

  /* Type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --italic: "Playfair Display", Georgia, serif;

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3rem, 8vw, 6rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle paper texture via gradient (very low opacity) */
  background-image:
    radial-gradient(rgba(31, 45, 38, 0.018) 1px, transparent 1px),
    radial-gradient(rgba(31, 45, 38, 0.012) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
}

.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;
}

/* ============== SECTION SHELL ============== */
.section {
  border-top: 1px solid var(--border);
  padding: var(--section-pad) 0;
  position: relative;
}

.section:first-child {
  border-top: none;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.section-marker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 2rem;
}

.display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.accent-italic {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.prose {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  max-width: 60ch;
  color: var(--ink);
}

.prose p + p {
  margin-top: 1.25em;
}

.prose em {
  font-family: var(--italic);
  font-style: italic;
  color: var(--accent);
}

/* ============== HERO (SECTION 01) ============== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-text .display {
  margin-bottom: 1.5rem;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 2rem;
  max-width: 30ch;
}

.lede em {
  font-family: var(--italic);
  font-style: italic;
  color: var(--accent);
}

.hero-meta {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: rotate(1.2deg);
  transition: transform 0.4s ease;
}

.hero-photo:hover {
  transform: rotate(0deg);
}

.photo-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: 0 2px 0 var(--border), 0 12px 24px rgba(31, 45, 38, 0.08);
  position: relative;
  overflow: hidden;
}

/* Tape corners */
.photo-frame::before,
.photo-frame::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 18px;
  background: rgba(159, 181, 165, 0.35);
  top: -8px;
  transform: rotate(-12deg);
}

.photo-frame::before {
  left: -10px;
}

.photo-frame::after {
  right: -10px;
  transform: rotate(12deg);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame.photo-empty::after,
.photo-frame.photo-empty::before {
  /* keep tape if photo missing */
}

.photo-frame.photo-empty {
  background: linear-gradient(135deg, var(--paper) 0%, var(--bg) 100%);
}

.photo-frame.photo-empty::after {
  /* show small note inside the empty frame */
}

.hero-photo figcaption {
  margin-top: 1rem;
  font-family: var(--italic);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ============== STORY (SECTION 02) ============== */
.story .display {
  margin-bottom: 2rem;
}

/* ============== OFFER (SECTION 03) ============== */
.offer-card {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: clamp(2rem, 4vw, 3.5rem);
  max-width: 720px;
}

.offer-card .display {
  margin-bottom: 1.5rem;
}

.offer-free {
  font-family: var(--italic);
  font-style: italic;
  font-size: 0.4em;
  color: var(--muted);
  font-weight: 400;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.signup-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 240px;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.signup-form input[type="email"]:focus {
  border-color: var(--accent);
}

.signup-form input[type="email"]::placeholder {
  color: var(--muted);
}

.signup-form button {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.875rem 1.5rem;
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease, transform 0.1s ease;
}

.signup-form button:hover {
  background: #2f5640;
}

.signup-form button:active {
  transform: translateY(1px);
}

.fine-print {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1rem;
  font-family: var(--italic);
  font-style: italic;
}

/* ============== YOUTUBE (SECTION 04) ============== */
.youtube .display {
  margin-bottom: 1.5rem;
}

.button-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.button-link:hover {
  background: var(--accent);
  color: var(--paper);
}

/* ============== FOOTER ============== */
.footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-photo {
    order: -1;
    transform: rotate(0deg);
  }

  .photo-frame {
    max-width: 280px;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form input[type="email"],
  .signup-form button {
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .section-marker {
    font-size: 0.6875rem;
  }
}
