:root{
  --bg: #fbf7f2;
  --ink: #1f2326;
  --muted: #3a3f44;
  --hair: rgba(0,0,0,.12);
  --max: 1160px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a{ color: inherit; }
.container{
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
}

/* --- Home (full-bleed hero background image) --- */
.home{
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
}

/* warm overlay vignette like the PDF */
.home::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 800px at 25% 35%,
      rgba(255, 240, 225, .55) 0%,
      rgba(255, 240, 225, .20) 45%,
      rgba(255, 240, 225, 0) 70%),
    linear-gradient(90deg,
      rgba(251,247,242,1) 0%,
      rgba(251,247,242,.96) 42%,
      rgba(251,247,242,.65) 62%,
      rgba(251,247,242,0) 82%);
  pointer-events:none;
  z-index:1;
}

/* subtle “warmth” veil on the right edge */
.home::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(900px 700px at 85% 40%,
    rgba(222, 171, 120, .22) 0%,
    rgba(222, 171, 120, .10) 40%,
    rgba(222, 171, 120, 0) 68%);
  pointer-events:none;
  z-index:1;
}

/* Background image: cropped off the right edge */
.hero-bg{
  position:absolute;
  top: 50%;
  right: -8%;
  width: min(900px, 62vw);
  height: min(720px, 62vw);
  transform: translateY(-50%);
  background-image: url("hero.svg");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  opacity: .95;
  pointer-events:none;
  z-index:0;
}

.home-content{
  position: relative;
  z-index: 2;
  padding: 56px 0;
}

.home h1{
  margin: 0 0 22px;
  font-size: clamp(54px, 6.4vw, 86px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home .subtitle{
  font-size: clamp(18px, 2.1vw, 26px);
  color: var(--muted);
  letter-spacing: .06em;
  max-width: 42ch;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 18px 34px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 14px;
  min-width: 260px;
  background: transparent;
}
.btn:focus{ outline: 3px solid rgba(0,0,0,.18); outline-offset: 4px; }

/* --- Page title style like PDF --- */
.page-title{
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 300;
  letter-spacing: .02em;
  margin: 48px 0 26px;
  color: var(--muted);
}

/* --- Two-column layout for support pages --- */
.two-col{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 78px;
  align-items: start;
  padding: 0 0 80px;
}

.media-rect{
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eadfce;
  overflow: hidden;
}
.media-rect img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.lede{
  font-size: 22px;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: .04em;
}

.stack > * + *{ margin-top: 30px; }

.hr-line{
  height: 2px;
  background: rgba(0,0,0,.10);
  margin-top: 18px;
  width: min(520px, 70%);
}

.h2{
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
}

.email-line{
  margin-top: 22px;
  font-size: 24px;
  letter-spacing: .02em;
  color: var(--muted);
}

/* Simple footer links (not in mockup, but helpful) */
.footer{
  padding: 22px 0 42px;
  color: rgba(0,0,0,.45);
  font-size: 14px;
}
.footer a{ color: rgba(0,0,0,.45); }

/* --- Responsive --- */
@media (max-width: 980px){
  .container{ width: min(var(--max), calc(100% - 40px)); }
  .two-col{ grid-template-columns: 1fr; gap: 36px; }
  .hero-bg{
    right: -35%;
    width: 120vw;
    height: 120vw;
    opacity: .45;
  }
  .home::before{
    background:
      radial-gradient(900px 600px at 25% 20%,
        rgba(255, 240, 225, .55) 0%,
        rgba(255, 240, 225, .18) 45%,
        rgba(255, 240, 225, 0) 70%),
      linear-gradient(180deg,
        rgba(251,247,242,1) 0%,
        rgba(251,247,242,.92) 55%,
        rgba(251,247,242,0) 90%);
  }
}

/* --- Minimal footer (v1 style) --- */
.site-footer{
  margin-top: 80px;
  padding: 18px 0 36px;
  border-top: 1px solid rgba(0,0,0,.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: rgba(0,0,0,.55);
}
.site-footer a{
  text-decoration: underline;
  color: rgba(0,0,0,.55);
}


/* --- Support & Privacy: 2-column title + content aligned to top --- */
.support-grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  padding: 34px 0 40px;
}
.support-title{
  margin: 48px 0 0;
}
.support-title .page-title{
  margin: 0 0 18px;
}
.support-content{
  padding-top: 54px; /* aligns with title baseline visually */
}
@media (max-width: 980px){
  .support-grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .support-content{ padding-top: 0; }
}


/* --- Warm background wrapper (reuse home background on interior pages) --- */
.warm-bg{
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
}
.warm-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 800px at 25% 35%,
      rgba(255, 240, 225, .55) 0%,
      rgba(255, 240, 225, .20) 45%,
      rgba(255, 240, 225, 0) 70%),
    linear-gradient(90deg,
      rgba(251,247,242,1) 0%,
      rgba(251,247,242,.96) 42%,
      rgba(251,247,242,.65) 62%,
      rgba(251,247,242,0) 82%);
  pointer-events:none;
  z-index:0;
}
.warm-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(900px 700px at 85% 40%,
    rgba(222, 171, 120, .22) 0%,
    rgba(222, 171, 120, .10) 40%,
    rgba(222, 171, 120, 0) 68%);
  pointer-events:none;
  z-index:0;
}
.warm-bg > .container{
  position: relative;
  z-index: 1;
}


