:root {
  --bg: #1c1714;
  --bg-soft: #241d18;
  --text: #f4e7d2;
  --text-dim: #b8a68f;
  --accent: #875731;
  --line: #3a2f26;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent);
  z-index: 10;
}

/* Hero */

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 120px 24px 72px;
  display: flex;
  align-items: center;
  gap: 56px;
}

.mark {
  width: 180px;
  height: 165px;
  flex-shrink: 0;
}

.hero-text {
  max-width: 560px;
}

h1 {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sentence {
  margin-top: 12px;
  font-size: 22px;
}

.actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
}

.btn.primary {
  background: var(--accent);
  color: var(--bg);
}

.btn.secondary {
  border: 1px solid var(--text);
  color: var(--text);
}

.btn:hover {
  filter: brightness(1.1);
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.meta {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

/* Content */

.content {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}

.toc a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
}

.toc a:hover {
  color: var(--text);
}

section {
  margin-bottom: 64px;
}

h2 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 28px 0 12px;
}

p {
  margin-bottom: 14px;
}

ul,
ol {
  margin: 0 0 14px 22px;
}

li {
  margin-bottom: 10px;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}

.content a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* FAQ */

details {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 10px;
  background: var(--bg-soft);
}

summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 500;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
}

details[open] summary::after {
  content: "\2212";
}

details p {
  padding: 0 18px 14px;
  margin: 0;
  color: var(--text-dim);
}

details a {
  color: var(--text);
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px 48px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Mobile */

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 88px 24px 48px;
  }

  .mark {
    width: 120px;
    height: 110px;
  }

  h1 {
    font-size: 40px;
  }

  .sentence {
    font-size: 19px;
  }

  .actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .footer {
    flex-direction: column;
  }

  .footer .btn {
    width: 100%;
    text-align: center;
  }

  .footer .btn:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
