/* ================================================================
   album_sunfield.css — Belonging Elsewhere (/album6/) only.

   Loaded after album_page.css when ALBUMS[slug]['theme'] == 'sunfield', and
   every rule is scoped to .alb--sunfield, so Albums 3-5 never see it.

   The page is painted from the cover: a watercolour sky with the sun out,
   the cover's own sunflower rows along the horizon, and everything below on
   warm paper. It is a DAYLIGHT page inside a dark site shell, so it restates
   the shell's colour tokens for its own subtree instead of fighting them
   rule by rule. Two things follow from a light ground:
     * --alb-accent is used as TEXT all over album_page.css, and the cover's
       sunflower gold is unreadable on paper. The text accent here is the
       petal orange, darkened; gold (--sf-sun) is for fills only.
     * the two charts read their grid / label / series colours from the
       --alb-chart-* and --alb-good / --alb-bad variables set below.
   ================================================================ */

.alb--sunfield {
  --sf-sky: #58b4e3;
  --sf-sky-pale: #cfeaf7;
  --sf-sun: #f8b918;
  --sf-petal: #f07d12;
  --sf-leaf: #3f8f2a;
  --sf-leaf-pale: #e6f0c9;
  --sf-seed: #4a2617;
  --sf-paper: #fcf8ea;

  --alb-accent: #b84a06 !important;
  --alb-accent-rgb: 184, 74, 6 !important;
  --alb-good: #2f8a3c;
  --alb-bad: #c8452f;
  --alb-chart-alt: #2a80bd;
  --alb-chart-grid: rgba(74, 38, 23, 0.10);
  --alb-chart-label: rgba(74, 38, 23, 0.78);
  --alb-mid: #e9a400;
  --alb-chart-dot: rgba(74, 38, 23, 0.30);

  --bg-0: #fcf8ea;
  --bg-1: #f5eed3;
  --bg-2: #fffdf6;
  --bg-3: #efe6c4;
  --border: rgba(74, 38, 23, 0.14);
  --border-b: rgba(74, 38, 23, 0.28);
  --text: #3b2013;
  --text-m: rgba(59, 32, 19, 0.74);
  --text-d: rgba(59, 32, 19, 0.56);
  --warm: #b84a06;

  position: relative;
  color: var(--text);
  background: var(--sf-paper);
}
/* cold-pressed paper tooth over the whole page */
.alb--sunfield::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='6'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.34  0 0 0 0 0.2  0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23p)'/%3E%3C/svg%3E");
}
.alb--sunfield > * { position: relative; z-index: 1; }
.alb--sunfield .section-title, .alb--sunfield h3 { color: var(--text); }

