:root {
  --text: #141414;
  --text-secondary: #6e675c;
  --background: #f1ece2;
  --surface: #ffffff;
  --border: #ddd5c6;
  --accent: #2447d6;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 24px;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--text); text-decoration: none;
}
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--border); margin-top: 72px; padding: 24px 0 40px;
  color: var(--text-secondary); font-size: 14px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text-secondary); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; text-transform: uppercase; }
h1 { font-size: clamp(44px, 9vw, 72px); margin: 56px 0 16px; letter-spacing: 0.01em; }
h2 { font-size: 30px; margin: 48px 0 12px; }
h3 { font-size: 22px; margin: 28px 0 8px; }
.lede { font-size: 20px; color: var(--text-secondary); max-width: 34em; }
.muted { color: var(--text-secondary); }

/* Project card */
.card {
  display: flex; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 20px; text-decoration: none; color: var(--text);
}
.card:hover { border-color: var(--text-secondary); }
.card img { width: 88px; height: 88px; border-radius: 20px; flex: none; box-shadow: 0 0 0 1px var(--border); }
.card h3 { margin: 0 0 4px; }
.card p { margin: 0; color: var(--text-secondary); }

/* App page */
.app-hero { display: flex; gap: 24px; align-items: center; margin-top: 56px; }
.app-hero img { width: 120px; height: 120px; border-radius: 27px; flex: none; box-shadow: 0 0 0 1px var(--border), 0 6px 20px rgba(20, 20, 20, 0.08); }
.app-hero h1 { margin: 0 0 4px; }
.app-hero p { margin: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.features strong { display: block; font-family: var(--display); text-transform: uppercase; font-size: 20px; }

.badge {
  display: inline-block; margin-top: 20px; padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: var(--background); font-weight: 600; font-size: 15px;
}

.button {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}

/* Long-form documents */
.doc h2 { font-size: 26px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .app-hero { flex-direction: column; align-items: flex-start; }
  .app-hero img { width: 96px; height: 96px; border-radius: 22px; }
  .card { flex-direction: column; align-items: flex-start; }
}
