/* Theme: light by default, dark follows the device setting. */
:root {
  --bg: #F4F1EA;
  --surface: #FBF9F4;
  --ink: #161A18;
  --muted: #5E6561;
  --line: #DCD6CB;
  --accent: #A84B26;
  --accent-ink: #FFFFFF;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121413;
    --surface: #1A1D1B;
    --ink: #EDEAE3;
    --muted: #9AA19C;
    --line: #2C302E;
    --accent: #E07A50;
    --accent-ink: #121413;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }

/* Sections */
section { padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding-top: 64px; padding-bottom: 72px; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: ui-serif, "New York", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
h1 { margin: 0 0 20px; font-size: clamp(34px, 6vw, 52px); max-width: 18ch; }
h2 { margin: 0 0 20px; font-size: 26px; }
h3 { margin: 0 0 6px; font-size: 24px; }
.lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 56ch; }
p { margin: 0 0 12px; }
.small, .more { color: var(--muted); font-size: 15px; }
.more { margin-top: 20px; }

/* App card */
.app {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.app-icon {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid var(--line);
}
.app-body p { color: var(--muted); }

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn-muted {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 500;
}
.text-link { font-size: 15px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

#contact a[href^="mailto"] { color: var(--accent); font-weight: 600; }

/* Footer */
.foot {
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot p { margin: 0 0 4px; }
.foot strong { color: var(--ink); font-weight: 600; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  section.hero { padding-top: 40px; padding-bottom: 48px; }
  .app { flex-direction: column; gap: 16px; padding: 20px; }
  .app-icon { width: 72px; height: 72px; border-radius: 17px; }
}
