/* Hermes — Midnight·Engraved web theme */
:root {
  --bg:        #16161A;   /* charcoal ground */
  --tile:      #19191F;   /* engraved tile */
  --ink:       #ECE6D8;   /* warm cream */
  --ink-muted: #8B857A;   /* muted */
  --brass:     #C5A572;   /* morning brass */
  --copper:    #C9925E;   /* evening copper */
  --rule:      rgba(197,165,114,0.22);
}

* { box-sizing: border-box; }

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

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

a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: var(--tile);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--brass);
  word-break: break-word;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(22,22,26,0.92);
  position: sticky;
  top: 0;
  backdrop-filter: saturate(120%) blur(8px);
}
.site-header .bar {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-weight: 900;
  letter-spacing: 0.28em;
  font-size: 20px;
  color: var(--ink);
}
.wordmark .dot { color: var(--brass); }
.nav a { margin-left: 22px; color: var(--ink-muted); font-size: 15px; letter-spacing: 0.02em; }
.nav a:hover { color: var(--brass); text-decoration: none; }

/* Layout */
main { max-width: 880px; margin: 0 auto; padding: 0 24px 96px; }

/* Hero (homepage) */
.hero { padding: 88px 0 56px; border-bottom: 1px solid var(--rule); }
.hero .accent-bar {
  width: 56px; height: 3px; margin-bottom: 28px;
  background: linear-gradient(90deg, var(--brass), var(--copper));
}
.hero h1 {
  font-family: Georgia, "Times New Roman", "New York", serif;
  font-weight: 600;
  font-size: 46px;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero p.lede { font-size: 20px; color: var(--ink-muted); max-width: 620px; margin: 0 0 32px; }

.btn {
  display: inline-block;
  background: var(--brass);
  color: #1A1610;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 12px;
  letter-spacing: 0.01em;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.secondary { background: transparent; color: var(--brass); border: 1px solid var(--rule); margin-left: 12px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding: 56px 0; }
.card {
  background: var(--tile);
  border: 1px solid var(--rule);
  border-radius: 15px;
  padding: 24px;
}
.card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--brass);
}
.card p { margin: 0; color: var(--ink-muted); font-size: 15.5px; }

/* Legal / long-form pages */
.legal { padding: 56px 0 0; }
.legal .accent-bar { width: 56px; height: 3px; margin-bottom: 24px; background: linear-gradient(90deg, var(--brass), var(--copper)); }
.legal h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 26px;
  margin: 44px 0 12px;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }
.legal h3 { font-weight: 600; font-size: 18px; margin: 26px 0 8px; color: var(--brass); }
.legal p, .legal li { color: #DAD3C5; }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; }
.legal th, .legal td { text-align: left; padding: 10px 13px; border: 1px solid var(--rule); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 600; background: var(--tile); }
.legal td { color: #DAD3C5; }
.legal .limited-use {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  border-radius: 12px;
  background: var(--tile);
  padding: 18px 22px;
  margin: 20px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 14.5px;
}
.site-footer .bar {
  max-width: 880px; margin: 0 auto; padding: 32px 24px 56px;
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between;
}
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--brass); text-decoration: none; }
.site-footer .links a { margin-right: 22px; }

@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .hero { padding: 56px 0 40px; }
  .btn.secondary { margin-left: 0; margin-top: 12px; display: inline-block; }
}
