/* Rewy — feuille de style partagée
   Palette "Graphite & Cuivre" (voir vault Rewinder, RewinderPalette.swift) */

:root {
  --paper: #EDEDE8;
  --paper-grid: #E7E7E0;
  --surface: #F5F5F1;
  --graphite: #26282B;
  --steel: #6E7477;
  --copper: #B06A43;
  --border: #E1E1DB;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--graphite);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 0;
}

.wordmark {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--graphite);
  text-decoration: none;
  text-transform: uppercase;
}

nav.site a {
  color: var(--steel);
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
}

nav.site a:hover {
  color: var(--copper);
}

nav.site a.langswitch {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--copper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
}

nav.site a.langswitch:hover {
  border-color: var(--copper);
}

h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 16px;
  margin: 24px 0 8px;
  color: var(--graphite);
}

p {
  margin: 0 0 16px;
  color: var(--graphite);
}

.lede {
  font-size: 18px;
  color: var(--steel);
  max-width: 46ch;
}

.copper {
  color: var(--copper);
}

.label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 16px 0;
}

.features {
  display: grid;
  gap: 14px;
  margin: 32px 0 8px;
}

.cta {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  background: var(--graphite);
  color: var(--paper);
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.cta.pending {
  background: transparent;
  border: 1px solid var(--steel);
  color: var(--steel);
}

ul {
  padding-left: 22px;
  color: var(--graphite);
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--copper);
}

.legal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 15px;
}

.legal-block p {
  margin: 0 0 6px;
}

.note {
  font-size: 13px;
  color: var(--steel);
  border-left: 2px solid var(--copper);
  padding-left: 12px;
  margin: 20px 0;
}

footer.site {
  max-width: var(--max-width);
  margin: 64px auto 0;
  padding: 24px 24px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}

footer.site .links a {
  color: var(--steel);
  text-decoration: none;
  font-size: 13px;
  margin-right: 18px;
}

footer.site .links a:hover {
  color: var(--copper);
}

footer.site .meta {
  font-size: 13px;
  color: var(--steel);
}

@media (max-width: 480px) {
  header.site { flex-direction: column; align-items: flex-start; gap: 10px; }
  nav.site a { margin-left: 0; margin-right: 16px; }
  h1 { font-size: 28px; }
  footer.site { flex-direction: column; align-items: flex-start; }
}
