/*
Theme Name: France Premium Magazine
Theme URI: https://premium.frankreich.news
Author: Codex
Description: Editorial premium magazine theme for the France platform test installation.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: france-premium-magazine
*/

:root {
  --paper: #fbfaf7;
  --ink: #141312;
  --muted: #6c665f;
  --line: #dfd9cf;
  --wine: #8f1d2c;
  --blue: #173f6f;
  --olive: #5e6f43;
  --gold: #a66b23;
  --surface: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(20, 19, 18, 0.12);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner,
.language-bar-inner,
.site-main,
.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.language-bar {
  border-bottom: 1px solid rgba(20, 19, 18, 0.08);
  background: rgba(243, 239, 231, 0.94);
}

.language-bar-inner {
  display: flex;
  justify-content: flex-end;
  padding: 7px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-tagline {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav a {
  padding: 9px 10px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.92rem;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(20, 19, 18, 0.06);
}

.fp-language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.fp-language-switcher a {
  padding: 4px 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
}

.fp-language-switcher a.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.site-main {
  padding: 34px 0 70px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  min-height: 520px;
}

.hero-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #173f6f, #8f1d2c 58%, #a66b23);
  border-radius: 8px;
}

.hero-feature::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68)),
    url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=1600&q=82");
  background-position: center;
  background-size: cover;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  padding: 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-feature .eyebrow {
  color: #f5d08c;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 26px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 700;
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.hero-side {
  display: grid;
  gap: 14px;
}

.signal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signal strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.signal span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding-top: 44px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-height: 220px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.16;
}

.card p,
.small {
  color: var(--muted);
  line-height: 1.58;
}

.meta {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-card-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(23, 63, 111, 0.9), rgba(94, 111, 67, 0.9));
}

.post-card-body {
  padding: 16px;
}

.post-card h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
}

.premium-pill {
  display: inline-flex;
  width: max-content;
  margin-bottom: 10px;
  padding: 4px 8px;
  color: #fff;
  background: var(--wine);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article {
  width: min(820px, 100%);
  margin: 0 auto;
}

.article h1 {
  color: var(--ink);
}

.article-content {
  color: #25221e;
  font-size: 1.08rem;
  line-height: 1.78;
}

.paywall {
  margin: 32px 0;
  padding: 22px;
  background: #fff7ed;
  border: 1px solid #ebc98f;
  border-radius: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f3efe7;
}

.site-footer-inner {
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.footer-links a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .post-grid,
  .rail {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-feature {
    min-height: 0;
  }

  .hero-content {
    padding: 28px;
  }
}
