/*
Theme Name:  art-rome-child
Theme URI:   https://art.rome.it
Description: Custom theme for art.rome.it — contemporary art editorial platform
Author:      Paperclip / art.rome.it
Version:     1.0
License:     Private
Text Domain: art-rome
*/

/* ============================================================
   DESIGN SYSTEM
   ============================================================ */
:root {
  --color-primary:      #FF2800;
  --color-primary-dark: #CC1F00;
  --color-text:         #111111;
  --color-text-muted:   #888888;
  --color-text-light:   #BBBBBB;
  --color-border:       #F0F0F0;
  --color-bg:           #FFFFFF;
  --font-serif:         'Playfair Display', Georgia, serif;
  --font-sans:          'Inter', -apple-system, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.art-header {
  border-bottom: 1px solid #e8e8e8;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 100;
}

.art-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.art-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.art-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  display: block;
}

.art-logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.art-logo-tld { color: var(--color-text-light); }

.art-nav {
  display: flex;
  gap: 28px;
}

.art-nav a {
  font-size: 11px;
  color: #999999;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.art-nav a:hover,
.art-nav a.current-menu-item { color: var(--color-text); }

/* ============================================================
   TAGLINE
   ============================================================ */
.art-tagline {
  padding: 20px 32px 16px;
  border-bottom: 1px solid var(--color-border);
}

.art-tagline p {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: #AAAAAA;
}

/* ============================================================
   HOMEPAGE GRID
   ============================================================ */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.art-card {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.15s;
}

.art-card:nth-child(3n) { border-right: none; }

.art-card.featured {
  grid-column: span 2;
}

.art-card:hover .art-card-title {
  color: var(--color-primary-dark);
}

/* ---- Image ---- */
.art-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
}

.art-card.featured .art-img-wrap {
  aspect-ratio: 16 / 9;
}

.art-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.art-card:hover .art-img-wrap img {
  transform: scale(1.02);
}

/* ---- Card body ---- */
.art-card-body {
  padding: 14px 18px 18px;
}

.art-card-dates {
  font-size: 10px;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.art-card-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.art-card.featured .art-card-title { font-size: 19px; }

.art-card-summary {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.art-card-venue {
  font-size: 10px;
  color: #CCCCCC;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* ============================================================
   SINGLE POST — EXHIBITION
   ============================================================ */
.art-single {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.art-single-header {
  margin-bottom: 32px;
}

.art-single-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.art-single-meta {
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.art-featured-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 40px;
}

/* Press release body */
.art-press p {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 1.5em;
}

.art-press p.art-dates {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 28px;
}

/* Divider */
hr.art-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

/* Venue */
p.art-venue {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

p.art-venue a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.15s;
}

p.art-venue a:hover {
  border-color: var(--color-text-muted);
}

/* Back link */
.art-back {
  display: inline-block;
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 40px;
  transition: color 0.15s;
}

.art-back:hover { color: var(--color-text); }

/* ============================================================
   STATIC PAGES (About, Press, Galleries)
   ============================================================ */
.art-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.art-page h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 32px;
}

.art-page h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  margin: 40px 0 16px;
}

.art-page p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 1.5em;
}

.art-page a {
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.15s;
}

.art-page a:hover { border-color: var(--color-text-muted); }

/* Galleries list */
.art-galleries-list {
  list-style: none;
  margin-top: 24px;
}

.art-galleries-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.art-galleries-list .gallery-name {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--color-text);
}

.art-galleries-list .gallery-zone {
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.03em;
}

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.art-archive-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--color-border);
}

.art-archive-header h1 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.art-footer {
  border-top: 1px solid #e8e8e8;
  padding: 16px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.art-footer-center {
  text-align: center;
}

.art-footer-brand {
  font-family: var(--font-serif);
  font-size: 12px;
  font-style: italic;
  color: #CCCCCC;
  letter-spacing: 0.02em;
}

.art-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.art-footer-dots {
  display: flex;
  gap: 4px;
}

.art-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.4;
}

.art-footer-text {
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: italic;
  color: #CCCCCC;
}

.art-footer-right {
  font-size: 10px;
  color: #CCCCCC;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.art-footer-right a {
  color: inherit;
  transition: color 0.15s;
}

.art-footer-right a:hover { color: var(--color-text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .art-header { padding: 14px 16px; }
  .art-nav { gap: 16px; }
  .art-nav a { font-size: 10px; }
  .art-tagline { padding: 14px 16px; }

  .art-grid { grid-template-columns: 1fr; }
  .art-card.featured { grid-column: span 1; }
  .art-card.featured .art-img-wrap { aspect-ratio: 4 / 3; }
  .art-card.featured .art-card-title { font-size: 15px; }
  .art-card:nth-child(3n) { border-right: 1px solid var(--color-border); }
  .art-card:last-child { border-right: none; }

  .art-single, .art-page { padding: 32px 16px 60px; }
  .art-single-title, .art-page h1 { font-size: 22px; }

  .art-archive-header { padding: 16px; }
  .art-footer { padding: 14px 16px; grid-template-columns: 1fr; justify-items: center; gap: 6px; }
}

@media (max-width: 480px) {
  .art-nav { display: none; }
}
