:root {
  --bg: #fff8f0;
  --ink: #162d32;
  --muted: #4d6266;
  --coral: #185a5b;
  --coral-deep: #162d32;
  --dark: #162d32;
}

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ivory, #fff8f0);
}

body.fc-site {
  background-image: linear-gradient(#185a5b, #185a5b);
  background-size: 100% 120px;
  background-repeat: no-repeat;
}

@media (max-width: 960px) {
  .hub.wrap { width: calc(100% - 20px); }
}

.logo-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
}

.button-primary {
  background: #185a5b;
  border-color: #185a5b;
}

.button-primary:hover {
  background: #162d32;
}

/* The hub lines up with the top menu pill, not with the wider account pages. */
.hub.wrap {
  width: min(1180px, calc(100% - 48px));
  padding-top: 40px;
}

.hub-head {
  margin: 0 0 clamp(40px, 5vw, 64px);
}

.hub-head h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(34px, 3.8vw, 44px);
  margin: 0 0 14px;
}

.hub-head .notice { margin-top: 20px; }

.hub-head .lede,
.lede {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.5;
  max-width: none;
}

.account-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.account-list li {
  border-bottom: 1px solid rgba(22, 45, 50, 0.12);
}

.account-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
}

.account-list span {
  color: var(--muted);
  font-size: 15px;
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 24px 0 0;
}

.hub-start {
  margin: 0 0 clamp(48px, 6vw, 76px);
}