/* ---------------- The sky ---------------- */
.alb--sunfield .alb-hero { padding: 132px 0 250px; }
.alb--sunfield .alb-hero-bg {
  background:
    linear-gradient(180deg, #8fcfee 0%, var(--sf-sky-pale) 40%, #f4fbfd 66%, #fdf3c4 88%, #f6dc6a 100%);
}
.alb--sunfield .alb-hero-bg > img { display: none; }          /* no blurred-cover glow on this page */
.alb--sunfield .alb-hero-bg::after { display: none; }

/* the painting's own sky, dry-brush streak and all, fading into the wash below it */
.alb--sunfield .sf-defs { position: absolute; }
.alb--sunfield .sf-sky {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 62%;
  background: url("../images/album6_sky.jpg") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
}

/* the sun: a flat wash of yellow with a wobbly painted edge, soft light around it */
.alb--sunfield .sf-sun {
  position: absolute;
  top: 78px;
  right: max(4vw, calc(50% - 620px));
  width: 300px;
  height: 300px;
}
.alb--sunfield .sf-sun-disc {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe169 0%, #fdd042 55%, var(--sf-sun) 100%);
  box-shadow: 0 0 0 10px rgba(255, 226, 110, 0.45), 0 0 0 24px rgba(255, 232, 140, 0.22);
  filter: url(#sf-paint);
}
.alb--sunfield .sf-sun-rays {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 228, 110, 0.62) 0deg 9deg, transparent 9deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle, transparent 24%, #000 30%, transparent 66%);
          mask-image: radial-gradient(circle, transparent 24%, #000 30%, transparent 66%);
  filter: url(#sf-paint) blur(3px);
  animation: sf-turn 180s linear infinite;
}
@keyframes sf-turn { to { transform: rotate(360deg); } }

/* the cover's own sunflower rows, along the horizon */
.alb--sunfield .sf-field,
.alb--sunfield .alb-theme-foot {
  /* cover, never tiled: a repeat shows a hard seam through the flowers */
  background: url("../images/album6_field.jpg") center 80% / cover no-repeat;
}
.alb--sunfield .sf-field {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 230px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 100%);
}
.alb--sunfield .alb-theme-foot {
  height: 200px;
  margin-top: 8px;
  /* a different stretch of the field than the hero's, mirrored, and a seed-brown ground line into the dark footer */
  background-position: center 30%;
  transform: scaleX(-1);
  border-bottom: 5px solid var(--sf-seed);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
}

/* ---------------- Hero copy, on the sky ---------------- */
.alb--sunfield .alb-art {
  padding: 16px 16px 20px;
  border-radius: 3px;
  background: #fffef9;
  overflow: visible;
  aspect-ratio: auto;
  transform: rotate(-2.2deg);
  box-shadow: 0 2px 3px rgba(59, 32, 19, 0.18), 0 26px 50px -12px rgba(40, 70, 100, 0.45);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), opacity 0.6s;
  position: relative;
}
.alb--sunfield .alb-art:hover { transform: rotate(0deg) scale(1.015); }
.alb--sunfield .alb-art img { border-radius: 1px; height: auto; aspect-ratio: 1 / 1; }
/* two strips of masking tape holding the painting up */
.alb--sunfield .alb-art::before,
.alb--sunfield .alb-art::after {
  content: '';
  position: absolute;
  top: -13px;
  width: 92px;
  height: 28px;
  background: rgba(250, 214, 92, 0.78);
  box-shadow: 0 1px 2px rgba(59, 32, 19, 0.18);
}
.alb--sunfield .alb-art::before { left: -26px; transform: rotate(-38deg); }
.alb--sunfield .alb-art::after { right: -26px; transform: rotate(36deg); }

.alb--sunfield .alb-eyebrow { color: rgba(59, 32, 19, 0.8); }
.alb--sunfield .alb-eyebrow-dot { background: rgba(59, 32, 19, 0.5); }
.alb--sunfield .alb-status {
  color: #fff;
  background: var(--alb-accent);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 2px;
}
.alb--sunfield .alb-status--wip::before { background: #ffe066; box-shadow: 0 0 0 3px rgba(255, 224, 102, 0.35); }
.alb--sunfield .alb-title {
  color: var(--sf-seed);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
}
.alb--sunfield .alb-artist { color: rgba(59, 32, 19, 0.82); }
.alb--sunfield .alb-lede { color: #3b2013; }
.alb--sunfield .alb-cta-note { color: rgba(59, 32, 19, 0.7); }
.alb--sunfield .alb-store {
  background: rgba(255, 254, 249, 0.88);
  border-color: rgba(74, 38, 23, 0.22);
  color: var(--text);
  box-shadow: 0 2px 0 rgba(74, 38, 23, 0.12);
}
.alb--sunfield .alb-store:hover { background: #fff; border-color: var(--alb-accent); }
.alb--sunfield .alb-store .fa-spotify { color: #14883e; }
.alb--sunfield .alb-store .fa-amazon { color: #0b7fae; }
.alb--sunfield .alb-facts {
  border-top: 0;
  padding: 16px 22px;
  background: rgba(255, 254, 249, 0.82);
  border-radius: 12px;
  box-shadow: 0 2px 0 rgba(74, 38, 23, 0.10);
  width: fit-content;
  max-width: 100%;
}
.alb--sunfield .alb-facts dd { color: var(--sf-seed); }

/* ---------------- Sections: washes instead of dark bands ---------------- */
.alb--sunfield .alb-section--band { border: 0; background: linear-gradient(180deg, #e2f2fa 0%, #eef7f4 100%); }
.alb--sunfield .alb-section--band ~ .alb-section--band { background: linear-gradient(180deg, #f3f5d3 0%, var(--sf-leaf-pale) 100%); }
.alb--sunfield .section-label--warm { color: var(--alb-accent); }

/* ---------------- Tracklist: every number is a sunflower ---------------- */
.alb--sunfield .alb-tracks { border-top: 0; }
.alb--sunfield .alb-track { border-bottom: 1px dashed rgba(74, 38, 23, 0.18); grid-template-columns: 52px minmax(0, 1fr) auto 84px 52px; }
.alb--sunfield .alb-track:hover { background: rgba(248, 185, 24, 0.14); }
.alb--sunfield .alb-track-num {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 700;
  color: #fff3d6;
  isolation: isolate;
}
.alb--sunfield .alb-track:hover .alb-track-num { color: #fff; }
.alb--sunfield .alb-track-num::before {                      /* the petals */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 50%;
  background: repeating-conic-gradient(from 3deg, var(--sf-petal) 0deg 13deg, #ffc93a 13deg 17deg, transparent 17deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 70%);
          mask-image: radial-gradient(circle, #000 62%, transparent 70%);
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.alb--sunfield .alb-track-num::after {                       /* the seed head */
  content: '';
  position: absolute;
  inset: 22%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 36%, #7a4630 0%, var(--sf-seed) 70%);
  box-shadow: 0 0 0 2px rgba(255, 243, 214, 0.75);
}
.alb--sunfield .alb-track:hover .alb-track-num::before { transform: rotate(45deg) scale(1.12); }
.alb--sunfield .alb-track-name { color: var(--text); }
.alb--sunfield .alb-chip { background: var(--sf-leaf-pale); border-color: rgba(63, 143, 42, 0.28); color: #2c6a1c; }
.alb--sunfield .alb-chip--tempo { color: var(--alb-accent); border-color: rgba(var(--alb-accent-rgb), 0.35); }

/* ---------------- The recording ---------------- */
.alb--sunfield .alb-number {
  border: 0;
  border-top: 5px solid var(--sf-sun);
  box-shadow: 0 2px 0 rgba(74, 38, 23, 0.10), 0 16px 30px -18px rgba(74, 38, 23, 0.35);
}
.alb--sunfield .alb-number:nth-child(2) { border-top-color: var(--sf-petal); }
.alb--sunfield .alb-number:nth-child(3) { border-top-color: var(--sf-leaf); }
.alb--sunfield .alb-number:nth-child(4) { border-top-color: var(--sf-sky); }
.alb--sunfield .alb-timeline-track { background: #fffdf6; border-color: rgba(74, 38, 23, 0.18); }
.alb--sunfield .alb-timeline-dot { background: var(--sf-sun); box-shadow: 0 0 0 2px var(--sf-petal); }

/* ---------------- Story ---------------- */
.alb--sunfield .alb-story-body p { color: rgba(59, 32, 19, 0.84); }
.alb--sunfield .alb-story-closing { color: var(--alb-accent); }

/* ---------------- Charts, compare, every number ---------------- */
.alb--sunfield .alb-chart-card,
.alb--sunfield .alb-details {
  border-color: rgba(74, 38, 23, 0.12);
  box-shadow: 0 2px 0 rgba(74, 38, 23, 0.08), 0 18px 34px -22px rgba(74, 38, 23, 0.35);
}
.alb--sunfield .alb-details { background: #fffdf6; }
.alb--sunfield .alb-select {
  background-color: #fffdf6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a2617' stroke-width='1.6'/%3E%3C/svg%3E");
}
.alb--sunfield .alb-tip { background: #fffdf6; box-shadow: 0 8px 20px -8px rgba(74, 38, 23, 0.4); }
.alb--sunfield .alb-setlist-row .sl-fs { color: var(--alb-bad); }
.alb--sunfield .alb-setlist-row .sl-avg.high { color: var(--alb-good); }
.alb--sunfield .alb-setlist-row .sl-avg.low { color: var(--alb-bad); }
.alb--sunfield .alb-fact-group li b.up { color: var(--alb-good); }
.alb--sunfield .alb-meter-bar { background: rgba(74, 38, 23, 0.10); }
.alb--sunfield .alb-meter-bar i { background: linear-gradient(90deg, var(--sf-sun), var(--sf-petal)); }
.alb--sunfield .alb-compare td.this, .alb--sunfield .alb-compare thead th.this { background: rgba(248, 185, 24, 0.12); }

/* ---------------- The other records (tiles come from landing.css) ---------------- */
.alb--sunfield .album-tile { background: #fffdf6; border-color: rgba(74, 38, 23, 0.14); color: var(--text); box-shadow: 0 2px 0 rgba(74, 38, 23, 0.08); }
.alb--sunfield .album-tile:hover { border-color: var(--alb-accent); }

/* ---------------- Small screens ---------------- */
@media (max-width: 1000px) {
  .alb--sunfield .sf-sun { width: 220px; height: 220px; top: 74px; }
}
@media (max-width: 700px) {
  .alb--sunfield .alb-hero { padding: 104px 0 170px; }
  .alb--sunfield .sf-sun { width: 170px; height: 170px; top: 62px; right: -30px; }
  .alb--sunfield .sf-field { height: 150px; }
  .alb--sunfield .alb-theme-foot { height: 130px; }
  .alb--sunfield .alb-facts { margin: 0 auto; }
  .alb--sunfield .alb-track { grid-template-columns: 46px minmax(0, 1fr) 52px; }
  .alb--sunfield .alb-track-num { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .alb--sunfield .sf-sun-rays { animation: none; }
  .alb--sunfield .alb-art, .alb--sunfield .alb-track-num::before { transition: none; }
}

/* ---------------- Artwork credit: written on the painting's paper mat ---------------- */
.alb--sunfield .alb-art-credit { padding: 12px 0 0; font-size: 14px; color: rgba(59, 32, 19, 0.8); }
.alb--sunfield .alb-thanks { text-align: center; color: var(--sf-seed); font-size: 24px; margin-top: 48px; }
.alb--sunfield .alb-generated { text-align: center; }
.alb--sunfield .alb-story-closing { font-weight: 600; }

/* ---------------- After review (2026-11-16) ---------------- */
/* "Every number": colour only the extremes; a column of red reads as failure on a sunny page */
.alb--sunfield .alb-setlist-row .sl-fs { color: var(--text-m); }
.alb--sunfield .alb-setlist-row .sl-avg.mid { color: var(--text); font-weight: 500; }
.alb--sunfield .alb-art-credit-where { white-space: nowrap; }
/* twenty flowers, not one stamp: each row's petals sit at their own angle */
.alb--sunfield .alb-track:nth-child(3n+1) .alb-track-num::before { rotate: 8deg; }
.alb--sunfield .alb-track:nth-child(3n+2) .alb-track-num::before { rotate: -11deg; }
.alb--sunfield .alb-track:nth-child(4n) .alb-track-num::before { rotate: 19deg; }
@media (max-width: 700px) {
  .alb--sunfield .alb-compare td.this, .alb--sunfield .alb-compare thead th.this { padding-right: 12px; }
}
