/* ============================================
   Henry Park Systems — Homepage v2 (editorial)
   Paste into: Appearance > Customize > Additional CSS
   All selectors scoped under .hps-page / .hps- prefix.
   ============================================ */

.hps-page {
  --hps-bg: #0E0E10;
  --hps-surface: #151518;
  --hps-text: #F4F4F5;
  --hps-muted: #9A9A9E;
  --hps-line: #2A2A2E;
  --hps-blue: #2F6BFF;
  --hps-blue-hover: #2458D8;
  --hps-white: #FFFFFF;

  background: var(--hps-bg);
  color: var(--hps-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  padding: 0 20px;
}

/* Inner column */
.hps-page > section,
.hps-page > footer {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.hps-page h1,
.hps-page h2,
.hps-page h3 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--hps-text);
}

.hps-page p {
  margin: 0 0 1em;
}

/* ---------- Labels & links ---------- */
.hps-eyebrow,
.hps-label {
  color: var(--hps-blue);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
}

.hps-link {
  color: var(--hps-text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--hps-line);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hps-link:hover {
  color: var(--hps-blue);
  border-bottom-color: var(--hps-blue);
}

.hps-link-primary {
  color: var(--hps-blue);
  border-bottom-color: var(--hps-blue);
}

.hps-link-primary:hover {
  color: var(--hps-blue-hover);
  border-bottom-color: var(--hps-blue-hover);
}

/* ---------- 1. Hero ---------- */
.hps-hero {
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--hps-line);
}

.hps-hero-title {
  font-size: 2.75rem;
  max-width: 700px;
  margin-bottom: 24px;
}

.hps-hero-sub {
  color: var(--hps-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 36px;
}

.hps-hero-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.hps-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--hps-line);
}

.hps-section-title {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

/* ---------- 2. Latest writing ---------- */
.hps-writing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hps-writing-card {
  background: var(--hps-surface);
  border: 1px solid var(--hps-line);
  border-radius: 6px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.15s ease;
}

.hps-writing-card:hover {
  border-color: var(--hps-blue);
}

.hps-writing-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.hps-writing-desc {
  color: var(--hps-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ---------- 3. Core themes ---------- */
.hps-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hps-theme-card {
  background: var(--hps-surface);
  border: 1px solid var(--hps-line);
  border-left: 2px solid var(--hps-blue);
  border-radius: 6px;
  padding: 24px 22px;
}

.hps-theme-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.hps-theme-card p {
  color: var(--hps-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- 4. Field note ---------- */
.hps-fieldnote-title {
  font-size: 1.5rem;
}

.hps-fieldnote-text {
  color: var(--hps-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 28px;
}

/* ---------- 5. Work with me ---------- */
.hps-work-text {
  color: var(--hps-muted);
  max-width: 600px;
  margin-bottom: 24px;
}

/* ---------- 6. Closing ---------- */
.hps-closing {
  padding: 56px 0 72px;
  text-align: left;
}

.hps-closing-name {
  color: var(--hps-text);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.hps-closing-line {
  color: var(--hps-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
  .hps-hero {
    padding: 88px 0 72px;
  }

  .hps-hero-title {
    font-size: 2.2rem;
  }

  .hps-section {
    padding: 64px 0;
  }

  .hps-theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: ≤ 600px */
@media (max-width: 600px) {
  .hps-hero {
    padding: 64px 0 56px;
  }

  .hps-hero-title {
    font-size: 1.75rem;
  }

  .hps-hero-sub {
    font-size: 1rem;
  }

  .hps-hero-links {
    flex-direction: column;
    gap: 16px;
  }

  .hps-section {
    padding: 52px 0;
  }

  .hps-section-title {
    font-size: 1.3rem;
    margin-bottom: 28px;
  }

  .hps-writing-grid,
  .hps-theme-grid {
    grid-template-columns: 1fr;
  }

  .hps-writing-card {
    padding: 26px 22px;
  }

  .hps-fieldnote-title {
    font-size: 1.3rem;
  }
}

/* ============================================
   OPTIONAL — hide the WordPress page title on the
   homepage only if your theme prints a large "Home"
   heading above the custom HTML.
   ============================================ */
/*
body.home .entry-title,
body.home .page-title {
  display: none;
}
*/

/* HPS homepage full-bleed fix */
body.home {
  background: #0E0E10;
}

body.home .hps-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Hide default WordPress header/footer on homepage only */
body.home header,
body.home footer,
body.home .wp-site-blocks > header,
body.home .wp-site-blocks > footer {
  display: none !important;
}

body.home {
  overflow-x: hidden;
}