.hub-start h2,
.hub-sub {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(32px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

/* Air between the sections, so the two halves of the page read apart. */
.hub-sub { margin-top: clamp(48px, 6vw, 76px); }
.hub-shelf + .hub-sub { margin-top: clamp(44px, 5vw, 64px); }

.hub-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hub-start-tile {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(22, 45, 50, 0.1);
  color: #162d32;
  text-decoration: none;
}

.hub-start-art {
  position: relative;
  display: block;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  background: #162d32;
}

.hub-start-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px 24px;
  flex: 1;
}

.hub-start-tile strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hub-start-tile em {
  font-style: normal;
  font-size: 16px;
  line-height: 1.45;
  color: #4d6266;
  margin-bottom: 14px;
  min-height: 2.9em;
}

.hub-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.hub-start-go,
.hub-start-more {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  min-height: 44px;
  border-radius: 999px;
  background: #185a5b;
  color: #fff8f0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.hub-start-go { text-decoration: none; }

.hub-start-more {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(22, 45, 50, 0.22);
  text-decoration: none;
}


/* Product mocks: each tile shows the thing you make, like the homepage. */
.hub-start-art img { display: block; }
.hub-mock-cover { border-radius: 6px; box-shadow: 0 14px 28px rgba(22, 45, 50, 0.22); object-fit: cover; }

.hub-art--card { display: flex; align-items: center; justify-content: center; }
.hub-art--card img { height: 88%; width: auto; filter: drop-shadow(0 12px 18px rgba(22, 45, 50, 0.16)); }

.hub-art--group { display: flex; align-items: center; justify-content: center; gap: 4%; padding: 0 7%; }
.hub-art--group .hub-mock-cover { height: 80%; width: auto; aspect-ratio: 3 / 4; flex: none; }
.hub-mock-notes { display: grid; gap: 8px; width: 42%; }
.hub-mock-note {
  display: grid; gap: 4px; padding: 7px; border-radius: 8px; background: #fff;
  box-shadow: 0 8px 18px rgba(22, 45, 50, 0.12); font-size: 11px; line-height: 1.3;
}
.hub-mock-note img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.hub-mock-note b { font-weight: 600; color: #162d32; }
.hub-mock-note i { font-style: normal; color: #4d6266; font-size: 10px; }

.hub-art--video { display: flex; align-items: center; justify-content: center; }
.hub-mock-screen {
  position: relative; width: 84%; aspect-ratio: 16 / 9; display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  padding: 4px; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 16px 30px rgba(22, 45, 50, 0.25);
}
.hub-mock-screen img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; filter: brightness(0.82); }
.hub-mock-screen b {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 6px 8px;
  background: rgba(10, 30, 32, 0.62); color: #fff; text-align: center;
  font: 600 clamp(12px, 1.3vw, 16px)/1.2 "Source Serif 4", Georgia, serif;
}
.hub-mock-play {
  position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: #d6816d;
}
.hub-mock-play::after {
  content: ""; position: absolute; left: 12px; top: 9px; border-left: 10px solid #162d32; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

.hub-art--gif { }
.hub-mock-gif { position: absolute; left: 50%; top: 8%; height: 84%; aspect-ratio: 3 / 4; transform: translateX(-62%) rotate(-3deg); }
.hub-mock-gif .hub-mock-cover { width: 100%; height: 100%; }
.hub-mock-face { position: absolute; left: 30.5%; top: 31%; width: 39%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.hub-mock-gif b {
  position: absolute; left: 0; right: 0; top: 66%; text-align: center; color: #c2185b;
  font: 700 clamp(15px, 1.8vw, 22px)/1 "Source Serif 4", Georgia, serif;
}
.hub-art--invite { }
.hub-mock-invite {
  position: absolute; left: 50%; top: 9%; height: 82%; aspect-ratio: 3 / 4; transform: translateX(-70%) rotate(-3deg);
  border-radius: 6px; overflow: hidden; background: #f6dfe0; box-shadow: 0 14px 28px rgba(22, 45, 50, 0.22);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 10%; text-align: center;
}
.hub-mock-invite img { position: absolute; inset: 0; width: 100%; height: 70%; object-fit: cover; }
.hub-mock-invite b { position: relative; font: 600 clamp(15px, 1.7vw, 20px)/1.1 "Source Serif 4", Georgia, serif; color: #162d32; }
.hub-mock-invite i { position: relative; font-style: normal; font-size: 11px; color: #4d6266; margin-top: 4px; }
.hub-mock-rsvp { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.hub-mock-rsvp span {
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; color: #162d32;
  border: 1.5px solid rgba(22, 45, 50, 0.2); box-shadow: 0 6px 14px rgba(22, 45, 50, 0.1); text-align: center;
}
.hub-mock-rsvp span:first-child { background: #d6816d; color: #162d32; border-color: #d6816d; }

.hub-mock-wall {
  position: absolute; inset: 12px 12px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  align-items: start; overflow: hidden; padding: 6px 6px 0; border-radius: 10px 10px 0 0; background: #f6efe6;
}
.hub-wall-col { display: grid; gap: 6px; }
.hub-wall-col > span {
  display: grid; gap: 3px; padding: 6px; border-radius: 6px; background: #fff;
  box-shadow: 0 1px 2px rgba(22, 45, 50, 0.08);
  font-size: 10.5px; line-height: 1.3; color: #162d32;
}
.hub-mock-wall img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.hub-mock-wall b { font-weight: 600; }
.hub-wall-col > span > i:not(.hub-mock-play) { font-style: normal; font-size: 9.5px; font-weight: 700; }
.hub-mock-wall .hub-mock-clip { position: relative; display: block; }
.hub-mock-clip .hub-mock-play { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: 22px; height: 22px; }
.hub-mock-wall .hub-mock-voice { display: flex; align-items: center; gap: 2px; height: 34px; }
.hub-mock-voice .hub-mock-play { position: relative; right: auto; bottom: auto; flex: none; width: 20px; height: 20px; margin-right: 4px; }
.hub-mock-clip .hub-mock-play::after,
.hub-mock-voice .hub-mock-play::after { left: 8px; top: 6px; border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
.hub-mock-voice .hub-mock-play::after { left: 7px; top: 5px; }
.hub-mock-voice s { flex: 1; height: 30%; border-radius: 2px; background: #c9b8d6; }
.hub-mock-voice s:nth-child(3n) { height: 65%; }
.hub-mock-voice s:nth-child(4n+1) { height: 45%; }
.hub-mock-voice s:nth-child(5n) { height: 85%; }

.hub-piece-art.hub-piece-art--video { aspect-ratio: 16 / 9; width: 160px; background: #162d32; }
.hub-video-blank {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(214, 129, 109, 0.35) 0 16%, transparent 17%),
    radial-gradient(ellipse at center, #4a2862 0%, #162d32 80%);
}


/* One card per row, full width: the cover and the name on the left, every
   button on one line on the right. */
.hub-shelf {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 8px 0 0;
}

.hub-piece {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(22, 45, 50, 0.08);
}

.hub-piece-art {
  display: block;
  flex: none;
  width: 122px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #f4efe8;
}

.hub-piece-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The composed cover rendered as the thumbnail: fill the frame, drop its own
   corners and shadow. Every design word is sized relative to this small frame
   (container units) so long titles like "Merry Christmas" always fit. */
.hub-piece-art .cover {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  container-type: inline-size;
}
.hub-piece-art .cover-word { font-size: 11cqw !important; }
.hub-piece-art .cover-kicker { font-size: 4.5cqw !important; }
.hub-piece-art .cover-note { font-size: 4.5cqw !important; }
.hub-piece-art .cover-name { font-size: 5.5cqw !important; }

/* The card the owner just made, when the dashboard scrolls to it. */
.hub-piece.is-fresh {
  animation: hub-fresh 2.6s ease-out;
}
@keyframes hub-fresh {
  0%, 30% { box-shadow: 0 0 0 3px var(--coral, #d6816d), 0 14px 34px rgba(22, 45, 50, 0.14); }
  100% { box-shadow: 0 14px 34px rgba(22, 45, 50, 0.08); }
}

.hub-piece-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.hub-piece-text {
  min-width: 0;
}

/* Which of the two things this is, said plainly, before the name. */
.hub-piece-kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: #f7ecc7;
  color: #6d4d05;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hub-piece-kind.is-group {
  background: #ece3f5;
  color: #4a2364;
}

.hub-piece-kind .hub-ico {
  width: 17px;
  height: 17px;
  flex: none;
}

.hub-piece-body h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 6px;
}

.hub-piece-meta {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* Every button on one line, big enough to hit without aiming. Delete sits
   last, after a wider gap, so it is never the one you hit by mistake. */
.hub-piece-more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.hub-piece-more form { margin: 0 0 0 auto; padding-left: 14px; }

.hub-piece-go,
.hub-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.hub-piece-go {
  background: #185a5b;
  color: #fff8f0;
}

.hub-piece-go:hover { background: #134849; }

.hub-act {
  background: #f5f0e8;
  color: #3d2450;
}

.hub-act .hub-ico {
  width: 20px;
  height: 20px;
  flex: none;
}

.hub-act:hover {
  background: #ece2d2;
  color: #162d32;
}

.hub-piece-go:focus-visible,
.hub-act:focus-visible {
  outline: 3px solid #c4921c;
  outline-offset: 2px;
}

.hub-act-danger {
  background: #fbeceb;
  color: #a8231f;
}

.hub-act-danger .hub-ico { stroke-width: 1.8; }

.hub-act-danger:hover {
  background: #f6dcda;
  color: #8c1a17;
}

.hub-act-danger:focus-visible { outline-color: #a8231f; }

@media (prefers-reduced-motion: reduce) {
  .hub-piece-go,
  .hub-act { transition: none; }
}

@media (max-width: 620px) {
  .hub-piece {
    gap: 16px;
    padding: 16px;
    align-items: flex-start;
  }

  .hub-piece-art { width: 96px; }
  .hub-piece-art.hub-piece-art--video { width: 110px; }
  .hub-piece-body h3 { font-size: 23px; }
  .hub-piece-meta { font-size: 16px; }
  .hub-piece-more form { margin-left: 0; }
}

.hub-empty {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

@media (max-width: 980px) {
  .hub-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hub-start-grid { grid-template-columns: 1fr; }
}

