/* =========================================================================
   naturephotos.website — skin "earth"

   Warm, slow and tactile. Terracotta and clay on a paper ground, soft diffuse
   shadows instead of rules, generous rounded corners and a deliberately
   unhurried transition curve. Where the grid skin is a system, this one is a
   surface: things sit on the page rather than being ruled into it.

   HAND-MAINTAINED. The forge never overwrites this file.
   ========================================================================= */

:root {
  --bg: #fbf6f1;
  --bg-deep: #f4ebe1;
  --surface: #ffffff;
  --surface-2: #fdf8f4;
  --text: #2a1d16;
  --muted: #7a6455;
  --indigo: #b5643c;
  --indigo-soft: #d99a6c;
  --indigo-deep: #8f4a2b;
  --glow: rgba(181, 100, 60, 0.16);
  --glow-soft: rgba(217, 154, 108, 0.16);
  --line: rgba(42, 29, 22, 0.10);
  --line-strong: rgba(42, 29, 22, 0.20);

  --clay: #c9a227;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  /* Soft, warm and layered: three shadows rather than one hard drop. */
  --shadow-sm: 0 1px 2px rgba(42, 29, 22, 0.05), 0 3px 8px rgba(42, 29, 22, 0.04);
  --shadow: 0 2px 4px rgba(42, 29, 22, 0.05), 0 8px 22px rgba(42, 29, 22, 0.07);
  --shadow-lift: 0 4px 8px rgba(42, 29, 22, 0.06), 0 18px 44px rgba(42, 29, 22, 0.11);

  --grad-wash: radial-gradient(120% 90% at 50% -10%, rgba(217,154,108,0.20), transparent 65%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.style-earth {
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
}

/* ---------- type ---------------------------------------------------------- */

body.style-earth h1,
body.style-earth h2,
body.style-earth h3 {
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.18;
}

body.style-earth h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }

body.style-earth .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo);
  font-weight: 600;
}

body.style-earth .lede,
body.style-earth .hero-lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  max-width: 56ch;
}

/* ---------- header -------------------------------------------------------- */

body.style-earth .site-header {
  background: rgba(251, 246, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

body.style-earth .brand-name em { font-style: normal; color: var(--indigo); }

body.style-earth .brand-dot {
  background: var(--clay);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.16);
}

body.style-earth .site-nav a {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease);
}

body.style-earth .site-nav a:hover {
  background: var(--bg-deep);
  color: var(--indigo-deep);
}

body.style-earth .header-search input,
body.style-earth .hero-search input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

body.style-earth .header-search button,
body.style-earth .hero-search button {
  background: var(--indigo);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
}

/* ---------- hero ---------------------------------------------------------- */

body.style-earth .hero {
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 70%);
  padding-block: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
}

/* A single warm wash, low and wide, like late light across a field. */
body.style-earth .hero::before {
  content: '';
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 70%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(217, 154, 108, 0.30), transparent 70%);
  pointer-events: none;
}

body.style-earth .hero::after { display: none; }
body.style-earth .hero .shell { position: relative; z-index: 1; }

/* ---------- buttons ------------------------------------------------------- */

body.style-earth .btn {
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9rem 1.7rem;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), background-color 0.32s var(--ease);
}

body.style-earth .btn-primary {
  background: var(--indigo);
  color: #fff;
  border: 0;
  box-shadow: var(--shadow);
}

body.style-earth .btn-primary:hover {
  background: var(--indigo-deep);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

body.style-earth .btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

body.style-earth .btn-ghost:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- cards: objects on a surface ----------------------------------- */

body.style-earth .grid { gap: clamp(1.4rem, 2.8vw, 2.4rem); }

body.style-earth .card {
  background: var(--surface);
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

body.style-earth .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

body.style-earth .card-media { position: relative; overflow: hidden; }

body.style-earth .card img {
  transition: transform 0.7s var(--ease);
}

body.style-earth .card:hover img { transform: scale(1.035); }

body.style-earth .card-badge {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-radius: var(--r-pill);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  box-shadow: var(--shadow-sm);
}

body.style-earth .card-price {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  background: var(--indigo);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}

body.style-earth .card-body { padding: 1rem 1.2rem 1.3rem; }
body.style-earth .card-title { font-size: 1rem; font-weight: 500; }
body.style-earth .card-title a { color: var(--text); }
body.style-earth .card-title a:hover { color: var(--indigo-deep); }

body.style-earth .card-download {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--indigo);
  background: none;
  border: 0;
  padding: 0;
}

/* ---------- chips --------------------------------------------------------- */

body.style-earth .tag-chips a,
body.style-earth .tag-index a {
  background: var(--bg-deep);
  border: 0;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.76rem;
  padding: 3px 11px;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease);
}

