/* Hilltop Guides — shared shell
   Deliberately quiet. The three guide pages each carry their own
   self-contained design; this wrapper must never fight them.
   All shell rules are namespaced under .ht- to prevent collisions
   with transplanted page styles. */

:root {
  --ht-ink: #161b18;
  --ht-ink-soft: #3d4744;
  --ht-bone: #f7f6f2;
  --ht-line: #d9d6cc;
  --ht-brass: #9a7b3f;
  --ht-white: #ffffff;
  --ht-shell-font: "Optima", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --ht-ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ht-max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ht-white);
  color: var(--ht-ink);
  font-family: var(--ht-ui-font);
  line-height: 1.6;
}

/* ---------- Header ---------- */

.ht-header {
  border-bottom: 1px solid var(--ht-line);
  background: var(--ht-white);
  position: sticky;
  top: 0;
  z-index: 999;
}

.ht-header__inner {
  max-width: var(--ht-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ht-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ht-ink);
  font-family: var(--ht-shell-font);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ht-logo img { height: 34px; width: auto; display: block; }

.ht-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.ht-nav a {
  color: var(--ht-ink-soft);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ht-nav a:hover { color: var(--ht-ink); }

.ht-nav .ht-book {
  background: var(--ht-ink);
  color: var(--ht-white);
  padding: 10px 18px;
  border-radius: 2px;
}

.ht-nav .ht-book:hover { background: var(--ht-brass); color: var(--ht-white); }

/* ---------- Guide body slot ---------- */
/* Transplanted page HTML goes inside .ht-guide. No layout imposed —
   the guide brings its own. */

.ht-guide { display: block; }

/* ---------- Back-to-site rail ---------- */

.ht-rail {
  background: var(--ht-bone);
  border-top: 1px solid var(--ht-line);
  border-bottom: 1px solid var(--ht-line);
  padding: 40px 24px;
  text-align: center;
}

.ht-rail h2 {
  font-family: var(--ht-shell-font);
  font-size: 24px;
  margin: 0 0 10px;
  font-weight: 500;
}

.ht-rail p {
  margin: 0 auto 22px;
  max-width: 560px;
  color: var(--ht-ink-soft);
  font-size: 16px;
}

.ht-rail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ht-rail__links a {
  border: 1px solid var(--ht-ink);
  color: var(--ht-ink);
  text-decoration: none;
  padding: 11px 20px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}

.ht-rail__links a:hover { background: var(--ht-ink); color: var(--ht-white); }

.ht-rail__links a.is-primary { background: var(--ht-ink); color: var(--ht-white); }
.ht-rail__links a.is-primary:hover { background: var(--ht-brass); border-color: var(--ht-brass); }

/* ---------- Footer ---------- */

.ht-footer {
  background: var(--ht-ink);
  color: #c9ccc9;
  padding: 48px 24px 32px;
  font-size: 14px;
}

.ht-footer__inner {
  max-width: var(--ht-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.ht-footer h3 {
  color: var(--ht-white);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 600;
}

.ht-footer a { color: #c9ccc9; text-decoration: none; display: block; margin-bottom: 8px; }
.ht-footer a:hover { color: var(--ht-white); }

.ht-footer__brand p { margin: 0 0 8px; line-height: 1.7; }
.ht-footer__brand img { height: 40px; margin-bottom: 16px; }

.ht-footer__legal {
  max-width: var(--ht-max);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: #8f958f;
}

.ht-footer__legal a { display: inline; margin: 0; color: #8f958f; }

/* ---------- Hub (index) ---------- */

.ht-hub { max-width: 860px; margin: 0 auto; padding: 72px 24px 80px; }

.ht-hub h1 {
  font-family: var(--ht-shell-font);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 16px;
}

.ht-hub__lede { font-size: 18px; color: var(--ht-ink-soft); margin: 0 0 48px; max-width: 620px; }

.ht-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--ht-line);
  padding: 28px 0;
}

.ht-card:last-of-type { border-bottom: 1px solid var(--ht-line); }

.ht-card h2 {
  font-family: var(--ht-shell-font);
  font-size: 23px;
  font-weight: 500;
  margin: 0 0 8px;
}

.ht-card:hover h2 { color: var(--ht-brass); }
.ht-card p { margin: 0; color: var(--ht-ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .ht-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .ht-header__inner { padding: 12px 18px; gap: 12px; }
  .ht-nav { gap: 14px; }
  .ht-nav a:not(.ht-book) { display: none; }
  .ht-logo { font-size: 13px; }
}

@media (max-width: 560px) {
  .ht-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Accessibility floor ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ht-brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
