/* Hawaii: A Love Story — series-scoped styles
 * Used on /hawaii-a-love-story/ hub + /part-one through /part-four
 * Scoped under .article-content + .hg-ls-* prefix to avoid bleed
 * px font sizing per CLAUDE.md (html font-size:62.5% in base CSS makes 1rem = 10px)
 */

/* Override site-wide .article-content h2/h3/p color rules.
 * The base stylesheet (04-08-25-v1.css line 41) sets:
 *   .article-content h2 { color:#3A7BD5; }   (blue — fights the warm series palette)
 *   .article-content h3 { color:#6B8563; }   (muted green)
 * And line 39 also sets:
 *   .article-content p  { color:#222; }      (dark — bad on dark hero overlays)
 * Specificity (0,1,1). We use (0,2,0)+ below to win cleanly without !important.
 */

/* Section headings inside the body / TOC / CTA — dark editorial gray */
.article-content .hg-ls-toc-wrap h2,
.article-content .hg-ls-toc-wrap .h2,
.article-content .hg-ls-cta-wrap h3,
.article-content .hg-ls-cta-wrap .h3,
.article-content .hg-ls-body h3,
.article-content .hg-ls-body .h3,
.article-content .hg-ls-card-title {
  color: #222;
  font-weight: 700;
}

/* Hero overlay — h2 title + p subtitle MUST stay light against the dark
 * gradient. Without this scoped override, the title goes blue (from the
 * global h2 rule) and the subtitle goes near-black (from the global p
 * rule), both invisible against the photo+gradient backdrop.
 */
.article-content .hg-ls-part-hero-title {
  color: #fff;
}

.article-content .hg-ls-part-hero-sub {
  color: #f5f5f5;
}

/* TOC card description — design intent is muted gray, not the global dark */
.article-content .hg-ls-card-desc {
  color: #555;
}

.article-content .hg-ls-toc-wrap h2,
.article-content .hg-ls-toc-wrap .h2 {
  font-size: 30px;
  line-height: 1.2;
}

.article-content .hg-ls-body h3,
.article-content .hg-ls-body .h3 {
  font-size: 26px;
  line-height: 1.25;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content .hg-ls-cta-wrap h3,
.article-content .hg-ls-cta-wrap .h3 {
  font-size: 26px;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .article-content .hg-ls-toc-wrap h2,
  .article-content .hg-ls-toc-wrap .h2 {
    font-size: 26px;
  }
  .article-content .hg-ls-body h3,
  .article-content .hg-ls-body .h3,
  .article-content .hg-ls-cta-wrap h3,
  .article-content .hg-ls-cta-wrap .h3 {
    font-size: 22px;
  }
}

/* Tagline under H1 */
.hg-ls-tagline {
  font-size: 19px;
  font-style: italic;
  color: #555;
  margin: 8px 0 0;
  font-weight: 400;
}

/* TOC heading subhead */
.hg-ls-toc-sub {
  font-size: 17px;
  color: #666;
  margin-top: -4px;
}

/* Inline circular founder photos on /love-of-hawaii. */
.hg-loh-profile-photo {
  border: none;
  border-radius: 50%;
  display: block;
  height: auto;
  object-fit: cover;
}

.hg-loh-profile-photo--john {
  float: left;
  height: 240px;
  margin: 8px 32px 14px 0;
  width: 240px;
}

.hg-loh-profile-photo--couple {
  float: right;
  height: 300px;
  margin: 8px 0 18px 36px;
  width: 300px;
}

@media (max-width: 640px) {
  .hg-loh-profile-photo--john,
  .hg-loh-profile-photo--couple {
    float: none;
    margin: 8px auto 18px;
  }

  .hg-loh-profile-photo--john {
    height: 150px;
    width: 150px;
  }

  .hg-loh-profile-photo--couple {
    height: 180px;
    width: 180px;
  }
}

/* TOC card grid */
.hg-ls-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 20px 0 40px;
}

.hg-ls-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.hg-ls-card:hover,
.hg-ls-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
  text-decoration: none;
  color: inherit;
}

.hg-ls-card-img-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 60%;
  background: #eee;
}

.hg-ls-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hg-ls-card-body {
  padding: 18px 20px 22px;
}

