/*
Theme Name: North Pole Report
Theme URI: https://northpolereport.com
Author: North Pole Report
Description: A lightweight block theme for warm, family-friendly kindness stories.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: north-pole-report
*/

:root {
  --npr-cream: #fff8ed;
  --npr-paper: #ffffff;
  --npr-ink: #173529;
  --npr-muted: #665f55;
  --npr-line: #e5d9ca;
  --npr-evergreen: #0f513c;
  --npr-evergreen-soft: #dcebe2;
  --npr-red: #a93f36;
  --npr-red-soft: #f7dfdb;
  --npr-gold: #c8a15a;
  --npr-blue: #e6f3f6;
  --npr-wood: #5d3e33;
  --npr-shadow: 0 18px 45px rgba(23, 53, 41, 0.1);
}

body {
  background:
    radial-gradient(circle at top left, rgba(200, 161, 90, 0.16), transparent 29rem),
    radial-gradient(circle at 92% 6%, rgba(230, 243, 246, 0.86), transparent 24rem),
    linear-gradient(180deg, #fff8ed 0%, #ffffff 42%, #fbf7ef 100%);
}

a {
  text-underline-offset: 0.18em;
}

.wp-site-blocks {
  min-height: 100vh;
}

.npr-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 217, 202, 0.88);
  backdrop-filter: blur(18px);
}

.npr-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--npr-cream);
  background: var(--npr-evergreen);
  box-shadow: 0 10px 24px rgba(15, 81, 60, 0.22);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.npr-card,
.npr-story-card,
.npr-sidebar-box,
.npr-newsletter,
.is-style-npr-card {
  border: 1px solid var(--npr-line);
  border-radius: 18px;
  background: var(--npr-paper);
  box-shadow: 0 10px 30px rgba(23, 53, 41, 0.06);
}

.npr-hero-photo img,
.wp-block-post-featured-image img,
.npr-story-card img {
  border-radius: 18px;
}

.npr-hero-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--npr-shadow);
}

.npr-story-card {
  overflow: hidden;
}

.npr-story-card .wp-block-post-featured-image {
  margin: 0;
}

.npr-story-card .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.npr-placeholder-image {
  min-height: 220px;
  display: grid;
  align-content: end;
  padding: 1rem;
  border-bottom: 1px solid var(--npr-line);
  background:
    radial-gradient(circle at 82% 18%, rgba(169, 63, 54, 0.18), transparent 8rem),
    radial-gradient(circle at 18% 20%, rgba(230, 243, 246, 0.9), transparent 9rem),
    linear-gradient(135deg, #fff8ed 0%, #e6f3f6 48%, #f7dfdb 100%);
}

.npr-placeholder-link {
  display: block;
  text-decoration: none;
}

.npr-meta {
  color: var(--npr-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.wp-block-post-terms a,
.npr-pill {
  display: inline-flex;
  width: fit-content;
  margin-right: 0.35rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid var(--npr-line);
  border-radius: 999px;
  color: var(--npr-evergreen);
  background: var(--npr-evergreen-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.is-style-elf-notes,
.is-style-kindness-takeaway,
.npr-elf-notes,
.npr-kindness-takeaway {
  position: relative;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: clamp(1.2rem, 3vw, 1.6rem);
}

.is-style-elf-notes,
.npr-elf-notes {
  border-color: #cfe6eb;
  background: linear-gradient(135deg, rgba(230, 243, 246, 0.9), rgba(255, 255, 255, 0.94));
}

.is-style-kindness-takeaway,
.npr-kindness-takeaway {
  border-color: #e8c9c5;
  background: linear-gradient(135deg, rgba(247, 223, 219, 0.88), rgba(255, 248, 237, 0.96));
}

.is-style-elf-notes::before,
.is-style-kindness-takeaway::before,
.npr-elf-notes::before,
.npr-kindness-takeaway::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.24;
}

.is-style-source-box,
.npr-source-box {
  border-left: 4px solid var(--npr-gold);
  border-radius: 12px;
  background: #fff;
  padding: 1rem 1.2rem;
}

.npr-newsletter {
  background:
    radial-gradient(circle at top right, rgba(169, 63, 54, 0.14), transparent 11rem),
    linear-gradient(135deg, rgba(230, 243, 246, 0.92), rgba(255, 255, 255, 0.96) 48%, rgba(255, 248, 237, 0.96));
}

.npr-newsletter input[type="email"],
.npr-submit-form input,
.npr-submit-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--npr-line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  color: var(--npr-ink);
  background: #fff;
  font: inherit;
}

.npr-submit-form textarea {
  min-height: 140px;
}

.npr-footer {
  border-top: 1px solid var(--npr-line);
}

@media (max-width: 781px) {
  .npr-header .wp-block-navigation {
    justify-content: flex-start;
  }

  .npr-hero-photo img {
    aspect-ratio: 16 / 11;
  }

  .npr-story-card {
    height: auto;
  }
}
