/* benholloway.org: warm paper, serif headings, one rust accent
   (after retina.studio; docs/developer-sites.md). */

:root {
  --paper: #f7f1e6;
  --card: #fffdf8;
  --ink: #1f1b16;
  --muted: #6b6257;
  --rule: #e6dccb;
  --accent: #b4532a;
  --shadow: 0 1px 2px rgb(60 40 20 / 0.06), 0 8px 24px rgb(60 40 20 / 0.06);
  --serif: "New York", "Iowan Old Style", "Hoefler Text", Georgia, serif;
  --sans: -apple-system, system-ui, "SF Pro Text", "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1915;
    --card: #26221d;
    --ink: #f2ece2;
    --muted: #a99f92;
    --rule: #3a342c;
    --accent: #e08a5f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  }
}

:root[data-theme="dark"] {
  --paper: #1c1915;
  --card: #26221d;
  --ink: #f2ece2;
  --muted: #a99f92;
  --rule: #3a342c;
  --accent: #e08a5f;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header, main, .site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.wordmark {
  font: 600 20px/1 var(--serif);
  color: var(--ink);
}

.site-header nav { display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { color: var(--muted); }
.site-header nav a:hover { color: var(--ink); text-decoration: none; }

/* The headline */

.hero { padding: 48px 0 56px; max-width: 760px; }

.kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: currentColor;
}

h1 {
  margin: 0;
  font: 500 clamp(40px, 7vw, 68px)/1.05 var(--serif);
  letter-spacing: -0.02em;
}
h1 em { color: var(--accent); }

.lede { margin: 24px 0 0; font-size: 19px; color: var(--muted); }

.stats { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.stats span { margin: 0 6px; opacity: 0.6; }

/* The apps */

section + section { margin-top: 48px; }

h2 {
  margin: 0 0 16px;
  font: 500 26px/1.2 var(--serif);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.app {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.app img {
  width: 64px;
  height: 64px;
  border-radius: 22%;
}

.app h3 { margin: 16px 0 4px; font: 500 21px/1.25 var(--serif); }
.app p { margin: 0; color: var(--muted); font-size: 15px; }
.app .tags { margin-top: 12px; font-size: 13px; }

.app .links {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 500;
}
.app .tags + .links { margin-top: 16px; border-top: 1px solid var(--rule); }

.featured {
  margin-bottom: 16px;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 32px;
}
.featured img { width: 128px; height: 128px; flex: none; }
.featured h3 { margin-top: 4px; font-size: 30px; }
.featured p { font-size: 16px; }
.featured .links { justify-content: flex-start; gap: 24px; border-top: 0 !important; }

.badge {
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent) !important;
}

@media (max-width: 600px) {
  .featured { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
  .featured img { width: 96px; height: 96px; }
}

/* About */

.about {
  margin-top: 64px;
  padding: 32px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 760px;
}
.about h2 { font-size: 34px; }
.about p { margin: 0 0 12px; color: var(--muted); }
.about p:last-child { margin: 0; }

.site-footer {
  padding-top: 48px;
  padding-bottom: 48px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer span { margin: 0 6px; opacity: 0.6; }
.site-footer a { color: var(--muted); }

/* An app's page (after Sindre Sorhus's: docs/developer-sites.md) */

.app-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 0 48px;
  text-align: center;
}
.app-hero img { width: 160px; height: 160px; border-radius: 22%; box-shadow: var(--shadow); }
.app-hero h1 { margin-top: 24px; font-size: clamp(36px, 6vw, 52px); }
.app-hero .lede { margin-top: 16px; }

.store-button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.store-button:hover { text-decoration: none; opacity: 0.9; }
.store-pending { color: var(--muted); font-style: italic; }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.pills a {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 14px;
}
.pills a:hover { text-decoration: none; color: var(--accent); }
.pills a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.feature { padding: 24px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.feature h2 { margin: 0 0 6px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* An app's privacy, terms and support */

.app-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 760px;
  margin: 8px auto 32px;
}
.app-bar .pills { margin: 0; }
.app-bar-name { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 500 18px/1.2 var(--serif); }
.app-bar-name img { border-radius: 22%; }

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.prose h1 { font-size: clamp(32px, 5vw, 42px); margin-bottom: 16px; }
.prose h2 { margin: 32px 0 8px; font-size: 24px; }
.prose h3 { margin: 24px 0 6px; font: 500 19px/1.3 var(--serif); }
.prose p, .prose li { color: var(--ink); }
.prose li + li { margin-top: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 6px 8px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
@media (max-width: 600px) { .prose { padding: 20px; } }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
