/* =========================================================================
   practice.css — page-specific styles for the Practice page
   Reuses palette, fonts, and shared components from styles.css.
   Signature: pinboard / habit wall — staggered scrapbook cards with pins,
   washi tape, hand-drawn doodles.
   ========================================================================= */


/* ── PINBOARD HERO ─────────────────────────────────────────────── */
.practice-hero {
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
  text-align: center;
}

.board {
  position: relative;
  background-color: #ECDFC8;
  /* Cork-like fibre texture using overlapping radial dots */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(120, 90, 50, 0.08) 1px, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(120, 90, 50, 0.07) 1px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(120, 90, 50, 0.06) 1px, transparent 2px),
    radial-gradient(circle at 30% 80%, rgba(120, 90, 50, 0.05) 1px, transparent 2px);
  background-size: 14px 14px, 18px 18px, 22px 22px, 26px 26px;
  border-radius: 10px;
  padding: 4.5rem 2rem 3rem;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -4px 0 rgba(0, 0, 0, 0.08),
    0 28px 56px -28px rgba(43, 38, 32, 0.3);
  border: 1px solid rgba(120, 90, 50, 0.18);
  min-height: 320px;
}

.board__string {
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 50px;
  z-index: 2;
}
.board__string svg {
  width: 100%; height: 100%;
}

.board__title-note {
  position: relative;
  display: inline-block;
  background: #FDFBF6;
  padding: 1.6rem 2.4rem 1.8rem;
  box-shadow:
    0 18px 32px -18px rgba(43, 38, 32, 0.32),
    0 1px 2px rgba(43, 38, 32, 0.08);
  transform: rotate(-1.5deg);
  z-index: 4;
  border: 1px solid rgba(107, 98, 86, 0.08);
}

.practice-hero__kicker {
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--brass);
  margin: 0;
  opacity: 0.9;
}
.practice-hero__title {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 1;
  color: var(--ink);
  margin: 0.1rem 0 0.4rem;
}
.practice-hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--driftwood);
  margin: 0;
}

.board__sidenote {
  position: absolute;
  background: #F5EBD6;
  padding: 0.45rem 0.9rem 0.55rem;
  font-family: 'Kalam', var(--hand);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--driftwood);
  box-shadow: 0 10px 18px -10px rgba(43, 38, 32, 0.28);
  z-index: 3;
}
.board__sidenote p { margin: 0; }
.board__sidenote--tl { top: 88px;  left: 6%;  transform: rotate(-4deg); }
.board__sidenote--tr { top: 78px;  right: 6%; transform: rotate(3deg); }

.board__doodle {
  position: absolute;
  width: 70px;
  height: 56px;
  z-index: 3;
}
.board__doodle--arrow {
  bottom: 30px;
  right: 18%;
  transform: rotate(15deg);
}

.practice-hero__lede {
  margin: 2.4rem auto 0;
  max-width: 720px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--driftwood);
  opacity: 0.92;
}


/* ── PINS & TAPE ─────────────────────────────────────────────────
   Reusable for the title note and individual cards.
   ───────────────────────────────────────────────────────────────── */
.pin,
.card__pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  z-index: 5;
  box-shadow:
    0 3px 0 rgba(0,0,0,0.18),
    inset -2px -2px 3px rgba(0,0,0,0.25),
    inset 2px 2px 3px rgba(255,255,255,0.3);
}
.pin--red,
.card__pin--red {
  background: radial-gradient(circle at 35% 30%, #E07A6B 0%, #B25D43 70%);
}
.pin--brass,
.card__pin--brass {
  background: radial-gradient(circle at 35% 30%, #E3B86A 0%, #B8860B 70%);
}

.card__tape {
  position: absolute;
  top: -10px;
  width: 90px;
  height: 22px;
  z-index: 5;
  opacity: 0.85;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.3) 0 4px,
    transparent 4px 10px);
  box-shadow: 0 2px 4px rgba(43,38,32,0.12);
}
.card__tape--mint    { background-color: var(--mint);     left: 16%; transform: rotate(-7deg); }
.card__tape--blush   { background-color: var(--blush);    left: 50%; transform: translateX(-50%) rotate(4deg); }
.card__tape--lavender{ background-color: var(--lavender); right: 16%; transform: rotate(8deg); }


