@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-400.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-500.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fraunces-500.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-600.woff2") format("woff2");
}

:root {
  --ht-navy: #1f2b56;
  --ht-navy-deep: #141c3a;
  --ht-gold: #e8a23a;
  --ht-sand: #f3eee6;
  --ht-paper: #fbf8f3;
  --ht-ink: #1c1a17;
  --ht-muted: #5e584f;
  --ht-line: #e4d9c8;
  --ht-card: #fffcf8;
  --ht-sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --ht-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ht-sand);
  color: var(--ht-ink);
  font-family: var(--ht-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--ht-navy); }

.ht-skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--ht-paper);
  padding: 0.5rem 0.8rem;
  z-index: 50;
}
.ht-skip:focus { top: 0.5rem; }

.ht-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 243, 0.95);
  border-bottom: 1px solid rgba(28, 26, 23, 0.08);
  backdrop-filter: blur(10px);
}

.ht-bar {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.ht-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ht-navy);
}

.ht-brand strong {
  display: block;
  font-family: var(--ht-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
}

.ht-brand small {
  display: block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ht-muted);
  font-size: 0.68rem;
}

.ht-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
  flex: none;
}

.ht-logo-img,
.custom-logo { max-height: 3rem; width: auto; }

.ht-nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ht-nav-button {
  margin-left: auto;
  min-height: 2.75rem;
  min-width: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ht-line);
  border-radius: 999px;
  padding: 0 0.9rem;
  font-weight: 600;
  color: var(--ht-navy);
  background: var(--ht-card);
}

.ht-nav { display: none; width: 100%; }
.ht-nav-toggle:checked ~ .ht-nav { display: block; }

.ht-menu,
.ht-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0.8rem;
  display: grid;
  gap: 0.15rem;
}

.ht-menu a,
.ht-footer-menu a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--ht-navy);
}

.ht-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--ht-navy);
  color: var(--ht-paper);
  text-decoration: none;
  font-weight: 600;
}

.ht-main { min-height: 50vh; }

.ht-page {
  width: min(760px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
}

.ht-page h1,
.ht-archive h1 {
  font-family: var(--ht-display);
  color: var(--ht-navy);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
}

.ht-archive {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.25rem auto 3rem;
}

.ht-footer {
  background: var(--ht-navy-deep);
  color: var(--ht-paper);
  margin-top: 2rem;
}

.ht-footer-grid {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  padding: 2.4rem 0;
}

.ht-footer a { color: rgba(251, 248, 243, 0.88); }
.ht-footer h2 {
  font-family: var(--ht-display);
  font-weight: 500;
  margin: 0 0 0.6rem;
}
.ht-footer p,
.ht-footer li { color: rgba(251, 248, 243, 0.78); }
.ht-footer .ht-kicker { color: var(--ht-gold); }
.ht-footer-menu a { color: rgba(251, 248, 243, 0.88); min-height: 2rem; }
.ht-legal {
  border-top: 1px solid rgba(251, 248, 243, 0.1);
  padding: 0.9rem 0 1.2rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  color: rgba(251, 248, 243, 0.6);
  font-size: 0.92rem;
}

.ht-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--ht-navy);
  color: var(--ht-paper);
  text-decoration: none;
  font-weight: 600;
}

.ht-missing {
  width: min(720px, calc(100% - 2rem));
  margin: 2rem auto;
  background: var(--ht-card);
  border: 1px solid var(--ht-line);
  border-radius: 1.25rem;
  padding: 1.2rem;
}

@media (min-width: 980px) {
  .ht-nav-button { display: none; }
  .ht-nav {
    display: flex;
    width: auto;
    margin-left: auto;
    align-items: center;
    gap: 1rem;
  }
  .ht-menu {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    padding: 0;
  }
  .ht-menu a { min-height: 2.5rem; }
  .ht-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--ht-gold);
  outline-offset: 3px;
}
