/* Dubaï & Co — Solaya Immo charter
   Fonts are self-hosted (no request to Google => no visitor IP leaves the site).
   Palette taken from the Solaya Canva sheets: cream f2ece3, ink 26241c, bronze b0742a, indigo dot 4b44be.
   Brand bronze is 3.3:1 on cream, so small text uses a deeper bronze (5.0:1). */

@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --cream: #f2ece3;
  --paper: #fbf9f5;
  --ink: #26241c;
  --muted: #5f5a4d;
  --bronze: #b0742a;
  --bronze-text: #8a5a1d;
  --bronze-on-dark: #d9a45f;
  --indigo: #4b44be;
  --rule: #d8cfbf;
  --serif: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Alegreya Sans", "Gill Sans", "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.25rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--indigo); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }

.wrap { max-width: 41rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

/* Masthead — dark band, as on the Solaya carousel covers */
.masthead { background: var(--ink); color: var(--paper); padding: 1.5rem 0 3rem; }
.masthead__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 3.5rem; }
.masthead__logo { display: block; width: 8.5rem; height: auto; }
.masthead__issue { margin: 0; font-size: 1rem; color: #c9c4b8; text-align: right; }
.masthead h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 11vw, 4.75rem); line-height: 1.02; letter-spacing: .005em; }
.masthead__tagline { margin: 1rem 0 0; font-size: 1.35rem; font-style: italic; color: var(--bronze-on-dark); }
.masthead__byline { margin: .25rem 0 0; font-size: 1.05rem; color: #c9c4b8; }
.masthead__byline b { font-weight: 700; font-style: italic; color: var(--paper); }
.masthead__lede { margin: 2rem 0 0; max-width: 33rem; font-size: 1.3rem; line-height: 1.5; color: var(--paper); }

/* Sections */
.section { padding: 2.75rem 0 0; }
.section:last-of-type { padding-bottom: 3.5rem; }
.section__title { margin: 0 0 1.25rem; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; letter-spacing: .01em; color: var(--muted); }
.label { margin: 0 0 .35rem; font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-text); }
.ph { font-style: italic; color: var(--muted); }

.edito { font-size: 1.4rem; line-height: 1.5; margin: 0; }

.news { padding: 1.9rem 0; border-top: 1px solid var(--rule); }
.news:first-of-type { border-top: 0; padding-top: 0; }
.news h3 { margin: 0 0 .7rem; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.2; }
.news p { margin: 0; }

/* The one memorable device: the indigo dot from the logo marks "what it changes for you" */
.impact { position: relative; margin: 1.1rem 0 0; padding-left: 1.6rem; }
.impact::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--indigo); }
.impact strong { font-weight: 700; }

.figure { display: flex; align-items: baseline; gap: 1.25rem; flex-wrap: wrap; margin: 0; }
.figure__value { font-family: var(--serif); font-size: 3rem; line-height: 1; }
.figure__text { margin: 0; flex: 1 1 14rem; }

.focus { background: var(--paper); padding: 1.75rem 1.5rem; border-left: 3px solid var(--bronze); }
.focus h3 { margin: 0 0 .7rem; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.2; }
.focus p { margin: 0; }

.ask { margin: 0; }
.button { display: inline-block; margin-top: 1rem; padding: .8rem 1.5rem; background: var(--ink); color: var(--paper); font: 700 1.1rem var(--sans); text-decoration: none; border-radius: 2px; }
.button:hover { background: #3a372c; }

.disclaimer { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--muted); }

/* Archive list */
.issues { list-style: none; margin: 0; padding: 0; }
.issues li { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.issues li:first-child { border-top: 0; padding-top: 0; }
.issues a { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; text-decoration: none; }
.issues a:hover { text-decoration: underline; text-decoration-color: var(--indigo); }
.issues p { margin: .2rem 0 0; font-size: 1rem; color: var(--muted); }

/* Sign-up — dark band that bookends the masthead */
.signup { margin-top: 3.5rem; background: var(--ink); color: var(--paper); padding: 3rem 0 3.25rem; }
.signup h2 { margin: 0 0 .5rem; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.15; }
.signup__intro { margin: 0 0 1.75rem; color: #c9c4b8; }
.field { margin: 0 0 1.1rem; }
.field label { display: block; margin: 0 0 .3rem; font-weight: 700; font-size: 1.05rem; }
.field .opt { font-weight: 400; color: #c9c4b8; }
.field input[type="email"], .field input[type="text"] { width: 100%; padding: .75rem .9rem; font: 400 1.15rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--paper); border-radius: 2px; }
.consent { display: flex; gap: .75rem; align-items: flex-start; margin: 1.5rem 0 .6rem; }
.consent input { flex: none; width: 1.35rem; height: 1.35rem; margin: .2rem 0 0; accent-color: var(--bronze-on-dark); }
.consent label { font-size: 1.05rem; line-height: 1.45; }
.signup a { color: var(--paper); }
.signup__legal { margin: 0 0 1.5rem 2.1rem; font-size: .95rem; line-height: 1.5; color: #c9c4b8; }
.signup button { padding: .85rem 1.75rem; font: 700 1.15rem var(--sans); color: var(--ink); background: var(--bronze-on-dark); border: 0; border-radius: 2px; cursor: pointer; }
.signup button:hover { background: #e4b374; }
.signup__status { margin: 1.25rem 0 0; padding: 1rem 1.1rem; border-left: 3px solid var(--bronze-on-dark); background: rgba(251, 249, 245, .08); }
.signup__status[hidden] { display: none; }
.signup__status p { margin: 0; }

/* Footer */
.footer { padding: 2.5rem 0 3rem; font-size: .95rem; line-height: 1.55; color: var(--muted); }
.footer img { display: block; width: 7rem; height: auto; margin-bottom: 1rem; }
.footer p { margin: 0 0 .6rem; }
.footer a { color: var(--ink); }

/* Legal / privacy page */
.prose { padding: 2.5rem 0 3rem; }
.prose h1 { margin: 0 0 .5rem; font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1.1; }
.prose h2 { margin: 2.25rem 0 .5rem; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.prose p, .prose li { font-size: 1.15rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .25rem 0; }
.prose .draft { padding: .9rem 1rem; background: var(--paper); border-left: 3px solid var(--bronze); font-size: 1rem; }
mark.todo { background: #efd9a6; color: var(--ink); padding: 0 .25em; border-radius: 2px; }

@media (max-width: 30rem) {
  body { font-size: 1.15rem; }
  .masthead__bar { margin-bottom: 2.5rem; }
  .focus { padding: 1.4rem 1.1rem; }
  .signup__legal { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Compact masthead for legal pages */
.masthead--compact { padding-bottom: 1.5rem; }
.masthead--compact .masthead__bar { margin-bottom: 0; }

/* Issue content: multi-paragraph édito and closing, numbered reflexes in the focus */
.edito + .edito { margin-top: 1rem; }
.news p + p { margin-top: .8rem; }
.news .impact { margin-top: 1.1rem; }
.ask + .ask { margin-top: .8rem; }
.focus .steps { margin: 1.1rem 0 0; padding-left: 1.5rem; }
.focus .steps li { margin: 0 0 .7rem; padding-left: .25rem; }
.focus .steps li::marker { font-family: var(--serif); color: var(--bronze-text); }

/* Anti-bot honeypot: invisible to people, never styled inline (strict CSP) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* n°3+: paragraphs after the numbered list in the focus box */
.focus .steps ~ p { margin-top: 1.1rem; }
