/* ==========================================================================
   HIGS Strategic — Design System
   Structure:
   01. Custom Properties (tokens)
   02. Reset & Base
   03. Typography
   04. Layout Utilities
   05. Header / Nav
   06. Hero
   07. Cards & Grids
   08. Article
   09. Sections (Focus, Notes, Philosophy, Related)
   10. Footer
   11. Pagination
   12. Forms & Search
   13. Utility Classes
   14. Animations & Motion
   15. Responsive
   ========================================================================== */

/* 01. Custom Properties
   ========================================================================== */

:root {
  /* Colors */
  --primary:       #244b8f;
  --primary-deep:  #102e5f;
  --bg:            #f6f9ff;
  --text:          #0b1833;
  --muted:         #5f6f8a;
  --line:          #dce6f4;
  --panel:         #ffffff;
  --accent:        #6f8fbc;
  --soft-blue:     #e8f0fb;
  --danger:        #c0392b;

  /* Spacing */
  --section-gap:   120px;
  --section-gap-sm: 72px;

  /* Shape */
  --radius:        8px;
  --radius-lg:     14px;

  /* Layout */
  --container:     1180px;
  --container-wide: 1340px;
  --article:       760px;

  /* Typography */
  --font-display:  "Fraunces", Georgia, serif;
  --font-body:     "DM Sans", system-ui, sans-serif;

  /* Transitions */
  --trans-base:    180ms ease;
  --trans-hover:   220ms cubic-bezier(.22,.61,.36,1);
}

/* 02. Reset & Base
   ========================================================================== */

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-base);
}

a:hover {
  color: var(--primary);
}

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

/* 03. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin-top: 0;
}

.hs-eyebrow,
.hs-kicker {
  color: var(--accent);
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hs-kicker:hover {
  color: var(--primary);
}

/* 04. Layout Utilities
   ========================================================================== */

.hs-container {
  max-width: var(--container);
}

.hs-container--wide {
  max-width: var(--container-wide);
}

.hs-section {
  padding: var(--section-gap) 0;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* 05. Header / Nav
   ========================================================================== */

.hs-header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(246, 249, 255, 0.92);
  border-bottom: 1px solid rgba(220, 230, 244, 0.8);
  position: sticky;
  top: 0;
  transition: box-shadow var(--trans-base), background var(--trans-base);
  z-index: 60;
}

.hs-header.is-compact {
  box-shadow: 0 2px 24px rgba(15, 23, 42, 0.06);
}

.hs-header .navbar {
  min-height: 78px;
}

.hs-brand {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 900;
}

.hs-brand:hover {
  color: var(--primary);
}

/* Logo image */
.hs-brand img {
  height: 36px;
  width: auto;
}

.hs-nav {
  align-items: center;
  gap: 0.1rem;
}

.hs-nav a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  transition: color var(--trans-base), background var(--trans-base);
}

.hs-nav a:hover,
.hs-nav a.is-active,
.hs-nav a[aria-current="page"] {
  background: var(--soft-blue);
  color: var(--primary);
}

.hs-nav-cta {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.4rem;
  margin-left: 0.75rem;
  padding: 0.6rem 1rem;
  transition: border-color var(--trans-hover), box-shadow var(--trans-hover), transform var(--trans-hover), background var(--trans-hover);
}

.hs-nav-cta:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.hs-button {
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 700;
  gap: 0.45rem;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  transition: border-color var(--trans-hover), box-shadow var(--trans-hover), transform var(--trans-hover), background var(--trans-hover);
}

.hs-button--solid {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
}

.hs-button--solid:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(36, 75, 143, 0.28);
  color: #fff;
  transform: translateY(-2px);
}

.hs-button--ghost {
  color: var(--text);
}

.hs-button--ghost:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  color: var(--primary);
  transform: translateY(-2px);
}

.hs-toggle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}

/* 06. Hero
   ========================================================================== */

.hs-hero {
  border-bottom: 1px solid var(--line);
  padding: 120px 0 96px;
}

.hs-hero__grid {
  align-items: center;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
}

.hs-hero h1 {
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.96;
  margin: 22px 0 26px;
  max-width: 900px;
}

.hs-hero__copy > p:not(.hs-eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.9;
  max-width: 640px;
}

.hs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Signal card */
.hs-signal-card {
  background: linear-gradient(160deg, #fff 60%, #edf4ff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 460px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.hs-signal-card__line {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  height: 2px;
  left: 28px;
  position: absolute;
  right: 28px;
  top: 28px;
}

.hs-signal-card__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 52px;
}

.hs-signal-card__grid span {
  aspect-ratio: 1;
  background: rgba(36, 75, 143, 0.07);
  border: 1px solid rgba(36, 75, 143, 0.12);
  border-radius: 6px;
  transition: background var(--trans-base);
}

.hs-signal-card:hover .hs-signal-card__grid span:nth-child(odd) {
  background: rgba(36, 75, 143, 0.13);
}

.hs-signal-card__quote {
  bottom: 30px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  left: 28px;
  line-height: 1.22;
  max-width: 300px;
  position: absolute;
}

