@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@500;600&family=Source+Sans+3:wght@400;500;600&display=swap'); /* hm-design-fonts */

/* hm-design-base:start — base rules in design variables only; the rules after this block may refine them. */
body{font-family:var(--font-body);font-size:var(--text-base);font-weight:var(--weight-body);line-height:var(--leading-body);color:hsl(var(--foreground));background-color:hsl(var(--background));-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);font-weight:var(--weight-heading);line-height:var(--leading-heading);letter-spacing:var(--tracking-heading)}
h1{font-size:var(--text-h1)}h2{font-size:var(--text-h2)}h3{font-size:var(--text-h3)}h4{font-size:var(--text-h4)}h5{font-size:var(--text-base)}h6{font-size:var(--text-sm)}
.display{font-family:var(--font-heading);font-size:var(--text-5xl);font-weight:var(--weight-heading);line-height:var(--leading-heading);letter-spacing:var(--tracking-heading)}
b,strong{font-weight:var(--weight-bold)}
a{color:hsl(var(--link));text-decoration:var(--link-decoration);text-underline-offset:0.18em}
a:hover{text-decoration:var(--link-hover-decoration)}
.container,.container-narrow,.container-wide{box-sizing:border-box;width:100%;margin-inline:auto;padding-inline:var(--container-pad)}
.container{max-width:calc(var(--container-max) + 2 * var(--container-pad))}
.container-narrow{max-width:calc(var(--container-narrow) + 2 * var(--container-pad))}
.container-wide{max-width:calc(var(--container-wide) + 2 * var(--container-pad))}
.section{padding-block:var(--section-y)}
.section-sm{padding-block:var(--section-y-sm)}
.eyebrow{display:inline-block;font-size:var(--eyebrow-size);font-weight:var(--weight-bold);letter-spacing:var(--eyebrow-tracking);text-transform:var(--eyebrow-transform);color:hsl(var(--link))}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:0.5em;padding:var(--btn-pad-y) var(--btn-pad-x);font-family:var(--font-body);font-size:var(--btn-font-size);font-weight:var(--btn-weight);line-height:1.2;letter-spacing:var(--btn-tracking);text-transform:var(--btn-transform);text-decoration:none;border:var(--border-width) solid transparent;border-radius:var(--btn-radius);cursor:pointer;transition:transform var(--duration-fast) var(--ease),box-shadow var(--duration-base) var(--ease),filter var(--duration-fast) var(--ease),background-color var(--duration-base) var(--ease)}
.btn:hover{text-decoration:none}
.btn-primary{background:var(--btn-primary-bg);color:var(--btn-primary-fg)}
.btn-primary:hover{filter:var(--btn-hover-filter);transform:var(--btn-hover-transform);box-shadow:var(--btn-hover-shadow)}
.btn-secondary{background:var(--btn-secondary-bg);color:var(--btn-secondary-fg);border-color:var(--btn-secondary-border)}
.btn-secondary:hover{transform:var(--btn-hover-transform)}
.btn-sm{padding:calc(var(--btn-pad-y) * 0.7) calc(var(--btn-pad-x) * 0.75);font-size:var(--text-sm)}
.btn-lg{padding:calc(var(--btn-pad-y) * 1.25) calc(var(--btn-pad-x) * 1.25);font-size:var(--text-lg)}
.card{background:var(--card-bg);color:hsl(var(--card-foreground));border:var(--card-border);border-radius:var(--card-radius);box-shadow:var(--card-shadow);padding:var(--card-pad);-webkit-backdrop-filter:var(--card-backdrop);backdrop-filter:var(--card-backdrop);transition:transform var(--duration-base) var(--ease),box-shadow var(--duration-base) var(--ease)}
.card:hover{transform:var(--card-hover-transform)}
.input{box-sizing:border-box;width:100%;padding:10px 14px;font:inherit;color:hsl(var(--foreground));background:var(--input-bg);border:var(--input-border);border-bottom:var(--input-border-bottom);border-radius:var(--input-radius)}
.badge{display:inline-flex;align-items:center;gap:0.35em;padding:2px 10px;font-size:var(--text-xs);font-weight:var(--weight-bold);background:var(--badge-bg);color:var(--badge-fg);border:var(--badge-border);border-radius:var(--badge-radius)}
:where(a,button,.btn,.input,input,select,textarea):focus-visible{outline:var(--ring-width) solid hsl(var(--ring));outline-offset:var(--ring-offset)}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.01ms!important;transition-duration:0.01ms!important}}
/* hm-design-base:end */

