/* Chance Worldwide — Journal
   Shared by the index and every article, so a new post is just prose + a header.
   Fonts, colours and spacing follow the two division pages. */

@font-face { font-family: 'Italiana'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/italiana-400.woff2') format('woff2'); }
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/anton-400.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/archivo-300.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/archivo-400.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/archivo-500.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/archivo-300i.woff2') format('woff2'); }

:root {
  --ink: #0A0908;
  --paper: #F2EFEA;
  --green: #00E87A;
  --pink: #E8659C;
  --rule: rgba(242,239,234,0.12);
  --dim: rgba(242,239,234,0.55);
  --body: rgba(242,239,234,0.82);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ink); color: var(--paper);
  font-family: Archivo, Helvetica, sans-serif; font-weight: 300; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--paper); color: var(--ink); }

@keyframes riseUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
[data-rise] { animation: riseUp 0.9s cubic-bezier(0.22,0.61,0.21,1) both; }
@media (prefers-reduced-motion: reduce) { [data-rise] { animation: none; } }

/* ---------- top bar ---------- */
.nav { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; justify-content: space-between; padding: 14px clamp(18px,5vw,64px);
  background: rgba(10,9,8,0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule); }
.nav-logo { font-family: Italiana, serif; text-transform: uppercase; letter-spacing: 0.28em;
  font-size: clamp(12px,1.3vw,15px); text-decoration: none; white-space: nowrap; }
.switcher { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; }
.switcher-tab { padding: 6px 14px; border-radius: 999px; font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim); text-decoration: none; white-space: nowrap;
  transition: color 0.25s, background 0.25s; }
.switcher-tab:hover { color: var(--paper); }
.switcher-tab.is-active { background: var(--paper); color: var(--ink); }
.nav-lang { display: flex; gap: 6px; }
.nav-lang button { cursor: pointer; background: none; border: 1px solid rgba(242,239,234,0.2);
  border-radius: 8px; padding: 5px 9px; font-size: 15px; line-height: 1; color: var(--dim);
  transition: border-color 0.25s, background 0.25s; }
.nav-lang button:hover { border-color: rgba(242,239,234,0.5); }
.nav-lang button.is-current { background: var(--paper); border-color: var(--paper); }
/* three tabs plus French labels are too wide for a phone: let them wrap inside the pill
   rather than spill out of it */
@media (max-width: 700px) {
  .nav { justify-content: center; text-align: center; gap: 12px; }
  .switcher { order: 3; width: 100%; flex-wrap: wrap; justify-content: center; border-radius: 18px; }
  .switcher-tab { padding: 7px 12px; font-size: 9.5px; letter-spacing: 0.13em; }
}

/* ---------- shared page furniture ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px,5vw,64px); }
.eyebrow { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; }

.foot { border-top: 1px solid var(--rule); margin-top: clamp(60px,10vh,110px);
  padding: 30px clamp(18px,5vw,64px); display: flex; flex-wrap: wrap; gap: 14px 30px;
  align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim); }
.foot a { color: var(--dim); text-decoration: none; transition: color 0.25s; }
.foot a:hover { color: var(--paper); }
.foot svg { width: 16px; height: 16px; }

/* ---------- journal index ---------- */
.jhead { padding: clamp(48px,9vh,96px) 0 clamp(30px,5vh,48px); }
.jhead h1 { font-family: Italiana, serif; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: clamp(38px,7vw,86px); line-height: 1; margin: 0 0 20px; }
.jhead p { max-width: 56ch; font-size: clamp(15px,1.5vw,18.5px); line-height: 1.7;
  color: var(--body); margin: 0; text-wrap: pretty; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: clamp(26px,4vh,40px) 0 clamp(26px,4vh,38px);
  border-bottom: 1px solid var(--rule); }
.filters button { cursor: pointer; background: none; border: 1px solid rgba(242,239,234,0.2);
  border-radius: 999px; padding: 8px 16px; font-family: Archivo, sans-serif; font-size: 10.5px;
  font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
  transition: color 0.25s, border-color 0.25s, background 0.25s; }
.filters button:hover { color: var(--paper); border-color: rgba(242,239,234,0.5); }
.filters button.is-on { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.posts { display: grid; gap: clamp(28px,4vw,44px);
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  padding: clamp(34px,5vh,52px) 0 0; list-style: none; margin: 0; }
.posts li { margin: 0; }
.post { display: flex; flex-direction: column; gap: 16px; height: 100%; text-decoration: none; }
.post-cover { position: relative; aspect-ratio: 3/2; overflow: hidden; background: rgba(242,239,234,0.05); }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(0.22,0.61,0.21,1); }
.post:hover .post-cover img { transform: scale(1.05); }
.post-cover::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22,0.61,0.21,1); }
.post:hover .post-cover::after { transform: scaleX(1); }
.post[data-cat="luxury"] .post-cover::after { background: var(--pink); }
.post-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.tag { border: 1px solid rgba(242,239,234,0.25); border-radius: 999px; padding: 4px 10px; }
.post[data-cat="luxury"] .tag { color: var(--pink); border-color: rgba(232,101,156,0.45); }
.post[data-cat="campaigns"] .tag, .post[data-cat="sessions"] .tag { color: var(--green); border-color: rgba(0,232,122,0.4); }
.post h2 { font-family: Anton, sans-serif; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.01em; font-size: clamp(20px,2vw,26px); line-height: 1.14; margin: 0;
  text-wrap: balance; transition: color 0.25s; }
