/* =========================================================================
   flowerstockphotos.online — skin "gallery"

   A print-room look: warm paper ground, serif display type, hairline rules,
   generous white space, no glow and almost no radius. The shared site.css is
   dark-first, so this file has to actively undo its shadows and washes rather
   than only recolour them.

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

:root {
  /* Paper, ink and two restrained accents: dusty rose and antique gold. */
  --bg: #faf7f4;
  --bg-deep: #f3eee9;
  --surface: #ffffff;
  --surface-2: #fbf8f5;
  --text: #241f22;
  --muted: #6d6167;
  --indigo: #8c5a6e;
  --indigo-soft: #a8788a;
  --indigo-deep: #6f4456;
  --glow: rgba(140, 90, 110, 0.10);
  --glow-soft: rgba(201, 162, 39, 0.10);
  --line: rgba(36, 31, 34, 0.14);
  --line-strong: rgba(36, 31, 34, 0.30);

  --gold: #c9a227;

  /* A gallery has edges, not corners. */
  --r-sm: 0px;
  --r: 0px;
  --r-lg: 0px;
  --r-pill: 999px;

  /* Paper does not glow. Shadows are replaced by rules almost everywhere. */
  --shadow-sm: none;
  --shadow: none;
  --shadow-lift: 0 18px 40px rgba(36, 31, 34, 0.10);

  --grad-accent: linear-gradient(135deg, var(--indigo-soft) 0%, var(--indigo-deep) 100%);
  --grad-wash: none;

  --display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
}

body.style-gallery {
  background: var(--bg);
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}

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

body.style-gallery h1,
body.style-gallery h2,
body.style-gallery h3,
body.style-gallery .brand-name {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.16;
}

body.style-gallery h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
}

body.style-gallery .eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

body.style-gallery .lede,
body.style-gallery .hero-lead {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.68;
  color: var(--muted);
  max-width: 58ch;
}

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

body.style-gallery .site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
}

body.style-gallery .brand-name {
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

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

body.style-gallery .brand-dot {
  background: var(--gold);
  border-radius: 999px;
}

body.style-gallery .site-nav a {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

body.style-gallery .site-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--gold);
}

body.style-gallery .header-search input,
body.style-gallery .hero-search input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
}

