:root {
  --bg: #fafaf7;
  --text: #1a1a1a;
  --muted: #555;
  --accent: #c2410c;
  --accent-soft: #fff1ea;
  --border: #e5e5e0;
  --card: #ffffff;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140f;
    --text: #f0ede5;
    --muted: #a8a39a;
    --accent: #fb923c;
    --accent-soft: #2a1a10;
    --border: #2a2925;
    --card: #1d1c17;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

header.site .logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
}

header.site h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

header.site .tag {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 48px 0 12px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 6px;
}

p {
  margin: 0 0 16px;
  color: var(--text);
}

p.lead {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 32px;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 65, 12, 0.25);
}

a:hover {
  border-bottom-color: var(--accent);
}

ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

li {
  margin-bottom: 6px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 16px 0;
}

.contact {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
}

.contact strong {
  display: block;
  margin-bottom: 4px;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

details:last-of-type {
  border-bottom: none;
}

details summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.15s;
}

details[open] summary::after {
  content: "−";
}

details > *:not(summary) {
  margin-top: 12px;
}

footer.site {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}