.post:hover h2 { color: var(--green); }
.post[data-cat="luxury"]:hover h2 { color: var(--pink); }
.post p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.post .more { margin-top: auto; padding-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }

.empty { padding: 60px 0; color: var(--dim); font-size: 14px; }
.empty[hidden] { display: none; }

/* ---------- article ---------- */
.art { max-width: 760px; margin: 0 auto; padding: clamp(40px,7vh,80px) clamp(18px,5vw,40px) 0; }
.crumb { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); text-decoration: none; }
.crumb:hover { color: var(--paper); }
.art h1 { font-family: Anton, sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px,4.6vw,54px); line-height: 1.06; margin: 22px 0 20px; text-wrap: balance; }
.stand { font-size: clamp(16px,1.7vw,19.5px); line-height: 1.65; color: var(--body);
  font-style: italic; margin: 0 0 26px; text-wrap: pretty; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  padding: 16px 0 0; border-top: 1px solid var(--rule);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }

.art-cover { margin: clamp(30px,5vh,48px) 0 clamp(34px,5vh,54px); }
/* 3:2 rather than 16:9 — most of the photo bank is portrait, and a wider crop beheads it.
   height:auto is required: the width/height attributes on the <img> are kept to stop the
   page jumping while it loads, and without this they would win over the ratio. */
.art-cover img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.art-cover figcaption { margin-top: 10px; font-size: 11.5px; letter-spacing: 0.06em; color: var(--dim); }

/* Anton, comme le titre de l'article et les titres de cartes — Italiana était trop
   fragile à cette taille et cassait la hiérarchie avec le h1 */
.art h2 { font-family: Anton, sans-serif; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.01em; font-size: clamp(23px,3vw,34px); line-height: 1.1;
  margin: clamp(44px,6vh,64px) 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rule);
  text-wrap: balance; }
.art h3 { font-family: Archivo, sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--green); margin: 34px 0 12px; }
.art p, .art li { font-size: 16px; line-height: 1.78; color: var(--body); }
.art p { margin: 0 0 18px; text-wrap: pretty; }
.art ul, .art ol { margin: 0 0 18px; padding-left: 22px; }
.art li { margin-bottom: 9px; }
.art strong { font-weight: 500; color: var(--paper); }
.art a[href] { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(242,239,234,0.35); }
.art a[href]:hover { border-color: var(--green); color: var(--green); }

/* tables scroll inside themselves rather than pushing the page sideways on a phone */
.art table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px; }
.art .scroller { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.art .scroller table { margin: 0; min-width: 520px; }
.art th, .art td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule); line-height: 1.55; color: var(--body); }
.art th { font-family: Archivo, sans-serif; font-weight: 500; font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper);
  border-bottom-color: rgba(242,239,234,0.3); }
.art td:first-child { color: var(--paper); }

/* the block an AI or a skim-reader lifts out — keep it short and self-contained */
.answer { border-left: 2px solid var(--green); padding: 4px 0 4px 22px; margin: 0 0 30px; }
.answer p { font-size: 17px; line-height: 1.7; color: var(--paper); margin: 0; }

.keys { border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px,3vw,30px);
  margin: 34px 0; background: rgba(242,239,234,0.02); }
.keys h3 { margin-top: 0; }
.keys dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 22px; margin: 0; }
.keys dt { font-family: Anton, sans-serif; font-size: clamp(26px,3.4vw,38px); line-height: 1; color: var(--paper); }
.keys dd { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--dim); }

.takeaway { border: 1px solid rgba(0,232,122,0.35); border-radius: 14px;
  padding: clamp(20px,3vw,28px); margin: 34px 0; background: rgba(0,232,122,0.05); }
.takeaway h3 { margin-top: 0; }
.takeaway p:last-child, .takeaway ul:last-child { margin-bottom: 0; }

.faq { margin: 34px 0 0; }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 400; font-size: 15.5px; color: var(--paper); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--dim); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 14px 0 0; }

.cta { margin: clamp(50px,8vh,80px) 0 0; padding: clamp(26px,4vw,38px); border: 1px solid var(--rule);
  border-radius: 16px; background: rgba(242,239,234,0.02); }
.cta h3 { margin-top: 0; }
.cta p { margin-bottom: 20px; }
.cta a { display: inline-flex; align-items: center; gap: 9px; background: var(--paper); color: var(--ink);
  padding: 13px 24px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none; border: 0; transition: background 0.25s; }
.cta a:hover { background: var(--green); }

.art-foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  margin: clamp(44px,6vh,64px) 0 0; padding-top: 24px; border-top: 1px solid var(--rule); }
