/* ============================================
   iArtist Studios — Landing & Blog page styles
   Shares the brand system from styles.css
   ============================================ */

:root {
  --color-olive: #6b7c3f;
  --color-olive-dark: #4a5a2b;
  --color-terracotta: #c4956a;
  --color-cream: #faf6f0;
  --color-ivory: #f5f0e8;
  --color-sand: #e8ddd0;
  --color-charcoal: #2c2c2c;
  --color-bg: #faf6f0;
  --color-bg-alt: #f5f0e8;
  --color-text: #2c2c2c;
  --color-text-light: #6b6458;
  --color-accent: #6b7c3f;
  --color-accent-hover: #4a5a2b;
  --color-highlight: #c4956a;
  --color-border: rgba(107, 100, 88, 0.12);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 780px;
  --radius: 12px;
}

[data-theme="dark"] {
  --color-bg: #1c1a17;
  --color-bg-alt: #262320;
  --color-text: #f0ebe3;
  --color-text-light: #b5aca0;
  --color-border: rgba(240, 235, 227, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-heading); font-size: 1.15rem;
  color: var(--color-text); text-decoration: none; font-weight: 600;
}
.site-logo img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--color-text-light); text-decoration: none;
  font-size: 0.92rem; letter-spacing: 0.02em;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-accent); }

/* Page hero */
.page-hero { position: relative; overflow: hidden; }
.page-hero img { width: 100%; height: 46vh; min-height: 320px; object-fit: cover; display: block; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(44,44,44,0.2), rgba(44,44,44,0.55));
}
.page-hero-text {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: #fff; padding: 1.5rem;
}
.page-hero-text h1 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem); line-height: 1.15; max-width: 900px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.page-hero-text p { margin-top: 0.8rem; font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.92; max-width: 640px; }

/* Layout */
main.page-main { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 2rem; }
.breadcrumbs a { color: var(--color-accent); text-decoration: none; }
.byline { display: flex; gap: 0.75rem; align-items: center; color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.byline strong { color: var(--color-text); font-weight: 500; }

article h2 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25;
  margin: 2.8rem 0 1rem;
}
article h3 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 1.25rem; margin: 2rem 0 0.7rem;
}
article p { margin-bottom: 1.15rem; }
article ul, article ol { margin: 0 0 1.15rem 1.4rem; }
article li { margin-bottom: 0.45rem; }
article img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1.5rem 0; display: block; }
article a { color: var(--color-accent); }
article a:hover { color: var(--color-accent-hover); }
article blockquote {
  border-left: 3px solid var(--color-terracotta);
  padding: 0.4rem 0 0.4rem 1.2rem; margin: 1.6rem 0;
  font-family: var(--font-heading); font-style: italic; font-size: 1.15rem;
  color: var(--color-text-light);
}
.lead { font-size: 1.15rem; color: var(--color-text-light); }

/* Table of contents */
.toc {
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 2rem 0;
}
.toc strong { font-family: var(--font-heading); font-size: 1.05rem; }
.toc ol { margin: 0.7rem 0 0 1.2rem; }
.toc a { color: var(--color-accent); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.feature-card {
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.feature-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.feature-card p { margin: 0; font-size: 0.92rem; color: var(--color-text-light); }

/* FAQ */
.faq-block details {
  border-bottom: 1px solid var(--color-border); padding: 0.9rem 0;
}
.faq-block summary {
  cursor: pointer; font-weight: 500; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-block summary::after { content: "+"; font-size: 1.3rem; color: var(--color-terracotta); flex-shrink: 0; }
.faq-block details[open] summary::after { content: "–"; }
.faq-block details p { margin: 0.7rem 0 0; color: var(--color-text-light); }

/* CTA */
.cta-band {
  background: var(--color-olive); color: #fff; border-radius: var(--radius);
  padding: 2.2rem 2rem; text-align: center; margin: 3rem 0 1rem;
}
.cta-band h2 { font-family: var(--font-heading); font-size: 1.6rem; margin: 0 0 0.5rem; }
.cta-band p { margin: 0 0 1.3rem; opacity: 0.92; }
.btn {
  display: inline-block; padding: 0.85rem 1.9rem; border-radius: 30px;
  text-decoration: none; font-weight: 500; font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--color-cream); color: var(--color-charcoal); }
.btn-outline { border: 1px solid rgba(255,255,255,0.7); color: #fff; margin-left: 0.6rem; }
.btn-accent { background: var(--color-olive); color: #fff; }

/* Blog cards */
.post-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.post-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.3rem;
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--color-text);
}
.post-card img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1.2rem 1.3rem 1.2rem 0; }
.post-card h2 { font-family: var(--font-heading); font-size: 1.25rem; margin: 0 0 0.5rem; }
.post-card p { margin: 0; font-size: 0.93rem; color: var(--color-text-light); }
.post-card .post-meta { display: block; margin-top: 0.7rem; font-size: 0.8rem; color: var(--color-terracotta); }
@media (max-width: 600px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card img { height: 180px; }
  .post-card-body { padding: 1.1rem 1.2rem; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border); background: var(--color-bg-alt);
  margin-top: 3rem;
}
.site-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 2.2rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between;
  font-size: 0.9rem; color: var(--color-text-light);
}
.site-footer a { color: var(--color-accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.back-home { font-size: 0.9rem; }

/* ============================================
   Consolidated home-style header on subpages
   ============================================ */
body { padding-top: var(--header-height, 70px); }

a.lang-toggle {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a.menu-link { text-decoration: none; }

/* ============================================
   Editorial page header (landings)
   Label + title + subtitle, then full image
   ============================================ */
.page-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
}

.page-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 1.1rem;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--color-text);
}

.page-subtitle {
  margin: 1rem auto 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-light);
  max-width: 640px;
}

.page-figure {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.page-figure--portrait img {
  max-width: 680px;
  margin: 0 auto;
}
