/* DotPowered — one stylesheet for every page. Clean, white, lots of space; dark for visitors who use dark mode. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --link: #1d5fd6;
  --card: #ffffff;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #161617;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #333336;
    --link: #6aa1ff;
    --card: #1c1c1e;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 760px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}

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

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 96px 0 72px;
}

.hero .mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 700;
  margin: 0 0 14px;
}

.hero .lead {
  font-size: clamp(20px, 3vw, 26px);
  color: var(--muted);
  margin: 0 auto;
  max-width: 640px;
  line-height: 1.4;
}

.actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}

.button:hover {
  background: var(--blue-hover);
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--link);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--link);
}

.button.soon {
  background: var(--bg-soft);
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section.soft {
  background: var(--bg-soft);
}

.section-title {
  text-align: center;
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  font-size: 20px;
  margin: 0 auto 48px;
  max-width: 620px;
}

/* Project cards (home page) */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
}

.project:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.project {
  transition: transform 0.2s ease;
}

.project img {
  width: 64px;
  height: 64px;
}

.project h3 {
  font-size: 26px;
  margin: 4px 0 0;
  letter-spacing: -0.4px;
}

.project .tagline {
  color: var(--muted);
  margin: 0;
}

.project .more {
  color: var(--link);
  font-weight: 500;
  margin-top: auto;
}

.project .badge {
  align-self: flex-start;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 2px 10px;
}

/* Screenshots */
.shot {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}

.shot-hero {
  max-width: 1000px;
  margin: 0 auto;
}

.shots-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.shots-pair figure {
  margin: 0;
}

.shots-pair figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-top: 14px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px 40px;
}

.feature h3 {
  font-size: 20px;
  margin: 12px 0 6px;
  letter-spacing: -0.2px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature .icon svg {
  width: 22px;
  height: 22px;
}

/* Privacy promise */
.promise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.promise div {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.promise strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.promise span {
  color: var(--muted);
  font-size: 15px;
}

.center {
  text-align: center;
}

/* Long text (privacy policy) */
.doc {
  padding: 64px 0 88px;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 8px;
}

.doc .updated {
  color: var(--muted);
  margin: 0 0 40px;
}

.doc h2 {
  font-size: 24px;
  letter-spacing: -0.3px;
  margin: 44px 0 10px;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin: 8px 0;
}

.doc .summary {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 22px 26px;
  font-size: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 620px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--bg-soft);
  font-weight: 600;
}

code {
  font-size: 0.88em;
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 1px 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

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

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

/* Not found */
.notfound {
  text-align: center;
  padding: 140px 0;
}

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 48px;
  }
  .section {
    padding: 56px 0;
  }
  .site-nav {
    gap: 16px;
  }
  .project {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project {
    transition: none;
  }
}

/* The tagline beside the logo in the top bar (hidden on narrow phones, where it doesn't fit). */
.brand-tagline {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  margin-right: auto;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .brand-tagline {
    display: none;
  }
}

/* For screen readers only. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Home page: the projects, straight under the top bar. */
.home-projects {
  padding-top: 24px;
  padding-bottom: 40px;
}

.home-projects .section-lead {
  font-size: clamp(24px, 3.5vw, 34px);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.project.showcase {
  /* Small enough on short screens that "Learn more" is visible without scrolling. */
  max-width: clamp(460px, calc((100vh - 345px) * 1.6 + 40px), 920px);
  margin: 0 auto;
  width: 100%;
  text-align: center;
  align-items: center;
  gap: 6px;
  padding: 20px 20px 22px;
}

.project.showcase .shot {
  width: 100%;
  margin-bottom: 12px;
  box-shadow: none;
}

.project.showcase .shot img {
  width: 100%;
  height: auto;
}

.project.showcase h2 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.6px;
  margin: 0;
}

.project.showcase .tagline {
  font-size: 20px;
}

.project.showcase .more {
  margin-top: 4px;
  font-size: 17px;
}
