/* =============================================================
   Zeus Rodriguez — Home (single-column rebuild)
   Layers on top of restoration/assets/style.css + home-restoration.css.
   Removes the two-column sidebar layout: one centered column, a large
   framed hero portrait, and the former sidebar facts as an in-content panel.
   ============================================================= */

main#main { padding-top: 3rem; }
@media (max-width: 900px) { main#main { padding-top: 2rem; } }

/* ---------- Single-column wrapper (all content in the main column) ---------- */
.home-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
@media (max-width: 700px) { .home-wrap { padding: 0 1.25rem 3rem; } }

/* ---------- Framed profile portrait — floats right so the bio text wraps ---------- */
.profile-float {
  float: right;
  width: 46%;
  max-width: 360px;
  margin: 0.4rem 0 1.5rem 2.25rem;
  shape-outside: margin-box;
  padding: 9px 9px 11px;
  background: var(--frame-matte);
  border: 9px solid var(--frame-wood);
  border-image: linear-gradient(135deg, var(--frame-wood-light) 0%, var(--frame-wood) 25%, #1a0f06 50%, var(--frame-wood) 75%, var(--frame-wood-light) 100%) 1;
  box-shadow:
    inset 0 0 0 1px var(--frame-gold),
    0 16px 28px rgba(10, 10, 10, 0.30),
    0 28px 48px rgba(10, 10, 10, 0.16);
}
.profile-float img { width: 100%; height: auto; display: block; }
.profile-float figcaption {
  font-family: var(--serif-sc);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 0.7rem;
  line-height: 1.4;
}
/* Collapse to a centered block once the column is no longer wide enough to read
   comfortably beside the float (matches the .home-wrap max-width). */
@media (max-width: 820px) {
  .profile-float {
    float: none;
    width: 72%;
    max-width: 360px;
    margin: 0 auto 1.75rem;
    shape-outside: none;
  }
}

/* Tagline (lede) tucked directly under the floated portrait, in the same right column */
.bio-article .profile-float + .lede {
  float: right;
  clear: right;
  width: 46%;
  max-width: 360px;
  margin: 0 0 1.75rem;
  padding: 0.9rem 0;
  font-size: 1.12rem;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .bio-article .profile-float + .lede {
    float: none;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    padding: 1.1rem 0;
  }
}

/* Clearfix — the bio column contains its own float, independent of sibling clears */
.bio-article .body::after { content: ''; display: block; clear: both; }

/* ---------- At-a-glance / interests facts panel (was the sidebar) ---------- */
.facts-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  clear: both;
  margin: 2.25rem 0 1rem;
  padding: 1.75rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  box-shadow: 0 1px 3px rgba(26, 47, 75, 0.05), 0 10px 24px rgba(26, 47, 75, 0.07);
}
.facts-heading {
  font-family: var(--serif-sc);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 600;
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gold-pale);
}
.facts-list { list-style: none; padding: 0; margin: 0; }
.facts-list li {
  font-family: var(--serif-body);
  font-size: 1.02rem;
  line-height: 1.45;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
}
.facts-list li:last-child { border-bottom: none; }
@media (max-width: 640px) {
  .facts-panel { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
}

/* ---------- Call-to-action button (Read The Restoration) ---------- */
.cta-wrap { text-align: center; margin: 2.25rem 0 0.5rem; clear: both; }
.cta-button,
.cta-button:link,
.cta-button:visited,
.cta-button:active {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.85rem;
  background: var(--navy);
  color: #FBF6EC !important;
  font-family: var(--serif-sc);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--navy);
  border-radius: 2px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(26, 47, 75, 0.16);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #FBF6EC !important;
  transform: translateY(-1px);
}

/* ---------- Connect row (X / Facebook) in the Contact section ---------- */
.connect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0 0 2.5rem;
}
.connect-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--bg-cream);
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--navy);
  font-family: var(--serif-sc);
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.connect-row a:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.connect-row a svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  display: block;
}
