/* CSS Variables */
:root {
  --red: #f03e3e;
  --cyan: #00b8e8;
  --cyan-dark: #007b9b;
  --white: #dbd8d1;
  --dark: #222222;
  --muted: #888888;
  --border: #e0e0e0;
  --light: #f7f7f7;
  --bg: #edece8;
  --max-width: 768px;
  --max-width-wide: 960px;
}

/* Reset */

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

/* Base */

body {
  font-family: "Source Serif 4", serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--bg);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
}

h1 { font-size: 2.6em; line-height: 1.15; }
h2 { font-size: 1.8em; line-height: 1.3; }

h3,
h4 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h3 { font-size: 1em; }
h4 { font-size: 0.76em; }

a {
  color: var(--cyan-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:visited { color: var(--cyan-dark); }

/* Layout */

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

/* Navigation */

#nav {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #c0bdb6;
  background: var(--white);
}

#nav .wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
}

#nav .logotype {
  font-size: 2.05em;
  font-weight: 650;
  color: #3d3530;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}

#nav .logotype-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

#nav .logotype:hover {
  color: var(--cyan);
  text-decoration: none;
}

/* Footer */

#footer {
  padding: 2em 0;
  margin-top: 7em;
  font-size: 0.8em;
  color: var(--muted);
}

#footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#footer a { color: var(--muted); text-decoration: none; }
#footer a:hover { color: var(--dark); }

/* Page content */

.page-content {
  padding-top: 3em;
  padding-bottom: 5em;
}

/* Sections */

.section { padding: 3.5em 0; }

.section--screenshot { padding: 3em 0 0; }
.section--screenshot .wrap { max-width: var(--max-width-wide); }

/* Typography */

.subhead {
  font-size: 1.1em;
  color: var(--muted);
  max-width: 480px;
}

.meta {
  font-size: 0.78em;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Prose */

.prose { max-width: 680px; }

.prose p {
  margin-bottom: 1.3em;
  line-height: 1.75;
}

.prose h1 { margin-bottom: 0.3em; }
.prose h2 { font-size: 1.3em; margin: 2.2em 0 0.75em; }

.prose h3 {
  margin: 1.8em 0 0.5em;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1em;
}

.prose h4 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85em;
  color: var(--muted);
  margin: 1.4em 0 0.4em;
}

.prose ul,
.prose ol {
  margin: 1em 0 1em 1.8em;
}

.prose li {
  margin-bottom: 0.4em;
  line-height: 1.6;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

.prose strong {
  font-weight: 650;
}

.prose code {
  font-size: 0.85em;
  background: var(--light);
  padding: 0.15em 0.4em;
  font-family: "SF Mono", "Fira Code", monospace;
}

.prose pre {
  background: var(--light);
  padding: 1.5em;
  overflow-x: auto;
  margin: 1.5em 0;
  font-size: 0.85em;
  line-height: 1.5;
}

.prose pre code { background: none; padding: 0; }

.prose blockquote {
  border-left: 3px solid var(--red);
  padding-left: 1.5em;
  margin: 1.8em 0;
  color: var(--muted);
  font-style: italic;
}

/* Actions */

.link-cta {
  font-size: 0.82em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--red);
  text-decoration: none;
}

.link-cta:hover {
  text-decoration: underline;
  color: var(--cyan);
}

.btn-download {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  padding: 0.8em 2.2em;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-download:visited { color: #fff; }
.btn-download:hover { background: #111; color: #fff; text-decoration: none; }

.download-cta { margin-top: 2.5em; }

/* App screenshot */

.app-screenshot {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Home intro */

.dapper-intro {
  max-width: 640px;
  line-height: 1.7;
  color: #444;
  margin: 1.2em 0 1.8em;
}

/* Feature rows */

.section--features { padding: 2em 0 5em; }
.section--features .wrap { max-width: var(--max-width-wide); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5em;
  align-items: center;
  padding: 4em 0;
  border-top: 1px solid var(--border);
}

.feature-row--reverse .feature__content { order: 2; }
.feature-row--reverse .feature__image { order: 1; }

.feature__label { color: var(--muted); margin-bottom: 0.5em; }

.feature__title {
  font-size: 1.55em;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6em;
}

.feature__desc { color: #444; line-height: 1.75; font-size: 0.95em; }

.feature__image img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}

/* Post listing */

.post-list { padding: 0.5em 0; }
.post-item { padding: 2.2em 0; }

.post-item__title {
  font-size: 1.4em;
  margin-bottom: 0.3em;
}

.post-item__title a { color: var(--dark); text-decoration: none; }
.post-item__title a:hover { color: var(--cyan); }

.post-item__meta { margin-bottom: 0.8em; }

.post-item__summary {
  color: #444;
  line-height: 1.65;
  margin-bottom: 0.8em;
  max-width: 680px;
}

/* Pagination */

.pagination {
  display: flex;
  justify-content: space-between;
  padding: 2em 0;
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5em;
}

.pagination a { color: var(--dark); text-decoration: none; }
.pagination a:hover { color: var(--cyan); }

/* Archives */

.archive-group { margin-bottom: 2.5em; }

.archive-group__label {
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.75em;
  padding-bottom: 0.5em;
}

.archive-entries { list-style: none; }

.archive-entries li {
  display: flex;
  gap: 2em;
  padding: 0.55em 0;
  font-size: 0.92em;
  align-items: baseline;
}

.archive-entries .date {
  color: var(--muted);
  font-size: 0.82em;
  min-width: 130px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.archive-entries a { color: var(--dark); text-decoration: none; }
.archive-entries a:hover { color: var(--cyan); }
