:root {
  --art-ink: #080d0f;
  --art-text: #151b1e;
  --art-muted: #555;
  --art-soft: #777;
  --art-line: rgba(0, 0, 0, .08);
  --art-line-strong: rgba(0, 0, 0, .12);
  --art-surface: #f8f8f6;
  --art-surface-2: #f0f0ed;
  --art-white: #fff;
  --art-danger: #b00020;
  --art-success: #217a3a;
  --art-radius-lg: 34px;
  --art-radius-md: 24px;
  --art-shadow-modal: 0 30px 80px rgba(0, 0, 0, .18);
}

.art-onboarding {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.art-welcome {
  max-width: 880px;
  margin: 54px auto 72px;
  text-align: center;
}

.art-welcome h1 {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.art-welcome-lead {
  width: fit-content;
  max-width: 620px;
  margin: 0 auto;
  color: #4d5558;
  font-size: 18px;
  line-height: 1.65;
}

@media (min-width: 901px) {
  .art-welcome-lead {
    max-width: 100%;
    white-space: nowrap;
  }
}

.art-kicker {
  margin: 0 0 18px;
  color: #9a9a96;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: lowercase;
}

.art-progress-card,
.art-steps {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.art-progress-card {
  margin-bottom: 56px;
  padding: 38px;
  background: var(--art-surface);
  border: 1px solid var(--art-line);
  border-radius: var(--art-radius-lg);
}

.art-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.art-progress-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.art-progress-count {
  font-size: 24px;
  white-space: nowrap;
}

.art-progress-bar {
  height: 10px;
  margin: 34px 0 22px;
  overflow: hidden;
  background: #e0e0dd;
  border-radius: 999px;
}

.art-progress-bar span {
  display: block;
  height: 100%;
  background: var(--art-ink);
  border-radius: inherit;
  transition: width .35s ease;
}

.art-steps {
  overflow: hidden;
  background: var(--art-surface);
  border: 1px solid var(--art-line);
  border-radius: var(--art-radius-lg);
}

.art-step {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px 42px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  color: var(--art-text);
  text-align: left;
  cursor: pointer;
  font-size: 22px;
  transition: background .2s ease, opacity .2s ease;
}

.art-step:last-child { border-bottom: 0; }
.art-step:hover:not(.is-disabled) { background: rgba(0, 0, 0, .025); }

.art-step-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.art-step-badge {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--art-line-strong);
  border-radius: 50%;
  color: var(--art-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.art-step-title { overflow: hidden; text-overflow: ellipsis; }

.art-step-status {
  justify-self: end;
  color: var(--art-muted);
  font-size: 16px;
  white-space: nowrap;
}

.art-step.is-complete .art-step-badge,
.art-step.is-active .art-step-badge {
  background: var(--art-ink);
  border-color: var(--art-ink);
  color: #fff;
}

.art-step.is-disabled { opacity: .42; cursor: not-allowed; }
.art-step.is-disabled .art-step-status { color: var(--art-soft); }

.art-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  overflow: hidden;
}

.art-modal,
.art-modal * { box-sizing: border-box; }

.art-modal.is-open { display: block; }

.art-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 15, .42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.art-modal-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  transform: translate(-50%, -50%);
  padding: 42px;
  background: var(--art-surface);
  border: 1px solid var(--art-line);
  border-radius: 32px;
  box-shadow: var(--art-shadow-modal);
}

.art-modal-panel-wide { width: min(920px, calc(100vw - 32px)); }
.art-modal-panel-plans { width: min(1040px, calc(100vw - 40px)); max-height: calc(100vh - 72px); padding: 34px 36px; overflow-y: auto; }

.art-modal-panel-upload {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 30px 34px;
  overscroll-behavior: contain;
}

.art-modal-panel-upload h2 { margin-bottom: 12px; font-size: 32px; }
.art-modal-panel-upload .art-modal-lead { margin-bottom: 18px; font-size: 16px; }
.art-modal-panel-upload .art-modal-actions {
  position: sticky;
  z-index: 2;
  bottom: -30px;
  margin: 20px -34px -30px;
  padding: 16px 34px 30px;
  background: var(--art-surface);
}

.art-modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  border: 0;
  background: transparent;
  color: var(--art-muted);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.art-modal-panel h2 {
  margin: 0 0 18px;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.art-modal-lead {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--art-muted);
  font-size: 18px;
  line-height: 1.6;
}

.art-field-label {
  display: block;
  margin: 18px 0 10px;
  font-weight: 600;
}

.art-input,
.art-textarea {
  width: 100%;
  background: var(--art-white);
  border: 1px solid var(--art-line-strong);
  border-radius: 18px;
  font-size: 17px;
}

.art-input { height: 58px; padding: 0 18px; }
.art-textarea { min-height: 180px; padding: 18px; line-height: 1.6; resize: vertical; }
.art-input:focus, .art-textarea:focus { outline: none; border-color: var(--art-ink); }

.art-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.art-social-field { min-width: 0; }
.art-social-field > span { display: block; margin-bottom: 9px; font-weight: 600; }

.art-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.art-primary-btn,
.art-secondary-btn,
.art-plan-cta {
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  font-weight: 700;
  cursor: pointer;
}

.art-primary-btn,
.art-plan-cta { background: var(--art-ink); color: #fff; }
.art-primary-btn:disabled { opacity: .45; cursor: not-allowed; }
.art-secondary-btn { background: #e7e7e3; color: #222; }

.art-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  padding: 30px;
  background: var(--art-white);
  border: 1.5px dashed rgba(0, 0, 0, .18);
  border-radius: var(--art-radius-md);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.art-upload-box.is-dragover { background: #fafafa; border-color: var(--art-ink); }
.art-upload-box[hidden] { display: none; }
.art-upload-box input { display: none; }
.art-upload-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--art-surface-2); border-radius: 50%; font-size: 30px; }
.art-upload-box small { max-width: 360px; color: var(--art-soft); line-height: 1.5; }
.art-upload-box-banner { min-height: 220px; }

.art-cropper {
  margin-top: 0;
  padding: 14px;
  background: var(--art-white);
  border: 1px solid var(--art-line);
  border-radius: var(--art-radius-md);
}

.art-crop-frame {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  overflow: hidden;
  background: #d9d9d5;
  border-radius: 22px;
  touch-action: none;
  cursor: grab;
}

.art-crop-frame:active { cursor: grabbing; }
.art-crop-frame-avatar { width: min(100%, 300px, 44vh); aspect-ratio: 1 / 1; border-radius: 50%; }
.art-crop-frame-banner { aspect-ratio: 8 / 3; max-width: 680px; }

.art-crop-frame img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  pointer-events: none;
  transform-origin: top left;
}

.art-zoom-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  color: var(--art-muted);
  font-size: 14px;
  font-weight: 700;
}

.art-zoom-control input { width: 100%; }

.art-upload-status {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--art-muted);
  font-weight: 700;
}

