/*
Theme Name: Warmli Migration
Author: Warmli
Description: Lightweight migration theme for Warmli's Squarespace-to-WordPress move.
Version: 0.4.0
*/

:root {
  --ink: #202d36;
  --muted: #5f6e76;
  --cream: #fbf8f2;
  --paper: #ffffff;
  --sage: #dce8df;
  --accent: #cf634f;
  --accent-dark: #a94938;
  --line: #e6e1d8;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}
a { color: var(--accent-dark); text-underline-offset: .18em; }
img, video, iframe { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,248,242,.95);
  border-bottom: 1px solid rgba(32,45,54,.09);
  backdrop-filter: blur(12px);
}
.header-inner, .footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand img { display: block; width: 132px; max-height: 54px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a { color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; }
.primary-nav a:hover { color: var(--accent-dark); }
.button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  color: #fff !important;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(169,73,56,.18);
}
.button:hover, .wp-block-button__link:hover { background: var(--accent-dark); }

.site-main { min-height: 65vh; }
.content-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 70px 0 100px;
}
.page-title, .entry-title {
  max-width: 900px;
  margin: 0 auto 36px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.entry-content { width: 100%; }
.entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content > .wp-block-cover,
.entry-content > .wp-block-group.alignfull,
.entry-content > .alignfull,
.entry-content > .sqs-layout,
.entry-content > section,
.entry-content > article.sections { max-width: var(--max); }
.entry-content .page-section {
  position: relative;
  overflow: hidden;
  margin: 0 0 30px;
  border-radius: 24px;
}
.entry-content .page-section > .section-border,
.entry-content .page-section > .section-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.entry-content .section-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.entry-content .page-section > .content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(36px, 6vw, 84px);
}
.entry-content .fluid-engine { width: 100%; }
.entry-content .sqs-block-content > :first-child { margin-top: 0; }
.entry-content .sqs-block-content > :last-child { margin-bottom: 0; }
.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.entry-content h1 { font-size: clamp(44px, 6vw, 76px); }
.entry-content h2 { margin-top: 2.1em; font-size: clamp(32px, 4.2vw, 54px); }
.entry-content h3 { margin-top: 1.8em; font-size: clamp(25px, 3vw, 36px); }
.entry-content p { margin-top: 1.15em; margin-bottom: 1.15em; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content img { border-radius: 18px; }
.entry-content blockquote {
  margin-top: 2.5em;
  margin-bottom: 2.5em;
  padding: 30px 36px;
  background: var(--sage);
  border-left: 5px solid var(--accent);
  border-radius: 0 18px 18px 0;
}

.post-meta { max-width: 820px; margin: -18px auto 34px; color: var(--muted); font-size: 14px; }
.site-footer { background: var(--ink); color: #edf0ec; }
.footer-inner { padding: 64px 0 38px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: #fff; font-family: Georgia, "Times New Roman", serif; }
.site-footer a { color: #edf0ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: grid; gap: 9px; }
.copyright { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); color: #bfc8c4; font-size: 13px; }

@media (max-width: 780px) {
  body { font-size: 17px; }
  .header-inner { min-height: 68px; }
  .primary-nav a:not(.button) { display: none; }
  .content-shell { padding-top: 46px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
body.home .site-header { position: absolute; left: 0; right: 0; background: rgba(10,10,8,.2); border: 0; backdrop-filter: none; }
body.home .primary-nav a:not(.button) { color: #ef5738; }

/* Features page */
.feature-hero { position: relative; min-height: 720px; display: flex; align-items: center; overflow: hidden; color: #fff; background: #101514; }
.feature-hero video, .feature-hero .feature-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,12,10,.62), rgba(5,12,10,.12)); }
.feature-hero .hero-inner { position: relative; z-index: 2; }
.feature-hero h1 { max-width: 680px; margin: 0; font-size: clamp(54px, 6vw, 86px); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
.feature-hero p { margin: 26px 0 0; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.1; }
.feature-rows { display: grid; gap: 82px; margin-top: 60px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.feature-row:nth-child(even) .feature-visual { order: 2; }
.feature-row h3 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
.feature-visual { min-height: 380px; display: grid; place-items: center; padding: 30px; background: #f5f1e9; border-radius: 28px; }
.feature-visual img { max-height: 500px; filter: drop-shadow(0 20px 36px rgba(32,45,54,.2)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 42px; counter-reset: step; }
.step { padding: 34px; color: #fff; background: var(--ink); border-radius: 20px; counter-increment: step; }
.step::before { content: "0" counter(step); display: block; margin-bottom: 28px; color: #ef5738; font-size: 18px; font-weight: 900; }
.step h3 { margin: 0 0 10px; }
@media (max-width: 780px) { .feature-row, .steps { grid-template-columns: 1fr; } .feature-row:nth-child(even) .feature-visual { order: initial; } .feature-hero { min-height: 650px; } }

/* Shared interior-page system */
.interior-hero { padding: 150px 24px 110px; color: #fff; background: radial-gradient(circle at 80% 10%, #536962, transparent 40%), var(--ink); }
.interior-hero .section-inner { position: relative; }
.interior-hero .eyebrow { color: #f36a4d; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.interior-hero h1 { max-width: 980px; margin: 12px 0 20px; font-size: clamp(52px, 7vw, 92px); line-height: .98; letter-spacing: -.05em; }
.interior-hero p { max-width: 760px; margin: 0; color: #dce4e0; font-size: 22px; }
.interior-content { width: min(calc(100% - 44px), 980px); margin: 0 auto; padding: 90px 0 120px; }
.interior-content > :first-child { margin-top: 0; }
.interior-content h2 { margin: 2em 0 .6em; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -.04em; }
.interior-content h3 { margin: 1.8em 0 .5em; font-size: clamp(25px, 3vw, 36px); }
.interior-content img { display: block; width: auto; max-width: 100%; max-height: 700px; margin: 42px auto; border-radius: 24px; box-shadow: 0 20px 60px rgba(32,45,54,.16); }
.interior-content .sqs-block-button-container, .interior-content .button-block { margin: 30px 0; }
.interior-content a[href*="app.warmli.chat"] { display: inline-flex; padding: 13px 24px; color: #fff; background: #ef5738; border-radius: 999px; font-weight: 750; text-decoration: none; }
.interior-content blockquote { margin: 42px 0; padding: 30px 36px; background: var(--sage); border-left: 5px solid #ef5738; border-radius: 0 18px 18px 0; }
.legal-content { font-size: 16px; line-height: 1.75; }
.legal-content h2 { font-size: 34px; }
.gift-hero { background: linear-gradient(120deg, rgba(22,31,29,.92), rgba(22,31,29,.55)), url('https://images.squarespace-cdn.com/content/v1/687b0e8718a4c307c1487e15/836880b4-68c0-4a71-90ac-f6670933ac27/AdobeStock_1577766268.jpeg?format=2500w') center/cover; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.blog-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.blog-card h2 { margin: 0 0 12px; font-size: 30px; }
.blog-card h2 a { color: var(--ink); text-decoration: none; }
.blog-card .post-meta { margin: 0 0 14px; }
@media (max-width: 780px) { .interior-hero { padding-top: 120px; } .blog-grid { grid-template-columns: 1fr; } }

/* Purpose-built homepage */
.warmli-home { background: #fff; }
.warmli-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  color: #fff;
  background-position: center;
  background-size: cover;
  isolation: isolate;
  overflow: hidden;
}
.warmli-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,12,8,.76) 0%, rgba(15,12,8,.42) 52%, rgba(15,12,8,.08) 100%); }
.warmli-hero::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -65px; height: 110px; background: #fff; border-top: 7px solid #ef5738; border-radius: 50% 50% 0 0 / 55% 55% 0 0; }
.hero-inner { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 100px 0 120px; }
.hero-copy { max-width: 760px; }
.hero-copy h1 { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(48px, 5.7vw, 82px); font-weight: 800; line-height: .99; letter-spacing: -.045em; }
.hero-copy .lede { max-width: 730px; margin: 34px 0 28px; color: #f05b3d; font-size: clamp(28px, 3.3vw, 47px); line-height: 1.08; letter-spacing: -.035em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-actions .button { min-width: 218px; border-radius: 5px; background: #ef5738; box-shadow: none; }
.home-section { padding: 100px 24px; }
.home-section.alt { background: #f6f2ea; }
.section-inner { width: min(100%, var(--max)); margin: 0 auto; }
.section-kicker { margin: 0 0 12px; color: #ef5738; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-section h2 { max-width: 900px; margin: 0 0 32px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.intro-copy { max-width: 900px; font-size: 21px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 50px; }
.feature-card { padding: 34px; background: #fff; border: 1px solid #e7e0d6; border-radius: 20px; box-shadow: 0 16px 45px rgba(32,45,54,.07); }
.feature-card h3 { margin: 0 0 10px; font-size: 25px; }
.showcase { display: grid; grid-template-columns: .75fr 1.25fr; gap: 34px; align-items: end; margin-top: 55px; }
.showcase img { width: 100%; max-height: 640px; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(32,45,54,.2)); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.plan { padding: 32px; border: 1px solid #e3ded4; border-radius: 20px; background: #fff; }
.plan.featured { color: #fff; background: var(--ink); transform: translateY(-10px); }
.plan h3 { margin-top: 0; font-size: 27px; }
.closing-cta { text-align: center; color: #fff; background: var(--ink); }
.closing-cta h2 { margin-left: auto; margin-right: auto; }
.closing-cta .button { background: #ef5738; }
@media (max-width: 780px) {
  .brand img { width: 104px; }
  .warmli-hero { min-height: 690px; background-position: 62% center; }
  .warmli-hero::before { background: rgba(15,12,8,.58); }
  .hero-inner { padding-top: 80px; }
  .feature-grid, .plans { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .home-section { padding: 72px 22px; }
}
