/* Reusable component classes.
   Pair with design tokens in tokens.css. */

/* ─────────────────────────────────────────────
   Labels — the brick-colored small-caps text
   used for BASED IN, FOLLOW, CHAPTERS, WRITTEN BY…
   ───────────────────────────────────────────── */
.label {
  font-family: var(--font-label);
  letter-spacing: var(--tracking-wider);
  color: var(--brick);
  text-transform: uppercase;
}
.label--xs        { font-size: var(--text-xxs); }
.label--sm        { font-size: var(--text-xs); }
.label--md        { font-size: var(--text-sm); }
.label--wide      { letter-spacing: var(--tracking-wide); }
.label--muted     { color: var(--bark); }
.label--chocolate { color: var(--chocolate); }
.label--chocolate-deep { color: var(--chocolate-deep); }
.label--deep      { color: var(--brick-deep); }

/* ─────────────────────────────────────────────
   Pill label — ABOUT ME / LAST VIDEOS markers
   (background SVG + centered span)
   ───────────────────────────────────────────── */
.pill-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  color: #fff;
  font-family: var(--font-label);
  font-size: var(--text-sm);
  line-height: 1.1;
  text-align: center;
  letter-spacing: var(--tracking-wide);
  position: relative;
  flex-shrink: 0;
}
.pill-label > img.pill-bg {
  position: absolute;
  /* SVG shape spans 52%×48% of viewBox centered at 49.65%, 47.2%.
     Scale 230%/240% to make the inner brown more prominent vs outer frame. */
  width: 230%;
  height: 240%;
  left: 50%;
  top: 50%;
  transform: translate(-49.65%, -47.2%);
  pointer-events: none;
  z-index: 0;
}
.pill-label > span {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
  font-weight: 700;
  margin-top: -4px;
}

/* ─────────────────────────────────────────────
   Ring-card — mustard body with orange ring shadow
   (video player, article hero, newsletter, contact form)
   ───────────────────────────────────────────── */
.ring-card {
  background: var(--mustard);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--frame-orange), var(--shadow-lg);
}
.ring-card--thick {
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--frame-orange-thick), var(--shadow-xl);
}
.ring-card--flat {
  /* no drop shadow, just the ring */
  padding: var(--space-4);
  box-shadow: var(--frame-orange-thick);
}

/* ─────────────────────────────────────────────
   Soft-card — cream-deep body with olive inset frame
   (podcast container, About "What you'll find", video chapters, byline)
   ───────────────────────────────────────────── */
.soft-card {
  background: var(--cream-deep);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--inset-frame-olive);
}
.soft-card--thick {
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--inset-frame-olive-thick), var(--shadow-xs);
}
.soft-card--plain {
  /* no inset frame */
  box-shadow: none;
}

/* ─────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────── */
.btn-primary {
  background: var(--brick);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  cursor: pointer;
  box-shadow: var(--brick-glow-sm);
  transition: transform var(--duration-fast) var(--ease-out);
  width: 100%;
  box-sizing: border-box;
}
.btn-primary:hover { transform: translateY(-1px); }

.btn-secondary {
  background: var(--cream-deep);
  color: var(--chocolate);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--olive-light);
  transition: all var(--duration-fast) var(--ease-out);
}
.btn-secondary--active {
  background: var(--brick);
  color: #fff;
  box-shadow: var(--brick-glow-sm);
}

/* ─────────────────────────────────────────────
   Read-more link
   ───────────────────────────────────────────── */
.read-more {
  font-family: var(--font-label);
  color: var(--brick);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  display: inline-block;
  margin-top: var(--space-2);
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.read-more:hover {
  color: var(--brick-deep);
  border-bottom-color: var(--brick);
}

/* ─────────────────────────────────────────────
   Form inputs
   ───────────────────────────────────────────── */
.input-field {
  width: 100%;
  box-sizing: border-box;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: none;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--chocolate-deep);
  outline: none;
  box-shadow: var(--inset-input);
}

/* ─────────────────────────────────────────────
   Headings
   ───────────────────────────────────────────── */
.heading-display {
  font-family: var(--font-display);
  color: var(--chocolate-deep);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.1;
}
.heading-script {
  font-family: var(--font-script);
  color: var(--brick);
  transform: rotate(-2deg);
  display: inline-block;
  margin: 0;
  line-height: 1;
}
