:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --fg: #1a1815;
  --muted: #6b6358;
  --rule: #e8e1d4;
  --accent: #c2410c;
  --accent-soft: #fde4d0;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  border-bottom: 1px solid var(--rule);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.brand-mark .head {
  fill: var(--accent);
}

.brand-mark .core {
  fill: var(--accent);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 28px;
  font-size: 15px;
  transition: color 0.15s ease;
  position: relative;
}

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

.nav-links a.active {
  color: var(--fg);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 32px;
  width: 100%;
}

.hero-emblem {
  width: 180px;
  height: 180px;
  margin: 0 0 48px;
}

.hero-emblem svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 600px) {
  .hero-emblem { width: 140px; height: 140px; margin-bottom: 32px; }
}

h1 {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 24px;
}

h1 .accent {
  color: var(--accent);
}

h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

h2::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-4px);
}

p {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 56ch;
}

a {
  color: var(--fg);
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
}

.contact {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--accent-soft);
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.contact p {
  margin: 0 0 6px;
  color: var(--fg);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact a {
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}

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

footer {
  border-top: 1px solid var(--rule);
  padding: 24px 32px;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 600px) {
  main { padding: 56px 24px; }
  .nav { padding: 20px 24px; }
  h1 { font-size: 32px; }
  .nav-links a { margin-left: 18px; }
}