body.style-gallery .header-search button,
body.style-gallery .hero-search button {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  border-radius: 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

body.style-gallery .hero {
  background: var(--bg);
  padding-block: clamp(4rem, 11vw, 8.5rem);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

body.style-gallery .hero::before,
body.style-gallery .hero::after {
  display: none;
}

body.style-gallery .hero .shell > * {
  margin-inline: auto;
}

body.style-gallery .hero-lead {
  margin-inline: auto;
}

/* A single quiet entrance. No parallax, no scroll listeners. */
body.style-gallery .hero h1,
body.style-gallery .hero .hero-lead,
body.style-gallery .hero .hero-actions {
  animation: gallery-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body.style-gallery .hero .hero-lead { animation-delay: 0.08s; }
body.style-gallery .hero .hero-actions { animation-delay: 0.16s; }

@keyframes gallery-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.style-gallery .hero h1,
  body.style-gallery .hero .hero-lead,
  body.style-gallery .hero .hero-actions {
    animation: none;
  }
}

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

body.style-gallery .btn {
  border-radius: 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  box-shadow: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body.style-gallery .btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

body.style-gallery .btn-primary:hover {
  background: var(--indigo-deep);
  border-color: var(--indigo-deep);
  color: #fff;
}

body.style-gallery .btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

body.style-gallery .btn-ghost:hover {
  border-color: var(--text);
}

/* ---------- bands --------------------------------------------------------- */

body.style-gallery .band,
body.style-gallery .band-alt,
body.style-gallery .band-top {
  background: var(--bg);
  padding-block: clamp(3rem, 7vw, 6rem);
}

body.style-gallery .band-alt {
  background: var(--bg-deep);
}

body.style-gallery .band-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 2.4rem;
  align-items: baseline;
}

body.style-gallery .band-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

body.style-gallery .band-more {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

body.style-gallery .band-more:hover { color: var(--indigo-deep); }

/* ---------- cards: a print in a mount ------------------------------------- */

body.style-gallery .grid {
  gap: clamp(1.8rem, 3.4vw, 3rem);
}

body.style-gallery .card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

body.style-gallery .card-media {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.style-gallery .card:hover .card-media {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

body.style-gallery .card img {
  border-radius: 0;
  transition: opacity 0.4s ease;
}

body.style-gallery .card:hover img { opacity: 0.94; }

body.style-gallery .card-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

body.style-gallery .card-price {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--text);
  color: var(--bg);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
}

body.style-gallery .card-body {
  padding: 1rem 0 0;
  text-align: center;
}

body.style-gallery .card-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.4;
}

body.style-gallery .card-title a { color: var(--text); }
body.style-gallery .card-title a:hover { color: var(--indigo-deep); }

body.style-gallery .card-download {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
}

body.style-gallery .card-download:hover { color: var(--indigo-deep); }

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

body.style-gallery .tag-chips a,
body.style-gallery .tag-index a {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

body.style-gallery .tag-chips a:hover,
body.style-gallery .tag-index a:hover {
  border-color: var(--indigo);
  color: var(--indigo-deep);
}

/* ---------- detail page --------------------------------------------------- */

body.style-gallery .detail-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(10px, 1.6vw, 20px);
  border-radius: 0;
  box-shadow: none;
}

body.style-gallery .detail-side h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

body.style-gallery .specs {
  border-top: 1px solid var(--line);
}

body.style-gallery .specs > div {
  border-bottom: 1px solid var(--line);
  padding-block: 0.7rem;
}

body.style-gallery .specs dt {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- purchase block ------------------------------------------------ */

body.style-gallery .purchase {
  border: 1px solid var(--line-strong);
  padding: 1.6rem;
  margin-block: 1.6rem;
  background: var(--surface);
}

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

body.style-gallery .purchase-amount {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
}

body.style-gallery .purchase-unit {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

body.style-gallery .purchase-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

body.style-gallery .purchase-benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--line);
}

body.style-gallery .purchase-benefits li {
  padding: 0.55rem 0 0.55rem 1.3rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  position: relative;
}

body.style-gallery .purchase-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 999px;
}

body.style-gallery .paypal-modal {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0;
  max-width: 30rem;
}

body.style-gallery .paypal-modal::backdrop {
  background: rgba(36, 31, 34, 0.5);
}

body.style-gallery .paypal-modal-card { padding: 2rem; }

body.style-gallery .paypal-modal-price {
  font-family: var(--display);
  font-size: 2rem;
}

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

body.style-gallery .collection-strip,
body.style-gallery .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-gallery .collection-strip a {
  display: block;
  border: 1px solid var(--line);
  padding: 1.6rem;
  color: var(--text);
  transition: border-color 0.25s ease;
}

body.style-gallery .collection-strip a:hover { border-color: var(--indigo); }

body.style-gallery .collection-name {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
}

body.style-gallery .collection-price {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.4rem;
  color: var(--indigo-deep);
  margin-top: 0.4rem;
}

body.style-gallery .collection-count {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

body.style-gallery .journal-teaser article {
  border-top: 1px solid var(--line-strong);
  padding-top: 1rem;
}

body.style-gallery .journal-date {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

body.style-gallery .journal-teaser h3,
body.style-gallery .journal-item h2 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

body.style-gallery .journal-teaser h3 a,
body.style-gallery .journal-item h2 a { color: var(--text); }
body.style-gallery .journal-teaser h3 a:hover,
body.style-gallery .journal-item h2 a:hover { color: var(--indigo-deep); }

body.style-gallery .journal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 46rem;
}

body.style-gallery .journal-item article {
  border-bottom: 1px solid var(--line);
  padding-block: 1.8rem;
}

body.style-gallery .journal-article {
  max-width: 40rem;
  margin-inline: auto;
  font-size: 1.06rem;
}

body.style-gallery .journal-article h2 {
  font-size: 1.4rem;
  margin-top: 2.4rem;
}

body.style-gallery .journal-cta {
  border-top: 1px solid var(--line-strong);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
}

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

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

body.style-gallery .journal-siblings li { padding-block: 0.4rem; }

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

body.style-gallery .sitemap-grid {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

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

body.style-gallery .sitemap-col h2 {
  font-size: 1.1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
}

body.style-gallery .sitemap-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 1;
}

body.style-gallery .sitemap-col-wide ul {
  columns: 3 14rem;
  column-gap: 2rem;
}

body.style-gallery .sitemap-col li {
  padding-block: 0.22rem;
  font-size: 0.92rem;
  break-inside: avoid;
}

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

body.style-gallery .site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

body.style-gallery .footer-cols span {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

body.style-gallery .footer-cols a {
  color: var(--muted);
  font-size: 0.9rem;
}

body.style-gallery .footer-cols a:hover { color: var(--indigo-deep); }

body.style-gallery .footer-base {
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