body.style-earth .tag-chips a:hover,
body.style-earth .tag-index a:hover { background: var(--indigo-soft); color: #fff; }

/* ---------- detail + purchase --------------------------------------------- */

body.style-earth .detail-frame {
  background: var(--surface);
  border: 0;
  border-radius: var(--r-lg);
  padding: clamp(10px, 1.6vw, 18px);
  box-shadow: var(--shadow);
}

body.style-earth .specs > div { border-bottom: 1px solid var(--line); padding-block: 0.7rem; }
body.style-earth .specs dt {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

body.style-earth .purchase {
  background: var(--surface);
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 1.7rem;
  margin-block: 1.5rem;
}

body.style-earth .purchase-price { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 1rem; }

body.style-earth .purchase-amount {
  font-size: clamp(2.3rem, 4.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--indigo-deep);
}

body.style-earth .purchase-unit {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

body.style-earth .purchase-note { font-size: 0.87rem; color: var(--muted); }

body.style-earth .purchase-benefits { list-style: none; margin: 1rem 0 0; padding: 0; }

body.style-earth .purchase-benefits li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.88rem;
  position: relative;
}

body.style-earth .purchase-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--indigo-soft);
}

body.style-earth .paypal-modal {
  background: var(--surface);
  color: var(--text);
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  padding: 0;
  max-width: 30rem;
}

body.style-earth .paypal-modal::backdrop { background: rgba(42, 29, 22, 0.42); }
body.style-earth .paypal-modal-card { padding: 2rem; }
body.style-earth .paypal-modal-price { font-size: 2.1rem; color: var(--indigo-deep); }

/* ---------- collections and journal --------------------------------------- */

body.style-earth .collection-strip,
body.style-earth .journal-teasers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

body.style-earth .collection-strip a {
  display: block;
  padding: 1.7rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

body.style-earth .collection-strip a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

body.style-earth .collection-name { display: block; font-weight: 600; }
body.style-earth .collection-price {
  display: block;
  font-size: 1.7rem;
  color: var(--indigo);
  margin-top: 0.25rem;
}
body.style-earth .collection-count { display: block; font-size: 0.8rem; color: var(--muted); }

body.style-earth .journal-teaser article {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

body.style-earth .journal-teaser article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

body.style-earth .journal-date {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

body.style-earth .journal-teaser h3,
body.style-earth .journal-item h2 { font-size: 1.2rem; font-weight: 500; margin: 0 0 0.45rem; }
body.style-earth .journal-teaser h3 a,
body.style-earth .journal-item h2 a { color: var(--text); }
body.style-earth .journal-teaser h3 a:hover,
body.style-earth .journal-item h2 a:hover { color: var(--indigo-deep); }

body.style-earth .journal-list { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
body.style-earth .journal-item { margin-bottom: 1.2rem; }
body.style-earth .journal-item article { padding: 1.5rem; }
body.style-earth .journal-article { max-width: 40rem; margin-inline: auto; }
body.style-earth .journal-article h2 { font-size: 1.35rem; margin-top: 2.2rem; }

body.style-earth .journal-cta {
  background: var(--bg-deep);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.6rem;
  margin-top: 2.4rem;
}

body.style-earth .journal-siblings {
  max-width: 40rem;
  margin: 2.2rem auto 0;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

body.style-earth .journal-siblings ul { list-style: none; padding: 0; margin: 0; }

/* ---------- sitemap ------------------------------------------------------- */

body.style-earth .sitemap-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

body.style-earth .sitemap-col-wide { grid-column: 1 / -1; }

body.style-earth .sitemap-col {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem;
}

body.style-earth .sitemap-col h2 {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 0.7rem;
}

body.style-earth .sitemap-col ul { list-style: none; padding: 0; margin: 0; }
body.style-earth .sitemap-col-wide ul { columns: 3 14rem; column-gap: 2rem; }
body.style-earth .sitemap-col li { padding-block: 0.22rem; font-size: 0.9rem; break-inside: avoid; }

/* ---------- footer -------------------------------------------------------- */

body.style-earth .site-footer {
  background: var(--bg-deep);
  border-top: 0;
  color: var(--muted);
}

body.style-earth .footer-cols span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}

body.style-earth .footer-cols a { color: var(--muted); font-size: 0.9rem; }
body.style-earth .footer-cols a:hover { color: var(--indigo-deep); }
body.style-earth .footer-base { border-top: 1px solid var(--line); font-size: 0.8rem; }
