/* Café réseautage au féminin
   Rules this stylesheet follows (checked by tests/static.sh):
   - one typeface, Jost, served from this site (SIL Open Font License)
   - every margin, padding and gap is a multiple of 8 px
   - no gradient
   - colour has a job:
       paper + ink ........ everything you read
       red ................ the one thing to click, and the one word to notice
       green / red ........ verdict of a verification (preview only)
       yellow, blue, pink . the flowers only: illustration, tile band, icons, avatars
*/
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("jost-latin.woff2") format("woff2");
}

:root {
  --paper: #F3ECDC;
  --ink: #161616;
  --ink-soft: #3B3832;
  --block: #FFFFFF;
  --red: #D8402A;
  --ok: #2F6B4A;
  /* flowers only */
  --f-yellow: #F2B41E;
  --f-blue: #23509B;
  --f-pink: #EBA9A0;
  --f-green: #3C7A57;
  --type: "Jost", Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412;
    --ink: #F3ECDC;
    --ink-soft: #CFC7B6;
    --block: #211F1C;
    --red: #E5553F;
    --ok: #3F8A60;
    --f-blue: #4F7FD0;
    --f-green: #5FA67E;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--type);
  font-size: 18px;
  line-height: 1.5;
}
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 32px; }
p { margin: 0 0 16px; }
a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* the one action */
.cta, button.primary {
  display: inline-block;
  font: inherit; font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  background: var(--red); color: #fff;
  border: 4px solid var(--ink); border-radius: 0;
  padding: 16px 24px; cursor: pointer;
}
.cta:hover, button.primary:hover { color: #fff; background: var(--ink); }

/* ---------- poster (landing) ---------- */
.poster {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: end;
  padding-top: 48px;
}
.tag {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 16px; margin-bottom: 32px;
}
h1 {
  margin: 0;
  font-weight: 700; text-transform: uppercase;
  line-height: .95; letter-spacing: .01em;
  font-size: clamp(2.6rem, 9vw, 6rem);
}
h1 .l2 { display: block; color: var(--red); }
h1 .l3 { display: block; font-weight: 400; text-transform: lowercase; letter-spacing: .02em; font-size: .5em; line-height: 1.2; margin-top: 16px; }
.lede { margin: 32px 0 32px; max-width: 28em; font-size: 22px; line-height: 1.4; }
.poster .act { margin: 0 0 48px; }
.bouquet { width: 100%; height: auto; display: block; }
.band { display: block; width: 100%; height: 56px; }

/* ---------- sections: title in the left column, content in the right ---------- */
section { display: grid; grid-template-columns: 4fr 8fr; gap: 32px; padding: 72px 0 0; align-items: start; }
.head { position: sticky; top: 24px; }
.num { display: block; font-weight: 700; font-size: 72px; line-height: 1; letter-spacing: -.02em; margin-bottom: 16px; }
h2 {
  margin: 0; padding-top: 16px;
  border-top: 8px solid var(--ink);
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: 22px; line-height: 1.2;
}
.content p { max-width: 36em; }
.wide { grid-column: 1 / -1; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); border: 4px solid var(--ink); }
.card { padding: 24px; border-right: 4px solid var(--ink); background: var(--block); }
.card:last-child { border-right: 0; }
.card svg { width: 64px; height: 64px; display: block; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 16px; text-transform: uppercase; letter-spacing: .07em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 17px; }

.list { list-style: none; margin: 0 0 16px; padding: 0; max-width: 36em; }
.list li { position: relative; padding: 0 0 16px 32px; }
.list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; background: var(--ink); }
.list li:last-child { padding-bottom: 0; }
.result { background: var(--ink); color: var(--paper); padding: 24px 32px; font-size: 22px; line-height: 1.35; margin: 0; max-width: none; }
.state { border: 4px solid var(--ink); background: var(--block); padding: 24px; }
.state .list { margin: 0; }

footer { margin-top: 96px; }
.foot { padding: 24px 32px 48px; font-size: 15px; color: var(--ink-soft); }
.foot p { margin: 0; }

