/* ===== HRG — Hinsdale Research Group ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --navy:    #0c1c2e;
  --navy-mid:#142338;
  --navy-lt: #1e3352;
  --gold:    #c8a96e;
  --gold-lt: #dfc090;
  --slate:   #8a9bb0;
  --ink:     #1a2535;
  --body-bg: #f7f5f1;
  --paper:   #fdfcfa;
  --rule:    #d6d0c7;
  --text:    #2c3a4a;
  --text-lt: #5a6a7a;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-brand img { display: block; flex-shrink: 0; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

nav a:hover, nav a.active {
  color: #fff;
  background: var(--navy-lt);
}

nav a.active {
  color: var(--gold);
}

/* ===== MAIN ===== */
main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 48px 80px;
}

/* ===== PAGE HERO ===== */
.page-hero {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 52px;
  padding-bottom: 40px;
}

.page-hero .label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-lt);
  max-width: 640px;
  line-height: 1.8;
}

/* ===== HOME HERO ===== */
.home-hero {
  background: var(--navy);
  margin: -64px -48px 64px;
  padding: 80px 48px 72px;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(200,169,110,0.06) 47px,
      rgba(200,169,110,0.06) 48px
    );
  pointer-events: none;
}

.home-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.home-hero .label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.home-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  max-width: 720px;
  margin-bottom: 24px;
}

.home-hero h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

.home-hero p {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  line-height: 1.85;
}

/* ===== DOMAIN GRID ===== */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 60px;
}

.domain-card {
  background: var(--paper);
  padding: 32px 28px;
  transition: background 0.2s;
}

.domain-card:hover { background: var(--navy); }
.domain-card:hover .domain-icon { color: var(--gold); }
.domain-card:hover .domain-title { color: #fff; }
.domain-card:hover .domain-desc { color: rgba(255,255,255,0.55); }

.domain-icon {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
  transition: color 0.2s;
}

.domain-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.2s;
}

.domain-desc {
  font-size: 0.9rem;
  color: var(--text-lt);
  line-height: 1.65;
  transition: color 0.2s;
}

/* ===== SECTION HEADINGS ===== */
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
  margin-top: 48px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

h2:first-child { margin-top: 0; }

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  margin-top: 32px;
}

p {
  margin-bottom: 1.4em;
  font-size: 1rem;
  color: var(--text);
}

p:last-child { margin-bottom: 0; }

/* ===== CARDS ===== */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-left-color: var(--navy);
  box-shadow: 0 4px 20px rgba(12,28,46,0.07);
}

.card strong {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
}

.card p, .card > *:not(strong):not(a) {
  font-size: 0.95rem;
  color: var(--text-lt);
  margin-bottom: 12px;
}

/* ===== PUBLICATION CARD ===== */
.pub-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px 32px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  transition: box-shadow 0.2s;
}

.pub-card:hover {
  box-shadow: 0 4px 20px rgba(12,28,46,0.07);
}

.pub-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  padding-top: 3px;
  white-space: nowrap;
}

.pub-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.pub-meta {
  font-size: 0.85rem;
  color: var(--text-lt);
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 7px 16px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--navy);
  color: #fff;
}

.btn-gold {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ===== METHOD LIST ===== */
.method-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 1.4em;
}

.method-list li {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 20px 22px;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding-left: 36px;
}

.method-list li::before {
  content: '—';
  position: absolute;
  left: 16px;
  color: var(--gold);
  font-family: 'DM Mono', monospace;
}

ul:not(.method-list) {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}

ul:not(.method-list) li {
  margin-bottom: 0.5em;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 8px;
}

@media (max-width: 680px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ===== CONTACT ===== */
.contact-block {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: 40px;
  max-width: 480px;
}

.contact-block .label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-bottom: 8px;
  display: block;
}

.contact-block a {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 0.2s;
}

.contact-block a:hover { color: var(--gold); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-lt);
  padding: 36px 48px;
  color: var(--slate);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left .footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}

.footer-left .footer-tagline {
  font-size: 0.8rem;
  color: var(--slate);
}

.footer-right {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200,169,110,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header { padding: 0 24px; }
  main { padding: 48px 24px 64px; }
  .home-hero { margin: -48px -24px 48px; padding: 60px 24px 56px; }
  footer { padding: 28px 24px; }
  .header-inner { flex-wrap: wrap; }
  nav { gap: 2px; }
  nav a { padding: 5px 8px; font-size: 0.65rem; }
  .pub-card { grid-template-columns: 1fr; gap: 8px; }
  .pub-number { padding-top: 0; }
}
