/* Piano Tuning KC — self-hosted rebuild
   Fonts: Marcellus (headings/logo), PT Serif (body/nav/buttons)
   Palette pulled from live Squarespace site. */

:root {
  --cream:        #ece4da;  /* page background */
  --cream-light:  #f6f3ec;  /* lighter section band (measured) */
  --tile:         #ece4da;  /* service tile background (same as body cream) */
  --ink:          #36302a;  /* body text + dark buttons */
  --on-dark:      #f6f3ec;  /* text on dark buttons / hero title */
  --maxw:         1500px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "PT Serif", Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, .logo, .display {
  font-family: "Marcellus", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 60px;
}
.logo {
  font-size: 27px;
  text-decoration: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav a {
  text-decoration: none;
  font-size: 16px;
}
.nav a:hover { opacity: 0.65; }

/* ---------- Pill buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--on-dark);
  text-decoration: none;
  border-radius: 300px;
  padding: 32px 48px;
  font-size: 16px;
  font-family: "PT Serif", Georgia, serif;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; }
.btn-nav { padding: 32px 48px; }

/* ---------- Hero 1 (inset image w/ overlay title) ---------- */
.hero1 {
  padding: 148px 60px 76px;
}
.hero1-inner {
  position: relative;
  height: 25.7vw;
  min-height: 340px;
  overflow: hidden;
}
.hero1-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Cream fade over the image — measured 30% on the live site */
.hero1-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  opacity: 0.3;
}
.hero1-text {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}
.hero1-text h1 {
  color: var(--on-dark);
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  margin: 0;
}
.hero1-text .byline {
  color: var(--ink);
  font-family: "Marcellus", "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.28vw, 2.75rem);
  margin: 0;
}

/* ---------- Hero 2 (full-bleed portrait + Phone button) ---------- */
.hero2 {
  position: relative;
  width: 100%;
  aspect-ratio: 1897 / 822;
  min-height: 480px;
  overflow: hidden;
}
.hero2 img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* Cream fade — measured 9% on the live site */
.hero2::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  opacity: 0.09;
}
.hero2 .btn {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  min-width: 282px;
  text-align: center;
  box-sizing: border-box;
}

/* ---------- Services ---------- */
.services {
  background: var(--cream-light);
  padding: 56px 60px;
}
.services-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tile {
  background: var(--tile);
  aspect-ratio: 863 / 1172;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 40px;
}
.tile-icon {
  width: 80%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-icon img { width: 100%; height: auto; }

.tile .btn { font-size: clamp(10px, 0.6vw, 12px); }

/* ---------- Bio ---------- */
.bio {
  padding: 60px 60px 90px;
}
.bio h2 {
  font-size: clamp(3.5rem, 19.8vw, 380px);
  margin: 0 0 50px;
  line-height: 1;
  white-space: nowrap;
}
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 843fr) minmax(0, 648fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.bio-photos { display: flex; flex-direction: column; gap: 24px; }
.bio-text p { margin: 0 0 1.4em; }
.bio-text p:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 80px 20px 120px;
}
.site-footer .logo { display: block; font-size: 29.7px; margin-bottom: 18px; }
.site-footer p { margin: 4px 0; }
.site-footer a { text-decoration: none; }

/* ---------- Interior pages ---------- */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 150px 40px 80px;
}
.page-wide { max-width: var(--maxw); }

/* Appointments embed */
.scheduler-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

/* Blog listing */
.post-list { display: flex; flex-direction: column; gap: 70px; }
.post-card h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 8px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { opacity: 0.7; }
.post-meta { font-size: 0.85rem; opacity: 0.7; margin: 0 0 14px; }
.post-cats { font-size: 0.85rem; opacity: 0.7; }
.post-cats span { margin-right: 10px; }
.read-more { display: inline-block; margin-top: 10px; text-decoration: underline; }

/* Blog article */
.article h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 10px; line-height: 1.1; }
.article .post-meta { margin-bottom: 40px; }
.article h2, .article h3 { font-size: 1.6rem; margin: 1.8em 0 0.5em; }
.article p { margin: 0 0 1.3em; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 0.6em; }
.article .tags {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(54,48,42,0.15);
  font-size: 0.82rem;
  opacity: 0.65;
  line-height: 2;
}
.article .tags span { margin-right: 14px; white-space: nowrap; }
.back-to-blog { display: inline-block; margin-bottom: 30px; text-decoration: none; opacity: 0.7; }
.back-to-blog:hover { opacity: 1; }

/* About Jake — videos + badges */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 90px;
}
.video-grid .vid {
  position: relative;
  aspect-ratio: 16 / 9;
}
.video-grid iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* An odd video count: center the last one across both columns */
.video-grid .vid:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc(50% - 5px);
  margin: 0 auto;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 30px 0 60px;
}
.badges a { display: block; }
.badges img { height: 140px; width: auto; object-fit: contain; }

@media (max-width: 800px) {
  .page { padding: 120px 24px 60px; }
  .video-grid { grid-template-columns: 1fr; }
  .badges img { height: 90px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .btn { padding: 20px 32px; }
  .btn-nav { padding: 16px 28px; }
  .bio h2 { white-space: normal; }
  .site-header { padding: 20px 24px; flex-wrap: wrap; gap: 12px; }
  .nav { gap: 20px; flex-wrap: wrap; }
  .hero1 { padding: 120px 24px 24px; }
  .services { padding: 40px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .bio { padding: 40px 24px 60px; }
  .bio-grid { grid-template-columns: 1fr; gap: 30px; }
}