.hg-ls-card-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #c3232f;
  margin-bottom: 6px;
}

.hg-ls-card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
  color: #222;
}

.hg-ls-card-desc {
  font-size: 17px;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

/* Part-page hero */
.hg-ls-part-hero {
  position: relative;
  margin: 0 -10px 24px;
  border-radius: 16px;
  overflow: hidden;
  padding-top: 42%;
  background: #222;
}

.hg-ls-part-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hg-ls-part-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 30px;
}

.hg-ls-part-hero-num {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(195, 35, 47, 0.92);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.hg-ls-part-hero-title {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Pulsing heart on hub heroes — sits over the open sky/ocean side of
 * the founder photo. Soft, slow pulse. Disabled for users with
 * reduced-motion preferences.
 */
.hg-loh-hero-heart {
  position: absolute;
  top: 24px;
  left: 28px;
  font-size: 40px;
  color: #c3232f;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
  animation: hg-loh-heart-pulse 1.8s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
  line-height: 1;
}

@keyframes hg-loh-heart-pulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.16); opacity: 1; }
}

@media (max-width: 640px) {
  .hg-loh-hero-heart {
    font-size: 28px;
    top: 16px;
    left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-loh-hero-heart {
    animation: none;
  }
}

/* Pulsing heart on the FULL-BLEED photo hero (campaign hub).
 * Different positioning context than .hg-loh-hero-heart — that one is
 * anchored inside a card hero (.hg-ls-hub-hero, border-radius'd box).
 * This one floats over the giant edge-to-edge photo hero behind the
 * nav. Top-right corner so it sits opposite the bottom-left
 * "For the Love of Hawaii" headline carried by .single-slide-full-text.
 * Larger size at desktop because the hero itself is huge (clamp up to
 * 85vh on desktop per master CSS .single-slide-top rules).
 */
.hg-loh-fullbleed-heart {
  position: absolute;
  top: 110px;            /* clears the transparent nav */
  right: 6%;
  font-size: 52px;
  color: #c3232f;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.55));
  animation: hg-loh-heart-pulse 1.8s ease-in-out infinite;
  z-index: 100;          /* above .single-slide-full-text (z:99) */
  pointer-events: none;
  line-height: 1;
}

@media (max-width: 1024px) {
  .hg-loh-fullbleed-heart {
    top: 80px;
    right: 6%;
    font-size: 38px;
  }
}

@media (max-width: 640px) {
  .hg-loh-fullbleed-heart {
    top: 64px;
    right: 5%;
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-loh-fullbleed-heart {
    animation: none;
  }
}

/* Hub hero — bigger, more cinematic than part heroes. Used only on
 * /hawaii-a-love-story (the series landing page). Carries the H1 +
 * tagline overlaid on a wide founder photo.
 */
.hg-ls-hub-hero {
  position: relative;
  margin: 0 -10px 32px;
  border-radius: 16px;
  overflow: hidden;
  padding-top: 48%;
  background: #222;
}

.hg-ls-hub-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hg-ls-hub-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.72) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 38px;
}

/* H1 inside the hub hero — must beat .article-content h1 globals.
 * Bumped to (0,3,1) by prefixing with .article-content.
 */
.article-content .hg-ls-hub-hero-title {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  margin: 0;
  line-height: 1.08;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  letter-spacing: -0.5px;
}

.article-content .hg-ls-hub-hero-sub {
  font-size: 19px;
  color: #f5f5f5;
  margin: 12px 0 0;
  font-style: italic;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  max-width: 640px;
}

