/* Kinto public site — brand palette from app/src/constants/theme.ts
   cream #E8E8DC · walnut #443403 · amber #85660A · honey #FFC772 · tomato #FF4B3E */

:root {
  --cream: #e8e8dc;
  --surface: #f3f2ea;
  --walnut: #443403;
  --amber: #85660a;
  --honey: #ffc772;
  --tomato: #ff4b3e;
  --muted: #6f6648;
  --line: #d8d6c4;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--walnut);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-weight: 400;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

header.site {
  padding: 28px 0 8px;
}

.brand {
  display: inline-block;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: lowercase;
  color: var(--walnut);
  text-decoration: none;
}

.brand b {
  font-weight: 700;
}

/* ---------- hero ---------- */

.hero {
  padding: 56px 0 40px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 300;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 34em;
}

.rule {
  height: 3px;
  border: 0;
  margin: 40px 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--walnut), var(--amber) 55%, var(--honey));
  opacity: 0.7;
}

/* ---------- content ---------- */

main {
  padding-bottom: 64px;
}

h1 {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: -0.4px;
  margin: 24px 0 10px;
}

h2 {
  font-size: 24px;
  font-weight: 400;
  margin: 44px 0 12px;
  letter-spacing: -0.2px;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 30px 0 8px;
}

p,
li {
  color: var(--walnut);
}

a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(133, 102, 10, 0.35);
}

a:hover {
  border-bottom-color: var(--amber);
}

ul {
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--surface);
  border-left: 3px solid var(--honey);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 5px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
}

/* ---------- feature list ---------- */

.features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.features li {
  padding: 16px 18px;
  margin: 0 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.features strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.features span {
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- callout ---------- */

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

.card p:last-child {
  margin-bottom: 0;
}

.card p:first-child {
  margin-top: 0;
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 26px 0 48px;
  color: var(--muted);
  font-size: 15px;
}

footer.site a {
  margin-right: 18px;
  display: inline-block;
}

footer.site .fine {
  margin-top: 14px;
  font-size: 13.5px;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 36px 0 26px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 17.5px;
  }
}
