/* Sepia Software LLC — sepiaapps.com */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --fg: #16161a;
  --fg-muted: #61616b;
  --fg-faint: #8b8b95;
  --border: #e6e6ea;
  --accent: #b0703c;
  --accent-soft: #f4ece4;
  --radius: 14px;
  --maxw: 62rem;
  --readw: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;
    --bg-soft: #1c1c20;
    --fg: #f0f0f2;
    --fg-muted: #a2a2ad;
    --fg-faint: #75757f;
    --border: #2c2c33;
    --accent: #d99a63;
    --accent-soft: #2a2119;
  }
}

:root[data-theme="dark"] {
  --bg: #131316;
  --bg-soft: #1c1c20;
  --fg: #f0f0f2;
  --fg-muted: #a2a2ad;
  --fg-faint: #75757f;
  --border: #2c2c33;
  --accent: #d99a63;
  --accent-soft: #2a2119;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --fg: #16161a;
  --fg-muted: #61616b;
  --fg-faint: #8b8b95;
  --border: #e6e6ea;
  --accent: #b0703c;
  --accent-soft: #f4ece4;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

.brand .mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #7a4a24);
  flex: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--fg-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--fg);
}

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

.hero {
  padding: 5rem 0 3.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 680;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero p {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--fg-muted);
  margin: 0;
  max-width: 46ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

/* ---------- sections ---------- */

section { padding: 2.5rem 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  font-weight: 640;
  margin: 0;
}

.section-head .more {
  font-size: 0.92rem;
  color: var(--fg-muted);
  text-decoration: none;
}

.section-head .more:hover { color: var(--accent); }

/* ---------- app grid ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-grid li { display: flex; }

.app-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.app-card:hover {
  border-color: var(--accent);
  background: var(--bg-soft);
  transform: translateY(-1px);
}

.app-card img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  flex: none;
  background: var(--bg-soft);
}

.app-card .meta { min-width: 0; }

.app-card .name {
  display: block;
  font-weight: 570;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.app-card .genre {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-faint);
  margin-top: 0.15rem;
}

/* ---------- prose / legal pages ---------- */

.prose {
  max-width: var(--readw);
  padding: 3.5rem 0 2rem;
}

.prose h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  letter-spacing: -0.025em;
  font-weight: 660;
  line-height: 1.18;
  margin: 0 0 0.5rem;
}

.prose .updated {
  color: var(--fg-faint);
  font-size: 0.9rem;
  margin: 0 0 2.5rem;
}

.prose h2 {
  font-size: 1.2rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.prose strong { font-weight: 620; }

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

/* ---------- contact card ---------- */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg-soft);
  margin: 0 0 1.5rem;
}

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

/* `.prose a` would otherwise win on specificity and undo the button styling */
.btn,
.prose a.btn {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 560;
  font-size: 0.97rem;
  transition: opacity 0.15s ease;
}

.btn:hover,
.prose a.btn:hover { opacity: 0.85; }

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2.5rem 0 3.5rem;
  font-size: 0.92rem;
  color: var(--fg-muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer a { color: var(--fg-muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }

/* ---------- misc ---------- */

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--bg);
  color: var(--fg);
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 34rem) {
  body { font-size: 16px; }
  .hero { padding: 3.25rem 0 2.5rem; }
  .prose { padding-top: 2.5rem; }
  .site-header .wrap { min-height: 3.75rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .site-nav { gap: 1.1rem; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
