:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1c1d21;
  --muted: #5d6068;
  --line: #e3e0d8;
  --accent: #2f5d50;
  --accent-soft: #e4ece8;
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315;
    --surface: #1b1c1f;
    --ink: #ecebe7;
    --muted: #a3a49f;
    --line: #2c2d31;
    --accent: #8fc2b0;
    --accent-soft: #1f2a27;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  padding: 28px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand svg {
  width: 30px;
  height: 30px;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 16ch;
}
.hero p {
  color: var(--muted);
  font-size: 19px;
  margin: 0;
  max-width: 34em;
}

/* Sections */
section {
  padding: 36px 0;
}
h2 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.app {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.app p {
  margin: 0;
  color: var(--muted);
}
.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.about p {
  margin: 0 0 12px;
  max-width: 38em;
}

.contact dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
}
.contact dt {
  color: var(--muted);
}
.contact dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.site-footer a {
  color: var(--muted);
}

/* Text pages (privacy, 404) */
.page {
  padding: 32px 0 8px;
}
.page h1 {
  font-size: clamp(30px, 5vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.page .updated {
  color: var(--muted);
  margin: 0 0 28px;
}
.page h2 {
  margin-top: 32px;
}
.page p,
.page ul {
  max-width: 40em;
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 32px 0 24px;
  }
  .contact dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .contact dd {
    margin-bottom: 10px;
  }
}

/* Logo mark: drawn with the theme colors (no inline styles, for the CSP). */
.mark-bg {
  fill: var(--accent);
}
.mark-lines {
  fill: none;
  stroke: var(--bg);
  stroke-width: 4.5;
  stroke-linecap: round;
}
.mark-dot {
  fill: var(--bg);
}