/* ============================================
   DIVpedia — Structure Layer (Global Stylesheet)
   Editorial Reading style: ink-on-paper, hairline
   rules, serif headlines, understated motion.
   ============================================ */

/* 1. Refinements of global classes */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background-color var(--duration-base) var(--ease),
              color var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}

.btn-primary {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: color-mix(in srgb, hsl(var(--accent)) 85%, black);
  color: hsl(var(--accent-foreground));
  transform: translateY(var(--hover-lift));
}

.btn-secondary {
  background: transparent;
  color: hsl(var(--primary));
  border: var(--border-width) solid hsl(var(--border));
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: var(--border-width) solid hsl(var(--border));
  padding: 1.75rem;
}

.card > * + * {
  margin-block-start: var(--space-3);
}

.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border: var(--border-width) solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
}

.badge-outline {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: var(--border-width);
  transition: color var(--duration-fast) var(--ease);
}

a:hover,
a:focus-visible {
  color: hsl(var(--link));
}

/* 2. Section surfaces */

.section-muted {
  background: hsl(var(--muted));
  color: hsl(var(--card-foreground));
}

.section-brand {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.section-brand .eyebrow {
  color: hsl(var(--primary-highlight));
}

.section-brand a {
  color: hsl(var(--primary-foreground));
  text-decoration-color: hsl(var(--primary-muted));
}

.section-brand a:hover,
.section-brand a:focus-visible {
  color: hsl(var(--primary-muted));
}

.section-gradient {
  background: var(--brand-gradient);
  color: var(--brand-gradient-foreground);
}

/* 3. Hero helpers */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: var(--section-y);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--scrim-color);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: hsl(var(--primary-foreground));
}

.hero-content .eyebrow {
  color: hsl(var(--primary-highlight));
}

/* 4. Header / footer wrappers */

.site-header {
  background: hsl(var(--header));
  color: hsl(var(--header-foreground));
  height: var(--header-h);
}

.site-header a {
  color: hsl(var(--header-foreground));
  text-decoration: none;
}

.site-header a:hover,
.site-header a:focus-visible {
  color: hsl(var(--link));
}

.site-footer {
  background: hsl(var(--footer));
  color: hsl(var(--footer-foreground));
}

.site-footer a {
  color: hsl(var(--footer-foreground));
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: hsl(var(--footer-muted));
}

.site-footer .footer-muted {
  color: hsl(var(--footer-muted));
}

/* 5. Style signatures & utilities */

/* Data table: alternating warm-cream stripes + hairline rules */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 0.625rem 1rem;
  border-block-end: var(--border-width) solid hsl(var(--border));
  text-align: start;
}

.data-table thead th {
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
  border-block-end-width: calc(var(--border-width) * 2);
}

.data-table tbody tr:nth-child(even) {
  background: hsl(var(--muted));
}

/* Ticker badge: exchange-floor outline box */
.ticker-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: var(--border-width) solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
}

/* Methodology panel: vertical forest-green left rule */
.methodology {
  position: relative;
  padding-inline-start: 1.25rem;
  color: hsl(var(--card-foreground));
}

.methodology::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: hsl(var(--primary));
}

/* Hairline divider */
.rule {
  border: 0;
  height: var(--border-width);
  background: hsl(var(--border));
  margin-block: var(--space-6);
}

/* Text utilities */
.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-link {
  color: hsl(var(--link));
}