/* ---------- preview (espace) ---------- */
.top { display: flex; align-items: center; gap: 16px; padding: 24px 0; flex-wrap: wrap; }
.top svg { width: 48px; height: 48px; flex: none; }
.top .name { margin: 0; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; flex: 1; min-width: 200px; }
.top .name span { color: var(--red); }
.top a { font-size: 16px; }
.notice { background: var(--ink); color: var(--paper); padding: 16px 0; font-size: 17px; }
.notice strong { letter-spacing: .1em; text-transform: uppercase; font-size: 14px; margin-right: 8px; border: 2px solid var(--paper); padding: 0 8px; }

.space { display: grid; grid-template-columns: 8fr 5fr; gap: 32px; padding: 32px 32px 64px; align-items: start; }
.space h2 { border-top: 0; padding-top: 0; border-bottom: 8px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px; font-size: 18px; letter-spacing: .1em; }
.box { border: 4px solid var(--ink); background: var(--block); }
.composer { padding: 16px; margin-bottom: 24px; }
.composer label { display: block; font-size: 15px; margin-bottom: 8px; }
textarea, input[type=text] {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 4px solid var(--ink); border-radius: 0; padding: 8px 16px;
}
textarea { min-height: 88px; resize: vertical; display: block; }
.row { display: flex; gap: 16px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.hint { font-size: 15px; color: var(--ink-soft); flex: 1; min-width: 160px; }
button {
  font: inherit; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em;
  border: 4px solid var(--ink); border-radius: 0; padding: 8px 16px; cursor: pointer;
  background: transparent; color: var(--ink);
}
button:hover { background: var(--ink); color: var(--paper); }
button.primary { font-size: 14px; padding: 8px 16px; }

.post { padding: 24px; margin-bottom: 24px; }
.who { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.av { width: 40px; height: 40px; flex: none; }
.who b { font-size: 17px; }
.who small { color: var(--ink-soft); font-size: 14px; display: block; line-height: 1.2; }
.body { margin: 0 0 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fp { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; border-top: 2px solid var(--ink); padding-top: 8px; }
.fp em { font-style: normal; font-family: var(--type); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; display: block; color: var(--ink); }
.verdict { margin-top: 16px; padding: 8px 16px; font-size: 16px; display: none; color: #fff; }
.verdict.ok { display: block; background: var(--ok); }
.verdict.bad { display: block; background: var(--red); }

.chat { position: sticky; top: 24px; }
.log { height: 384px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; border-bottom: 4px solid var(--ink); }
.msg { max-width: 88%; padding: 8px 16px; border: 4px solid var(--ink); background: var(--paper); overflow-wrap: anywhere; font-size: 17px; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--paper); }
.msg small { display: block; font-family: var(--mono); font-size: 11px; opacity: .75; }
.msg b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.send { display: flex; gap: 8px; padding: 8px; }
.send input { flex: 1; min-width: 0; }
.ledger { margin-top: 24px; padding: 16px; font-size: 16px; }
.ledger p { margin: 0 0 8px; }
.ledger p:last-child { margin: 0; }
.ledger .n { font-weight: 700; font-size: 32px; line-height: 1; margin-right: 8px; }
.sr { position: absolute; left: -9999px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .poster { grid-template-columns: 1fr; padding-top: 32px; gap: 16px; }
  .poster .act { margin: 0 0 16px; }
  .lede { font-size: 20px; }
  .bouquet { max-width: 328px; margin: 0 auto; }
  section { grid-template-columns: 1fr; gap: 24px; padding: 56px 0 0; }
  .head { position: static; display: flex; align-items: baseline; gap: 16px; border-top: 8px solid var(--ink); padding-top: 16px; }
  .num { font-size: 40px; margin: 0; }
  h2 { border-top: 0; padding-top: 0; font-size: 20px; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 4px solid var(--ink); }
  .card:last-child { border-bottom: 0; }
  .result { font-size: 20px; padding: 24px; }
  .foot { padding: 24px 16px 48px; }
  .space { grid-template-columns: 1fr; padding: 24px 16px 48px; }
  .chat { position: static; }
  .log { height: 304px; }
}