/* 07. Cards & Grids
   ========================================================================== */

.hs-section-head {
  margin-bottom: 44px;
  max-width: 680px;
}

.hs-section-head h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
  margin-top: 14px;
}

.hs-section-head p {
  color: var(--muted);
  margin-top: 14px;
}

/* Featured grid */
.hs-featured-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.18fr 0.82fr;
}

.hs-featured-grid .hs-card--large {
  grid-row: span 2;
}

/* Card */
.hs-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  overflow: hidden;
  transition: border-color var(--trans-hover), box-shadow var(--trans-hover), transform var(--trans-hover);
}

.hs-card:hover {
  border-color: rgba(36, 75, 143, 0.28);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.09);
  transform: translateY(-4px);
}

.hs-card__media {
  aspect-ratio: 1.55;
  background: var(--soft-blue);
  display: block;
  overflow: hidden;
}

.hs-card--large .hs-card__media {
  aspect-ratio: 1.4;
}

.hs-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
  width: 100%;
}

.hs-card:hover .hs-card__media img {
  transform: scale(1.03);
}

.hs-card__placeholder {
  background:
    linear-gradient(135deg, rgba(36, 75, 143, 0.18), transparent 48%),
    linear-gradient(315deg, rgba(111, 143, 188, 0.22), transparent 44%),
    #eef5ff;
  display: block;
  height: 100%;
}

.hs-card__body {
  padding: 26px 28px 30px;
}

.hs-card__title {
  font-size: 1.5rem;
  line-height: 1.16;
  margin: 12px 0 12px;
}

.hs-card--large .hs-card__title {
  font-size: clamp(2rem, 2.8vw, 3.2rem);
}

.hs-card__title a:hover {
  color: var(--primary);
}

.hs-card__excerpt {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* Meta */
.hs-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 0.35rem 1rem;
  margin-top: 16px;
}

.hs-meta i {
  margin-right: 0.3rem;
}

/* Archive grid */
.hs-archive-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 08. Article
   ========================================================================== */

.hs-archive-head,
.hs-page-head,
.hs-article-head {
  margin-bottom: 52px;
  max-width: var(--article);
}

.hs-archive-head h1,
.hs-page-head h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1;
  margin: 16px 0 20px;
}

.hs-archive-head > p,
.hs-archive-desc {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.9;
}

.hs-article-head {
  padding: 108px 0 50px;
  text-align: left;
}

.hs-article-head h1 {
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.97;
  margin: 20px 0 24px;
}

.hs-article-dek {
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.88;
  max-width: 680px;
}

.hs-article-image {
  border-radius: var(--radius-lg);
  margin-bottom: 64px;
  max-width: 1040px;
  overflow: hidden;
}

.hs-article-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

/* Layout: content + optional sidebar */
.hs-article-layout {
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.hs-article-layout--full {
  grid-template-columns: 1fr;
}

.hs-article-shell,
.hs-page {
  max-width: var(--article);
}

/* Body copy */
.hs-article-content {
  font-size: 1.06rem;
  line-height: 2;
}

.hs-article-content > * {
  margin-bottom: 26px;
}

.hs-article-content h2,
.hs-article-content h3,
.hs-article-content h4 {
  line-height: 1.18;
  margin-top: 52px;
}

.hs-article-content h2 { font-size: 2rem; }
.hs-article-content h3 { font-size: 1.5rem; }
.hs-article-content h4 { font-size: 1.2rem; }

.hs-article-content a {
  border-bottom: 1.5px solid var(--line);
  color: var(--primary);
}

.hs-article-content a:hover {
  border-color: var(--primary);
}

.hs-article-content blockquote {
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 48px 0;
  padding-left: 28px;
}

.hs-article-content pre {
  background: #eef2f7;
  border-radius: var(--radius);
  font-size: 0.88rem;
  overflow-x: auto;
  padding: 22px;
}

.hs-article-content code {
  background: #eef2f7;
  border-radius: 4px;
  font-size: 0.88em;
  padding: 0.15em 0.4em;
}

.hs-article-content pre code {
  background: none;
  padding: 0;
}

.hs-article-content table {
  border: 1px solid var(--line);
  border-collapse: collapse;
  width: 100%;
}

.hs-article-content th,
.hs-article-content td {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
}

.hs-article-content th {
  background: var(--soft-blue);
  font-weight: 700;
}

.hs-article-content img {
  border-radius: var(--radius);
}

/* Tags */
.hs-tags {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 22px;
}

.hs-tag {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  transition: border-color var(--trans-base), color var(--trans-base);
}

.hs-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Author Card */
.hs-author-card {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  margin-top: 60px;
  padding-top: 32px;
}

.hs-author-card__img {
  border-radius: 50%;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.hs-author-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.hs-author-card__bio {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* Breadcrumb */
.hs-breadcrumb {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hs-breadcrumb__link:hover {
  color: var(--primary);
}

.hs-breadcrumb__sep {
  margin: 0 0.3rem;
  opacity: 0.5;
}

.hs-breadcrumb__current {
  color: var(--text);
}

/* 09. Sections
   ========================================================================== */

/* Philosophy */
.hs-philosophy {
  padding: 150px 0;
}

.hs-philosophy p {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 5rem);
  font-weight: 800;
  line-height: 1.06;
  margin: 0;
  max-width: 1040px;
}

/* Focus Grid */
.hs-focus-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hs-focus-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: block;
  padding: 28px;
  transition: border-color var(--trans-hover), box-shadow var(--trans-hover), transform var(--trans-hover);
}

.hs-focus-card:hover {
  border-color: rgba(36, 75, 143, 0.28);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.09);
  transform: translateY(-4px);
}

.hs-focus-card i {
  color: var(--primary);
  font-size: 1.4rem;
}

.hs-focus-card h3 {
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 20px 0 10px;
}

.hs-focus-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
}

