:root {
  --ink: #27243d;
  --ink-soft: #666171;
  --cream: #f8f4ed;
  --paper: #fffdfa;
  --coral: #ff6f61;
  --coral-dark: #e95146;
  --pink: #ffb9c3;
  --yellow: #f6d75d;
  --blue: #9dd8e5;
  --lilac: #c9b8ef;
  --green: #a8d5ad;
  --border: #ded8cf;
  --shadow: 0 24px 70px rgba(46, 40, 54, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html.route-scroll-jump { scroll-behavior: auto !important; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
label,
input[type="file"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.paper-noise {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 64px));
  height: 94px;
  margin: auto;
}

.site-header.is-sticky {
  position: fixed;
  width: 100%;
  height: 72px;
  padding: 0 max(32px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(39, 36, 61, 0.09);
  background: rgba(248, 244, 237, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.text-button,
.back-link {
  border: 0;
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 7px 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
  display: block;
  transform: rotate(-4deg);
}

.brand-mark i {
  position: absolute;
  left: 12px;
  top: 1px;
  width: 9px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 9px 9px 6px 6px;
  background: var(--coral);
  transform-origin: 4px 14px;
}

.brand-mark i:nth-child(2) { transform: rotate(72deg); background: var(--yellow); }
.brand-mark i:nth-child(3) { transform: rotate(144deg); background: var(--blue); }
.brand-mark i:nth-child(4) { transform: rotate(216deg); background: var(--lilac); }
.brand-mark i:nth-child(5) { transform: rotate(288deg); background: var(--pink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.auth-link,
.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 0 13px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  background: var(--paper);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.auth-link:hover,
.account-button:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.account-button {
  gap: 7px;
  max-width: 190px;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-soft);
  white-space: nowrap;
}

.account-button img {
  width: 25px;
  height: 25px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.account-button span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--paper);
  font-size: 16px;
  transition: transform 180ms ease, background 180ms ease;
}

.theme-toggle:hover { transform: rotate(16deg) scale(1.05); background: var(--yellow); }

.text-button {
  position: relative;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
}

.text-button::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.text-button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.view {
  display: none;
  min-height: 100vh;
}

.view.is-active {
  display: block;
  animation: view-in 420ms ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 8vw, 130px);
  width: min(1180px, calc(100% - 80px));
  min-height: 780px;
  margin: 0 auto;
  padding: 135px 0 84px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: var(--coral);
}

.hero h1,
.editor-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(72px, 7vw, 108px);
  line-height: 0.89;
  letter-spacing: -0.065em;
}

.hero h1 em,
.editor-intro h1 em,
.visitor-invite h2 em {
  position: relative;
  color: var(--coral);
  font-weight: 600;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 3%;
  right: -5%;
  bottom: -7px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg width='300' height='15' viewBox='0 0 300 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9c58-8 154-4 294 1' fill='none' stroke='%23ff6f61' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-lede {
  max-width: 530px;
  margin: 34px 0 31px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.primary-button,
.secondary-cta,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 55px;
  padding: 0 25px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button {
  color: #fff;
  background: var(--ink);
}

.primary-button:hover,
.secondary-cta:hover,
.outline-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.primary-button:active,
.secondary-cta:active,
.outline-button:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  transform: none;
  box-shadow: 4px 4px 0 var(--ink);
}

.no-signup-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.no-signup-note svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero-card-wrap {
  position: relative;
  width: min(100%, 470px);
  margin: 0 auto;
  transform: rotate(2.4deg);
}

.hero-card-wrap::before,
.hero-card-wrap::after {
  content: "✦";
  position: absolute;
  z-index: 2;
  color: var(--coral);
  font-size: 28px;
}

.hero-card-wrap::before { top: 0; right: -38px; }
.hero-card-wrap::after { left: -50px; bottom: 62px; color: var(--yellow); font-size: 36px; }

.example-card,
.hero-card-shadow {
  border: 2px solid var(--ink);
  border-radius: 5px;
}

.hero-card-shadow {
  position: absolute;
  inset: 15px -15px -15px 15px;
  background: var(--pink);
}

.example-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.example-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 29px 19px;
  border-bottom: 1px solid var(--border);
}

.tiny-label {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.example-card h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: -0.04em;
}

.example-avatar,
.published-avatar {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.example-list,
.published-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.example-list li {
  display: grid;
  grid-template-columns: 47px 1fr;
  gap: 15px;
  align-items: center;
  min-height: 76px;
  padding: 11px 29px;
  border-bottom: 1px solid var(--border);
}

.example-emoji {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 21px;
}

.coral { background: #ffb2a9; }
.butter { background: #f7df82; }
.blue { background: #b5e2ea; }
.lilac { background: #d7c8f4; }
.green { background: #bfe0c2; }

.example-list strong,
.example-list small {
  display: block;
}

.example-list strong {
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: 16px;
}

.example-list small {
  color: var(--ink-soft);
  font-size: 11px;
}

.example-card-footer {
  display: flex;
  justify-content: space-between;
  padding: 17px 29px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.orbit-note {
  position: absolute;
  z-index: 3;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.1;
}

.orbit-note span { color: var(--coral); }
.note-one { top: 54px; right: -81px; transform: rotate(8deg); }
.note-two { left: -92px; bottom: 155px; transform: rotate(-10deg); text-align: center; }

.ticker {
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--yellow);
  transform: rotate(-1deg) scale(1.02);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 47px;
  animation: ticker 30s linear 3;
}

.ticker span {
  padding: 0 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.ticker b { color: var(--coral); }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.how-it-works {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: 140px 0 120px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 5vw, 67px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 58px 0 42px;
  text-align: left;
}

.step-card {
  position: relative;
  min-height: 310px;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 5px;
}

.step-card:nth-child(1) { transform: rotate(-1.5deg); }
.step-card:nth-child(2) { transform: translateY(8px); }
.step-card:nth-child(3) { transform: rotate(1.5deg); }
.step-yellow { background: #f7e187; }
.step-pink { background: #f8c9cf; }
.step-blue { background: #bae2e9; }

.step-number {
  position: absolute;
  top: 24px;
  right: 25px;
  color: rgba(39, 36, 61, 0.55);
  font-family: var(--serif);
  font-size: 14px;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 17px 0 45px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 27px;
  box-shadow: 3px 3px 0 var(--ink);
}

.step-card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.step-card p {
  margin: 0;
  color: #514c5c;
  font-size: 13px;
  line-height: 1.6;
}

.secondary-cta {
  background: var(--coral);
}

/* Editor */
.editor-view {
  background: #f3efe7;
}

.editor-shell {
  display: grid;
  grid-template-columns: minmax(310px, 0.68fr) minmax(520px, 1fr);
  gap: clamp(50px, 8vw, 120px);
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: 142px 0 90px;
}

.editor-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  margin-bottom: 63px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.back-link span { font-size: 17px; transition: transform 150ms ease; }
.back-link:hover span { transform: translateX(-4px); }

.editor-intro h1 {
  font-size: clamp(53px, 5vw, 72px);
  line-height: 0.96;
}

.editor-intro > p:not(.eyebrow) {
  max-width: 420px;
  margin: 25px 0 43px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.editor-progress {
  max-width: 420px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

#progress-encouragement { color: var(--ink-soft); font-weight: 500; }

.progress-track {
  overflow: hidden;
  height: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
  transition: width 250ms ease;
}

.five-form {
  min-width: 0;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.item-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--paper);
  transition: border 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.item-card:focus-within,
.item-card.has-content {
  border-color: var(--ink);
}

.item-card:focus-within {
  box-shadow: 5px 5px 0 rgba(39, 36, 61, 0.12);
}

.item-card.is-private-extra {
  border-style: dashed;
  background: color-mix(in srgb, var(--paper) 88%, var(--lilac));
}

.item-card.is-private-extra::before {
  content: "Private extra";
  position: absolute;
  top: -7px;
  left: 18px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.emoji-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1.5px dashed #b6b0b8;
  border-radius: 50%;
  background: #f5f1eb;
}

.emoji-control input {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  padding: 0;
  border: 0;
  outline: 0;
  opacity: 0;
  cursor: pointer;
}

.emoji-display {
  font-size: 23px;
}

.emoji-control.empty .emoji-display::after {
  content: "+";
  color: #8e8993;
  font-size: 22px;
}

.item-fields {
  min-width: 0;
}

.item-name,
.item-note,
.item-link {
  display: block;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.unfurl-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.unfurl-result {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  flex: 1 0 100%;
  padding: 10px;
  margin-top: 2px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #eef5f4;
}

.unfurl-result > img,
.unfurl-spark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--yellow);
  color: var(--coral-dark);
  font-weight: 700;
}

.unfurl-result div { min-width: 0; }
.unfurl-result small,
.unfurl-result strong,
.unfurl-result p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unfurl-result small { margin-bottom: 2px; color: var(--ink-soft); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.unfurl-result strong { font-family: var(--serif); font-size: 12px; }
.unfurl-result p { margin: 2px 0 0; color: var(--ink-soft); font-size: 9px; }
.unfurl-result button {
  padding: 6px 8px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  font-size: 9px;
  font-weight: 700;
}

.item-name {
  padding: 4px 80px 9px 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.item-name::placeholder { color: #9a949c; }

.item-note {
  min-height: 28px;
  padding: 0 50px 5px 0;
  resize: none;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.item-note::placeholder { color: #aaa4ab; }

.details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 1px 0 0;
  min-height: 28px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.details-toggle span {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #f7f3ed;
  font-size: 11px;
}

.details-toggle:hover { color: var(--ink); }

.item-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease;
}

.item-card.is-expanded .item-extras {
  max-height: 420px;
  padding-top: 8px;
  opacity: 1;
}

.extra-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #f7f3ed;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.extra-button:hover { border-color: var(--ink); color: var(--ink); }

.photo-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.item-link {
  flex: 1 1 180px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #f7f3ed;
  font-size: 10px;
}

.item-photo-preview {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.item-status {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  pointer-events: none;
  transform: scale(0);
  transition: transform 180ms cubic-bezier(.2,.8,.2,1.3);
}

.item-card.has-content .item-status { transform: scale(1); }

.remove-item {
  position: absolute;
  z-index: 2;
  top: 48px;
  right: 18px;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1;
}

.remove-item:hover { border-color: var(--ink); color: var(--ink); }

.add-item-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 1.5px dashed var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.add-item-button span { font-size: 18px; font-weight: 400; }
.add-item-button:hover:not(:disabled) { border-color: var(--ink); background: var(--yellow); color: var(--ink); }
.add-item-button:disabled { cursor: not-allowed; opacity: 0.45; }

.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 26px;
}

.editor-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.editor-footer p strong { color: var(--ink); }
.preview-button { min-width: 206px; }

.editor-look-summary {
  display: grid;
  gap: 3px;
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
}

.editor-look-summary span,
.editor-look-summary small { color: var(--ink-soft); font-size: 9px; }
.editor-look-summary span { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.editor-look-summary strong { font-family: var(--serif); font-size: 17px; }

/* Published */
.published-view {
  background:
    radial-gradient(circle at 10% 26%, rgba(246, 215, 93, 0.34) 0 90px, transparent 91px),
    radial-gradient(circle at 88% 40%, rgba(157, 216, 229, 0.32) 0 130px, transparent 131px),
    #f3efe7;
}

.published-shell {
  width: min(860px, calc(100% - 50px));
  margin: 0 auto;
  padding: 133px 0 95px;
}

.published-back { margin-bottom: 28px; }

.published-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--pink), var(--shadow);
}

.published-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 47px 54px 38px;
  border-bottom: 2px solid var(--ink);
}

.published-header .eyebrow { margin-bottom: 9px; color: var(--coral); }

.published-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(45px, 7vw, 68px);
  line-height: 1;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.published-heading-copy { min-width: 0; }

.published-header h1 span { color: var(--coral); }

.published-heading-copy > p:last-child {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.published-avatar {
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  border-width: 2px;
  font-size: 28px;
  box-shadow: 3px 3px 0 var(--ink);
}

.published-list li {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 116px;
  padding: 21px 54px;
  border-bottom: 1px solid var(--border);
}

.published-list li:last-child { border-bottom: 0; }

.published-list li.published-item-hidden {
  overflow: hidden;
  user-select: none;
}

.published-item-hidden > :not(.private-extra-label) {
  filter: blur(7px);
  opacity: 0.42;
  pointer-events: none;
}

.private-extra-label {
  position: absolute;
  left: 50%;
  padding: 6px 11px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.published-item-visual {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 30px;
}

.published-item-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.published-item-copy strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: -0.02em;
}

.published-item-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.published-item-link {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  transition: background 150ms ease, border 150ms ease;
}

.published-item-link:hover { border-color: var(--ink); background: var(--yellow); }

.published-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 54px;
  border-top: 2px solid var(--ink);
  background: #f5e4df;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
  text-transform: lowercase;
}

.brand-mini i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 6px 0 0 var(--yellow), 3px 5px 0 var(--blue);
}

.published-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin: 35px 0 73px;
}

.published-actions .tiny-label { margin-bottom: 8px; }

.link-box {
  display: flex;
  align-items: center;
  width: 270px;
  height: 43px;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  font-size: 10px;
}

.link-box span {
  overflow: hidden;
  flex: 1;
  padding: 0 12px;
  color: var(--ink-soft);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-box b {
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 0 13px;
  border-left: 1.5px solid var(--ink);
  background: var(--yellow);
}

.published-button-row {
  display: flex;
  gap: 13px;
}

.outline-button {
  min-height: 48px;
  padding: 0 18px;
  background: var(--paper);
  box-shadow: none;
}

.published-button-row .primary-button { min-height: 48px; box-shadow: 3px 3px 0 var(--ink); }

.published-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.visitor-invite {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 33px 38px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--blue);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-0.5deg);
}

.visitor-invite .eyebrow { margin-bottom: 4px; }

.visitor-invite h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.035em;
}

.visitor-invite h2 em { color: var(--ink); }
.visitor-invite .secondary-cta { flex: 0 0 auto; background: var(--paper); }
.visitor-spark { position: absolute; top: -19px; left: 31px; color: var(--coral); font-size: 31px; }

/* Dialogs */
dialog {
  width: min(520px, calc(100% - 30px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--pink);
}

dialog::backdrop {
  background: rgba(39, 36, 61, 0.55);
  backdrop-filter: blur(5px);
}

.publish-dialog form,
.compare-dialog {
  position: relative;
}

.publish-dialog form,
.compare-dialog > div {
  padding: 42px 44px;
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 17px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f3efe8;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
}

dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 38px;
  letter-spacing: -0.045em;
}

dialog h2[tabindex="-1"]:focus { outline: none; }

.dialog-lede {
  margin: 10px 0 27px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.publish-dialog label > span:first-child,
.publish-dialog legend {
  display: block;
  margin: 18px 0 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publish-dialog input[type="text"],
.publish-dialog input:not([type]),
.publish-dialog #display-name {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  outline: 0;
  background: #fbf9f5;
}

.publish-dialog input:focus { border-color: var(--ink); }

.handle-input {
  display: flex;
  align-items: center;
  height: 47px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  background: #fbf9f5;
}

.handle-input:focus-within { border-color: var(--ink); }

.handle-input b {
  padding-left: 13px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.handle-input input {
  flex: 1;
  width: 100px;
  height: 100%;
  padding: 0 13px 0 2px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.publish-dialog fieldset {
  padding: 0;
  margin: 25px 0 22px;
  border: 0;
}

.privacy-option {
  display: grid;
  grid-template-columns: 20px 1fr 23px;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 8px 12px;
  margin-top: 7px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
}

.privacy-option.selected { border-color: var(--ink); background: #f8f1d7; }
.privacy-option input { accent-color: var(--coral); }
.privacy-option span b,
.privacy-option span small { display: block; }
.privacy-option span b { font-size: 12px; }
.privacy-option span small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; }
.privacy-option i { display: none; font-style: normal; }
.privacy-option.selected i { display: block; }

.dialog-publish { width: 100%; }

.fine-print {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  text-align: center;
}

.auth-prompt {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  margin: -5px 0 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f4f7f7;
}

.google-g {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--paper);
  color: #4285f4;
  font-weight: 700;
}

.auth-prompt p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.4;
}

.auth-prompt .auth-link {
  min-height: 31px;
  padding: 0 10px;
  box-shadow: none;
  font-size: 9px;
}

.publish-error {
  padding: 10px 12px;
  margin: -7px 0 15px;
  border: 1px solid var(--coral-dark);
  border-radius: 3px;
  color: #a82f29;
  background: #fff0ee;
  font-size: 11px;
  line-height: 1.4;
}

.compare-dialog { overflow: hidden; }
.compare-dialog > div { min-height: 380px; }
.compare-inputs { display: grid; gap: 9px; margin-bottom: 18px; }
.compare-inputs input {
  height: 48px;
  padding: 0 13px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  outline: 0;
  background: #fbf9f5;
}
.compare-inputs input:focus { border-color: var(--ink); }
.compare-form .primary-button { width: 100%; }
.compare-result { text-align: center; background: #f9e1e3; }
.compare-result .primary-button { margin-top: 20px; }
.compare-result-copy { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.compare-confetti { margin: 22px 0; color: var(--yellow); font-size: 32px; letter-spacing: 12px; }
.compare-confetti span { color: var(--coral); }

.share-dialog {
  width: min(560px, calc(100% - 30px));
  box-shadow: 9px 9px 0 var(--blue);
}

.share-dialog-body {
  padding: 40px 42px 35px;
}

.share-preview-image {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  margin: 21px 0 17px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--cream);
}

.system-share-button { width: 100%; }

.share-hint {
  margin: 11px 0 23px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.share-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 15px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-divider::before,
.share-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.social-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.social-share-grid a,
.social-share-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  background: #f8f5ef;
  font-size: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.social-share-grid a:hover,
.social-share-grid button:hover { transform: translateY(-2px); border-color: var(--ink); background: var(--yellow); }

.social-share-grid b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 11px;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 180px;
  padding: 12px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-50%, 100px);
  opacity: 0;
  transition: transform 250ms ease, opacity 250ms ease;
}

.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--green); font-size: 11px; }
.toast p { margin: 0; font-size: 12px; font-weight: 700; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 155px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-card-wrap { margin-top: 25px; }
  .editor-shell { grid-template-columns: 1fr; max-width: 680px; }
  .editor-intro { position: static; }
  .editor-intro > p:not(.eyebrow), .editor-progress { max-width: none; }
  .back-link { margin-bottom: 40px; }
  .published-actions { align-items: stretch; flex-direction: column; }
  .link-box { width: 100%; }
  .published-button-row { justify-content: flex-end; }
}

@media (max-width: 700px) {
  .site-header { width: calc(100% - 36px); height: 76px; }
  .site-header.is-sticky { padding: 0 18px; }
  .saved-list-button { display: none; }
  .header-actions { gap: 12px; }
  .header-actions > .text-button { display: none; }
  .auth-link { min-height: 32px; padding: 0 10px; }
  .account-button { max-width: 120px; padding: 0; }
  .theme-toggle { width: 32px; height: 32px; }
  .hero { width: calc(100% - 36px); min-height: auto; padding: 125px 0 85px; }
  .hero h1 { font-size: clamp(62px, 21vw, 86px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-card-wrap { width: calc(100% - 28px); }
  .note-one, .note-two { display: none; }
  .example-card-header { padding: 22px 19px 15px; }
  .example-list li { grid-template-columns: 43px 1fr; min-height: 69px; padding: 9px 19px; }
  .example-card-footer { padding: 15px 19px; }
  .hero-card-wrap::before { right: -22px; }
  .hero-card-wrap::after { left: -22px; }
  .how-it-works { width: calc(100% - 36px); padding: 100px 0 85px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 270px; }
  .editor-shell { width: calc(100% - 28px); padding: 110px 0 70px; gap: 48px; }
  .editor-intro h1 { font-size: 50px; }
  .item-card { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 14px 11px; }
  .emoji-control { width: 45px; height: 45px; }
  .item-name { padding-right: 30px; font-size: 17px; }
  .item-status { top: 13px; right: 11px; width: 20px; height: 20px; }
  .editor-footer { align-items: stretch; flex-direction: column-reverse; }
  .preview-button { width: 100%; }
  .published-shell { width: calc(100% - 28px); padding-top: 106px; }
  .published-header { padding: 31px 25px 28px; }
  .published-avatar { width: 51px; height: 51px; }
  .published-list li { grid-template-columns: 55px 1fr auto; gap: 13px; min-height: 102px; padding: 18px 24px; }
  .published-item-visual { width: 52px; height: 52px; font-size: 24px; }
  .published-item-copy strong { font-size: 19px; }
  .published-card-footer { padding: 16px 24px; }
  .published-button-row { align-items: stretch; flex-direction: column; }
  .published-button-row button { width: 100%; }
  .visitor-invite { align-items: flex-start; flex-direction: column; padding: 29px 25px; }
  .visitor-invite .secondary-cta { width: 100%; }
  .publish-dialog form, .compare-dialog > div { padding: 39px 24px 29px; }
  .auth-prompt { grid-template-columns: 32px 1fr; }
  .auth-prompt .auth-link { grid-column: 1 / -1; }
  .share-dialog-body { padding: 37px 22px 26px; }
  .social-share-grid { grid-template-columns: repeat(4, 1fr); }
  .unfurl-result { grid-template-columns: 38px 1fr; }
  .unfurl-result button { grid-column: 1 / -1; }
}

/* Dark mode keeps the color-play while moving paper surfaces into deep plum. */
html[data-theme-resolved="dark"] {
  --ink: #f6f0ff;
  --ink-soft: #bbb3c7;
  --cream: #171522;
  --paper: #252231;
  --border: #4b4558;
  --coral: #ff8175;
  --coral-dark: #ff9b91;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

html[data-theme-resolved="dark"] .site-header.is-sticky { background: rgba(23, 21, 34, 0.9); border-bottom-color: rgba(255, 255, 255, 0.1); }
html[data-theme-resolved="dark"] .editor-view,
html[data-theme-resolved="dark"] .published-view { background-color: #1b1827; }
html[data-theme-resolved="dark"] .published-view {
  background:
    radial-gradient(circle at 10% 26%, rgba(246, 215, 93, 0.13) 0 90px, transparent 91px),
    radial-gradient(circle at 88% 40%, rgba(157, 216, 229, 0.12) 0 130px, transparent 131px),
    #1b1827;
}
html[data-theme-resolved="dark"] .item-card,
html[data-theme-resolved="dark"] dialog,
html[data-theme-resolved="dark"] .example-card,
html[data-theme-resolved="dark"] .published-card { background: var(--paper); }
html[data-theme-resolved="dark"] .emoji-control,
html[data-theme-resolved="dark"] .extra-button,
html[data-theme-resolved="dark"] .item-link,
html[data-theme-resolved="dark"] .details-toggle span,
html[data-theme-resolved="dark"] .compare-inputs input,
html[data-theme-resolved="dark"] .publish-dialog input,
html[data-theme-resolved="dark"] .handle-input,
html[data-theme-resolved="dark"] .social-share-grid a,
html[data-theme-resolved="dark"] .social-share-grid button { background: #302c3d; }
html[data-theme-resolved="dark"] .unfurl-result,
html[data-theme-resolved="dark"] .auth-prompt { background: #292f38; }
html[data-theme-resolved="dark"] .privacy-option.selected { background: #3a3340; }
html[data-theme-resolved="dark"] .example-card-footer,
html[data-theme-resolved="dark"] .published-card-footer { background: #342a35; }
html[data-theme-resolved="dark"] .primary-button { color: #1b1827; background: #ff8175; border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
html[data-theme-resolved="dark"] .secondary-cta { color: #211e2d; }
html[data-theme-resolved="dark"] .link-box b { color: #27243d; }
html[data-theme-resolved="dark"] .ticker,
html[data-theme-resolved="dark"] .step-card,
html[data-theme-resolved="dark"] .visitor-invite { color: #27243d; border-color: #27243d; }
html[data-theme-resolved="dark"] .step-card p { color: #514c5c; }
html[data-theme-resolved="dark"] .step-icon,
html[data-theme-resolved="dark"] .visitor-invite .secondary-cta { color: #27243d; border-color: #27243d; background: #fffdfa; box-shadow: 3px 3px 0 #27243d; }
html[data-theme-resolved="dark"] .published-item-visual,
html[data-theme-resolved="dark"] .example-emoji { color: #27243d; border-color: #eee7f7; }
html[data-theme-resolved="dark"] .theme-toggle:hover,
html[data-theme-resolved="dark"] .social-share-grid a:hover,
html[data-theme-resolved="dark"] .social-share-grid button:hover { color: #27243d; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Design studio, authored page looks, and accessibility refinements. */
body { overflow-x: hidden; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
label:has(input:focus-visible) {
  outline: 3px solid #2f75d6 !important;
  outline-offset: 3px;
}

.brand-name { white-space: nowrap; }
.published-item-copy { min-width: 0; }
.published-item-copy strong,
.published-item-copy p { overflow-wrap: anywhere; }

/* Homepage appearance gallery */
.looks-showcase {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: 120px 0 115px;
}

.looks-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.52fr);
  column-gap: 70px;
  align-items: end;
  text-align: left;
}

.looks-heading .eyebrow { grid-column: 1 / -1; }
.looks-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 6.5vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.looks-heading h2 em { color: var(--coral); font-weight: 600; }
.looks-heading > p:last-child {
  max-width: 430px;
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.looks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 62px;
}

.look-card {
  position: relative;
  min-width: 0;
  padding: 20px 20px 24px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: #27243d;
  box-shadow: 6px 6px 0 #27243d;
}

.look-card:nth-child(1) { background: #ffd4d9; transform: rotate(-0.7deg); }
.look-card:nth-child(2) { background: #f6df78; transform: translateY(9px); }
.look-card:nth-child(3) { background: #bde3e9; transform: rotate(0.7deg); }
.look-card .tiny-label { margin: 22px 0 7px; color: #514c5c; font-size: 9px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.look-card h3 { margin: 0; font-family: var(--serif); font-size: 30px; letter-spacing: -0.04em; }
.look-card > p:not(.tiny-label) { min-height: 61px; margin: 8px 0 20px; color: #514c5c; font-size: 12px; line-height: 1.55; }
.look-card > button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 45px;
  padding: 0 14px;
  border: 1.5px solid #27243d;
  border-radius: 3px;
  background: #fffdfa;
  color: #27243d;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 3px 3px 0 #27243d;
}

.look-card > button:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #27243d; }

.look-mini {
  position: relative;
  height: 218px;
  overflow: hidden;
  border: 2px solid #27243d;
  background: #fffdfa;
}

.look-mini-heading { display: flex; align-items: center; justify-content: space-between; height: 63px; padding: 0 19px; border-bottom: 2px solid #27243d; }
.look-mini-heading span { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.look-mini-heading i { width: 31px; height: 31px; border: 2px solid #27243d; border-radius: 50%; background: #f6d75d; }
.look-mini-rows { display: grid; height: 153px; }
.look-mini-rows i { position: relative; display: block; border-bottom: 1px solid #ded8cf; }
.look-mini-rows i::before { content: ""; position: absolute; top: 50%; left: 18px; width: 17px; height: 17px; border: 1px solid #27243d; border-radius: 50%; background: #ff9f94; transform: translateY(-50%); }
.look-mini-rows i::after { content: ""; position: absolute; top: 50%; left: 48px; right: 24px; height: 6px; border-radius: 5px; background: #27243d; transform: translateY(-50%); opacity: 0.84; }
.look-mini-rows i:nth-child(2)::before { background: #f6d75d; }
.look-mini-rows i:nth-child(3)::before { background: #9dd8e5; }
.look-mini-rows i:nth-child(4)::before { background: #c9b8ef; }
.look-mini-rows i:nth-child(5)::before { background: #a8d5ad; }

.look-mini[data-template="keepsake"] { box-shadow: 8px 8px 0 #ffb9c3; transform: rotate(1deg) scale(0.94); }
.look-mini[data-template="zine"] { padding: 9px; background: #f6d75d; }
.look-mini[data-template="zine"] .look-mini-heading { height: 54px; border: 3px solid #27243d; background: #a8d5ad; }
.look-mini[data-template="zine"] .look-mini-heading span { font-family: var(--sans); font-weight: 900; }
.look-mini[data-template="zine"] .look-mini-rows { gap: 4px; height: 135px; padding-top: 7px; }
.look-mini[data-template="zine"] .look-mini-rows i { border: 2px solid #27243d; background: #ffb9c3; transform: rotate(-0.5deg); }
.look-mini[data-template="zine"] .look-mini-rows i:nth-child(even) { background: #9dd8e5; transform: rotate(0.5deg); }
.look-mini[data-template="zine"] .look-mini-rows i::before { width: 9px; height: 9px; border: 0; background: #27243d; }
.look-mini[data-template="zine"] .look-mini-rows i::after { height: 5px; }
.look-mini[data-template="gallery"] { display: grid; grid-template-columns: 41% 59%; background: #fbfbf7; }
.look-mini[data-template="gallery"] .look-mini-heading { display: grid; place-content: center; height: 100%; border: 0; background: #27243d; color: #fffdfa; }
.look-mini[data-template="gallery"] .look-mini-heading i { width: 9px; height: 50px; margin: 9px auto 0; border: 0; border-radius: 0; background: #9dd8e5; }
.look-mini[data-template="gallery"] .look-mini-rows { height: auto; padding: 23px 16px; }
.look-mini[data-template="gallery"] .look-mini-rows i::before { left: 0; width: 7px; height: 7px; border: 0; }
.look-mini[data-template="gallery"] .look-mini-rows i::after { left: 17px; right: 0; height: 3px; }

.prompt-callout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.25fr) auto;
  gap: 26px;
  align-items: center;
  margin-top: 55px;
  padding: 30px 32px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}

.prompt-callout .eyebrow { margin-bottom: 6px; color: var(--coral); }
.prompt-callout h3 { margin: 0; font-family: var(--serif); font-size: 25px; line-height: 1.1; letter-spacing: -0.03em; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.prompt-chips span { padding: 7px 10px; border: 1px solid var(--border); border-radius: 99px; color: var(--ink-soft); font-size: 10px; }
.prompt-callout .secondary-cta { white-space: nowrap; }

/* Appearance controls in the publish dialog */
.publish-dialog .appearance-fieldset,
.publish-dialog .palette-fieldset,
.publish-dialog .privacy-fieldset { margin: 25px 0 22px; }
.appearance-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.appearance-option {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 9px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}
.appearance-option.selected { border-color: var(--ink); background: #f8f1d7; }
.appearance-option > input,
.palette-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.appearance-option > span:nth-of-type(2) { min-width: 0; }
.appearance-option b, .appearance-option small { display: block; }
.appearance-option b { font-size: 11px; }
.appearance-option small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; line-height: 1.35; }
.appearance-option em { display: none; position: absolute; top: 5px; right: 7px; color: #27243d; font-size: 9px; font-style: normal; }
.appearance-option.selected em { display: block; }
.appearance-thumb { position: relative; display: block; height: 57px; overflow: hidden; border: 1px solid var(--ink); background: #fffdfa; }
.appearance-thumb i { position: absolute; left: 8px; right: 8px; height: 5px; border-radius: 4px; background: #27243d; }
.appearance-thumb i:nth-child(1) { top: 11px; right: 25px; }
.appearance-thumb i:nth-child(2) { top: 26px; }
.appearance-thumb i:nth-child(3) { top: 41px; right: 17px; }
.appearance-thumb[data-template="keepsake"] { box-shadow: 3px 3px 0 #ffb9c3; }
.appearance-thumb[data-template="zine"] { border-width: 2px; background: #f6d75d; }
.appearance-thumb[data-template="zine"] i { height: 10px; border: 1px solid #27243d; border-radius: 0; background: #ffb9c3; transform: rotate(-1deg); }
.appearance-thumb[data-template="zine"] i:nth-child(2) { background: #9dd8e5; transform: rotate(1deg); }
.appearance-thumb[data-template="zine"] i:nth-child(3) { background: #a8d5ad; }
.appearance-thumb[data-template="gallery"] { background: linear-gradient(90deg, #27243d 0 38%, #fbfbf7 38%); }
.appearance-thumb[data-template="gallery"] i { left: 47%; height: 2px; background: #27243d; }
.palette-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.palette-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.palette-option.selected { border-color: var(--ink); background: #f8f1d7; }
.palette-option i { width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 50%; }
.palette-option i[data-palette="sunrise"] { background: linear-gradient(135deg, #ff8175 0 50%, #ffb9c3 50%); }
.palette-option i[data-palette="tidepool"] { background: linear-gradient(135deg, #6fc5d7 0 50%, #c9b8ef 50%); }
.palette-option i[data-palette="meadow"] { background: linear-gradient(135deg, #77bd84 0 50%, #f6d75d 50%); }

/* Shared-list semantic colors are authored independently of app light/dark mode. */
.published-view {
  --card-ink: #27243d;
  --card-muted: #666171;
  --card-paper: #fffdfa;
  --card-border: #ded8cf;
  --card-accent: #c34339;
  --card-accent-fill: #ff8175;
  --card-shadow: #ffb9c3;
  --card-pop: #f6d75d;
  --card-cool: #9dd8e5;
  --card-row-1: #ffd0d5;
  --card-row-2: #f8e48d;
  --card-row-3: #bce4eb;
  --card-row-4: #ddd3f5;
  --card-row-5: #cbe7ce;
}
.published-view[data-palette="tidepool"] { --card-accent: #286f84; --card-accent-fill: #6fc5d7; --card-shadow: #9dd8e5; --card-pop: #c9b8ef; --card-cool: #f6d75d; --card-row-1: #bce4eb; --card-row-2: #ddd3f5; --card-row-3: #f8e48d; --card-row-4: #cbe7ce; --card-row-5: #ffd0d5; }
.published-view[data-palette="meadow"] { --card-accent: #397549; --card-accent-fill: #77bd84; --card-shadow: #a8d5ad; --card-pop: #f6d75d; --card-cool: #ffb9c3; --card-row-1: #cbe7ce; --card-row-2: #f8e48d; --card-row-3: #ffd0d5; --card-row-4: #bce4eb; --card-row-5: #ddd3f5; }

.published-shell { padding-top: 112px; }
.published-actions {
  align-items: center;
  margin: 0 0 31px;
  padding: 18px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  box-shadow: 4px 4px 0 var(--ink);
}
.published-action-copy { min-width: 0; flex: 1; }
.published-action-copy > p:not(.tiny-label) { margin: 0 0 10px; color: var(--ink-soft); font-size: 10px; }
.published-actions .tiny-label { color: var(--ink); }

.published-card {
  color: var(--card-ink);
  background: var(--card-paper) !important;
  border-color: var(--card-ink);
  box-shadow: 12px 12px 0 var(--card-shadow), var(--shadow);
}
.published-header { border-color: var(--card-ink); }
.published-header .eyebrow { color: var(--card-accent); }
.published-header h1 { color: var(--card-ink); }
.published-header h1 span { color: var(--card-accent); }
.published-heading-copy > p:last-child,
.published-item-copy p { color: var(--card-muted); }
.published-list li { border-color: var(--card-border); }
.published-item-visual { color: var(--card-ink) !important; border-color: var(--card-ink) !important; }
.published-card .published-item-link { color: var(--card-ink); border-color: var(--card-border); }
.published-card .published-item-link:hover { border-color: var(--card-ink); background: var(--card-pop); }
.published-card-footer { color: var(--card-muted); background: color-mix(in srgb, var(--card-shadow) 36%, var(--card-paper)) !important; border-color: var(--card-ink); }
.published-card .brand-mini { color: var(--card-ink); }
.visitor-invite { background: var(--card-cool); }

/* Pop Zine: equal cut-paper strips and bold sans type. */
.published-view[data-template="zine"] {
  background:
    linear-gradient(135deg, transparent 0 48%, color-mix(in srgb, var(--card-shadow) 22%, transparent) 48% 52%, transparent 52%) 0 0 / 38px 38px,
    color-mix(in srgb, var(--card-pop) 18%, var(--cream));
}
.published-card[data-template="zine"] { border-width: 4px; border-radius: 1px; box-shadow: 15px 15px 0 var(--card-shadow), var(--shadow); }
.published-card[data-template="zine"] .published-header { align-items: center; padding: 36px 42px 30px; border-bottom-width: 4px; background: var(--card-pop); }
.published-card[data-template="zine"] .published-header .eyebrow { display: inline-block; padding: 5px 8px; background: var(--card-accent); color: #fffdfa; }
.published-card[data-template="zine"] .published-header h1 { font-family: var(--sans); font-size: clamp(42px, 7vw, 66px); font-weight: 900; letter-spacing: -0.055em; text-transform: uppercase; }
.published-card[data-template="zine"] .published-header h1 span { color: var(--card-accent); }
.published-card[data-template="zine"] .published-avatar { border-radius: 4px; background: var(--card-accent-fill); transform: rotate(5deg); }
.published-card[data-template="zine"] .published-list { display: grid; gap: 8px; padding: 13px; background: var(--card-paper); }
.published-card[data-template="zine"] .published-list li { min-height: 92px; padding: 15px 24px; border: 2px solid var(--card-ink); border-radius: 2px; background: var(--card-row-1); }
.published-card[data-template="zine"] .published-list li:nth-child(2) { background: var(--card-row-2); }
.published-card[data-template="zine"] .published-list li:nth-child(3) { background: var(--card-row-3); }
.published-card[data-template="zine"] .published-list li:nth-child(4) { background: var(--card-row-4); }
.published-card[data-template="zine"] .published-list li:nth-child(5) { background: var(--card-row-5); }
.published-card[data-template="zine"] .published-item-visual { width: 57px; height: 57px; border-radius: 6px; background: var(--card-paper); box-shadow: 3px 3px 0 var(--card-ink); }
.published-card[data-template="zine"] .published-item-copy strong { font-family: var(--sans); font-size: 21px; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }
.published-card[data-template="zine"] .published-item-copy p { color: #514c5c; }
.published-card[data-template="zine"] .published-card-footer { border-top-width: 4px; background: var(--card-ink) !important; color: #fffdfa; }
.published-card[data-template="zine"] .brand-mini { color: #fffdfa; }

/* Quiet Gallery: a restrained frame that still keeps all five equal. */
.published-view[data-template="gallery"] {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-cool) 24%, transparent) 1px, transparent 1px) 0 0 / 34px 34px,
    color-mix(in srgb, var(--card-cool) 12%, var(--cream));
}
.published-card[data-template="gallery"] { border-width: 1px; border-radius: 0; box-shadow: 0 28px 80px rgba(32, 33, 42, 0.2); }
.published-card[data-template="gallery"] .published-header { position: relative; padding: 54px 58px 45px 77px; border-bottom-width: 1px; background: #20212a; }
.published-card[data-template="gallery"] .published-header::before { content: ""; position: absolute; top: 48px; bottom: 42px; left: 49px; width: 8px; background: var(--card-accent-fill); }
.published-card[data-template="gallery"] .published-header .eyebrow { color: var(--card-accent-fill); }
.published-card[data-template="gallery"] .published-header h1 { color: #fffdfa; font-size: clamp(44px, 7vw, 67px); }
.published-card[data-template="gallery"] .published-header h1 span { color: #fffdfa; }
.published-card[data-template="gallery"] .published-heading-copy > p:last-child { color: #c9c8d0; }
.published-card[data-template="gallery"] .published-avatar { border-color: #fffdfa; background: transparent; color: #fffdfa; box-shadow: none; }
.published-card[data-template="gallery"] .published-list li { min-height: 120px; padding: 24px 58px; border-bottom-width: 1px; }
.published-card[data-template="gallery"] .published-item-visual { width: 54px; height: 54px; border: 0 !important; border-radius: 2px; }
.published-card[data-template="gallery"] .published-item-copy strong { font-size: 22px; }
.published-card[data-template="gallery"] .published-card-footer { border-top-width: 1px; background: #f4f5f1 !important; }

html[data-theme-resolved="dark"] .appearance-option.selected,
html[data-theme-resolved="dark"] .palette-option.selected { background: #3a3340; }
html[data-theme-resolved="dark"] .published-actions { background: rgba(37, 34, 49, 0.94); }

html[data-theme-resolved="light"] .hero h1 em,
html[data-theme-resolved="light"] .editor-intro h1 em,
html[data-theme-resolved="light"] .looks-heading h2 em,
html[data-theme-resolved="light"] .prompt-callout .eyebrow { color: #c34339; }
.item-name::placeholder,
.item-note::placeholder { color: #77717c; }
html[data-theme-resolved="dark"] .item-name::placeholder,
html[data-theme-resolved="dark"] .item-note::placeholder { color: #aaa4b2; }
.unfurl-result small { font-size: 9px; }
.unfurl-result strong { font-size: 13px; }
.unfurl-result p { font-size: 10px; }
.unfurl-result button { font-size: 10px; }

@media (max-width: 980px) {
  .looks-heading { grid-template-columns: 1fr; gap: 22px; }
  .looks-heading .eyebrow { grid-column: auto; }
  .looks-heading > p:last-child { max-width: 620px; }
  .looks-grid { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; }
  .look-card { transform: none !important; }
  .prompt-callout { grid-template-columns: 1fr; }
  .prompt-callout .secondary-cta { justify-self: start; }
}

@media (max-width: 700px) {
  .brand-name { font-size: 18px; }
  .looks-showcase { width: calc(100% - 36px); padding: 86px 0 90px; }
  .looks-heading h2 { font-size: 53px; }
  .looks-heading > p:last-child { font-size: 14px; }
  .looks-grid { margin-top: 42px; }
  .look-card { padding: 15px 15px 21px; }
  .look-mini { height: 198px; }
  .prompt-callout { padding: 25px 21px; }
  .prompt-callout .secondary-cta { width: 100%; }
  .editor-shell { padding-top: 96px; gap: 30px; }
  .editor-intro .back-link { margin-bottom: 25px; }
  .editor-intro h1 { font-size: 43px; }
  .editor-intro > p:not(.eyebrow) { margin: 19px 0 25px; font-size: 14px; }
  .item-card { grid-template-columns: 46px minmax(0, 1fr); gap: 8px; }
  .appearance-options { grid-template-columns: 1fr; }
  .appearance-option { display: grid; grid-template-columns: 74px 1fr 16px; align-items: center; }
  .appearance-option em { position: static; }
  .appearance-thumb { height: 50px; }
  .palette-options { grid-template-columns: 1fr; }
  .palette-option { min-height: 43px; }
  .published-shell { padding-top: 93px; }
  .published-back { margin-bottom: 17px; }
  .published-actions { gap: 15px; padding: 15px; margin-bottom: 28px; }
  .published-action-copy > p:not(.tiny-label) { font-size: 9px; }
  .published-card[data-template="zine"] .published-header { padding: 29px 23px 25px; }
  .published-card[data-template="zine"] .published-list { padding: 8px; }
  .published-card[data-template="zine"] .published-list li { grid-template-columns: 50px 1fr auto; gap: 12px; min-height: 95px; padding: 14px 13px; }
  .published-card[data-template="zine"] .published-item-visual { width: 48px; height: 48px; }
  .published-card[data-template="zine"] .published-item-copy strong { font-size: 17px; }
  .published-card[data-template="gallery"] .published-header { padding: 39px 25px 33px 42px; }
  .published-card[data-template="gallery"] .published-header::before { top: 35px; bottom: 30px; left: 25px; width: 6px; }
  .published-card[data-template="gallery"] .published-list li { padding: 20px 22px; }
  .social-share-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .social-share-grid a,
  .social-share-grid button { min-height: 58px; font-size: 10px; }
}
