:root {
  --ink: #1c1c1e;
  --muted: #8a8a8e;
  --line: #eaeaec;
  --bg: #ffffff;
  --panel: #f4f4f6;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

/* Fit-to-viewport on desktop; free scroll on smaller screens */
@media (min-width: 901px) {
  body {
    height: 100vh;
    overflow-y: auto;
  }
}

/* ---------- Header ---------- */

.top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.wordmark {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.top a.contact-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.top a.contact-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Page shell ---------- */

main {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ---------- Bento grid ---------- */

.bento-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-template-areas:
    "hero hero hero x    li      gh"
    "hero hero hero cb   cb      resume"
    "loc  read watch moments moments moments"
    "places places places moments moments moments";
  gap: 14px;
  padding: 4px 32px 14px;
}

.area-hero    { grid-area: hero; }
.area-x       { grid-area: x; }
.area-li      { grid-area: li; }
.area-gh      { grid-area: gh; }
.area-cb      { grid-area: cb; }
.area-resume  { grid-area: resume; }
.area-loc     { grid-area: loc; }
.area-read    { grid-area: read; }
.area-watch   { grid-area: watch; }
.area-moments { grid-area: moments; }
.area-places  { grid-area: places; }

/* ---------- Hero panel ---------- */

.panel {
  height: 100%;
  width: 100%;
  background: var(--panel);
  border-radius: 24px;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel .kicker {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 600;
  margin: 0;
}

.panel .kicker .muted {
  color: var(--muted);
  font-weight: 400;
}

.panel .kicker .curbside {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.panel hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.build-lead {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
}

.build-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.build-list li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.panel .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: 18px;
}

.panel .cta:hover {
  border-color: var(--ink);
}

/* ---------- Square / rect cards ---------- */

.sq-card {
  position: relative;
  height: 100%;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-height: 0;
}

a.sq-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: #dcdce0;
}

.sq-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.sq-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b7684, #37414d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sq-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.sq-badge svg {
  width: 14px;
  height: 14px;
}

.sq-mid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sq-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.sq-handle {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.sq-cta {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
}

a.sq-card:hover .sq-cta {
  border-color: var(--ink);
}

/* wide card (Curbside) */

.sq-card.watermark {
  background: #fff;
  justify-content: flex-end;
  gap: 6px;
}

.sq-watermark-icon {
  position: absolute;
  right: -10px;
  bottom: -18px;
  width: 110px;
  height: 110px;
  color: #000;
  opacity: 0.06;
  pointer-events: none;
}

/* info-style card (Location, Reading, Watching) */

.sq-card.info {
  background: #fff;
  justify-content: flex-end;
}

.sq-icon-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.sq-icon-badge svg {
  width: 14px;
  height: 14px;
}

/* photo-background variant (e.g. Location) */

.sq-card.info.photo {
  background-color: #dfe3e8;
  background-size: cover;
  background-position: center;
}

.sq-card.info.photo .sq-name,
.sq-card.info.photo .sq-handle {
  color: #fff;
}

.sq-card.info.photo .sq-icon-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

/* ---------- Photo carousels ---------- */

.carousel {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #e9ebee, #d7dbe1);
}

.carousel .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel .slide.active {
  opacity: 1;
}

.carousel .carousel-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}

.carousel .carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.carousel .carousel-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
}

.carousel .carousel-dots button.active {
  background: #fff;
  width: 16px;
  border-radius: 999px;
}

.carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--ink);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel .carousel-arrow.prev {
  left: 12px;
}

.carousel .carousel-arrow.next {
  right: 12px;
}

/* ---------- Footer ---------- */

.footer {
  flex: 0 0 auto;
  text-align: center;
  padding: 4px 0 8px;
  font-size: 11px;
  color: #c4c4c8;
}

/* ---------- Responsive: free-scroll stacked layout ---------- */

@media (max-width: 900px) {
  body {
    height: auto;
  }

  .bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "hero hero"
      "x li"
      "gh resume"
      "cb cb"
      "loc read"
      "watch watch"
      "moments moments"
      "places places";
    padding: 16px 20px 40px;
    gap: 14px;
  }

  .panel {
    height: auto;
    padding: 28px 24px;
  }

  .panel .kicker {
    font-size: 26px;
  }

  .build-lead {
    font-size: 19px;
  }

  .sq-card {
    height: auto;
    aspect-ratio: 1;
  }

  .sq-card.watermark {
    aspect-ratio: auto;
    min-height: 140px;
  }

  .carousel {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .top {
    padding: 20px;
  }
}
