/* MOR identity, layered on top of the shared styles.css (Arte Bebé).
   Monochrome like the logo: near-black on warm paper white, a geometric sans,
   straight edges, solid black for every selected state. The fabric inside the
   hoop and the thread colors stay real; everything around them recedes. */

@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --linen: #f7f6f3;
  --linen-deep: #eeece7;
  --surface: #ffffff;
  --line: #e3e1dc;

  --ink: #111111;
  --ink-soft: #6f6d69;
  --ink-faint: #b4b1ab;

  /* Accent slots from the shared styles, remapped to monochrome */
  --rose: #111111;
  --rose-deep: #111111;
  --rose-wash: #ffffff;
  --gold: #6f6d69;

  /* Hoop and spool flanges: black lacquer instead of wood */
  --wood-light: #4a4a4a;
  --wood: #1c1c1c;
  --wood-dark: #050505;

  --font-ui: "Manrope", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-ui);
  --font-script: var(--font-ui);

  --stitch: var(--ink);
  --radius: 2px;
}

body {
  background-image: none;
}

::selection {
  background: var(--ink);
  color: #fff;
}

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.top {
  gap: 8px;
  padding: 18px 20px 0;
}

.logo {
  width: auto;
  height: 22px;
  mix-blend-mode: normal;
  color: var(--ink);
}

.tagline {
  margin: 0;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
}

/* ---------- Hoop: black lacquer ring, brushed steel screw ---------- */
.hoop-ring {
  padding: 3.4%;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.22), transparent 38%),
    conic-gradient(from 210deg, #3a3a3a, #121212, #000, #1a1a1a, #3a3a3a);
  box-shadow:
    0 40px 60px -34px rgba(0, 0, 0, 0.55),
    0 10px 20px -12px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hoop-fabric {
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.75),
    inset 0 6px 14px rgba(0, 0, 0, 0.3),
    inset 0 -20px 40px -20px rgba(0, 0, 0, 0.18);
}

.hoop-screw,
.hoop-screw::before {
  background: linear-gradient(90deg, #8a8a8a, #f2f2f2 45%, #9a9a9a);
}

.hoop-screw {
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.nav {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.nav svg {
  stroke-width: 1.4;
}

.stage-caption {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.edit-name {
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.edit-name svg {
  stroke: var(--ink);
  stroke-width: 1.6;
}

/* ---------- Intro ---------- */
.intro {
  gap: 12px;
  padding-top: calc(env(safe-area-inset-top) + 48px);
}

.intro-logo {
  width: auto;
  height: 34px;
  margin-bottom: 18px;
  mix-blend-mode: normal;
  color: var(--ink);
}

.intro-kicker {
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
}

.intro-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.intro-input {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.intro-input:focus,
.intro-input:focus-visible {
  border-color: var(--ink);
  box-shadow: none;
  outline: none;
}

/* ---------- Tabs ---------- */
.tab-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tab-value {
  font-size: 10px;
  letter-spacing: 0.04em;
}

.tab[aria-selected="true"] .tab-value {
  color: var(--ink);
}

.tab[aria-selected="true"]::after {
  left: 0;
  right: 0;
  height: 1.5px;
}

/* ---------- Options ---------- */
.font-card {
  border-radius: var(--radius);
}

.font-card-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.font-card[aria-checked="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 0.5px var(--ink);
}

/* Solid black outline instead of the dashed stitch */
.font-card[aria-checked="true"]::after {
  content: none;
}

.font-card[aria-checked="true"] .font-card-num {
  color: var(--ink);
}

.spool-group-label {
  font-size: 9px;
  letter-spacing: 0.24em;
}

.spool-body {
  border-radius: 1px;
}

.spool-body::before,
.spool-body::after {
  border-radius: 1px;
}

.spool[aria-checked="true"] .spool-num {
  border-radius: 0;
}

.scrap-cloth {
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* No jump on the chosen scrap: the outline alone marks it */
.scrap[aria-checked="true"] .scrap-cloth {
  transform: none;
}

.scrap[aria-checked="true"] .scrap-cloth::after {
  inset: -3px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
}

.scrap-name {
  font-size: 10px;
}

/* ---------- Summary ---------- */
.summary-list dt {
  font-size: 9px;
  letter-spacing: 0.24em;
}

.summary-list dd {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn {
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.btn-ghost {
  border-color: var(--ink);
  background: none;
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .top {
    gap: 18px;
    padding-top: 6px;
  }

  .logo {
    height: 28px;
  }

  .controls {
    border-color: var(--line);
    border-radius: 4px;
    background: var(--surface);
    backdrop-filter: none;
  }

  .summary-list dd {
    font-size: 19px;
  }
}