/* Notes Grid */
.hs-note-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hs-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px 30px;
  transition: border-color var(--trans-hover), box-shadow var(--trans-hover), transform var(--trans-hover);
}

.hs-note:hover {
  border-color: rgba(36, 75, 143, 0.28);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.09);
  transform: translateY(-4px);
}

.hs-note__title {
  font-size: 1.22rem;
  line-height: 1.2;
  margin: 12px 0 10px;
}

.hs-note__title a:hover {
  color: var(--primary);
}

.hs-note__excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
}

/* Empty state */
.hs-empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  grid-column: 1 / -1;
  padding: 64px 48px;
  text-align: center;
}

.hs-empty__icon {
  color: var(--accent);
  display: block;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hs-empty h2 {
  font-size: 1.8rem;
  margin: 12px 0 12px;
}

.hs-empty p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* 404 */
.hs-404-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* 10. Footer
   ========================================================================== */

.hs-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
}

.hs-footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr auto;
}

.hs-footer__brand {
  color: var(--text);
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 900;
}

.hs-footer__brand:hover {
  color: var(--primary);
}

.hs-footer__tagline {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 14px;
  max-width: 460px;
}

.hs-footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hs-footer-menu a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.hs-footer-menu a:hover {
  color: var(--primary);
}

.hs-social-menu {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.hs-social-menu a {
  align-items: center;
  background: var(--soft-blue);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  height: 36px;
  justify-content: center;
  transition: background var(--trans-base), color var(--trans-base);
  width: 36px;
}

.hs-social-menu a:hover {
  background: var(--primary);
  color: #fff;
}

.hs-footer__bottom {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.84rem;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 22px;
}

.hs-footer__bottom a:hover {
  color: var(--primary);
}

/* 11. Pagination
   ========================================================================== */

.hs-pagination {
  margin-top: 52px;
}

.hs-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hs-pagination .page-numbers {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 600;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  padding: 0 12px;
  transition: border-color var(--trans-base), color var(--trans-base), background var(--trans-base);
}

.hs-pagination .page-numbers:hover,
.hs-pagination .page-numbers.current {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
}

/* 12. Forms & Search
   ========================================================================== */

.search-form {
  display: flex;
  gap: 8px;
}

.search-form label {
  flex: 1;
}

.search-form .search-field {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.72rem 1rem;
  transition: border-color var(--trans-base);
  width: 100%;
}

.search-form .search-field:focus {
  border-color: var(--primary);
  outline: none;
}

.search-form .search-submit {
  background: var(--primary-deep);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.72rem 1.2rem;
  transition: background var(--trans-base);
}

.search-form .search-submit:hover {
  background: var(--primary);
}

/* 13. Utility Classes
   ========================================================================== */

.hs-reveal {
  opacity: 0;
}

/* 14. Animations & Motion
   ========================================================================== */

@keyframes hs-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 15. Responsive
   ========================================================================== */

@media (max-width: 1199px) {
  .hs-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .hs-section {
    padding: var(--section-gap-sm) 0;
  }

  .hs-hero {
    padding: 80px 0 60px;
  }

  .hs-hero__grid,
  .hs-featured-grid,
  .hs-footer__grid {
    grid-template-columns: 1fr;
  }

  .hs-signal-card {
    display: none; /* hide decorative card on mobile */
  }

  .hs-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs-nav-cta {
    display: inline-flex;
    margin: 0.75rem 0 0;
  }

  .hs-article-layout {
    grid-template-columns: 1fr;
  }

  .hs-philosophy {
    padding: 80px 0;
  }
}

@media (max-width: 767px) {
  .hs-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .hs-hero h1,
  .hs-archive-head h1,
  .hs-page-head h1,
  .hs-article-head h1 {
    font-size: 2.6rem;
  }

  .hs-focus-grid,
  .hs-note-grid,
  .hs-archive-grid {
    grid-template-columns: 1fr;
  }

  .hs-footer__bottom,
  .hs-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hs-philosophy p {
    font-size: 1.9rem;
  }

  .hs-featured-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hs-reveal {
    opacity: 1;
  }
}