.art-upload-status.is-visible { display: flex; flex-wrap: wrap; }
.art-upload-status.is-success { color: var(--art-success); }
.art-upload-status.is-warning { color: #8a5a00; }

.art-upload-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, .14);
  border-top-color: var(--art-ink);
  border-radius: 50%;
  animation: art-spin .8s linear infinite;
}

.art-upload-status.is-uploading .art-upload-spinner { display: inline-block; }

.art-upload-progress {
  display: none;
  flex: 1 1 100%;
  height: 7px;
  overflow: hidden;
  background: #e0e0dd;
  border-radius: 999px;
}

.art-upload-status.is-uploading.is-progress .art-upload-progress,
.art-upload-status.is-success .art-upload-progress { display: block; }

.art-upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--art-ink);
  border-radius: inherit;
  transition: width .25s ease;
}

@keyframes art-spin {
  to { transform: rotate(360deg); }
}

.art-error { display: none; margin: 12px 0 0; color: var(--art-danger); font-weight: 600; }
.art-error.is-visible { display: block; }

.art-profile-preview-banner {
  aspect-ratio: 8 / 3;
  min-height: 0;
  margin-bottom: 18px;
  background: var(--art-surface-2);
  background-position: center;
  background-size: cover;
  border: 1px solid var(--art-line);
  border-radius: 28px;
}

@supports not (aspect-ratio: 8 / 3) {
  .art-profile-preview-banner { min-height: 220px; }
}

.art-profile-preview {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: var(--art-white);
  border: 1px solid var(--art-line);
  border-radius: 28px;
}

