/* ========================================================================
   pierres-plans-provence.fr — Empire Design 2026-06-10
   Theme: Twenty Twenty-Five (block theme default)
   Niche: BTP traditionnel Provence (pierre seche, restanques, mas)
   Voice: solide, savoir-faire, transmission
   Fonts: Yrsa (display transitional serif) + Familjen Grotesk (body humanist) — SELF-HOSTED
   ======================================================================== */

@font-face {
  font-family: 'Yrsa';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/yrsa-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Yrsa';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/yrsa-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/familjen-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/familjen-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pp2-ink:        oklch(22% 0.02 70);
  --pp2-ink-soft:   oklch(45% 0.015 70);
  --pp2-paper:      oklch(96.5% 0.014 85);   /* warm limestone cream */
  --pp2-paper-tint: oklch(92% 0.018 85);
  --pp2-line:       oklch(85% 0.014 75);
  --pp2-ocre:       oklch(40% 0.14 65);      /* ocre Roussillon */
  --pp2-ocre-soft:  oklch(47% 0.12 65); /* WCAG AA pass ~4.7:1 on cream */
  --pp2-olive:      oklch(50% 0.08 110);     /* olive emergence rare */
}

body, .wp-site-blocks {
  font-family: 'Familjen Grotesk', system-ui, sans-serif !important;
  color: var(--pp2-ink);
  background: var(--pp2-paper);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4, .wp-block-post-title, .wp-block-heading {
  font-family: 'Yrsa', Georgia, serif !important;
  color: var(--pp2-ink) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.005em !important;
}
h1, .wp-block-post-title { font-size: clamp(2.2rem, 5vw, 3.4rem) !important; font-weight: 700 !important; margin-bottom: 0.5em; }
h2 { font-size: 1.85rem !important; }
h3 { font-size: 1.4rem !important; }

.wp-block-site-title a, .wp-block-site-title {
  font-family: 'Yrsa', serif !important;
  font-weight: 700 !important;
  font-size: 1.55rem;
  color: var(--pp2-ink);
}

.wp-block-navigation a, .wp-block-navigation-item__content {
  font-family: 'Familjen Grotesk', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--pp2-ink-soft);
}
.wp-block-navigation a:hover { color: var(--pp2-ocre); }

a:where(:not(.wp-element-button):not(.wp-block-navigation-item__content)) {
  color: var(--pp2-ocre);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:where(:not(.wp-element-button)):hover { color: var(--pp2-ocre-soft); }

.wp-block-button__link, .wp-element-button {
  background: var(--pp2-ocre) !important;
  color: var(--pp2-paper) !important;
  border: none !important;
  border-radius: 3px !important;
  padding: 12px 22px !important;
  font-family: 'Familjen Grotesk', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  box-shadow: none !important;
}
.wp-block-button__link:hover { background: oklch(33% 0.14 65) !important; }

.wp-block-quote {
  border-left: none !important;
  background: var(--pp2-paper-tint) !important;
  padding: 24px 28px !important;
  margin: 28px 0 !important;
  font-family: 'Yrsa', serif !important;
  font-style: italic !important;
  font-size: 1.05rem !important;
  position: relative;
}
.wp-block-quote::before {
  content: '';
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 3px;
  background: var(--pp2-ocre);
}
.wp-block-quote cite {
  color: var(--pp2-ocre) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-family: 'Familjen Grotesk', sans-serif !important;
}

.wp-block-image img, .wp-block-post-featured-image img {
  border-radius: 4px;
}

.wp-block-template-part footer, .wp-block-site-footer {
  background: var(--pp2-paper-tint);
  border-top: 1px solid var(--pp2-line);
  color: var(--pp2-ink-soft);
  padding: 48px 0 32px;
}

/* === Article cards: avoid multiple H1 in archive loops === */
.wp-block-query .wp-block-post-template .wp-block-post-title {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin-bottom: 0.5em !important;
}

/* === Drop cap for first paragraph of articles (editorial touch) === */
.entry-content > p:first-of-type::first-letter {
  font-family: 'Yrsa', Georgia, serif;
  font-size: 3.2em;
  font-weight: 700;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--pp2-ocre);
}

/* === Recent posts / loop cards uniform look === */
.wp-block-post-template > li {
  list-style: none;
  background: #fff;
  border: 1px solid var(--pp2-line);
  border-radius: 6px;
  overflow: hidden;
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 220ms ease, transform 180ms ease;
}
.wp-block-post-template > li:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