@media (max-width: 768px) {
  .hg-ls-hub-hero {
    padding-top: 70%;
  }
  .hg-ls-hub-hero-overlay {
    padding: 22px 22px;
  }
  .article-content .hg-ls-hub-hero-title {
    font-size: 32px;
  }
  .article-content .hg-ls-hub-hero-sub {
    font-size: 16px;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .article-content .hg-ls-hub-hero-title {
    font-size: 26px;
  }
}

/* Campaign-hub modifier (for /love-of-hawaii). Bumps the aspect ratio
 * so the Kalalau Trail John+Tori portrait-leaning photo gets enough
 * vertical breathing room to feel cinematic — the cornerstone vista
 * (/hawaii-a-love-story) already does at the default 48% because it's
 * a wide landscape, so it stays at the default. The pulsing heart is
 * anchored to top:24px / left:28px so it scales naturally with the
 * taller box — no positioning change needed.
 */
.hg-loh-hub-hero {
  padding-top: 60%;
}

@media (max-width: 768px) {
  .hg-loh-hub-hero {
    padding-top: 78%;
  }
}

.hg-ls-part-hero-sub {
  font-size: 17px;
  color: #f5f5f5;
  margin: 8px 0 0;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Body prose — slightly more generous than default for long-form readability */
.hg-ls-body p {
  font-size: 19px;
  line-height: 1.65;
  margin: 0 0 18px;
  color: #2a2a2a;
}

.hg-ls-body p:first-of-type::first-letter {
  font-size: 56px;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin: 4px 10px 0 0;
  color: #c3232f;
}

.hg-ls-body em {
  font-style: italic;
  color: #444;
}

.hg-ls-body .hg-ls-pullquote {
  font-size: 24px;
  line-height: 1.4;
  font-style: italic;
  color: #c3232f;
  border-left: 4px solid #c3232f;
  padding: 10px 0 10px 22px;
  margin: 28px 0;
  font-weight: 500;
}

/* Brand illustration dividers — for the painterly /aloha-hawaii/ asset
 * library (Hearts of Aloha visual register). Smaller than inline photos,
 * centered, with feathered/transparent edges so they float in prose
 * without rectangular framing. Used as mood-setters between sections in
 * Love series essays.
 */
.hg-loh-illustration {
  display: block;
  max-width: 520px;
  margin: 40px auto 32px;
  text-align: center;
}

.hg-loh-illustration img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.10));
}

@media (max-width: 640px) {
  .hg-loh-illustration {
    max-width: 90%;
    margin: 28px auto 24px;
  }
}

/* Inline image breaks within parts */
.hg-ls-inline-img {
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
}

.hg-ls-inline-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.hg-ls-inline-img-caption {
  font-size: 15px;
  color: #777;
  text-align: center;
  margin: 8px 0 0;
  font-style: italic;
}

/* Part nav (prev / next) */
.hg-ls-part-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 36px 0 20px;
  padding: 24px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.hg-ls-part-nav-item {
  flex: 1 1 240px;
  display: block;
  padding: 16px 18px;
  background: #f7f7f7;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.hg-ls-part-nav-item:hover,
.hg-ls-part-nav-item:focus {
  background: #efefef;
  text-decoration: none;
  color: inherit;
}

.hg-ls-part-nav-item.hg-ls-part-nav-next {
  text-align: right;
}

.hg-ls-part-nav-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 4px;
}

.hg-ls-part-nav-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #c3232f;
  line-height: 1.3;
}

/* Closing CTA on hub + parts */
.hg-ls-cta-wrap {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 30px 0 20px;
  border: 1px solid #f4e4d2;
}

.hg-ls-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hg-ls-cta-btn {
  display: inline-block;
  padding: 12px 22px;
  background: #fff;
  color: #c3232f;
  border: 2px solid #c3232f;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.15s ease;
}

.hg-ls-cta-btn:hover,
.hg-ls-cta-btn:focus {
  background: #c3232f;
  color: #fff;
  text-decoration: none;
}

.hg-ls-cta-btn.hg-ls-cta-primary {
  background: #c3232f;
  color: #fff;
}

.hg-ls-cta-btn.hg-ls-cta-primary:hover,
.hg-ls-cta-btn.hg-ls-cta-primary:focus {
  background: #a01a25;
  border-color: #a01a25;
  color: #fff;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .hg-ls-part-hero {
    padding-top: 56%;
  }
  .hg-ls-part-hero-overlay {
    padding: 18px 20px;
  }
  .hg-ls-part-hero-title {
    font-size: 26px;
  }
  .hg-ls-part-hero-sub {
    font-size: 15px;
  }
  .hg-ls-body p {
    font-size: 18px;
  }
  .hg-ls-body p:first-of-type::first-letter {
    font-size: 46px;
  }
  .hg-ls-card-title {
    font-size: 22px;
  }
  .hg-ls-cta-wrap {
    padding: 24px 18px;
  }
}

