/* =========================================
   WATERCOLOR & SCRAPBOOK THEME VARIABLES
   ========================================= */
:root {
  --paper: #f6f1e7;
  --paper-card: #fffdf8;
  --ink: #26221e;
  --ink-soft: #575049;
  --ochre: #c27828;
  --sage: #6b8e78;
  --slate: #5c7a94;
  --tape: rgba(235, 223, 192, 0.78);
}

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

html {
  scroll-behavior: smooth;
}

/* Warm cotton paper with soft layered watercolor washes */
body {
  font-family: 'Lora', Georgia, serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 14%, rgba(107, 142, 120, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 88% 26%, rgba(194, 120, 40, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 18% 58%, rgba(92, 122, 148, 0.20) 0%, transparent 48%),
    radial-gradient(circle at 82% 84%, rgba(107, 142, 120, 0.20) 0%, transparent 44%);
  background-attachment: fixed;
  line-height: 1.68;
  padding: 0 20px;
  overflow-x: hidden;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px dashed rgba(38, 34, 30, 0.25);
}

.logo {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.navbar nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.navbar nav a {
  font-family: 'Courier Prime', monospace;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  padding: 3px 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.navbar nav a:hover {
  border-bottom: 2px solid var(--ochre);
}

/* =========================================
   MAIN CONTAINER & SCRAPBOOK ELEMENTS
   ========================================= */
main, footer {
  max-width: 980px;
  margin: 0 auto;
}

/* Semi-transparent masking tape strips */
.tape-strip {
  position: absolute;
  top: -12px;
  left: 24px;
  width: 84px;
  height: 24px;
  background-color: var(--tape);
  border-left: 1px dashed rgba(38, 34, 30, 0.15);
  border-right: 1px dashed rgba(38, 34, 30, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transform: rotate(-4deg);
  z-index: 2;
}

.tape-strip.top-center {
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
}

/* Hand-drawn organic ink borders */
.hero, .scrap-card, .paper-sheet, .about-note {
  position: relative;
  background-color: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 4px 5px 0px rgba(38, 34, 30, 0.14);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  margin: 48px 0 36px;
  padding: 44px 36px;
  background-image: radial-gradient(circle at 90% 15%, rgba(194, 120, 40, 0.14), transparent 55%);
}

.typewriter-tag {
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ochre);
  font-weight: 700;
  margin-bottom: 8px;
}

.hero h1 {
  font-family: 'Caveat', cursive;
  font-size: clamp(3rem, 7vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero-note {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 26px;
}

.hero-buttons, .contact-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.sketch-btn {
  font-family: 'Courier Prime', monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 18px 4px 20px 6px / 6px 20px 4px 18px;
  transition: transform 0.15s, background-color 0.15s;
}

.sketch-btn:hover {
  transform: translateY(-2px);
  background-color: #ede4d3;
}

.sketch-btn.primary {
  background-color: var(--ink);
  color: var(--paper-card);
}

.sketch-btn.primary:hover {
  background-color: #3d3630;
}

/* =========================================
   SECTIONS & HEADINGS
   ========================================= */
.scrapbook-section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
}

.section-num {
  font-family: 'Courier Prime', monospace;
  font-size: 1rem;
  color: var(--ochre);
  font-weight: 700;
}

.section-header h2 {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  line-height: 1.1;
}

.meta {
  display: inline-block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  color: var(--sage);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

/* =========================================
   VIDEO & SOUND CARDS
   ========================================= */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.scrap-card {
  padding: 20px;
  transition: transform 0.25s ease;
}

.scrap-card:hover, .polaroid:hover {
  transform: rotate(0deg) translateY(-3px);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border: 1.5px solid var(--ink);
  background: #1c1917;
  margin-bottom: 16px;
}

.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.card-caption h3, .paper-sheet h3, .sound-header h3 {
  font-family: 'Caveat', cursive;
  font-size: 1.85rem;
  line-height: 1.15;
  margin-bottom: 6px;
}

.card-caption p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.sound-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================================
   POLAROID STILLS GALLERY
   ========================================= */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.polaroid {
  position: relative;
  background: #ffffff;
  padding: 14px 14px 22px;
  border: 1.5px solid rgba(38, 34, 30, 0.35);
  box-shadow: 3px 6px 14px rgba(38, 34, 30, 0.14);
  transition: transform 0.25s ease;
}

.photo-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eae2d3;
  border: 1px solid rgba(38, 34, 30, 0.15);
  overflow: hidden;
}

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

.photo-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  padding: 16px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Courier Prime', monospace;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.polaroid figcaption {
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  text-align: center;
  margin-top: 12px;
  color: var(--ink);
}

/* Subtle scrapbook tilts */
.tilt-left { transform: rotate(-1.1deg); }
.tilt-right { transform: rotate(1.2deg); }
.tilt-slight { transform: rotate(-0.5deg); }

/* =========================================
   WRITING & EXPANDABLE READING DRAWERS
   ========================================= */
.writing-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.paper-sheet {
  padding: 26px 30px;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 31px,
    rgba(92, 122, 148, 0.12) 32px
  );
}

.excerpt {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.read-drawer summary {
  font-family: 'Courier Prime', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ochre);
  cursor: pointer;
  list-style: none;
  display: inline-block;
  padding: 4px 0;
}

.read-drawer summary:hover {
  text-decoration: underline;
}

.full-text {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1.5px dashed rgba(38, 34, 30, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =========================================
   ABOUT & FOOTER
   ========================================= */
.about-note {
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
  background-image: radial-gradient(circle at 15% 85%, rgba(92, 122, 148, 0.15), transparent 55%);
}

.about-note h2 {
  font-family: 'Caveat', cursive;
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.about-note p {
  margin-bottom: 22px;
  color: var(--ink-soft);
}

footer {
  text-align: center;
  padding: 36px 0 48px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 2px dashed rgba(38, 34, 30, 0.25);
}

/* Mobile Adjustments */
@media (max-width: 650px) {
  .tilt-left, .tilt-right, .tilt-slight {
    transform: rotate(0deg);
  }
  .hero, .paper-sheet, .about-note {
    padding: 24px 20px;
  }
}