:root {
  --hx-bg: #f4f1ea;
  --hx-ink: #121110;
  --hx-line: rgba(18, 17, 16, 0.08);
  --hx-line-soft: rgba(18, 17, 16, 0.10);
  --hx-line-strong: rgba(18, 17, 16, 0.14);
  --hx-text-soft: rgba(18, 17, 16, 0.72);
  --hx-text-muted: rgba(18, 17, 16, 0.56);
  --hx-white-soft: rgba(255, 255, 255, 0.76);
  --hx-white-strong: rgba(255, 255, 255, 0.92);
  --hx-ui-dark: rgba(26, 26, 26, 0.68);
  --hx-ui-dark-hover: rgba(26, 26, 26, 0.86);
  --hx-media-bg: #e9e3d9;
  --hx-shadow-side: -8px 0 30px rgba(18, 17, 16, 0.06);
  --hx-font-mono: "JetBrains Mono", monospace;
  --hx-font-serif: "Prata", Georgia, "Times New Roman", serif;
  --hx-font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --hx-badge-bg: var(--hx-ink);
  --hx-badge-fg: var(--hx-bg);
}

html {
  box-sizing: border-box;
  min-width: 280px;
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--hx-bg);
}

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

body {
  margin: 0;
  min-width: 280px;
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--hx-bg);
  color: var(--hx-ink);
  font-family: var(--hx-font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
header,
footer,
section,
article,
aside,
nav {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block-start: 0.5rem;
  margin-block-end: 1rem;
  color: inherit;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-block-start: 0;
  margin-block-end: 0.9rem;
}

figure,
blockquote {
  margin: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

svg {
  fill: currentColor;
}

a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: 1.15;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
}

button,
[role="button"],
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: default;
}

input,
textarea,
select {
  max-width: 100%;
}

textarea {
  overflow: auto;
  resize: vertical;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

[hidden] {
  display: none !important;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.screen-reader-text:focus,
.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 2147483647;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  clip: auto !important;
  overflow: visible !important;
  background: var(--hx-bg);
  color: var(--hx-ink);
  font-family: var(--hx-font-sans);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}

.site-main,
#primary {
  min-width: 0;
}

body.admin-bar .hx-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar .hx-header {
    top: 46px !important;
  }
}

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