/*
Theme Name: Reecrush Magazine
Theme URI: https://reecrush.com/magazine/
Author: Reecrush
Description: Magazine editorial officiel Reecrush.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: reecrush-magazine
*/

:root {
  --ink: #11100f;
  --paper: #f5f3ee;
  --white: #fff;
  --warm: #8a6b52;
  --muted: #77716b;
  --line: #dedbd5;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", "Century Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--warm); }
img { display: block; max-width: 100%; height: auto; }
.topbar { min-height: 40px; padding: 8px 4.5vw; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--white); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.topbar a { color: inherit; }
.masthead { min-height: 102px; padding: 20px 4.5vw; display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--white); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.wordmark span { display: block; margin-top: 7px; font: 9px var(--sans); letter-spacing: .28em; text-transform: uppercase; text-align: center; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.main-nav a { padding: 10px 0; }
.main-nav .shop-link { border-bottom: 1px solid var(--ink); }
.container { width: min(1320px, 91vw); margin: 0 auto; }
.hero { position: relative; min-height: clamp(420px, 55vw, 690px); margin: 0; display: flex; align-items: flex-end; overflow: hidden; background: #c6c0b8 url("assets/magazine-hero-editorial.jpg") center 45% / cover no-repeat; color: var(--white); }
.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(270deg, rgba(17,16,15,.48), rgba(17,16,15,.18) 40%, transparent 76%), linear-gradient(0deg, rgba(17,16,15,.38), transparent 62%); }
.hero-copy { position: relative; width: min(1320px, 91vw); margin: 0 auto; padding: 80px 0 74px; text-align: right; }
.eyebrow { margin: 0 0 15px; font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.hero h1 { max-width: 660px; margin: 0 0 0 auto; font: 400 clamp(46px, 8vw, 100px)/.98 var(--serif); letter-spacing: -.045em; }
.hero p { max-width: 530px; margin: 22px 0 0 auto; font-size: clamp(15px, 1.5vw, 19px); }
.hero-cta { display: inline-flex; margin-top: 28px; padding: 15px 22px; border: 1px solid var(--white); color: var(--white); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; transition: background .2s, color .2s; }
.hero-cta:hover { background: var(--white); color: var(--ink); }
.section-heading { margin: 0 0 34px; display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.section-heading h2 { margin: 0; font: 400 clamp(34px, 4vw, 52px)/1 var(--serif); letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.editorial { padding: 74px 0 92px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.7vw, 38px); }
.article-card { min-width: 0; }
.card-image { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #e5e1da; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.article-card:hover .card-image img { transform: scale(1.035); }
.card-image--empty { display: grid; place-items: center; color: #aaa39b; font: 30px var(--serif); }
.card-meta { margin: 18px 0 8px; color: var(--warm); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.article-card h3 { margin: 0; font: 400 clamp(24px, 2.4vw, 33px)/1.12 var(--serif); letter-spacing: -.025em; }
.card-excerpt { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.read-more { display: inline-block; margin-top: 17px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.newsletter-band { padding: 65px 4.5vw; background: var(--ink); color: var(--white); text-align: center; }
.newsletter-band .eyebrow { color: #c8b7a7; }
.newsletter-band h2 { margin: 0; font: 400 clamp(34px, 5vw, 58px)/1.1 var(--serif); }
.newsletter-band p { max-width: 520px; margin: 15px auto 0; color: #d5d1cc; }
.newsletter-band a { display: inline-block; margin-top: 23px; padding-bottom: 4px; border-bottom: 1px solid #b89b80; color: #e4d4c3; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.site-footer { padding: 35px 4.5vw; display: flex; justify-content: space-between; gap: 20px; background: #e9e6e0; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { color: var(--ink); }
.single-wrap { width: min(1400px, 91vw); padding: clamp(42px, 6vw, 78px) 0 100px; }
.article-back { margin-bottom: 24px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.article-back a { display: inline-flex; align-items: center; gap: 10px; }
.article-back a::before { content: "←"; color: var(--warm); font-size: 16px; }
.single-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(42px, 7vw, 100px); margin-bottom: clamp(62px, 8vw, 112px); }
.single-hero:not(.has-cover) { grid-template-columns: minmax(0, 900px); }
.single-heading { max-width: 650px; }
.single-heading .card-meta { margin: 0 0 22px; }
.single-article { min-width: 0; }
.single-article h1 { max-width: 650px; margin: 0; font: 400 clamp(46px, 5.5vw, 78px)/.99 var(--serif); letter-spacing: -.045em; }
.single-visual { min-width: 0; margin: 0; display: flex; justify-content: center; background: #e9e6e0; }
.single-cover { display: block; width: min(100%, 520px); height: auto; max-height: min(70vw, 800px); margin: 0; object-fit: contain; }
.single-body-layout { width: min(100%, 1100px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 700px) minmax(190px, 250px); justify-content: space-between; gap: clamp(44px, 8vw, 130px); }
.single-article .entry-content { color: #292725; font: 19px/1.85 var(--serif); }
.single-article .entry-content > p:first-child { font-size: 21px; line-height: 1.65; }
.single-article .entry-content p { margin: 0 0 1.45em; }
.single-article .entry-content h2 { margin: 1.75em 0 .55em; font: 400 clamp(30px, 3vw, 40px)/1.12 var(--serif); letter-spacing: -.025em; }
.single-article .entry-content img { width: 100%; height: auto; margin: 40px 0; }
.single-article .entry-content a { text-decoration: underline; text-decoration-color: var(--warm); text-underline-offset: 4px; }
.single-aside { align-self: start; position: sticky; top: 28px; padding: 22px; border-top: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 13px; }
.single-aside .eyebrow { color: var(--warm); }
.single-aside a { display: inline-block; margin-top: 5px; padding: 10px 0 4px; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.archive-wrap { padding: 65px 0 90px; }
.archive-title { margin: 0 0 14px; font: 400 clamp(44px, 7vw, 82px)/1 var(--serif); letter-spacing: -.04em; }
.archive-description { margin-bottom: 42px; color: var(--muted); }
.pagination { margin-top: 45px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
@media (max-width: 760px) {
  .topbar { min-height: 34px; padding-inline: 5vw; }
  .masthead { min-height: 78px; padding: 15px 5vw; align-items: flex-start; flex-direction: column; gap: 13px; }
  .wordmark { font-size: 36px; }
  .wordmark span { display: inline; margin: 0 0 0 8px; font-size: 8px; }
  .main-nav { width: 100%; justify-content: flex-start; gap: 20px; overflow-x: auto; white-space: nowrap; font-size: 9px; }
  .hero { min-height: 540px; background-position: 34% center; }
  .hero::before { background: linear-gradient(90deg, rgba(17,16,15,.62), rgba(17,16,15,.12) 78%), linear-gradient(0deg, rgba(17,16,15,.45), transparent 62%); }
  .hero-copy { padding: 55px 0; text-align: left; }
  .article-grid { grid-template-columns: 1fr 1fr; gap: 27px 15px; }
  .article-grid .article-card:first-child { grid-column: 1 / -1; }
  .article-grid .article-card:first-child .card-image { aspect-ratio: 16 / 10; }
  .card-meta { margin-top: 12px; font-size: 9px; }
  .card-excerpt { font-size: 12px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .editorial { padding: 52px 0 64px; }
  .single-wrap { width: 90vw; padding-top: 40px; }
  .article-back { margin-bottom: 20px; }
  .single-hero { grid-template-columns: 1fr; gap: 30px; margin-bottom: 48px; }
  .single-hero:not(.has-cover) { grid-template-columns: 1fr; }
  .single-heading { max-width: none; }
  .single-heading .card-meta { margin-bottom: 15px; }
  .single-article h1 { max-width: none; font-size: clamp(42px, 11vw, 60px); line-height: 1.02; }
  .single-visual { max-height: none; }
  .single-cover { width: 100%; max-height: none; }
  .single-body-layout { display: block; }
  .single-article .entry-content { font-size: 18px; line-height: 1.8; }
  .single-article .entry-content > p:first-child { font-size: 19px; }
  .single-aside { position: static; margin-top: 44px; padding: 22px 0 0; border-top: 1px solid var(--line); background: transparent; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
