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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: clip;
  color: var(--jh-body);
  background: var(--jh-surface);
  font-family: Mukta, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe {
  display: block;
  width: 100%;
  border: 0;
}

a {
  color: var(--jh-green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition: color var(--jh-motion-fast), background-color var(--jh-motion-fast), box-shadow var(--jh-motion-fast);
}

a:hover {
  color: var(--jh-green-700);
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--jh-ink);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  color: var(--jh-ink);
  background: var(--jh-gold);
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

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

.narrow {
  width: min(calc(100% - 48px), 72ch);
  margin-inline: auto;
}

.section {
  padding-block: var(--jh-section);
}

.section-heading {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--jh-green);
  font-size: 0.9rem;
  font-weight: 700;
}

.entry-content > * {
  max-width: 72ch;
  margin-right: auto;
  margin-left: auto;
}

.entry-content > .alignwide { max-width: 1200px; }
.entry-content > .alignfull { max-width: none; }

.entry-content blockquote {
  padding: 16px 24px;
  margin-block: 32px;
  border-left: 4px solid var(--jh-green);
  background: var(--jh-mint);
}

.entry-content table {
  width: 100%;
}

@media (max-width: 767.98px) {
  .narrow { width: min(calc(100% - 40px), 72ch); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

