/*
Theme Name: ARTup Base
Theme URI: https://artup.io/systems/templates
Author: ARTup Systems
Description: Block theme for ARTup-hosted artist sites. Layout, palette and type are driven by the configuration snapshot the middle layer applies; the theme reads them from stored options and emits custom properties, so a site never carries hand-edited styling that a rollback could not restore.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artup-base
*/

:root {
  --artup-surface: #ffffff;
  --artup-ink: #111827;
  --artup-accent: #6b7280;
  --artup-max-width: 1080px;
  --artup-heading-scale: 1;
  --artup-image-ratio: 3 / 4;
  --artup-gallery-columns: 3;
  --artup-font-headings: Georgia, "DejaVu Serif", "Times New Roman", serif;
  --artup-font-body: "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif;
}

body {
  margin: 0;
  background: var(--artup-surface);
  color: var(--artup-ink);
  font-family: var(--artup-font-body);
  line-height: 1.6;
}

h1, h2, h3, h4, .artup-display {
  font-family: var(--artup-font-headings);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: calc(2.6rem * var(--artup-heading-scale)); margin: 0 0 0.4em; }
h2 { font-size: calc(1.8rem * var(--artup-heading-scale)); margin: 2rem 0 0.6em; }
h3 { font-size: calc(1.25rem * var(--artup-heading-scale)); margin: 1.4rem 0 0.4em; }

a { color: var(--artup-accent); }

.artup-shell {
  max-width: var(--artup-max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.artup-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--artup-ink) 12%, transparent);
}

.artup-logo { max-height: 64px; width: auto; }

.artup-site-title { margin: 0; font-size: calc(1.5rem * var(--artup-heading-scale)); }

.artup-tagline { margin: 0.2rem 0 0; color: color-mix(in srgb, var(--artup-ink) 65%, transparent); }

.artup-nav { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.artup-nav a { text-decoration: none; text-transform: lowercase; letter-spacing: 0.04em; }

.artup-gallery {
  display: grid;
  grid-template-columns: repeat(var(--artup-gallery-columns), minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.75rem);
  margin: 2rem 0 3rem;
}

.artup-gallery figure { margin: 0; }
.artup-gallery img {
  width: 100%;
  aspect-ratio: var(--artup-image-ratio);
  object-fit: cover;
  display: block;
  background: color-mix(in srgb, var(--artup-ink) 8%, transparent);
}
.artup-gallery figcaption {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: color-mix(in srgb, var(--artup-ink) 70%, transparent);
}

.artup-footer {
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid color-mix(in srgb, var(--artup-ink) 12%, transparent);
  font-size: 0.9rem;
}

.artup-contact-list { list-style: none; padding: 0; margin: 0; }
.artup-contact-list li { padding: 0.15rem 0; }

@media (max-width: 760px) {
  :root { --artup-gallery-columns: 2; }
}
