@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap");

:root {
  color-scheme: light;
  --bg: #f3ece0;
  --fg: #2a211b;
  --muted: #7a6a5a;
  --accent: #b5532a;
  --ochre: #d9a441;
  --border: #d8cbb6;
  --radius: 2px;
  --font: "Newsreader", Georgia, serif;
  --display: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 1.15rem; line-height: 1.7; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mast { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem clamp(1.2rem, 4vw, 3rem); border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(243,236,224,.92); backdrop-filter: blur(6px); z-index: 5; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-decoration: none; letter-spacing: -.01em; }
.brand em { font-weight: 300; color: var(--accent); }
.mast-link { font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--accent); }

.kicker { font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; color: var(--accent); margin: 0 0 1rem; }

.hero { max-width: 80rem; margin: 0 auto; padding: clamp(2.5rem, 7vw, 6rem) clamp(1.2rem, 4vw, 3rem); display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 5fr 7fr; } }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 11vw, 7.5rem); line-height: .9; letter-spacing: -.04em; margin: 0 0 1.5rem; }
h1 .tilt { display: block; font-weight: 300; font-style: italic; color: var(--accent); }
h1 .lean { display: inline-block; transform: rotate(-4deg); transform-origin: left bottom; background: linear-gradient(transparent 62%, var(--ochre) 62%); padding-right: .1em; }
.lede { font-size: 1.3rem; color: var(--muted); max-width: 28rem; font-style: italic; }
.cta { display: inline-block; margin-top: 1rem; padding: .8rem 1.4rem; background: var(--fg); color: var(--bg); text-decoration: none; font-family: var(--display); }
.cta:hover { background: var(--accent); }
.hero-fig { margin: 0; }
.hero-fig img { width: 100%; height: auto; display: block; transform: rotate(1.2deg); box-shadow: 0 30px 60px -25px rgba(42,33,27,.55); border: 10px solid #fffaf1; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 1.2rem; }

.post { background: #2a211b; color: #f3ece0; padding: clamp(3rem, 8vw, 7rem) clamp(1.2rem, 4vw, 3rem); }
.post > * { max-width: 42rem; margin-left: auto; margin-right: auto; }
.post h2 { font-family: var(--display); font-size: clamp(2.3rem, 7vw, 4.5rem); line-height: 1; letter-spacing: -.03em; margin-top: 0; margin-bottom: 2.5rem; }
.post .kicker { color: var(--ochre); }
.body p { margin: 0 0 1.6rem; }
.body a { color: var(--ochre); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.body a:hover { color: #fff; }
.drop::first-letter { font-family: var(--display); float: left; font-size: 4.6rem; line-height: .8; padding: .35rem .6rem 0 0; color: var(--ochre); font-weight: 800; }
blockquote { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; margin: 2.5rem 0; padding-left: 1.2rem; border-left: 3px solid var(--accent); transform: rotate(-1.5deg); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem clamp(1.2rem, 4vw, 3rem); font-size: .95rem; }
.brand.small { font-size: 1rem; }

.hero-text { min-width: 0; }

/* États partagés (src/ui.tsx), gardés pour un usage futur, dans la palette du site */
.loading { display: flex; align-items: center; gap: .75rem; padding: 2rem 0; color: var(--muted); font-style: italic; }
.spinner { width: 1.1rem; height: 1.1rem; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 2.5rem 1rem; text-align: center; border: 1px dashed var(--border); }
.empty-title { font-family: var(--display); font-size: 1.3rem; margin: 0 0 .4rem; }
.hint { color: var(--muted); font-size: .95rem; margin: 0; }
.alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1.1rem; border-left: 3px solid var(--accent); }
.alert-error { background: #f6e1d6; color: #6e2a12; }
.btn { font: inherit; font-family: var(--display); padding: .6rem 1.1rem; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); border-radius: var(--radius); cursor: pointer; }
.btn-secondary { background: transparent; color: var(--fg); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