/* Print */
@media print {
  .hg-ls-cta-wrap,
  .hg-ls-part-nav,
  .hg-ls-toc {
    display: none;
  }
  .hg-ls-part-hero {
    page-break-after: avoid;
  }
}

/* ============================================================================
   FOR THE LOVE OF HAWAII — Email opt-in card
   Sits below Companion Pieces on /love-of-hawaii. Captures readers who
   connected with the voice. Scoped under .hg-loh-optin* so site-wide
   form rules can't reach in.

   Form-control reset is mandatory (per CLAUDE.md "Form Controls — RESET
   site-wide" rule). The main input[type='text'] global rule from
   04-08-25-v1.css has specificity (0,1,2); we hit (0,2,1) on every
   targeted input by prefixing with .hg-loh-optin so we win cleanly.
   ============================================================================ */

/* SCOPED RESET — defeats the master CSS form rules at (0,1,2) */
.hg-loh-optin input[type='email'],
.hg-loh-optin input[type='text'] {
  height: auto;
  margin: 0;
  background: #fff;
  background-color: #fff;
  border: 2px solid #e0d6c8;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 17px;
  font-family: inherit;
  color: #222;
  line-height: 1.4;
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hg-loh-optin input[type='email']:focus {
  outline: none;
  border-color: #c3232f;
  box-shadow: 0 0 0 3px rgba(195, 35, 47, 0.15);
}

/* Card container */
.hg-loh-optin {
  position: relative;
  background: linear-gradient(180deg, #fffaf3 0%, #fff5e8 100%);
  border: 1px solid #ead9c1;
  border-left: 4px solid #c3232f;
  border-radius: 16px;
  padding: 36px 36px 30px;
  margin: 32px 0;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hg-loh-optin-heart {
  display: inline-block;
  font-size: 32px;
  color: #c3232f;
  margin-bottom: 8px;
  animation: hg-loh-heart-pulse 1.8s ease-in-out infinite;
  line-height: 1;
}

.article-content .hg-loh-optin-title,
.hg-loh-optin-title {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin: 0 0 10px;
  line-height: 1.2;
}

.hg-loh-optin-sub {
  font-size: 17px;
  color: #555;
  line-height: 1.55;
  margin: 0 auto 22px;
  max-width: 560px;
}

/* Form */
.hg-loh-optin-form {
  max-width: 520px;
  margin: 0 auto;
}

.hg-loh-optin-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hg-loh-optin-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.hg-loh-optin-row > input[type='email'] {
  flex: 1 1 auto;
  min-width: 0;
}

.hg-loh-optin-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c3232f;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  font-family: inherit;
  white-space: nowrap;
}

.hg-loh-optin-submit:hover:not(:disabled),
.hg-loh-optin-submit:focus:not(:disabled) {
  background: #a01a25;
  transform: translateY(-1px);
}

.hg-loh-optin-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.hg-loh-optin-submit i {
  font-size: 13px;
}

/* Status message */
.hg-loh-optin-msg {
  font-size: 15px;
  margin: 14px 0 0;
  min-height: 1.4em;
  line-height: 1.4;
}

.hg-loh-optin-msg-success {
  color: #1a7a44;
  font-weight: 600;
}

.hg-loh-optin-msg-error {
  color: #c3232f;
  font-weight: 600;
}

/* Fine print under the form */
.hg-loh-optin-fineprint {
  font-size: 13px;
  color: #777;
  margin: 14px 0 0;
  line-height: 1.45;
}

.hg-loh-optin-fineprint a {
  color: #555;
  text-decoration: underline;
}

/* Mobile — stack input + button */
@media (max-width: 560px) {
  .hg-loh-optin {
    padding: 28px 22px 24px;
  }
  .article-content .hg-loh-optin-title,
  .hg-loh-optin-title {
    font-size: 22px;
  }
  .hg-loh-optin-sub {
    font-size: 16px;
  }
  .hg-loh-optin-row {
    flex-direction: column;
    gap: 12px;
  }
  .hg-loh-optin-submit {
    width: 100%;
    justify-content: center;
  }
}

/* Print — hide the opt-in entirely */
@media print {
  .hg-loh-optin {
    display: none;
  }
}
