/* A builder's public page (api/_builder/page.js): the app's paper and ink, no scripts. Palette as legal.css. */
:root {
  color-scheme: light;
  --paper: #fbf2df;
  --card: #fff8ea;
  --ink: #43281a;
  --soft: #7a5a44;
  --line: #ecd9b8;
  --accent: #e5694f;
  --accent-ink: #fffaf0;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
body {
  font: 17px/1.55 ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  padding: 28px 20px 64px;
}
.top,
main,
footer {
  max-width: 720px;
  margin: 0 auto;
}
.top a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}
.top img {
  width: 36px;
  height: 36px;
}
main.b {
  margin-top: 20px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 28px;
  padding: 36px clamp(18px, 5vw, 44px) 40px;
  display: grid;
  gap: 22px;
}
.b__who {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
}
.b__face {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: var(--paper);
  border: 6px solid var(--accent);
  box-shadow: 0 0 0 4px var(--card), 0 14px 30px -14px rgba(67, 40, 26, 0.55);
  object-fit: cover;
}
h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.b__founder {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e2483d;
  color: #fff3d6;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 2px #f2c14e;
}
.b__facts {
  margin: 0;
  color: var(--soft);
  font-weight: 700;
  font-size: 15px;
}
.b__proj {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.b__proj:hover {
  box-shadow: inset 0 0 0 2px var(--accent);
  transform: translateY(-1px);
}
.tile {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  object-fit: cover;
  box-shadow: 0 4px 12px -6px rgba(67, 40, 26, 0.5);
}
.b__projtxt {
  display: grid;
  min-width: 0;
  flex: 1;
}
.b__projtxt small {
  color: var(--soft);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.b__projtxt strong {
  font-size: 22px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.b__projtxt span {
  color: var(--soft);
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.b__visit {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 15px;
}
.b__tagline {
  margin: -10px 4px 0;
  color: var(--soft);
  font-style: italic;
}
.b__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
}
.b__stats li {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 12px 4px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line);
}
.b__stats strong {
  font-size: 22px;
  line-height: 1.2;
}
.b__stats span {
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 700;
}
/* The year of focus: GitHub's contribution grid in the page's coral */
.act {
  --c0: #f1e2c4;
  --c1: #f9c9a9;
  --c2: #f29d7b;
  --c3: #e5694f;
  --c4: #a93f2a;
  display: grid;
  gap: 10px;
}
.act h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--soft);
}
.act h2 strong {
  color: var(--ink);
  font-weight: 800;
}
.act__scroll {
  padding: 14px 16px 12px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line);
  overflow-x: auto;
  /* opens scrolled to the latest weeks on a narrow screen */
  direction: rtl;
}
.act__cal {
  direction: ltr;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 6px;
  row-gap: 4px;
  min-width: 560px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: var(--soft);
}
.act ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.act__months {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(53, minmax(0, 1fr));
  gap: 2px;
}
.act__months li {
  white-space: nowrap;
}
.act__days {
  grid-row: 2;
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  row-gap: 2px;
}
.act__days li {
  display: grid;
  align-items: center;
}
.act__days li:nth-child(1) {
  grid-row: 2;
}
.act__days li:nth-child(2) {
  grid-row: 4;
}
.act__days li:nth-child(3) {
  grid-row: 6;
}
.act__cells {
  grid-row: 2;
  grid-column: 2;
  display: grid;
  grid-template-rows: repeat(7, auto);
  grid-template-columns: repeat(53, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 2px;
}
.act__cells li,
.act__key i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--c0);
}
.act .l1 {
  background: var(--c1);
}
.act .l2 {
  background: var(--c2);
}
.act .l3 {
  background: var(--c3);
}
.act .l4 {
  background: var(--c4);
}
.act .sh {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.act__foot {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  color: var(--soft);
  font-size: 13.5px;
  font-weight: 700;
}
.act__key {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.act__key i {
  display: inline-block;
  width: 11px;
}
.act__key i.sh {
  margin: 0 3px 0 12px;
}
.b__cta {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding-top: 6px;
  border-top: 2px dashed var(--line);
}
.b__cta p {
  margin: 12px 0 0;
  color: var(--soft);
}
.b__cta strong {
  color: var(--ink);
}
.b__btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 0 #b9452f;
  transition: transform 0.1s, box-shadow 0.1s;
}
.b__btn:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #b9452f;
}
.b__more {
  color: var(--soft);
  font-weight: 700;
  font-size: 15px;
}
/* /shipped */
.b--shipped .b__who h1 {
  margin-top: 0;
}
.ship-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.s {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line);
}
.s__who,
.s__proj {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.s__who img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 3px solid var(--accent);
  background: var(--card);
  object-fit: cover;
}
.s__who span,
.s__txt {
  display: grid;
  min-width: 0;
  flex: 1;
}
.s strong {
  font-size: 18px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s small {
  color: var(--soft);
  font-weight: 700;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s__who:hover strong {
  text-decoration: underline;
}
.s__proj {
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--line);
  transition: box-shadow 0.15s;
}
.s__proj:hover {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.s .tile {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
}
.s__visit {
  flex: none;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}
.b__empty {
  margin: 0;
  padding: 22px;
  text-align: center;
  color: var(--soft);
  font-weight: 700;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line);
}
.b--missing {
  justify-items: center;
  text-align: center;
}
.b--missing p {
  margin: 0;
  color: var(--soft);
}
footer {
  margin-top: 22px;
  text-align: center;
  color: var(--soft);
  font-size: 15px;
}
footer a {
  color: var(--soft);
  margin: 0 8px;
}
@media (max-width: 480px) {
  .b__proj {
    flex-wrap: wrap;
  }
  .b__visit {
    width: 100%;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .b__proj,
  .b__btn {
    transition: none;
  }
}
