/* Colors match Dewy's theme.ts. */
:root {
  --bg: #fffbea;
  --surface: #ffffff;
  --tint: #fff3c4;
  --primary: #f5d547;
  --on-primary: #2e2a1a;
  --primary-text: #8a6a00;
  --text: #2e2a1a;
  --muted: #6e6650;
  --border: #eadfa8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a12;
    --surface: #27241a;
    --tint: #343016;
    --primary: #e8c547;
    --on-primary: #1c1a12;
    --primary-text: #f2db7a;
    --text: #f5f1dc;
    --muted: #b3ac8e;
    --border: #3e3920;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header.site {
  padding: 1.5rem 0 0;
}

header.site a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

main {
  padding: 2rem 0 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.25rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--primary-text);
}

.lede {
  font-size: 1.1875rem;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.summary {
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

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

.app-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-head img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex: none;
}

.app-head h1 {
  margin: 0;
}

.card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
  margin-top: 1.5rem;
}

.card:hover {
  border-color: var(--primary);
}

.card img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex: none;
}

.card strong {
  display: block;
  font-size: 1.125rem;
}

.card span {
  color: var(--muted);
}

.app-section {
  margin-top: 2.25rem;
}

.app-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.app-section-head img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
}

.app-section-head h2 {
  margin: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.button.quiet {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer.site a {
  color: var(--muted);
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