/* Grid & stack utilities */
.grid-auto {
  display: grid;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .grid-auto {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-auto {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stack {
  display: flex;
  flex-direction: column;
}

.stack > * + * {
  margin-block-start: var(--space-3);
}

.stack-sm > * + * {
  margin-block-start: var(--space-2);
}

.stack-lg > * + * {
  margin-block-start: var(--space-6);
}

/* Understated motion: fade-in on scroll */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fade-in-up var(--duration-slow) var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.prose {
  --tw-prose-body: hsl(var(--text));
  --tw-prose-headings: hsl(var(--text));
  --tw-prose-lead: #4b5563;
  --tw-prose-links: #111827;
  --tw-prose-bold: #111827;
  --tw-prose-counters: #6b7280;
  --tw-prose-bullets: #d1d5db;
  --tw-prose-hr: #e5e7eb;
  --tw-prose-quotes: #111827;
  --tw-prose-quote-borders: #e5e7eb;
  --tw-prose-captions: #6b7280;
  --tw-prose-kbd: #111827;
  --tw-prose-kbd-shadows: rgb(17 24 39/10%);
  --tw-prose-code: #111827;
  --tw-prose-pre-code: #e5e7eb;
  --tw-prose-pre-bg: #1f2937;
  --tw-prose-th-borders: #d1d5db;
  --tw-prose-td-borders: #e5e7eb;
  --tw-prose-invert-body: #d1d5db;
  --tw-prose-invert-headings: #fff;
  --tw-prose-invert-lead: #9ca3af;
  --tw-prose-invert-links: #fff;
  --tw-prose-invert-bold: #fff;
  --tw-prose-invert-counters: #9ca3af;
  --tw-prose-invert-bullets: #4b5563;
  --tw-prose-invert-hr: #374151;
  --tw-prose-invert-quotes: #f3f4f6;
  --tw-prose-invert-quote-borders: #374151;
  --tw-prose-invert-captions: #9ca3af;
  --tw-prose-invert-kbd: #fff;
  --tw-prose-invert-kbd-shadows: rgb(255 255 255/10%);
  --tw-prose-invert-code: #fff;
  --tw-prose-invert-pre-code: #d1d5db;
  --tw-prose-invert-pre-bg: rgb(0 0 0/50%);
  --tw-prose-invert-th-borders: #4b5563;
  --tw-prose-invert-td-borders: #374151;
  font-size: 1rem;
  line-height: 1.75;
}
.posts-archive-grid img {
  aspect-ratio: 16/9;
}

/* hm-design-shape:start — corner shapes come from the Site Design settings; this block follows the structure layer so they always take effect. */
.btn{border-radius:var(--btn-radius)}
.card{border-radius:var(--card-radius)}
.input{border-radius:var(--input-radius)}
.badge{border-radius:var(--badge-radius)}
/* hm-design-shape:end */

/* hm-design-tokens:start — rendered from the Site Design config. Change values on the Site Design page; values edited here are read back into the config on save. */
:root {
  --background: 42.9 41.2% 96.7%;
  --foreground: 0 0% 10.2%;
  --text: 0 0% 10.2%;
  --card: 41.5 30.2% 91.6%;
  --card-foreground: 0 0% 10.2%;
  --popover: 41.5 30.2% 91.6%;
  --popover-foreground: 0 0% 10.2%;
  --primary: 157.6 49.5% 20.2%;
  --primary-foreground: 0 0% 100%;
  --primary-muted: 158.2 12.4% 82.5%;
  --primary-highlight: 0 0% 57.3%;
  --secondary: 210 29% 24.3%;
  --secondary-foreground: 0 0% 100%;
  --muted: 41.5 30.2% 91.6%;
  --muted-foreground: 217.9 8.8% 42.2%;
  --accent: 18.7 65.1% 47.3%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72.2% 50.6%;
  --destructive-foreground: 0 0% 100%;
  --border: 40 7.7% 84.7%;
  --input: 40 6.2% 81.2%;
  --ring: 18.7 65.1% 47.3%;
  --success: 141 78.9% 85.1%;
  --success-foreground: 0 0% 6.7%;
  --warning: 48 96.6% 76.7%;
  --warning-foreground: 0 0% 6.7%;
  --error: 0 96.3% 89.4%;
  --error-foreground: 0 0% 6.7%;
  --header: 42.9 41.2% 96.7%;
  --header-foreground: 0 0% 6.7%;
  --header-muted: 60 0.7% 26.5%;
  --footer: 157.6 49.5% 20.2%;
  --footer-foreground: 220 10.5% 72%;
  --footer-muted: 192.9 9.1% 69.8%;
  --link: 18.8 65.7% 40%;
  --headline: 0 0% 10.2%;
  --brand-gradient: linear-gradient(135deg, #1a4d3a 0%, #1a4d3a 100%);
  --brand-gradient-foreground: #ffffff;
  --font-heading: 'Source Serif 4', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --text-xs: 13.43px;
  --text-sm: 15.11px;
  --text-base: 17px;
  --text-lg: 19.13px;
  --text-xl: clamp(20.72px, 18.66px + 0.549vw, 26.56px);
  --text-2xl: clamp(25.9px, 23.33px + 0.686vw, 33.2px);
  --text-3xl: clamp(25.73px, 20.18px + 1.481vw, 41.5px);
  --text-4xl: clamp(32.17px, 25.22px + 1.851vw, 51.88px);
  --text-5xl: clamp(40.21px, 31.53px + 2.314vw, 64.85px);
  --text-h1: var(--text-4xl);
  --text-h2: var(--text-3xl);
  --text-h3: var(--text-xl);
  --text-h4: var(--text-lg);
  --weight-heading: 500;
  --weight-body: 400;
  --weight-bold: 600;
  --leading-heading: 1.15;
  --leading-body: 1.65;
  --tracking-heading: -0.02em;
  --eyebrow-size: 11px;
  --eyebrow-tracking: 0.12em;
  --eyebrow-transform: uppercase;
  --link-decoration: underline;
  --link-hover-decoration: underline;
  --container-max: 1280px;
  --container-narrow: 720px;
  --container-wide: 1440px;
  --container-pad: 20px;
  --section-y: clamp(64px, 52.73px + 3.005vw, 96px);
  --section-y-sm: calc(var(--section-y) * 0.5);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-9: 72px;
  --space-10: 80px;
  --space-11: 88px;
  --space-12: 96px;
  --grid-gap: 32px;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-pill: 9999px;
  --radius: 0px;
  --radius-image: 0px;
  --border-width: 0.5px;
  --shadow-lg: none;
  --shadow-md: none;
  --shadow-sm: none;
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hover-lift: -2px;
  --scrim: 0.3;
  --scrim-color: rgba(0, 0, 0, 0.3);
  --ring-width: 2px;
  --ring-offset: 2px;
  --btn-radius: 0px;
  --btn-pad-y: 8px;
  --btn-pad-x: 14px;
  --btn-font-size: var(--text-sm);
  --btn-weight: 500;
  --btn-transform: uppercase;
  --btn-tracking: 0.06em;
  --btn-primary-bg: hsl(var(--accent));
  --btn-primary-fg: hsl(var(--accent-foreground));
  --btn-secondary-bg: transparent;
  --btn-secondary-fg: hsl(var(--link));
  --btn-secondary-border: transparent;
  --btn-hover-filter: brightness(0.92);
  --btn-hover-transform: none;
  --btn-hover-shadow: none;
  --card-radius: var(--radius-sm);
  --card-pad: 28px;
  --card-bg: hsl(var(--card));
  --card-border: var(--border-width) solid hsl(var(--border));
  --card-shadow: none;
  --card-backdrop: none;
  --card-hover-transform: none;
  --input-radius: 0px;
  --input-bg: hsl(var(--background));
  --input-border: var(--border-width) solid hsl(var(--input));
  --input-border-bottom: var(--border-width) solid hsl(var(--input));
  --badge-radius: 0px;
  --badge-bg: transparent;
  --badge-fg: hsl(var(--foreground));
  --badge-border: var(--border-width) solid hsl(var(--border));
  --header-h: 64px;
  --header-shadow-scrolled: none;
}
@media (min-width: 768px) {
  :root {
    --container-pad: 40px;
  }
}
/* hm-design-tokens:end */
