* {
  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;
  }
}
body {
  --bg: #111;
  --ink: #dadada;
  --muted: #969696;
  --line: #292929;
  --card: #0c0c0c;
}
.craft {
  max-width: 704px;
  margin: 95px auto 60px;
  padding: 0 24px;
}
.craft .identity {
  display: flex;
  gap: 14px;
  align-items: center;
}
.craft-mark {
  font-size: 48px;
  line-height: 1;
  color: #b5b5b5;
}
.craft h1,
.craft h2 {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}
.craft-bio {
  margin-top: 29px;
}
.craft-bio p {
  margin-bottom: 22px;
}
.craft-bio em {
  font-family: Georgia, serif;
  font-size: 18px;
}
.craft #projects {
  margin-top: 125px;
}
.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 23px;
}
.craft-grid button {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  outline: 4px double var(--line);
  outline-offset: -7px;
  border-radius: 18px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.craft-grid button:hover {
  transform: translateY(-3px);
  background: #171717;
}
.craft-grid strong {
  font-weight: 400;
}
.symbol {
  height: 110px;
  display: grid;
  place-items: center;
  width: 100%;
  font-size: 58px;
  color: #565656;
  filter: drop-shadow(0 6px 6px #0005);
}
.symbol.word {
  font-size: 32px;
  color: #c4c4c4;
  letter-spacing: -1.5px;
}
.craft-grid .color-card {
  grid-column: 1/-1;
}
.color-card .symbol {
  height: 70px;
  color: #a1b68d;
}
.craft-writing,
.newsletter {
  margin-top: 64px;
}
.craft-writing h2,
.newsletter h2 {
  margin-bottom: 16px;
}
.script-sign {
  font:
    italic 26px Georgia,
    serif;
}
.craft-grid span.muted {
  font-size: 14px;
}
@media (max-width: 600px) {
  .craft {
    margin-top: 50px;
  }
  .craft #projects {
    margin-top: 70px;
  }
  .craft-grid {
    gap: 12px;
  }
  .craft-grid button {
    padding: 16px;
  }
  .craft-grid strong {
    font-size: 14px;
  }
  .craft-grid span.muted {
    font-size: 12px;
  }
  .craft header > .theme-toggle {
    display: none;
  }
}

/* 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}
