/* Signup, login and the console. Tokens, type, buttons and the brand live in base.css. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Top bar */
.bar-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  min-height: 72px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 auto 0 clamp(8px, 3vw, 44px);
}
.tabs > * {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.tabs a[aria-current] {
  color: var(--ink);
}
.tabs a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--orange);
}
.chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--marigold-wash);
  color: var(--marigold-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}
.avatar:empty {
  visibility: hidden;
}
.account-email {
  max-width: 24ch;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 14.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The door: a card with the sloth peeking over it */
.door {
  position: relative;
  width: min(440px, 100%);
}
.door-sloth {
  width: 150px;
  height: auto;
  margin: 0 auto -58px;
  animation: nod 9s ease-in-out infinite;
  transition: translate 0.7s var(--ease);
}
.door:has(input[type="password"]:focus) .door-sloth {
  translate: 0 42%;
}
.door .paw-left {
  left: calc(50% - 120px);
}
.door .paw-right {
  right: calc(50% - 120px);
}
.card {
  position: relative;
  z-index: 1;
  padding: 46px 40px 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(42, 28, 19, 0.03), 0 40px 70px -40px rgba(42, 28, 19, 0.28);
}
.card h1,
.card h2 {
  font-size: clamp(2rem, 7vw, 2.5rem);
  font-weight: 440;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.card h1 em {
  color: var(--orange);
}
.card-lede {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

/* Forms */
.form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
.field {
  display: grid;
  gap: 8px;
}
.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 560;
}
.field-label small {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
}
.field input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 400 16px var(--sans);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input::placeholder {
  color: #b9aea1;
}
.field input:hover,
.affix:hover {
  border-color: #b9aea1;
}
.field input:focus,
.affix:focus-within {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 4px var(--sage-wash);
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 100px var(--cream-wash) inset;
}
.field input:-webkit-autofill:focus {
  box-shadow: 0 0 0 100px var(--cream-wash) inset, 0 0 0 4px var(--sage-wash);
}
.affix {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.affix input,
.affix input:focus {
  flex: 1;
  height: 100%;
  padding-right: 2px;
  border: 0;
  background: none;
  box-shadow: none;
}
.affix span {
  padding-right: 16px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 13.5px;
  white-space: nowrap;
}
.notice {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--orange-wash);
  color: var(--orange-deep);
  font-size: 14.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.notice::first-letter {
  text-transform: uppercase;
}
.notice:empty {
  display: none;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}
[aria-busy="true"] .arrow {
  animation: wait 1.4s ease-in-out infinite;
}

/* Signup and login */
.auth {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 16px var(--gutter) 56px;
}
.auth::before {
  content: "";
  position: absolute;
  inset: -72px 0 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at 50% 44%, transparent 0 87px, var(--line) 87px 88px);
  -webkit-mask-image: radial-gradient(circle 500px at 50% 44%, #000 35%, transparent 100%);
  mask-image: radial-gradient(circle 500px at 50% 44%, #000 35%, transparent 100%);
  pointer-events: none;
}
.auth-switch {
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.auth-switch .link {
  margin-left: 4px;
  color: var(--ink);
}
.foot {
  padding: 24px 0 28px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}
.foot-line {
  border-top: 1px solid var(--line);
  text-align: left;
}

/* Console */
.console {
  flex: 1;
  padding-block: clamp(40px, 6vw, 76px) clamp(64px, 8vw, 112px);
}
.console h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  font-weight: 420;
  line-height: 1;
  letter-spacing: -0.035em;
}
.usage {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 15px;
}
.slots {
  display: flex;
  gap: 6px;
}
.slots i {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.slots i.on {
  border-color: var(--orange);
  background: var(--orange);
}
.slots i.on:nth-child(2) {
  border-color: var(--marigold);
  background: var(--marigold);
}
.slots i.on:nth-child(3) {
  border-color: var(--sage);
  background: var(--sage);
}
.console > .notice {
  margin-top: 24px;
}
.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 44px);
}
.blogs {
  display: grid;
  gap: 20px;
}
.side {
  position: sticky;
  top: 200px;
}
.side .door {
  width: 100%;
  margin-top: -99px;
}
.side .card {
  padding: 40px 32px 32px;
}
.side .card h2 {
  font-size: 1.9rem;
}

/* A blog */
.blog {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  animation: rise 0.7s var(--ease) both;
  transition: box-shadow 0.5s var(--ease);
}
.blog:hover {
  box-shadow: 0 30px 60px -40px rgba(42, 28, 19, 0.3);
}
.blog-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.blog-address {
  min-width: 0;
  overflow: hidden;
  padding: 4px 14px;
  border-radius: 999px;
  background: #f8f5f0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 560;
  white-space: nowrap;
}
.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--marigold);
}
.blog[data-status="queued"] .status i,
.blog[data-status="creating"] .status i {
  animation: blink 1.8s ease-in-out infinite;
}
.blog[data-status="creating"] .status i {
  background: var(--orange);
}
.blog[data-status="ready"] .status i {
  background: var(--sage);
}
.blog[data-status="failed"] .status {
  color: var(--orange-deep);
}
.blog[data-status="failed"] .status i {
  background: var(--orange-deep);
}
.blog-body {
  padding: 30px 32px 32px;
}
.blog-title {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 440;
  line-height: 1.05;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.blog-meta {
  margin-top: 10px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.blog .notice {
  margin-top: 24px;
}
.building {
  margin-top: 26px;
}
.track {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: #f4f0ea;
}
.track i {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: 2px;
  background: var(--sage);
  animation: crawl 3.6s ease-in-out infinite alternate;
}
.building p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
}
.secret {
  margin-top: 26px;
  padding: 22px 24px 24px;
  border-radius: 18px;
  background: var(--marigold-wash);
}
.secret-label {
  color: var(--marigold-deep);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.secret-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.secret code {
  flex: 1 1 200px;
  min-width: 0;
  padding: 9px 14px;
  border: 1px dashed rgba(138, 98, 7, 0.4);
  border-radius: 12px;
  background: #fff;
  font-family: var(--mono);
  font-size: 15px;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.secret-note {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.5;
}
.secret .link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 560 14.5px var(--sans);
  cursor: pointer;
}
.empty {
  padding: clamp(32px, 5vw, 56px);
  border: 1.5px dashed var(--line-strong);
  border-radius: 22px;
}
.empty h2 {
  font-size: 1.9rem;
  font-weight: 440;
  letter-spacing: -0.025em;
}
.empty p {
  max-width: 30em;
  margin-top: 10px;
  color: var(--ink-soft);
}
.skeleton {
  animation: none;
}
.skeleton .blog-body {
  display: grid;
  gap: 14px;
}
.skeleton .blog-body i {
  height: 12px;
  border-radius: 6px;
  background: #f4f0ea;
  animation: blink 1.8s ease-in-out infinite;
}
.skeleton .blog-body i:first-child {
  width: 46%;
  height: 30px;
  border-radius: 8px;
}
.skeleton .blog-body i:nth-child(2) {
  width: 30%;
}
.skeleton .blog-body i:nth-child(3) {
  width: 62%;
}

@keyframes nod {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7%); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}
@keyframes blink {
  50% { opacity: 0.35; }
}
@keyframes crawl {
  to { transform: translateX(194%); }
}
@keyframes wait {
  50% { transform: translateX(6px); }
}

@media (max-width: 940px) {
  .console-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .side {
    position: static;
  }
  .side .door {
    width: min(440px, 100%);
    margin: 0 auto;
  }
  .account-email {
    display: none;
  }
}
@media (max-width: 600px) {
  .bar-inner {
    flex-wrap: wrap;
  }
  .tabs {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 12px 0 16px;
    border-top: 1px solid var(--line);
  }
  .card,
  .side .card {
    padding: 42px 24px 26px;
  }
  .blog-body {
    padding: 24px 22px 24px;
  }
  .foot-line {
    text-align: center;
  }
}