/* ── PRACTICE CARDS GRID ────────────────────────────────────────── */
.practice-grid {
  max-width: 1240px;
  margin: 0 auto 5rem;
  padding: 1rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.6rem;
  align-items: start;
  position: relative;
  z-index: 5;
}

.card {
  position: relative;
  background: var(--card-tint, #FDFBF6);
  /* faint paper grain */
  background-image:
    radial-gradient(circle at 30% 20%, rgba(120, 90, 50, 0.04) 1px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(120, 90, 50, 0.035) 1px, transparent 2px);
  background-size: 22px 22px, 28px 28px;
  padding: 2rem 1.7rem 1.7rem;
  border-radius: 3px;
  box-shadow:
    0 22px 38px -22px rgba(43, 38, 32, 0.32),
    0 1px 2px rgba(43, 38, 32, 0.08);
  border: 1px solid rgba(107, 98, 86, 0.1);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.4s ease;
}
.card:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  box-shadow:
    0 36px 60px -24px rgba(43, 38, 32, 0.38),
    0 1px 2px rgba(43, 38, 32, 0.08);
  z-index: 10;
}

/* Tilt variants — scrapbook staggered look */
.card--tilt-l1 { transform: rotate(-1.6deg); }
.card--tilt-r1 { transform: rotate(1.4deg); }
.card--tilt-l2 { transform: rotate(-2.4deg); }
.card--tilt-r2 { transform: rotate(2.2deg); }

/* Card head — icon + title */
.card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.card__icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: rgba(253, 251, 246, 0.6);
  border-radius: 50%;
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(107, 98, 86, 0.12);
}
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}
.card__date {
  font-family: var(--hand);
  font-size: 0.95rem;
  color: var(--brass);
  margin: 0.1rem 0 0;
  opacity: 0.85;
}

/* The why-paragraph */
.card__why {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--driftwood);
  margin: 0 0 1rem;
  opacity: 0.95;
}
.card__why::before {
  content: "";
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--brass);
  margin: 0 0 0.6rem;
  opacity: 0.6;
}

/* The dated log entries */
.card__log {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card__log li {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 0.9rem;
  border-left: 2px solid rgba(184, 134, 11, 0.35);
}
.card__log-date {
  display: inline-block;
  font-family: 'Kalam', var(--hand);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--brass);
  background: rgba(184, 134, 11, 0.12);
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.4rem;
  white-space: nowrap;
}

/* See-all link */
.card__more {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--driftwood);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}
.card__more:hover {
  color: var(--brass);
}


/* ── PAGE CLOSING ───────────────────────────────────────────────── */
.practice-close {
  max-width: 720px;
  margin: 1rem auto 4rem;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 5;
}
.practice-close p {
  font-family: var(--hand);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--brass);
  margin: 0;
  opacity: 0.92;
}


/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 2rem; }
  .board { padding: 4rem 1.5rem 2.5rem; }
  .board__sidenote--tl { top: 64px; left: 4%; }
  .board__sidenote--tr { top: 60px; right: 4%; }
}

@media (max-width: 720px) {
  .practice-hero { padding: 0 1rem; margin: 1rem auto 2rem; }
  .board { padding: 3.2rem 1rem 2.4rem; }
  .board__title-note { padding: 1.2rem 1.5rem 1.4rem; }
  .board__sidenote {
    position: static;
    display: inline-block;
    margin: 0.6rem 0.4rem 0;
    transform: rotate(-2deg);
  }
  .board__doodle { display: none; }
  .practice-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }
  .card { transform: none !important; }
  .card:hover { transform: translateY(-4px) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
