:root {
  --paper: #faf8f2;
  --ink: #273b32;
  --muted: #73796f;
  --green: #31594c;
  --line: #e5e5db;
  --rose: #ce8e8e;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.6 "Segoe UI",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #b7804c;
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.shell {
  max-width: 1240px;
  margin: auto;
  padding-left: 40px;
  padding-right: 40px;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.navigation {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  background: var(--green);
  color: #fff8ee;
  font-size: 34px;
  line-height: 37px;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  text-align: center;
  font-weight: 400;
}
.beta-badge {
  font-size: 9px;
  letter-spacing: 1.5px;
  background: #e9eddf;
  border-radius: 4px;
  padding: 3px 6px;
  margin-left: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 600;
}
.nav-links form {
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
  padding: 15px 23px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}
.button:hover {
  background: #244538;
}
.button-small {
  padding: 10px 18px;
  font-size: 12px;
}
.button-outline {
  background: transparent;
  color: var(--green);
}
.button-outline:hover {
  color: white;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0;
}
.main-content {
  min-height: calc(100vh - 220px);
  padding-top: 45px;
  padding-bottom: 65px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
}
.tiny-cross {
  font-size: 17px;
  margin-right: 8px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 35px 0 75px;
}
.hero h1 {
  font: clamp(46px, 5.2vw, 69px) / 1.1 var(--serif);
  font-weight: 400;
  letter-spacing: -2px;
  margin: 23px 0;
}
.hero h1 em {
  color: var(--green);
  font-weight: 400;
}
.hero-copy > p {
  max-width: 365px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}
.hero-actions > span {
  font-size: 11px;
  color: var(--muted);
}
.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.hero-details span:before {
  content: "✓";
  color: var(--green);
  margin-right: 6px;
}
.hero-art {
  background: #e9ede2;
  border-radius: 45% 45% 12px 12px;
  padding: 25px 35px 30px;
  position: relative;
}
.art-note {
  font: italic 17px var(--serif);
  color: #697965;
  transform: rotate(-5deg);
  margin: 0 0 20px 5px;
}
.embroidery-frame {
  width: 82%;
  margin: auto;
  padding: 11px;
  border: 2px solid #c3b292;
  border-radius: 140px;
  background: #d1bf9d;
  box-shadow:
    8px 15px 20px #3b443317,
    inset 0 0 0 2px #e8d9bd;
  transform: rotate(4deg);
}
.flower-pattern {
  display: block;
  border-radius: 130px;
  width: 100%;
  border: 2px solid #ac9b78;
}
.art-caption {
  background: var(--paper);
  box-shadow: 0 8px 28px #26382c0c;
  border: 1px solid #e8e7db;
  border-radius: 9px;
  margin: 4px -10px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 19px;
  transform: rotate(-3deg);
}
.caption-icon {
  color: var(--rose);
  font-size: 30px;
}
.art-caption strong {
  display: block;
  font-size: 11px;
}
.art-caption div > span {
  font-size: 10px;
  color: var(--muted);
}
.caption-arrow {
  margin-left: auto;
  color: var(--green);
}
.how-it-works {
  border-top: 1px solid var(--line);
  padding-top: 36px;
  display: grid;
  grid-template-columns: 1fr 2.7fr;
  gap: 40px;
}
h2 {
  font: 32px/1.2 var(--serif);
  font-weight: 400;
  margin: 10px 0 18px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.step-number {
  font: italic 23px var(--serif);
  color: #b6b59c;
}
.steps h3 {
  font-size: 13px;
  margin: 13px 0 7px;
}
.steps p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.site-footer {
  min-height: 100px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.footer-brand {
  font-size: 21px;
  color: var(--green);
}
h1 {
  font: 43px/1.18 var(--serif);
  letter-spacing: -1px;
  font-weight: 400;
  margin: 12px 0 20px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 5px 0 30px;
}
.page-heading h1 {
  margin-bottom: 0;
}
.back-link {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 25px;
}
.panel,
.auth-card {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.auth-card {
  max-width: 460px;
  margin: 25px auto 40px;
  padding: 38px;
}
.auth-card h1 {
  font-size: 35px;
}
.auth-card form {
  margin-top: 30px;
}
.auth-card .button {
  width: 100%;
  margin-top: 25px;
}
.auth-link {
  font-size: 12px;
  text-align: center;
  margin-top: 23px;
  color: var(--muted);
}
.auth-link a {
  text-decoration: underline;
  color: var(--green);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 19px 0 7px;
}
input:not([type="hidden"]) {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6dbd1;
  border-radius: 6px;
  background: #fffefa;
  color: var(--ink);
}
.field-note {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0;
  display: block;
}
.validation {
  font-size: 12px;
  color: #aa3838;
  display: block;
}
.validation ul {
  padding-left: 18px;
}
.validation-summary-valid,
.field-validation-valid {
  display: none;
}
.input-validation-error {
  border-color: #aa3838 !important;
}
.creation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 70px;
  max-width: 1000px;
}
.upload-form {
  padding: 30px;
}
.upload-zone {
  background: #f2f4eb;
  border: 1px dashed #a9b5a0;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  margin: 0 0 12px;
  cursor: pointer;
}
.upload-zone strong,
.upload-zone > span {
  display: block;
}
.upload-zone strong {
  font-size: 15px;
}
.upload-zone > span:not(.upload-icon) {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 14px;
}
.upload-icon {
  font-size: 35px;
  font-weight: 400;
  color: var(--green);
}
.upload-zone input {
  font-size: 11px;
  background: transparent !important;
  padding: 8px !important;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.upload-form .button {
  width: 100%;
  margin-top: 20px;
}
.creation-aside {
  padding-top: 45px;
}
.creation-aside h2 {
  font-size: 39px;
}
.creation-aside > p {
  color: var(--muted);
  font-size: 14px;
  max-width: 310px;
}
.thread-swatches {
  display: flex;
  margin: 30px 0;
  gap: 10px;
}
.thread-swatches i {
  display: block;
  height: 50px;
  width: 32px;
  border-radius: 20px;
  background:
    repeating-linear-gradient(
      0deg,
      #ffffff24 0px,
      #ffffff24 1px,
      transparent 1px,
      transparent 3px
    ),
    #ca747d;
  transform: rotate(15deg);
}
.thread-swatches i:nth-child(2) {
  background-color: #e2a0a0;
}
.thread-swatches i:nth-child(3) {
  background-color: #e7c67b;
}
.thread-swatches i:nth-child(4) {
  background-color: #7f9467;
}
.thread-swatches i:nth-child(5) {
  background-color: #57765b;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  padding: 22px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: transform 0.15s;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: #a4b39c;
}
.card-motif {
  height: 105px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background-color: #e9ede2;
  background-image:
    linear-gradient(#dce2d855 1px, transparent 1px),
    linear-gradient(90deg, #dce2d855 1px, transparent 1px);
  background-size: 10px 10px;
  font: 80px var(--serif);
  color: #86a088;
}
.project-card h2 {
  font-size: 25px;
  margin: 20px 0 8px;
  overflow-wrap: anywhere;
}
.project-card p,
.project-card time {
  font-size: 11px;
  color: var(--muted);
}
.project-card p span,
.pattern-meta span {
  margin: 0 8px;
}
.open-project {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 20px;
  color: var(--green);
}
.empty-state {
  text-align: center;
  padding: 65px 20px;
  border: 1px dashed #cbd1c2;
  border-radius: 12px;
}
.empty-state h2 {
  font-size: 30px;
  margin-bottom: 26px;
}
.stitch-mark {
  font-size: 40px;
  color: var(--rose);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
  font-size: 13px;
}
.pattern-meta {
  color: var(--muted);
  font-size: 12px;
}
.pattern-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}
.pattern-panel {
  overflow: hidden;
}
.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.canvas-toolbar > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.canvas-toolbar button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  padding: 4px 9px;
  color: var(--ink);
}
.canvas-toolbar output {
  min-width: 45px;
  text-align: center;
}
.canvas-viewport {
  overflow: auto;
  max-height: 75vh;
  padding: 24px;
  background: #f0f0e9;
}
canvas {
  display: block;
  margin: auto;
  image-rendering: pixelated;
  box-shadow: 0 3px 14px #00000010;
}
.palette {
  padding: 20px;
}
.palette-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.palette-heading h2 {
  font: 18px var(--serif);
  margin: 0;
}
.palette-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.palette ol {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  max-height: 65vh;
  overflow: auto;
}
.palette li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.color-chip {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border: 1px solid #00000010;
  border-radius: 9px;
}
.palette li > div {
  min-width: 0;
  flex: 1;
}
.palette strong {
  display: block;
  font-size: 11px;
}
.palette li div > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}
.stitch-count {
  font-size: 12px;
  text-align: right;
}
.stitch-count small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.form-status {
  font-size: 12px;
  color: var(--green);
  text-align: center;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 55px;
    padding-bottom: 100px;
  }
}
@media (max-width: 950px) {
  .hero {
    gap: 35px;
  }
  .hero-art {
    padding: 25px;
  }
  .hero-details {
    gap: 8px;
  }
  .how-it-works {
    grid-template-columns: 1fr;
  }
  .creation-layout {
    gap: 35px;
  }
  .pattern-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .palette ol {
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .shell {
    padding-left: 22px;
    padding-right: 22px;
  }
  .navigation {
    min-height: 78px;
    gap: 14px;
  }
  .brand {
    font-size: 25px;
    gap: 7px;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 28px;
    line-height: 30px;
  }
  .beta-badge {
    font-size: 8px;
  }
  .nav-links {
    gap: 14px;
    font-size: 11px;
  }
  .nav-links .button {
    padding: 8px 10px;
    font-size: 10px;
  }
  .nav-links .text-button {
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 10px 0 45px;
    gap: 45px;
  }
  .hero h1 {
    font-size: 53px;
  }
  .hero-art {
    max-width: 380px;
    width: 100%;
    margin: auto;
  }
  .hero-actions {
    gap: 14px;
  }
  .hero-details {
    font-size: 9px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .steps article {
    position: relative;
    padding-left: 45px;
  }
  .step-number {
    position: absolute;
    left: 0;
    top: 8px;
  }
  .how-it-works {
    gap: 15px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .site-footer > span:last-child {
    width: 100%;
  }
  .auth-card {
    padding: 25px 22px;
    margin-top: 0;
  }
  .main-content {
    padding-top: 30px;
    padding-bottom: 40px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 35px;
  }
  .creation-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .creation-aside {
    padding: 0 8px;
  }
  .creation-aside h2 {
    font-size: 32px;
  }
  .upload-form {
    padding: 22px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .palette ol {
    grid-template-columns: 1fr;
  }
  .canvas-toolbar {
    padding: 12px 10px;
    flex-wrap: wrap;
  }
  .canvas-viewport {
    padding: 12px;
  }
  .pattern-meta span {
    margin: 0 3px;
  }
}
