/* My Imprint — a personal folio within the collective work. */
.profile-dialog {
  --profile-paper: #f5f0e6;
  --profile-ink: #302a23;
  --profile-muted: #746a5e;
  --profile-rule: #d9d0c2;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(12px, 3vw, 36px);
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--profile-ink);
  backdrop-filter: none;
  text-align: left;
}
.profile-dialog:not([open]) { display: none; }
.profile-dialog::backdrop { background: rgb(31 28 24 / 54%); backdrop-filter: blur(7px); }
.profile-dialog *, .profile-dialog *::before, .profile-dialog *::after { box-sizing: border-box; }
.profile-dialog .profile-folio {
  position: relative;
  width: min(1080px, 100%);
  max-height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: clamp(28px, 4.7vw, 64px) clamp(22px, 5vw, 68px) 0;
  background: linear-gradient(105deg, rgb(255 255 255 / 28%), transparent 52%), var(--profile-paper);
  border: 1px solid #fff9ed;
  border-radius: 3px;
  box-shadow: 0 32px 100px rgb(15 12 8 / 28%);
  color: var(--profile-ink);
  font: 14px/1.55 Arial, sans-serif;
  text-align: left;
}
.profile-dialog .profile-close {
  position: sticky;
  float: right;
  z-index: 1;
  top: 15px;
  right: 15px;
  margin: -14px -14px 0 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--profile-rule);
  border-radius: 50%;
  background: var(--profile-paper);
  color: var(--profile-ink);
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}
.profile-dialog .profile-close:hover { background: #eae1d2; }
.profile-dialog :is(button, summary):focus-visible { outline: 2px solid #8e6e35; outline-offset: 4px; }
.profile-dialog #profile-title:focus { outline: none; }
.profile-dialog p { margin: 0; }
.profile-dialog :is(p, span, strong, small, em, dt, dd, button, summary) { letter-spacing: normal; text-transform: none; }
.profile-dialog .profile-kicker {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 42px;
  font: 11px/1.5 Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--profile-muted);
}
.profile-dialog .profile-kicker span { padding-left: 20px; border-left: 1px solid var(--profile-rule); letter-spacing: .07em; }
.profile-dialog .profile-heading h2 {
  margin: 12px 0 5px;
  color: var(--profile-ink);
  font: 500 clamp(46px, 6.8vw, 78px)/1 var(--pluritual-wip-serif, "Cormorant Garamond", Georgia, serif);
  letter-spacing: -.045em;
}
.profile-dialog .profile-heading h2 span { color: #a6854a; }
.profile-dialog #profile-intro { color: var(--profile-muted); font-size: 14px; line-height: 1.6; }
.profile-dialog .profile-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 29px 0 34px;
  padding: 21px 0;
  border-block: 1px solid var(--profile-rule);
}
.profile-dialog .profile-identity > div:last-child { min-width: 0; }
.profile-dialog .profile-identity-mark {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 58px;
  border: 1px solid #b9ab93;
  border-radius: 45% 45% 38% 38%;
  background: #ebe2d1;
  color: #7d6744;
  font: italic 31px/1 var(--pluritual-wip-serif, Georgia, serif);
}
.profile-dialog .profile-identity h3 { margin: 0 0 3px; font: 500 clamp(21px, 2.5vw, 28px)/1.22 var(--pluritual-wip-serif, "Cormorant Garamond", Georgia, serif); overflow-wrap: anywhere; }
.profile-dialog .profile-email { color: var(--profile-muted); overflow-wrap: anywhere; font-size: 12px; }
.profile-dialog .profile-connection { margin-top: 5px; font-size: 11px; letter-spacing: .02em; color: var(--profile-muted); }
.profile-dialog .profile-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 30px; }
.profile-dialog .profile-chapter { min-width: 0; --chapter-accent: #92712e; padding: 0 34px 12px 0; }
.profile-dialog .profile-canvas { --chapter-accent: #a3503a; padding: 0 0 12px 34px; border-left: 1px solid var(--profile-rule); }
.profile-dialog .profile-chapter-label > span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--chapter-accent); }
.profile-dialog .profile-chapter h3 { margin: 5px 0 20px; font: 500 30px/1.1 var(--pluritual-wip-serif, "Cormorant Garamond", Georgia, serif); letter-spacing: -.02em; color: var(--profile-ink); }
.profile-dialog .profile-impact { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.profile-dialog .profile-impact > strong { flex: none; color: var(--chapter-accent); font: 500 clamp(46px, 5vw, 60px)/1 var(--pluritual-wip-serif, "Cormorant Garamond", Georgia, serif); letter-spacing: -.04em; }
.profile-dialog .profile-impact > span { font-size: 14px; line-height: 1.3; }
.profile-dialog .profile-impact small { display: block; max-width: 24ch; margin-top: 6px; font: 12px/1.45 Arial, sans-serif; color: var(--profile-muted); }
.profile-dialog .profile-retained-words { display: flex; flex-wrap: wrap; align-content: center; gap: 11px 19px; min-height: 104px; padding: 10px 0 20px; }
.profile-dialog .profile-retained-words > :is(span, button) { display: inline-flex; align-items: baseline; gap: 5px; max-width: 100%; }
.profile-dialog .profile-word-link { padding: 5px 2px; min-height: 44px; border: 0; border-bottom: 1px solid #c6b48e; background: transparent; cursor: pointer; }
.profile-dialog .profile-word-link:hover { background: #eadfc9; }
.profile-dialog .profile-retained-words strong { color: var(--chapter-accent); font: italic 500 clamp(24px, 3vw, 35px)/1.18 var(--pluritual-wip-serif, "Cormorant Garamond", Georgia, serif); overflow-wrap: anywhere; }
.profile-dialog .profile-retained-words small { font-size: 9px; color: var(--profile-muted); }
.profile-dialog :is(.profile-caption, .profile-detail-note) { color: var(--profile-muted); font-size: 11px; line-height: 1.65; }
.profile-dialog .profile-caption { margin: 0 0 18px; }
.profile-dialog .profile-empty { min-height: 104px; max-width: 34ch; padding: 10px 0 22px; color: var(--profile-muted); font: italic 20px/1.4 var(--pluritual-wip-serif, "Cormorant Garamond", Georgia, serif); }
.profile-dialog .profile-pixel-study { min-height: 104px; margin: 0 0 21px; }
.profile-dialog .profile-pixel-mosaic { display: flex; flex-wrap: wrap; gap: 2px; max-width: 100%; padding: 4px 0 13px; }
.profile-dialog :is(.profile-pixel-link, .profile-pixel-unlinked) { display: grid; place-items: center; width: 44px; height: 44px; padding: 7px; border: 1px solid transparent; background: transparent; }
.profile-dialog .profile-pixel-link { cursor: pointer; }
.profile-dialog .profile-pixel-link:hover { background: #ebdfcf; border-color: #a3503a; }
.profile-dialog .profile-pixel { display: block; width: 28px; height: 28px; flex: 0 0 28px; background: var(--pixel-color); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%); }
.profile-dialog .profile-pixel.is-unknown { background: repeating-linear-gradient(45deg, transparent 0 3px, #d9d0c2 3px 4px); }
.profile-dialog .profile-pixel-study figcaption { color: var(--profile-muted); font-size: 11px; }
.profile-dialog .profile-pixel-study figcaption span { display: block; font-size: 10px; margin-top: 3px; }
.profile-dialog .profile-details { border-top: 1px solid var(--profile-rule); margin-top: 14px; }
.profile-dialog .profile-details > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  position: relative;
  gap: 4px 10px;
  padding: 17px 22px 17px 0;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  line-height: 1.45;
}
.profile-dialog .profile-details > summary::-webkit-details-marker { display: none; }
.profile-dialog .profile-details > summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 19px; color: var(--chapter-accent); }
.profile-dialog .profile-details[open] > summary::after { content: "−"; }
.profile-dialog .profile-details > summary span:last-child { color: var(--profile-muted); text-align: right; }
.profile-dialog .profile-detail-metrics { margin: 0 0 15px; }
.profile-dialog .profile-detail-metrics > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid rgb(217 208 194 / 65%); }
.profile-dialog .profile-detail-metrics dt { font-size: 12px; color: var(--profile-muted); }
.profile-dialog .profile-detail-metrics dd { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.profile-dialog :is(.profile-word-history, .profile-pixel-register) { padding: 0; margin: 21px 0 0; list-style: none; }
.profile-dialog .profile-word-history li { display: grid; grid-template-columns: 47px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 0; }
.profile-dialog .profile-word-history li > span { font-size: 10px; color: var(--profile-muted); }
.profile-dialog .profile-word-history strong { font: 500 19px/1.2 var(--pluritual-wip-serif, "Cormorant Garamond", Georgia, serif); overflow-wrap: anywhere; }
.profile-dialog .profile-word-history em { color: var(--chapter-accent); font: 10px/1.4 Arial, sans-serif; }
.profile-dialog .profile-founder { margin-top: 20px; font: italic 17px/1.4 var(--pluritual-wip-serif, Georgia, serif); color: var(--chapter-accent); }
.profile-dialog .profile-milestones { margin: 0 0 22px; --chapter-accent: #92712e; }
.profile-dialog .profile-milestones > summary { font-size: 13px; }
.profile-dialog .profile-milestones > ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; margin: 0 0 15px; padding: 0; list-style: none; }
.profile-dialog .profile-milestones li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--profile-rule); }
.profile-dialog .profile-milestones li strong { font: 500 20px/1.2 var(--pluritual-wip-serif, "Cormorant Garamond", Georgia, serif); }
.profile-dialog .profile-milestones li p { margin-top: 4px; font-size: 11px; color: var(--profile-muted); }
.profile-dialog .profile-milestones li > span { flex: none; font-size: 10px; color: var(--profile-muted); }
.profile-dialog .profile-milestones li.is-reached > span { color: #85662b; }
.profile-dialog .profile-pixel-register li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 11px; }
.profile-dialog .profile-pixel-register i { width: 12px; height: 12px; flex: 0 0 12px; background: var(--pixel-color, #d9d0c2); }
.profile-dialog .profile-pixel-register em { margin-left: auto; color: var(--profile-muted); font-style: normal; }
.profile-dialog .profile-wait { min-height: 220px; padding: 25px 0 45px; }
.profile-dialog .profile-wait h3 { margin: 15px 0 8px; font: 500 28px/1.2 var(--pluritual-wip-serif, "Cormorant Garamond", Georgia, serif); }
.profile-dialog .profile-wait p { max-width: 46ch; color: var(--profile-muted); }
.profile-dialog .profile-loading-mark { display: block; height: 3px; width: 56px; background: #9b782f; animation: profile-breathe 1.8s ease-in-out infinite; transform-origin: left; }
@keyframes profile-breathe { 50% { transform: scaleX(.45); opacity: .45; } }
.profile-dialog .profile-invitation { max-width: 680px; padding: 0 0 35px; }
.profile-dialog .profile-invitation-title { font: 500 clamp(30px, 4vw, 44px)/1.13 var(--pluritual-wip-serif, "Cormorant Garamond", Georgia, serif); letter-spacing: -.025em; }
.profile-dialog .profile-invitation > p:nth-child(2) { max-width: 50ch; margin-top: 17px; color: var(--profile-muted); }
.profile-dialog .profile-invitation-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; font: italic 20px/1.4 var(--pluritual-wip-serif, "Cormorant Garamond", Georgia, serif); }
.profile-dialog .profile-invitation-notes span { display: block; margin-bottom: 7px; color: #92712e; font: 10px/1.5 Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.profile-dialog .profile-invitation-notes p:last-child span { color: #a3503a; }
.profile-dialog .profile-unavailable { padding: 13px 0 28px; color: var(--profile-muted); font-size: 13px; }
.profile-dialog .profile-notice { padding: 14px 0; border-top: 1px solid var(--profile-rule); color: #964530; font-size: 13px; }
.profile-dialog .profile-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 30px; padding: 26px 0 30px; border-top: 1px solid #cfc3b0; }
.profile-dialog .profile-footer-copy strong { font: 500 20px/1.25 var(--pluritual-wip-serif, "Cormorant Garamond", Georgia, serif); }
.profile-dialog .profile-footer-copy p { max-width: 50ch; margin-top: 6px; color: var(--profile-muted); font: 11px/1.7 Arial, sans-serif; }
.profile-dialog .profile-actions { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.profile-dialog .profile-primary { min-height: 46px; padding: 12px 20px; border: 1px solid var(--profile-ink); border-radius: 2px; background: var(--profile-ink); color: #fff9ee; font: 12px/1.45 Arial, sans-serif; cursor: pointer; }
.profile-dialog .profile-primary:hover { background: #554631; }
.profile-dialog .profile-text-button { min-height: 44px; padding: 10px 12px; border: 0; background: transparent; color: var(--profile-muted); font: 12px/1.4 Arial, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.profile-dialog button:disabled { opacity: .5; cursor: wait; }
.profile-dialog .profile-switch-note { grid-column: 1 / -1; color: var(--profile-muted); font-size: 11px; }
.profile-dialog .profile-retry { padding-inline: 0; }
.profile-dialog :is(.profile-heading h2, .profile-identity h3, .profile-chapter h3, .profile-impact > strong, .profile-retained-words strong, .profile-empty, .profile-word-history strong, .profile-milestones li strong, .profile-wait h3, .profile-invitation-title, .profile-invitation-notes, .profile-footer-copy strong) { font-family: var(--pluritual-wip-serif, Georgia, "Times New Roman", serif); }
.ritual-room.sentence .official-word.is-imprint-trace { outline: 2px solid #987a35; outline-offset: 5px; border-radius: 2px; background: #eadab3; color: #33291b; }
.imprint-trace-notice { position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 28px); padding: 4px 6px 4px 16px; border: 1px solid #c9bda6; border-radius: 3px; background: #f5f0e6; color: #302a23; box-shadow: 0 4px 18px #302a2324; }
.imprint-trace-notice p { margin: 0; font: 13px/1.4 Arial, sans-serif; text-transform: none; letter-spacing: normal; }
.imprint-trace-notice button { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: 22px/1 Arial, sans-serif; cursor: pointer; }
.imprint-trace-notice button:focus-visible { outline: 2px solid #987a35; outline-offset: -4px; }
@media (max-width: 700px) {
  .profile-dialog { padding: 0; }
  .profile-dialog .profile-folio { width: 100%; max-height: 100%; min-height: 100%; border: 0; border-radius: 0; padding: 23px 23px 0; scrollbar-gutter: auto; }
  .profile-dialog .profile-close { position: fixed; top: 11px; right: 11px; margin: 0; float: none; }
  .profile-dialog .profile-heading h2 { margin-top: 8px; padding-right: 34px; font-size: 42px; }
  .profile-dialog .profile-kicker { font-size: 10px; }
  .profile-dialog #profile-intro { max-width: 30ch; font-size: 13px; }
  .profile-dialog .profile-identity { margin: 17px 0 21px; padding: 14px 0; gap: 12px; }
  .profile-dialog .profile-identity-mark { flex-basis: 40px; width: 40px; height: 46px; font-size: 25px; }
  .profile-dialog .profile-identity h3 { font-size: 20px; }
  .profile-dialog .profile-spread { grid-template-columns: 1fr; margin-bottom: 8px; }
  .profile-dialog .profile-chapter { padding: 0 0 25px; }
  .profile-dialog .profile-canvas { border-left: 0; border-top: 1px solid var(--profile-rule); padding-top: 27px; }
  .profile-dialog .profile-chapter h3 { margin-bottom: 15px; }
  .profile-dialog .profile-impact { margin-bottom: 13px; }
  .profile-dialog .profile-impact > strong { font-size: 56px; }
  .profile-dialog :is(.profile-retained-words, .profile-empty, .profile-pixel-study) { min-height: 0; }
  .profile-dialog .profile-retained-words strong { font-size: 31px; }
  .profile-dialog .profile-footer { grid-template-columns: 1fr; gap: 20px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .profile-dialog .profile-actions { align-items: stretch; }
  .profile-dialog .profile-footer-copy p { max-width: none; }
  .profile-dialog .profile-invitation-notes { gap: 20px; font-size: 19px; }
  .profile-dialog .profile-milestones > ul { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .profile-dialog .profile-folio { padding-inline: 18px; }
  .profile-dialog .profile-details > summary { grid-template-columns: 1fr; }
  .profile-dialog .profile-details > summary span:last-child { text-align: left; }
  .profile-dialog .profile-invitation-notes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .profile-dialog .profile-loading-mark { animation: none; } }
