/* =========================================================
   Base styles & paper textures
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Dancing+Script:wght@400;500;600;700&family=Special+Elite&display=swap');

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: #1a1209;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  cursor: default;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img, video {
  max-width: 100%;
  display: block;
}

/* Vintage paper texture — reusable */
.paper-texture {
  background-color: var(--paper);
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 30%, rgba(200, 170, 130, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(180, 150, 110, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-aged) 100%);
}

/* Coffee stain decoration */
.coffee-stain {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(139, 90, 43, 0.08) 45%,
    rgba(139, 90, 43, 0.12) 55%,
    rgba(139, 90, 43, 0.06) 70%,
    transparent 80%
  );
  pointer-events: none;
}

/* Washi tape */
.washi-tape {
  position: absolute;
  height: 22px;
  background: var(--tape-pink);
  opacity: 0.75;
  transform: rotate(-3deg);
  box-shadow: 0 1px 2px var(--shadow-soft);
  z-index: 5;
}

.washi-tape::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.15) 3px,
    rgba(255, 255, 255, 0.15) 6px
  );
}

.washi-tape--cream {
  background: var(--tape-cream);
}

/* Paper clip */
.paper-clip {
  position: absolute;
  width: 14px;
  height: 40px;
  border: 2px solid #8a8a8a;
  border-radius: 8px 8px 0 0;
  border-bottom: none;
  z-index: 10;
}

.paper-clip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 6px;
  height: 20px;
  border: 2px solid #8a8a8a;
  border-radius: 0 0 4px 4px;
  border-top: none;
}

/* Vintage stamp */
.vintage-stamp {
  position: absolute;
  padding: 6px 10px;
  border: 2px solid var(--rose);
  border-radius: 2px;
  font-family: var(--font-typewriter);
  font-size: 0.65rem;
  color: var(--rose);
  opacity: 0.7;
  transform: rotate(-8deg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Pressed flower (CSS illustration) */
.pressed-flower {
  position: absolute;
  width: 50px;
  height: 50px;
  opacity: 0.6;
  pointer-events: none;
}

.pressed-flower::before {
  content: '🌸';
  font-size: 2rem;
  filter: saturate(0.6) brightness(0.9);
  opacity: 0.7;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