.art-profile-preview-photo {
  width: 180px;
  height: 180px;
  background: var(--art-surface-2);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.art-profile-preview h3 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.art-profile-preview p:last-child { color: var(--art-muted); line-height: 1.7; }

.art-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.art-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 342px;
  padding: 24px;
  background: var(--art-white);
  border: 1px solid var(--art-line);
  border-radius: 28px;
  color: var(--art-text);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.art-plan-card:hover { transform: translateY(-3px); border-color: rgba(0,0,0,.2); box-shadow: 0 18px 50px rgba(0,0,0,.08); }
.art-plan-card.is-featured { border-color: var(--art-ink); box-shadow: 0 18px 50px rgba(0,0,0,.07); }
.art-plan-badge { position: absolute; top: 20px; right: 20px; padding: 7px 10px; background: var(--art-ink); color: #fff; border-radius: 999px; font-size: 12px; }
.art-plan-card h3 { margin: 0 0 14px; font-size: 27px; line-height: 1.1; }
.art-plan-price { margin: 0 0 12px; font-size: 31px; font-weight: 800; letter-spacing: -.03em; }
.art-plan-price span { display: block; margin-top: 4px; color: var(--art-soft); font-size: 14px; font-weight: 500; }
.art-plan-lead { min-height: 44px; margin-bottom: 12px; color: var(--art-muted); line-height: 1.45; font-size: 15px; }
.art-plan-card ul { margin: 12px 0 22px; padding: 0; list-style: none; color: var(--art-muted); line-height: 1.45; font-size: 15px; }
.art-plan-card li { margin: 0 0 8px; }
.art-plan-cta { margin-top: auto; display: inline-flex; justify-content: center; text-align: center; padding: 14px 20px; }

body.art-modal-open,
body:has(.art-modal.is-open) { overflow: hidden; }

@media (max-width: 900px) {
  .art-plan-grid { grid-template-columns: 1fr; }
  .art-profile-preview { grid-template-columns: 1fr; text-align: center; }
  .art-profile-preview-photo { margin: 0 auto; }
}

@media (max-width: 768px) {
  .art-onboarding { padding: 24px 16px 60px; }
  .art-welcome { margin: 38px auto 50px; text-align: left; }
  .art-welcome h1 { margin-left: 0; font-size: 40px; }
  .art-welcome-lead { margin-left: 0; font-size: 17px; }
  .art-progress-card { margin-bottom: 36px; padding: 28px 22px; border-radius: var(--art-radius-md); }
  .art-progress-head { flex-direction: column; }
  .art-steps { border-radius: var(--art-radius-md); }
  .art-step { min-height: auto; grid-template-columns: 1fr; gap: 12px; padding: 24px 22px; font-size: 20px; }
  .art-step-status { justify-self: start; padding-left: 52px; white-space: normal; }
  .art-modal-panel {
    top: 12px;
    left: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 32px 24px;
    overflow-x: hidden;
    border-radius: 26px;
    transform: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .art-modal-panel-upload { padding: 26px 20px; }
  .art-modal-panel-upload .art-modal-actions {
    bottom: -26px;
    margin: 18px -20px -26px;
    padding: 14px 20px 26px;
  }
  .art-social-grid { grid-template-columns: 1fr; }
  .art-cropper { padding: 10px; }
  .art-modal-actions { flex-direction: column-reverse; }
  .art-primary-btn, .art-secondary-btn { width: 100%; }
}

.the-art-hub {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  margin: -16px auto 0;
  padding: 4px 4px 20px;
  overflow-x: hidden;
  color: var(--art-text, #151b1e);
}

.the-art-hub *,
.the-art-hub *::before,
.the-art-hub *::after {
  box-sizing: inherit;
}

.the-art-hub__section + .the-art-hub__section {
  margin-top: 34px;
}

.the-art-hub__label {
  margin: 0 0 10px;
  color: #6e6e6e;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: none;
}

.the-art-hub__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.the-art-hub__item {
  margin: 0;
}

.the-art-hub__link {
  width: calc(100% - 4px);
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 8px 2px;
  border-bottom: 1px solid var(--art-line, rgba(0, 0, 0, .08));
  color: var(--art-text, #151b1e);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.35;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.the-art-hub__link:hover {
  border-color: var(--art-ink, #080d0f);
  color: var(--art-ink, #080d0f);
  transform: translateX(4px);
}

.the-art-hub__link:focus-visible,
.the-art-hub__cta:focus-visible {
  outline: 2px solid var(--art-ink, #080d0f);
  outline-offset: 3px;
}

.the-art-hub__link:focus-visible {
  border-color: var(--art-ink, #080d0f);
}

.the-art-hub__section:last-of-type .the-art-hub__item:last-child .the-art-hub__link {
  border-bottom: 0;
}

.the-art-hub__footer {
  margin-top: 30px;
  padding-top: 0;
  border-top: 0;
}

.the-art-hub__cta {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: var(--art-ink, #080d0f);
  border: 1px solid var(--art-ink, #080d0f);
  border-radius: 999px;
  color: var(--art-white, #fff);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}

.the-art-hub__cta:hover {
  background: var(--art-text, #151b1e);
  border-color: var(--art-text, #151b1e);
  color: var(--art-white, #fff);
}

@media (max-width: 768px) {
  .the-art-hub {
    margin-top: -10px;
    padding-top: 0;
  }

  .the-art-hub__section + .the-art-hub__section {
    margin-top: 26px;
  }

  .the-art-hub__link {
    min-height: 44px;
    font-size: 17px;
  }

  .the-art-hub__footer {
    margin-top: 26px;
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .the-art-hub__link,
  .the-art-hub__cta {
    transition: none;
  }
}

:root {
  --the-art-header-content-offset: 120px;
  --the-art-admin-bar-offset: 0px;
}

html {
  scroll-padding-top: calc(var(--the-art-header-content-offset) + var(--the-art-admin-bar-offset));
}

html:has(body.admin-bar) {
  --the-art-admin-bar-offset: 32px;
}

#main.site-main:not(:has(.art-onboarding)) {
  padding-top: var(--the-art-header-content-offset);
}

#main.site-main :where([id]) {
  scroll-margin-top: calc(var(--the-art-header-content-offset) + var(--the-art-admin-bar-offset));
}

@media (max-width: 1024px) {
  :root {
    --the-art-header-content-offset: 104px;
  }
}

@media (max-width: 782px) {
  html:has(body.admin-bar) {
    --the-art-admin-bar-offset: 46px;
  }
}

@media (max-width: 768px) {
  :root {
    --the-art-header-content-offset: 88px;
  }
}
