/* dengii.app — минималистичный сайт под ASC submission */

:root {
  --bg: #F2E6D5;
  --fg: #231411;
  --muted: #6B5B47;
  --accent: #231411;
  --rule: rgba(35, 20, 17, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #231411;
    --fg: #F2E6D5;
    --muted: #B5A893;
    --accent: #F2E6D5;
    --rule: rgba(242, 230, 213, 0.14);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont,
               'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

header.site-header {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand em {
  font-style: italic;
  font-weight: 500;
}

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

nav.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

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

h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

h1 em {
  font-style: italic;
  font-weight: 500;
}

h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 12px;
}

h3 {
  font-weight: 600;
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
}

p, ul, ol {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  margin-bottom: 16px;
}

ul, ol {
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

footer.site-footer {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 40px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 40px 0;
}

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.feature h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.feature p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

code {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px;
  background: var(--rule);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 480px) {
  main { padding-top: 48px; }
  header.site-header { padding-top: 20px; }
}
