* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg, #fff);
  color: var(--ink, #333);
  font:
    16px/1.6 Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
input {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a:hover {
  opacity: 0.7;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid #527feb;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
img {
  max-width: 100%;
  display: block;
}
button {
  border: 1px solid var(--line, #ddd);
  background: var(--card, #fff);
  border-radius: 7px;
  padding: 7px 12px;
}
.muted {
  color: var(--muted, #898989);
}
.small {
  font-size: 13px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.spacer {
  height: 48px;
}
details summary {
  cursor: pointer;
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}
details p {
  margin: 14px 0;
  color: var(--muted, #777);
}
.article {
  padding: 14px 0;
  border-bottom: 1px solid var(--line, #e8e8e8);
}
.article summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.article summary span {
  font-size: 12px;
  color: var(--muted, #888);
  flex: none;
}
.article[open] summary {
  color: var(--ink, #111);
}
.theme-toggle {
  border: 0;
  background: none;
  font-size: 18px;
  padding: 5px 8px;
}
body.light {
  --bg: #fafafa;
  --ink: #292929;
  --muted: #777;
  --line: #e2e2e2;
  --card: #fff;
}
dialog {
  background: var(--bg, #fff);
  color: var(--ink, #333);
  border: 1px solid var(--line, #ddd);
  border-radius: 16px;
  width: min(900px, calc(100% - 30px));
  max-height: 90dvh;
  padding: 28px;
}
dialog::backdrop {
  background: #0007;
  backdrop-filter: blur(6px);
}
dialog .close {
  float: right;
}
dialog h2 {
  font-weight: 400;
  margin-top: 8px;
}
dialog img {
  border-radius: 8px;
}
.demo-project {
  padding: 36px;
  border-radius: 12px;
  background: #edf0f5;
  color: #38415b;
  margin: 18px 0;
}
.demo-project h3 {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.demo-ui {
  background: white;
  border-radius: 9px;
  padding: 22px;
  box-shadow: 0 12px 32px #0001;
}
.demo-ui .row {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.demo-ui small {
  color: #999;
}
.demo-tag {
  background: #edf0f7;
  color: #7c89a3;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 12px;
}
.footer {
  margin-top: 64px;
  color: var(--muted, #888);
  font-size: 13px;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.pill {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line, #ddd);
  border-radius: 30px;
  padding: 7px 14px;
  background: var(--card, #fff);
  font-size: 14px;
}
.copy-status {
  font-size: 12px;
}
.hidden {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .row {
    gap: 10px;
  }
  .demo-project {
    padding: 22px;
  }
  .demo-project h3 {
    font-size: 26px;
  }
  dialog {
    padding: 20px;
  }
}
.margin {
  width: min(540px, 100%);
  margin: 58px 0 80px 5%;
  padding: 0 24px;
}
.margin h1,
.margin h2 {
  font-size: 16px;
  font-weight: 400;
}
.margin header p {
  margin: 0;
}
.margin h1 {
  margin-bottom: 0;
}
.margin .bio {
  margin: 62px 0 58px;
}
.margin h2 {
  color: #929292;
  margin: 45px 0 8px;
}
.margin .article {
  border: 0;
  padding: 5px 0;
  color: #626262;
}
.margin .article p {
  padding-left: 14px;
  border-left: 1px solid #ddd;
}
.search-button {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 30px;
  box-shadow: 0 0 0 4px #eee9;
  background: #fff;
  font-size: 13px;
}
.margin a {
  text-decoration-color: #bbb;
}
#search-dialog {
  max-width: 520px;
}
#search-dialog input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
  color: #333;
}
@media (max-width: 600px) {
  .margin {
    margin-left: 0;
    padding: 0 24px;
  }
}

/* Keep the original UI inspiration visible in previews and downloads. */
.ui-inspiration-credit{max-width:960px;margin:32px auto 0;padding:22px 24px;border-top:1px solid var(--line,#e5e5df);font:13px/1.6 Helvetica,Arial,sans-serif;color:var(--muted,#74746c);text-align:center}.ui-inspiration-credit a{color:var(--ink,#35352f);text-decoration:underline;text-underline-offset:3px}.ui-inspiration-credit a:hover{opacity:.75}
