/* The canopy, columns and sill are separate crops of the approved illustration. */
body.theme-glasshouse {
  --bg: #eeeee1;
  --card-bg: #faf7e9;
  --text-primary: #293822;
  --text-secondary: #4a5541;
  --accent: #3e5330;
  --border-light: #a6ae87;
  --header-bg: #f3f2e5;
  --glass-arch: clamp(87px, 12vw, 150px);
}
.theme-glasshouse .creator-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: clamp(145px, 18vw, 240px);
  padding: 18px;
  border: 1px solid #7b8860;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, transparent 14%, #f8f6e3d9 36% 64%, transparent 86%),
        none right center / 52% 100% no-repeat, #737e63;
}
.theme-glasshouse .creator-masthead-copy { justify-self: center; background: #faf7e8eb; border: 4px double #849268; border-radius: 48% 48% 12% 12% / 38% 38% 16% 16%; padding: 16px clamp(22px, 5vw, 70px); }
.theme-glasshouse .creator-masthead-copy::before,
.theme-glasshouse .creator-masthead-copy::after,
.theme-glasshouse .creator-profile::after,
.theme-glasshouse .creator-notes::after,
.theme-glasshouse :is(.creator-window,.creator-feature,.creator-entry-number,.creator-project-number,.creator-role,.creator-now,.creator-profile-stat,.creator-more-link) { display: none; }
.theme-glasshouse .creator-masthead h1 { color: #293822; }
.theme-glasshouse .creator-layout {
  grid-template-columns: minmax(145px, 1fr) minmax(0, 2.85fr) minmax(150px, 1fr);
  grid-template-areas: "profile projects notes" "profile projects updates";
  grid-template-rows: auto 1fr;
  align-items: start;
}
.theme-glasshouse :is(.creator-main-column,.creator-side-column) { display: contents; }
.theme-glasshouse :is(.creator-profile,.creator-notes,.creator-updates) {
  padding: 32px 14px 15px;
  border: 4px double #879363;
  border-radius: 4px 4px 9px 9px;
  background: url("glasshouse/lace.webp") center top / 100% 28px no-repeat, var(--card-bg);
  box-shadow: 0 3px 9px #515d3420;
  filter: none;
}
.theme-glasshouse .creator-profile { grid-area: profile; }
.theme-glasshouse .creator-monogram { background: url("glasshouse/portrait.webp") center / cover; border: 4px double #a0aa7e; aspect-ratio: 0.85; border-radius: 50%; }
.theme-glasshouse .creator-notes { grid-area: notes; padding-bottom: 64px; background: url("glasshouse/flowers.webp") right bottom / auto 55px no-repeat, url("glasshouse/lace.webp") center top / 100% 28px no-repeat, var(--card-bg); }
.theme-glasshouse .creator-updates { grid-area: updates; }
.theme-glasshouse .creator-projects {
  grid-area: projects;
  position: relative;
  isolation: isolate;
  padding: calc(var(--glass-arch) * 0.79) clamp(24px, 5vw, 69px) 64px;
  background: var(--card-bg);
  filter: none;
}
.theme-glasshouse .creator-projects::before {
  display: block;
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  border: 0;
  background:     url("glasshouse/base.webp") center bottom / 100% 58px no-repeat,
    url("glasshouse/rail.webp") left top / clamp(17px, 6.6%, 49px) 71px repeat-y,
    url("glasshouse/rail.webp") right top / clamp(17px, 6.6%, 49px) 71px repeat-y;
}
.theme-glasshouse .creator-projects .creator-section-heading { justify-content: center; margin-bottom: 16px; }
.theme-glasshouse .creator-projects .creator-section-heading h2 { font-size: clamp(22px, 3vw, 42px); background: var(--card-bg); padding: 0 12px; }
.theme-glasshouse :is(.creator-section-heading h2,.creator-profile h2,.creator-notes h2) { color: var(--accent); }
.theme-glasshouse .creator-project-entry {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(10px, 1.8vw, 22px) 0;
  background: transparent;
  border-bottom: 1px dotted #879363;
}
.theme-glasshouse .creator-project-copy { grid-column: 1; }
.theme-glasshouse .creator-project-copy strong { font-size: clamp(16px, 1.9vw, 27px); }
.theme-glasshouse :is(.creator-project-copy small,.creator-project-count) { font-size: 12px; }
.theme-glasshouse .creator-project-count { grid-column: 2; margin: 0; border: 1px solid #abb38a; padding: 2px 6px; border-radius: 10px; white-space: nowrap; }
.theme-glasshouse .creator-recent-item { background: transparent; filter: none; border-bottom: 1px dotted var(--border-light); }
.theme-glasshouse .creator-entry-link { grid-template-columns: minmax(0,1fr); padding: 7px 0; }
.theme-glasshouse .creator-entry-meta { grid-column: 1; grid-row: 2; justify-items: start; }
@media (max-width: 820px) {
  .theme-glasshouse .creator-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "profile" "projects" "notes" "updates"; grid-template-rows: auto; }
  .theme-glasshouse .creator-profile { padding-top: 28px; }
  .theme-glasshouse .creator-monogram { width: 64px; }
  .theme-glasshouse .creator-projects #creatorProjectList { display: grid; }
  .theme-glasshouse .creator-project-entry :is(small,.creator-project-count) { display: block; }
  .theme-glasshouse .creator-project-count { font-size: 9px; }
}

/* Size the original ornaments by the panel width and keep the live text above them. */
.glasshouse-masthead-nav { display: none; }
.theme-glasshouse .creator-masthead {
  position: relative;
  min-height: 0;
  aspect-ratio: 1174 / 235;
  grid-template-rows: 1fr auto;
  padding: 0;
  border: 0;
  border-radius: 9px 9px 0 0;
  background: url("glasshouse/header.webp") center top / 100% 84% no-repeat, #eae9d6;
}
.theme-glasshouse .creator-masthead-copy {
  align-self: center;
  transform: translate(2%, 7%);
  padding: 0;
  background: none;
  border: 0;
  filter: none;
}
.theme-glasshouse .creator-masthead h1 { font-size: clamp(28px, 5vw, 69px); letter-spacing: .08em; }
.theme-glasshouse .creator-masthead-copy :is(.creator-wordmark, #creatorTagline) { display: none; }
.theme-glasshouse .glasshouse-masthead-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  width: min(92%, 690px);
  justify-self: center;
  margin: 0 0 5px;
  padding: 1px 12px;
  border: 3px double #899266;
  border-radius: 32px 32px 13px 13px;
  background: #faf7e7;
  box-shadow: 0 2px 5px #45542d30;
}
.glasshouse-masthead-nav > :is(a,button) {
  text-align: center;
  text-decoration: none;
  padding: 6px 2px;
  background: transparent;
  color: inherit;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.glasshouse-masthead-nav > :is(a,button) + * { border-inline-start: 1px solid #c6c9a8; }
.glasshouse-masthead-nav > :is(a,button):hover { background: #e5e9d4; }
body.theme-glasshouse:has(.creator-homepage:not([hidden])) #header .creator-header-nav button:is([data-creator-scroll],[data-celestial="home"],[data-celestial="about"]) { display: none; }
#glasshouseNotes { scroll-margin-top: 85px; }

.theme-glasshouse .creator-projects {
  container-type: inline-size;
  padding: 0;
  background: #f7f4e7;
}
.theme-glasshouse .creator-projects::before {
  inset: 0;
  background: url("glasshouse/arch-full.webp") center top / 100% auto no-repeat,
    url("glasshouse/base.webp") center bottom / 100% auto no-repeat,
    url("glasshouse/rail.webp") left top / 7.54% auto repeat-y,
    url("glasshouse/rail-right.webp") right top / 7.54% auto repeat-y;
}
.theme-glasshouse .creator-projects .creator-section-heading {
  padding: 21cqw 0 0;
  margin: 0 10% 13px;
}
.theme-glasshouse .creator-projects .creator-section-heading h2 { background: none; }
.theme-glasshouse .creator-projects #creatorProjectList {
  padding: 0 0 9cqw;
  margin: 0 11%;
}
.theme-glasshouse .creator-project-entry {
  position: relative;
  gap: 6px 12px;
  padding-inline: 8px;
}
.theme-glasshouse .creator-project-entry::before,
.theme-glasshouse .creator-project-entry::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 16px;
  height: 10px;
  background: url("glasshouse/divider.webp") center / contain no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.theme-glasshouse .creator-project-entry::before { left: -5px; }
.theme-glasshouse .creator-project-entry::after { right: -5px; transform: scaleX(-1); }
.theme-glasshouse .creator-project-count {
  border: 0;
  border-radius: 0;
  background: #dfe4cc;
  color: #3d5131;
  padding-inline: 9px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
}
.theme-glasshouse :is(.creator-profile,.creator-notes,.creator-updates)::before {
  display: block;
  inset: 0;
  border: 0;
  pointer-events: none;
  background: url("glasshouse/corner.webp") left bottom / 17px auto no-repeat,
    url("glasshouse/corner.webp") right bottom / 17px auto no-repeat;
  mix-blend-mode: multiply;
}
.theme-glasshouse .creator-profile {
  padding-bottom: 104px;
  background: url("glasshouse/lace.webp") center top / 100% 28px no-repeat,
    url("glasshouse/author-bottom.webp") center bottom / 100% auto no-repeat, var(--card-bg);
}
.theme-glasshouse :is(.creator-notes, .creator-updates) h2 { text-align: center; }
@media (max-width: 820px) {
  .theme-glasshouse .creator-projects::before {
    background-image: url("glasshouse/arch-mobile.webp"), url("glasshouse/base.webp"), url("glasshouse/rail.webp"), url("glasshouse/rail-right.webp");
  }
  .theme-glasshouse .creator-projects .creator-section-heading { padding-top: 11cqw; margin-bottom: 9px; }
  .theme-glasshouse .creator-projects #creatorProjectList { margin-inline: 9%; }
  .theme-glasshouse .creator-profile { padding-bottom: 13px; background: url("glasshouse/lace-mobile.webp") center top / 100% 18px no-repeat, var(--card-bg); }
}

/* Keep the portrait's engraved frame and ribbon together as one ornament. */
.theme-glasshouse .creator-monogram {
  width: min(100%, 183px);
  height: auto;
  aspect-ratio: 183 / 271;
  border: 0;
  border-radius: 0;
  background: url("glasshouse/portrait-transparent.webp") center / contain no-repeat;
  mix-blend-mode: multiply;
}
.theme-glasshouse .creator-profile-rule { margin-top: 8px; }
.theme-glasshouse .creator-projects::before {
  background: url("glasshouse/arch-full.webp") center top / 100% auto no-repeat,
    url("glasshouse/base.webp") center bottom / 100% auto no-repeat,
    url("glasshouse/post-left.webp") left top 47.3846cqw / 8.7692% auto repeat-y,
    url("glasshouse/post-right.webp") right top 47.3846cqw / 8.7692% auto repeat-y;
}
@media (max-width: 820px) {
  .theme-glasshouse .creator-monogram { width: 64px; }
  .theme-glasshouse .creator-projects::before {
    background-image: url("glasshouse/arch-mobile.webp"), url("glasshouse/base.webp"), url("glasshouse/post-left.webp"), url("glasshouse/post-right.webp");
    background-position: center top, center bottom, left top 25cqw, right top 25cqw;
    background-size: 100% auto, 100% auto, 5.8% auto, 5.8% auto;
  }
}

/* Keep the title over the cartouche independently of the navigation height. */
@media (max-width: 820px) {
  .theme-glasshouse .creator-masthead {
    aspect-ratio: 330 / 162;
    background-image: url("glasshouse/header-compact-hd.webp");
    background-size: 100% 85%;
  }
  .theme-glasshouse .creator-masthead-copy {
    position: absolute;
    top: 46%;
    left: 58%;
    transform: translate(-50%, -50%);
  }
  .theme-glasshouse .creator-masthead h1 {
    font-size: clamp(21px, 7vw, 50px);
    white-space: nowrap;
  }
  .theme-glasshouse .glasshouse-masthead-nav { grid-row: 2; }
}

/* Blend the paper in the engraved borders with the live panel surface. */
.theme-glasshouse :is(.creator-profile,.creator-notes,.creator-updates)::before { display: none; }
.theme-glasshouse :is(.creator-profile,.creator-notes,.creator-updates) {
  background: linear-gradient(to bottom, transparent 10px, var(--card-bg) 28px) center top / 100% 28px no-repeat,
              url("glasshouse/lace.webp") center top / 100% 28px no-repeat,
              var(--card-bg);
  background-blend-mode: normal, multiply, normal;
}
.theme-glasshouse :is(.creator-profile,.creator-notes)::after {
  content: '';
  display: block;
  position: absolute;
  inset: auto 0 0;
  height: var(--glasshouse-tail-height);
  background: var(--glasshouse-tail-art);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to top, #000 48%, transparent 100%);
  border: 0;
  pointer-events: none;
}
.theme-glasshouse .creator-profile {
  position: relative;
  --glasshouse-tail-height: clamp(65px, 8vw, 120px);
  --glasshouse-tail-art: url("glasshouse/author-bottom.webp") center bottom / 100% auto no-repeat;
  padding-bottom: calc(var(--glasshouse-tail-height) + 8px);
}
.theme-glasshouse .creator-notes {
  position: relative;
  --glasshouse-tail-height: 60px;
  --glasshouse-tail-art: url("glasshouse/flowers.webp") right bottom / auto 100% no-repeat;
  padding-bottom: 65px;
}
.theme-glasshouse .creator-notes::after {
  mask-image: linear-gradient(to top, #000 55%, transparent),
              linear-gradient(to left, #000 56%, transparent);
  mask-composite: intersect;
}
.theme-glasshouse .creator-masthead-copy {
  position: absolute;
  top: 58%; left: 52%; transform: translate(-50%, -50%);
}
.theme-glasshouse .creator-masthead h1 {
  font-size: clamp(17px, 3vw, 46px);
  line-height: 1.1;
  letter-spacing: .12em;
  color: #405238;
  text-shadow: 0 1px #fff9e6;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .theme-glasshouse .creator-masthead-copy { top: 56%; left: 58%; }
  .theme-glasshouse .creator-masthead h1 { font-size: clamp(16px, 5vw, 32px); }
  .theme-glasshouse .creator-profile { padding-bottom: 13px; }
  .theme-glasshouse .creator-profile::after { display: none; }
}

/* The cartouche belongs to the artwork. Navigation follows it in normal flow. */
.creator-title-scene { display: contents; }
.theme-glasshouse .creator-masthead {
  display: block;
  aspect-ratio: auto;
  background: none;
}
.theme-glasshouse .creator-title-scene {
  display: block;
  position: relative;
  aspect-ratio: 1174 / 197;
  border-radius: 9px 9px 0 0;
  background: #eae9d6 url("glasshouse/header.webp") center / 100% 100% no-repeat;
}
.theme-glasshouse .creator-masthead-copy {
  top: 66%;
  left: 54%;
}
.theme-glasshouse .creator-masthead h1 {
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(17px, 2.6vw, 40px);
  font-weight: 600;
  margin: 0;
}
.theme-glasshouse .glasshouse-masthead-nav {
  width: min(88%, 45rem);
  margin: clamp(12px, 1.5vw, 24px) auto clamp(16px, 2vw, 30px);
  border-radius: 12px;
}
@media (max-width: 820px) {
  .theme-glasshouse .creator-title-scene {
    aspect-ratio: 330 / 138;
    background-image: url("glasshouse/header-compact-hd.webp");
  }
  .theme-glasshouse .creator-masthead-copy { top: 66%; left: 58%; }
  .theme-glasshouse .creator-masthead h1 { font-size: clamp(16px, 4.8vw, 32px); }
}

/* Soften the tinted patch baked into the cartouche while retaining the engraving. */
.theme-glasshouse .creator-title-scene::before {
  content: '';
  position: absolute;
  left: 54%;
  top: 66%;
  width: 29%;
  height: 42%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: #f8f4e5;
  mask-image: linear-gradient(to right, transparent, #000 13% 87%, transparent),
              linear-gradient(to bottom, transparent, #000 16% 84%, transparent);
  mask-composite: intersect;
}
.theme-glasshouse .creator-footer {
  width: fit-content;
  max-width: 100%;
  margin: 22px auto 0;
  padding: 10px 24px;
  border-block-start: 1px solid #abb292;
  background: none;
}
@media (max-width: 820px) {
  .theme-glasshouse .creator-title-scene::before { left: 58%; width: 62%; }
}

/* Keep flowerhouse artwork aligned to its own panel, independently of collage tape. */
.theme-glasshouse :is(.creator-profile,.creator-notes)::after {
  width: auto;
  margin: 0;
  transform: none;
  box-shadow: none;
  border-radius: 0 0 5px 5px;
}
.theme-glasshouse .creator-profile::after {
  mask-image: linear-gradient(to top, #000 57%, transparent 100%);
}
.theme-glasshouse .creator-notes::after {
  mask-image: linear-gradient(to top, #000 56%, transparent),
              linear-gradient(to left, #000 73%, transparent);
  mask-composite: intersect;
}

/* Fade the engraved sill into the paper above while keeping its lower outline intact. */
.theme-glasshouse .creator-projects::before {
  background-image: url("glasshouse/arch-full.webp"), none,
    url("glasshouse/post-left.webp"), url("glasshouse/post-right.webp");
  mask-image: linear-gradient(to bottom, #000 0 calc(100% - 9cqw), transparent calc(100% - 3cqw));
}
.theme-glasshouse .creator-projects::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 13cqw;
  z-index: -1;
  pointer-events: none;
  background: url("glasshouse/base.webp") center bottom / 100% auto no-repeat;
  mask-image: linear-gradient(to top, #000 0 56%, transparent 97%);
}
.theme-glasshouse .creator-projects #creatorProjectList { padding-bottom: 14cqw; }
@media (max-width: 820px) {
  .theme-glasshouse .creator-projects::before {
    background-image: url("glasshouse/arch-mobile.webp"), none,
      url("glasshouse/post-left.webp"), url("glasshouse/post-right.webp");
  }
}

/* The outer card owns the border. The engraved trim follows its full inner width. */
body.theme-glasshouse .creator-homepage :is(.creator-profile,.creator-notes) {
  isolation: isolate;
  overflow: hidden;
}
body.theme-glasshouse .creator-homepage :is(.creator-profile,.creator-notes)::after {
  inset: auto auto 0 0;
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  height: var(--glasshouse-tail-height);
  opacity: 1;
  z-index: -1;
}
body.theme-glasshouse .creator-homepage .creator-profile {
  --glasshouse-tail-height: clamp(88px, 11vw, 180px);
  --glasshouse-tail-art: url("glasshouse/author-bottom.webp") center bottom / 100% 100% no-repeat;
}
body.theme-glasshouse .creator-homepage .creator-profile::after {
  mask-image: linear-gradient(to top, #000 50%, transparent 94%);
}
body.theme-glasshouse .creator-homepage .creator-notes {
  --glasshouse-tail-art: url("glasshouse/flowers.webp") center bottom / 100% 100% no-repeat;
}
body.theme-glasshouse .creator-homepage .creator-notes::after {
  mask-image: linear-gradient(to top, #000 45%, transparent 96%);
}
.theme-glasshouse .creator-projects::before {
  mask-image: linear-gradient(to bottom, #000 0 calc(100% - 14cqw), transparent calc(100% - 4cqw));
}
.theme-glasshouse .creator-projects::after {
  mask-image: linear-gradient(to top, #000 0 40%, transparent 100%);
  mix-blend-mode: multiply;
}
.theme-glasshouse .creator-projects #creatorProjectList { padding-bottom: 11cqw; }
@media (max-width: 820px) {
  body.theme-glasshouse .creator-homepage .creator-profile {
    padding-bottom: 13px;
  }
}