/* --- Hearth Circle image calm crop --- */
.hearth-image{
  object-position: left center; /* shift focus away from flame center */
}
@media (max-width: 980px){
  .hearth-image{
    object-position: center center;
  }
}


/* --- Hearth Circle: noticeable calm crop + warmth overlay + vignette --- */
.hearth-media{
  position: relative;
  overflow: hidden;
}
.hearth-media img.hearth-image{
  transform: scale(1.10);
  object-position: 18% 55%; /* stronger shift left + slightly down */
}

/* warm tint + vignette to match site warmth */
.hearth-media::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(120% 110% at 20% 55%,
      rgba(255, 236, 216, .22) 0%,
      rgba(255, 236, 216, .10) 35%,
      rgba(255, 236, 216, 0) 65%),
    radial-gradient(120% 110% at 50% 50%,
      rgba(0,0,0,0) 55%,
      rgba(0,0,0,.10) 78%,
      rgba(0,0,0,.16) 100%);
  mix-blend-mode: multiply;
  opacity: .9;
}

@media (max-width: 980px){
  .hearth-media img.hearth-image{
    transform: scale(1.04);
    object-position: 40% 50%;
  }
  .hearth-media::after{
    opacity: .65;
  }
}

/* =========================
   Mobile tuning (phones)
   ========================= */
@media (max-width: 600px){

  /* Reduce side padding */
  .container{
    width: calc(100% - 32px); /* 16px per side */
  }

  /* Calm the headline */
  .home h1{
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: 0.08em; /* less spacing on mobile */
  }

  /* Subtitle spacing */
  .home .subtitle{
    font-size: 16px;
    line-height: 1.5;
    margin-top: 14px;
  }

  /* Button should feel native on mobile */
  .btn{
    width: 100%;
    min-width: 0;
    padding: 16px 0;
    font-size: 13px;
  }

  /* Give the hero more vertical breathing room */
  .home-content{
    padding-top: 48px;
    padding-bottom: 72px;
  }

  /* Push background image further out on mobile */
  .hero-bg{
    right: -70%;
    width: 160vw;
    height: 160vw;
    opacity: 0.35;
  }

  /* Footer spacing */
  .site-footer{
    margin-top: 48px;
  }
}
/* =========================
   Support page mobile fixes
   ========================= */
@media (max-width: 600px){

  /* Make support title feel intentional on phone */
  .page-title{
    font-size: 40px;
    line-height: 1.08;
  }

  /* Tone down headings a bit */
  .h2{
    font-size: 26px;
  }

  /* Reduce paragraph size so it doesn’t feel huge */
  .lede{
    font-size: 18px;
    line-height: 1.55;
  }

  /* Email line should not blow out the layout */
  .email-line{
    font-size: 18px;
  }
}

/* Critical: allow long strings (like emails) to wrap on mobile */
.email-line a{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Footer: allow wrapping so links don’t get cut off */
.site-footer{
  flex-wrap: wrap;
  gap: 10px 18px;
}
.site-footer > div:last-child{
  text-align: right;
}

/* =========================
   iPhone 14 tuning (390px)
   ========================= */
@media (max-width: 420px){

  /* Keep side padding comfortable */
  .container{
    width: calc(100% - 32px); /* 16px per side */
  }

  /* Support page title: big, but not overwhelming */
  .page-title{
    font-size: 38px;
    line-height: 1.06;
  }

  /* Headings and body copy on support page */
  .h2{
    font-size: 24px;
  }

  .lede{
    font-size: 17px;
    line-height: 1.55;
  }

  .email-line{
    font-size: 17px;
  }
}

/* Critical: prevent long email link overflow on iPhone */
.email-line a{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Footer: allow wrapping so right-side links don’t clip */
.site-footer{
  flex-wrap: wrap;
  gap: 10px 18px;
}
.site-footer > div:last-child{
  text-align: right;
}
