/* ABOUTME: Gives the standalone widget playground a calm, responsive sample workspace. */
/* ABOUTME: Styles the host page independently to demonstrate widget style isolation. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/dm-sans-400.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/dm-sans-500.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/dm-sans-600.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/dm-sans-700.ttf") format("truetype");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/instrument-serif.ttf") format("truetype");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/instrument-serif-italic.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --ink: #243c31;
  --muted: #7a8275;
  --accent: #285b49;
  --line: #dde1d4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f7ef;
  color: var(--ink);
  font:
    14px/1.6 "DM Sans",
    sans-serif;
}
button,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #6b9a7a;
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.site-header {
  margin: 0 auto;
  max-width: 1440px;
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -1px;
}
.logo-mark {
  background: var(--accent);
  color: #fff;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.logo-mark svg {
  width: 24px;
  height: 24px;
}
.wordmark-divider {
  height: 18px;
  width: 1px;
  background: #c9d0c0;
  margin: 0 8px;
}
.wordmark-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.header-status {
  border: 1px solid #d8e0cf;
  background: #eff3e6;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #58744f;
}
.header-status > span,
.small-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #739663;
  border-radius: 50%;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 56px;
}
.intro {
  padding: 63px 0 47px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #7c8970;
}
h1 {
  font:
    68px/0.98 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -1.6px;
  margin: 18px 0 22px;
}
h1 em {
  font-weight: 400;
  color: #5d7853;
}
.intro-copy {
  max-width: 430px;
  font-size: 13px;
  line-height: 1.8;
  color: #798270;
}
.intro-aside {
  padding-right: 8px;
  padding-bottom: 4px;
}
.little-note {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #80925e;
  margin-bottom: 24px;
}
.little-note svg {
  width: 64px;
  height: 58px;
  transform: rotate(-8deg);
}
.little-note p {
  font:
    italic 23px/1.1 "Instrument Serif",
    Georgia,
    serif;
}
.open-feedback {
  border: 1px solid #ccd5bf;
  background: transparent;
  border-radius: 8px;
  padding: 11px 16px;
  display: flex;
  gap: 25px;
  font-size: 12px;
  color: var(--accent);
}
.open-feedback:hover {
  background: #eaf0e0;
}
.playground-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 32px;
}
.sample-app {
  background: #fff;
  border: 1px solid #dbe1d4;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px #23382905;
  align-self: start;
}
.sample-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
}
.workspace-name {
  display: flex;
  align-items: center;
  gap: 11px;
}
.workspace-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #edeede;
  color: #757e53;
  border: 1px solid #dedfc9;
  border-radius: 10px;
  font:
    24px/1 "Instrument Serif",
    Georgia,
    serif;
}
.workspace-name strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.workspace-name div > span {
  display: block;
  font-size: 10px;
  color: #8b9285;
}
.demo-tag {
  font-size: 8px;
  letter-spacing: 1.2px;
  padding: 3px 6px;
  border: 1px solid #e2e6dc;
  border-radius: 4px;
  color: #7b8b74;
}
.sample-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 0 25px;
  border-bottom: 1px solid #e9ece3;
  align-items: center;
}
.sample-toolbar nav {
  display: flex;
  gap: 23px;
}
.sample-toolbar button {
  background: none;
  border: none;
  font-size: 10px;
  padding: 9px 0 14px;
  color: #899380;
  border-bottom: 2px solid transparent;
}
.sample-toolbar button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.iteration {
  font-size: 9px;
  color: #8b9484;
}
.board-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px 25px 26px;
}
.board-eyebrow {
  color: #91a080;
  letter-spacing: 1.4px;
  font-size: 8px;
}
.board-heading h2 {
  font:
    31px/1.2 "Instrument Serif",
    Georgia,
    serif;
  margin-top: 5px;
}
.board-heading p:last-child {
  color: #909887;
  font-size: 9px;
  margin-top: 5px;
}
.reviewers {
  display: flex;
  padding-right: 3px;
}
.reviewers span {
  width: 26px;
  height: 26px;
  border: 2px solid white;
  border-radius: 50%;
  background: #e5eddc;
  display: grid;
  place-items: center;
  font-size: 7px;
  color: #72856a;
  margin-right: -5px;
}
.reviewers span:nth-child(2) {
  background: #e4eaf0;
  color: #6a7d98;
}
.reviewers span:nth-child(3) {
  background: #f3e9dd;
  color: #9b8068;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 25px 25px;
  min-height: 357px;
}
.column {
  background: #f6f7f1;
  border: 1px solid #e9ece2;
  border-radius: 9px;
  padding: 10px;
  align-self: stretch;
}
.column h3 {
  display: flex;
  align-items: center;
  font-size: 9px;
  gap: 6px;
  padding: 1px 2px 13px;
  font-weight: 500;
}
.column-count {
  margin-left: auto;
  color: #939d89;
  font-size: 8px;
}
.column-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.todo {
  background: #9aab8b;
}
.progress {
  background: #d2a15d;
}
.done {
  background: #619875;
}
.task {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 10px 10px;
  background: white;
  border: 1px solid #e2e7d9;
  border-radius: 7px;
  color: inherit;
  margin-bottom: 8px;
  box-shadow: 0 2px 3px #263b2410;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.task:hover {
  transform: translateY(-2px);
  border-color: #b9c9ab;
}
.task-tag {
  display: inline-block;
  font-size: 7px;
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 8px;
}
.design {
  background: #eef0e0;
  color: #899164;
}
.interface {
  background: #f8ecdc;
  color: #b28a52;
}
.experience {
  background: #e9f1e6;
  color: #709268;
}
.task > strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}
.task > p {
  font-size: 8px;
  line-height: 1.6;
  color: #939b8a;
  margin-top: 6px;
}
.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 11px;
  font-size: 7px;
  color: #a6af9c;
}
.task-owner {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  background: #edf2e7;
  color: #81936d;
  font-size: 6px;
}
.task-owner.blue {
  background: #e7edf3;
  color: #7f95a9;
}
.task-owner.peach {
  background: #f7edde;
  color: #b69874;
}
.column-placeholder {
  margin-top: 19px;
  text-align: center;
  font-size: 8px;
  color: #a7b39b;
  padding: 0 12px;
}
.sample-footer {
  padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e9ece3;
  font-size: 8px;
  color: #9ba78e;
  background: #fcfdf9;
}
.sample-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sample-footer .small-dot {
  width: 4px;
  height: 4px;
}
.setup {
  padding-top: 4px;
}
.setup-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-number {
  font-size: 9px;
  color: #809170;
  border: 1px solid #d6dfcb;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.setup-heading h2 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.setup > p {
  font-size: 11px;
  color: #8b947f;
  line-height: 1.8;
  margin: 12px 0 17px;
}
.code-block {
  background: #eaf0e2;
  border: 1px solid #d9e2cd;
  border-radius: 9px;
  overflow: hidden;
}
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #dce4d1;
  color: #8c9b7c;
  font: 8px/1.5 monospace;
}
.code-header button {
  border: 0;
  background: none;
  font-size: 8px;
  color: #6e8560;
  padding: 2px;
}
pre {
  margin: 0;
  padding: 14px 12px;
  font: 9px/1.9 monospace;
  color: #648354;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.position-control {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.position-control label {
  font-size: 10px;
  color: #7a886d;
}
.position-control select {
  width: 100%;
  background: #fafbf5;
  border: 1px solid #d9e1ce;
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 10px;
  color: #5e7351;
}
.setup-divider {
  margin: 25px 0 22px;
  height: 1px;
  background: var(--line);
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 15px 0 20px;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 10px;
  color: #8b947d;
  font-size: 10px;
  line-height: 1.8;
  margin: 10px 0;
}
.steps li::before {
  content: counter(step);
  color: #9eac8d;
  font-size: 9px;
}
.local-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px dashed #ccd9bc;
  border-radius: 8px;
}
.local-note .small-dot {
  margin-top: 5px;
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
}
.local-note p {
  font-size: 9px;
  color: #8b997b;
  line-height: 1.8;
}
.local-note strong {
  display: block;
  font-weight: 500;
  color: #728561;
}
.context-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  border-top: 1px solid var(--line);
  padding: 38px 0 42px;
  margin-top: 43px;
}
.context-demo h2 {
  font:
    30px/1.2 "Instrument Serif",
    Georgia,
    serif;
  margin-top: 9px;
}
.context-demo p:not(.eyebrow) {
  font-size: 11px;
  color: #8a947d;
  margin-top: 10px;
  max-width: 430px;
  line-height: 1.8;
}
.context-preview {
  padding: 14px 16px;
  background: #eef1e6;
  border: 1px solid #dce3d0;
  border-radius: 8px;
  align-self: center;
}
.context-preview > span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #9aaa89;
  margin-bottom: 7px;
}
.context-preview code {
  display: block;
  font-size: 9px;
  color: #7b9069;
  overflow-wrap: anywhere;
}
.context-preview button {
  background: transparent;
  border: 0;
  padding: 0;
  color: #587747;
  font-size: 9px;
  margin-top: 12px;
}
.context-preview button:hover {
  text-decoration: underline;
}
.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 23px 0 35px;
  color: #9ba78e;
  font-size: 9px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  .intro {
    padding-top: 80px;
  }
  .playground-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 45px;
  }
  .board {
    min-height: 420px;
  }
  .task {
    padding: 18px 14px;
  }
  .task > strong {
    font-size: 12px;
  }
  .task > p {
    font-size: 10px;
  }
}
@media (max-width: 1000px) {
  .site-header {
    padding: 24px 28px;
  }
  main {
    padding: 0 28px;
  }
  .playground-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .setup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
  .setup-heading,
  .setup > p,
  .code-block,
  .position-control {
    grid-column: 1;
  }
  .setup-divider {
    display: none;
  }
  .setup-heading:nth-of-type(4) {
    grid-column: 2;
    grid-row: 1;
  }
  .steps {
    grid-column: 2;
    grid-row: 2 / span 3;
    margin: 0;
  }
  .local-note {
    grid-column: 2;
    grid-row: 5;
  }
}
@media (max-width: 600px) {
  .site-header {
    padding: 20px;
  }
  main {
    padding: 0 20px;
  }
  .wordmark {
    font-size: 21px;
  }
  .wordmark-divider,
  .wordmark-note {
    display: none;
  }
  .header-status {
    font-size: 9px;
    padding: 5px 8px;
  }
  .intro {
    padding: 40px 0 30px;
    display: block;
  }
  h1 {
    font-size: 56px;
  }
  .intro-copy {
    font-size: 12px;
  }
  .intro-aside {
    margin-top: 22px;
  }
  .little-note {
    display: none;
  }
  .open-feedback {
    width: 100%;
    justify-content: space-between;
  }
  .sample-header {
    padding: 18px;
  }
  .sample-toolbar {
    padding: 0 18px;
  }
  .board-heading {
    padding: 23px 18px;
  }
  .board-heading h2 {
    font-size: 28px;
  }
  .board {
    display: flex;
    overflow-x: auto;
    padding: 0 18px 20px;
  }
  .column {
    flex: 0 0 190px;
  }
  .task > strong {
    font-size: 11px;
  }
  .task > p {
    font-size: 9px;
  }
  .sample-footer {
    padding: 12px 18px;
  }
  .sample-footer > span:last-child {
    display: none;
  }
  .setup {
    display: block;
    padding-top: 10px;
  }
  .setup-divider {
    display: block;
  }
  .code-header {
    font-size: 10px;
  }
  pre {
    font-size: 11px;
  }
  .position-control label,
  .position-control select,
  .steps li {
    font-size: 12px;
  }
  .local-note p {
    font-size: 11px;
  }
  .context-demo {
    display: block;
    padding: 30px 0;
    margin-top: 35px;
  }
  .context-preview {
    margin-top: 20px;
  }
  .context-demo p:not(.eyebrow) {
    font-size: 12px;
  }
  .site-footer {
    padding-bottom: 100px;
  }
  .site-footer > span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
