/* css/house-number.css — House Number Numerology (2026-08-01)
   Page-specific styles: math trail, remedy picker, You+Your House combo,
   and the 12-card library. Shares the num-frame system from numerology-tool.css. */

/* ───────── form extras ───────── */

.hn-fields-address { max-width: 560px; margin-left: auto; margin-right: auto; }

.hn-birth-block { margin-top: 2rem; }
.hn-birth-eyebrow { margin-bottom: 0.9rem; color: #6B1F2C; opacity: 1; }

/* ───────── result: math trail + building note ───────── */

.hn-math {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0.4rem 0 1.6rem;
}

.hn-math-line {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.22rem;
  color: #8E6E3A;
  letter-spacing: 0.06em;
}

.hn-building-note {
  max-width: 520px;
  margin: -0.6rem auto 1.6rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(184, 145, 80, 0.4);
  border-radius: 10px;
  background: rgba(250, 246, 233, 0.6);
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #4A3A52;
  text-align: center;
}

.num-result-number-master { color: #6B1F2C; }

/* ───────── shared section rule inside the result ───────── */

.hn-section-rule { margin: 2.8rem auto 1.1rem; text-align: center; }

/* ───────── remedy ───────── */

.hn-remedy { text-align: center; }

.hn-remedy-title,
.hn-combo-title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  color: #6B1F2C;
  margin: 0.35rem 0 0.6rem;
}

.hn-remedy-lead {
  max-width: 540px;
  margin: 0 auto 1.4rem;
  font-family: 'EB Garamond', serif;
  font-size: 1.32rem;
  line-height: 1.65;
  color: #4A3A52;
}

.hn-remedy-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.hn-remedy-num {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 1px solid #4A1620;
  background: #6B1F2C;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.4rem;
  color: #D4AC68;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hn-remedy-num:hover { transform: translateY(-2px); background: #4A1620; color: #F0D89A; box-shadow: 0 4px 12px rgba(74, 22, 32, 0.35); }

.hn-remedy-num.is-active {
  background: linear-gradient(180deg, #F0D89A, #D4AC68);
  color: #4A1620;
  border-color: #8E6E3A;
  box-shadow: 0 4px 14px rgba(142, 110, 58, 0.45);
  transform: scale(1.08);
}

.hn-remedy-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  max-width: 560px;
  margin: 0 auto;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(184, 145, 80, 0.5);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(250, 246, 233, 0.85), rgba(250, 246, 233, 0.55));
  text-align: left;
}

.hn-remedy-circle { flex: 0 0 108px; width: 108px; }
.hn-remedy-circle svg { display: block; width: 100%; height: auto; }

.hn-remedy-text p {
  font-family: 'EB Garamond', serif;
  font-size: 1.32rem;
  line-height: 1.65;
  color: #2D1F38;
  margin: 0 0 0.7rem;
}
.hn-remedy-text p:last-child { margin-bottom: 0; }

.hn-remedy-sum { color: #6B1F2C; font-style: italic; }

.hn-remedy-master-note { font-size: 0.95rem !important; color: #8E6E3A !important; font-style: italic; }

.hn-remedy-note {
  max-width: 520px;
  margin: 1rem auto 0;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.55;
  color: #5A4A62;
}

/* ───────── combo ───────── */

.hn-combo { text-align: center; }

.hn-combo-pair {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.9rem;
  margin: 0.9rem 0 0.5rem;
}

.hn-combo-num {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: #6B1F2C;
  line-height: 1;
}

.hn-combo-amp {
  font-family: 'Italianno', cursive;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  color: #B89150;
}

.hn-combo-verdict {
  display: inline-block;
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.3rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hn-combo-mirror { background: rgba(184, 145, 80, 0.2); color: #8E6E3A; border: 1px solid rgba(142, 110, 58, 0.45); }
.hn-combo-family { background: rgba(31, 73, 55, 0.12); color: #1F4937; border: 1px solid rgba(31, 73, 55, 0.35); }
.hn-combo-growth { background: rgba(107, 31, 44, 0.1); color: #6B1F2C; border: 1px solid rgba(107, 31, 44, 0.3); }

.hn-combo-body {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.hn-combo-body p {
  font-family: 'EB Garamond', serif;
  font-size: 1.32rem;
  line-height: 1.7;
  color: #2D1F38;
  margin: 0 0 0.9rem;
}

.hn-combo-line { color: #4A3A52; }

/* ───────── the library ───────── */

.hn-library {
  max-width: 880px;
  margin: 5rem auto 3rem;
  padding: 0 1rem;
  text-align: center;
}

.hn-library-title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: #6B1F2C;
  margin: 0.4rem 0 0.2rem;
}

.hn-library-script {
  font-family: 'Italianno', cursive;
  font-size: clamp(2rem, 3.8vw, 2.6rem);
  color: #B89150;
  margin-bottom: 2.2rem;
}

.hn-library-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-align: left;
}

.hn-card {
  border: 1px solid rgba(184, 145, 80, 0.45);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(250, 246, 233, 0.9), rgba(250, 243, 220, 0.65));
  padding: 1.6rem 1.8rem;
  scroll-margin-top: 90px;
}

.hn-card-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(184, 145, 80, 0.35);
}

.hn-card-num {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  border: 1.5px solid rgba(142, 110, 58, 0.6);
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2rem;
  color: #6B1F2C;
  background: rgba(250, 246, 233, 0.8);
}

.hn-card-num-master {
  background: #6B1F2C;
  color: #F0D89A;
  border-color: #6B1F2C;
  font-size: 1.5rem;
}

.hn-card-head-text { flex: 1 1 auto; }

.hn-card-title {
  font-family: 'EB Garamond', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  color: #2D1F38;
  margin: 0;
}

.hn-card-title em { color: #6B1F2C; font-weight: 600; }

.hn-card-script {
  font-family: 'Italianno', cursive;
  font-size: 2rem;
  color: #B89150;
  line-height: 1.15;
}

.hn-card-roman {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: rgba(142, 110, 58, 0.65);
}

.hn-card-body p {
  font-family: 'EB Garamond', serif;
  font-size: 1.32rem;
  line-height: 1.72;
  color: #2D1F38;
  margin: 0 0 0.9rem;
}

.hn-twin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.1rem 0;
}

.hn-twin-col h4 {
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 1.32rem;
  color: #8E6E3A;
  margin: 0 0 0.45rem;
}

.hn-twin-col ul { margin: 0; padding-left: 1.1rem; }

.hn-twin-col li {
  font-family: 'EB Garamond', serif;
  font-size: 1.32rem;
  line-height: 1.55;
  color: #4A3A52;
  margin-bottom: 0.3rem;
}

.hn-twin-col li::marker { color: #B89150; }

.hn-door {
  font-style: italic;
  color: #4A3A52 !important;
  border-top: 1px dashed rgba(184, 145, 80, 0.4);
  padding-top: 0.8rem;
  margin-bottom: 0 !important;
}

.hn-door strong { color: #6B1F2C; font-style: normal; }

/* ───────── medallion motion ───────── */

@keyframes hnSmokeRise {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50%      { opacity: 0.8;  transform: translateY(-1.5px); }
}
.hn-smoke { animation: hnSmokeRise 4s ease-in-out infinite; }

@keyframes hnRingTurn {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hn-remedy-ring { transform-origin: 32px 32px; animation: hnRingTurn 28s linear infinite; }

/* ───────── mobile ───────── */

@media (max-width: 640px) {
  .hn-remedy-card { flex-direction: column; text-align: center; gap: 1rem; padding: 1.3rem 1.1rem; }
  .hn-remedy-text { text-align: center; }
  .hn-twin { grid-template-columns: 1fr; gap: 0.9rem; }
  .hn-card { padding: 1.3rem 1.15rem; }
  .hn-card-head { gap: 0.8rem; }
  .hn-card-roman { display: none; }
  .hn-combo-body { text-align: center; }
}

/* Result-state injected write-up matches the new body size */
#hnResultMeaning { font-size: 1.32rem; }

/* ───────── round 2 (Michael punch list) ───────── */

/* form readability: placeholders, helper text, the 'optional' tag */
#hnStreetNum::placeholder,
#hnUnit::placeholder { color: #5A4A62; opacity: 1; }

.yn-page .num-name-helper {
  font-size: 1.25rem;
  line-height: 1.65;
  color: #3A2A44;
}

#hnForm .num-optional {
  color: #6B1F2C;
  font-weight: 700;
  opacity: 1;
}

/* editorial section matches the 1.32rem site paragraph size */
.num-editorial p {
  font-size: 1.32rem;
  line-height: 1.72;
}

/* ── hero medallion life ── */

/* left: hearth glow breathes, plaque + knob shimmer, smoke rises */
@keyframes hnHouseGlow {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.34; }
}
.hn-house-glow { animation: hnHouseGlow 5s ease-in-out infinite; }

@keyframes hnPlaqueShine {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}
.hn-plaque { animation: hnPlaqueShine 3.2s ease-in-out infinite; }
.hn-door-knob { animation: hnPlaqueShine 3.2s ease-in-out infinite 1.6s; }

@keyframes hnSmokeDrift {
  0%   { opacity: 0; transform: translateY(1.5px); }
  35%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-4px); }
}
.hn-smoke { animation: hnSmokeDrift 3.6s ease-in-out infinite; }

/* right: the circled 3 breathes while its chalk ring turns */
@keyframes hnDigitPulse {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.14); opacity: 1; }
}
.hn-circle-digit {
  transform-box: fill-box;
  transform-origin: center;
  animation: hnDigitPulse 3.4s ease-in-out infinite;
}

/* ───────── round 3 ───────── */

/* form sits a touch closer to the hero */
#hnFrame { margin-top: 1.8rem; }

/* combo lines: the subject phrases in wine */
.hn-combo-line strong { color: #6B1F2C; }

/* recalc: bigger invitation, gold-pill button (BROWSE THE JOURNAL twin) */
.yn-page .num-recalc-eyebrow {
  font-size: 1.15rem;
  color: #6B1F2C;
  margin-bottom: 0.8rem;
}

.yn-page .num-recalc-btn {
  font-family: 'EB Garamond', serif;
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.85rem 2.6rem;
  border-radius: 999px;
  border: 1px solid #8E6E3A;
  background: linear-gradient(180deg, #F0D89A, #D4AC68);
  color: #4A1620;
  box-shadow: 0 4px 14px rgba(142, 110, 58, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.yn-page .num-recalc-btn:hover {
  background: linear-gradient(180deg, #F0D89A, #D4AC68);
  color: #4A1620;
  border-color: #8E6E3A;
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(142, 110, 58, 0.45);
}

/* ───────── round 4 ───────── */

/* "Discover your House Number" much larger */
#hnFrame .num-prompt { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
