/* Glyphkit — paper & ink. No frameworks, no build step. */

:root {
  --bg: #faf8f5;
  --bg-soft: #f2efe9;
  --surface: #ffffff;
  --ink: #17150f;
  --ink-soft: #6b665c;
  --line: rgba(23, 21, 15, 0.1);
  --line-strong: rgba(23, 21, 15, 0.18);
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --ok: #1f7a4d;
  --warn: #a16207;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 21, 15, 0.04), 0 12px 32px rgba(23, 21, 15, 0.06);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #100f0d;
  --bg-soft: #191713;
  --surface: #1b1916;
  --ink: #f5f1ea;
  --ink-soft: #a8a196;
  --line: rgba(245, 241, 234, 0.1);
  --line-strong: rgba(245, 241, 234, 0.2);
  --accent: #f97316;
  --accent-ink: #17150f;
  --ok: #4ade80;
  --warn: #fbbf24;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { width: min(100% - 40px, 980px); margin-inline: auto; }
.wrap--wide { width: min(100% - 40px, 1120px); margin-inline: auto; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav { position: sticky; }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
}

.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.brand span { color: var(--accent); }

.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
}

.nav__links a:hover { background: var(--bg-soft); color: var(--ink); }

.nav__links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1.5px 0 var(--accent); border-radius: 0; }

.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover { border-color: var(--line-strong); }

@media (max-width: 1020px) {
  .nav__links a.hide-md { display: none; }
}

@media (max-width: 780px) {
  .nav__links a.hide-sm { display: none; }
  .nav__links { gap: 0; }
  .nav__links a { padding: 8px 10px; font-size: 13.5px; }
  .hero { padding: 40px 0 0; }
  .lede { font-size: 16.5px; }
}

/* ---------- hero ---------- */

.hero {
  padding: 64px 0 8px;
  background: radial-gradient(1100px 360px at 6% -32%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1.display {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
  max-width: 17ch;
  text-wrap: balance;
}

.lede {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.lede strong { color: var(--ink); font-weight: 600; }

/* ---------- tool ---------- */

.tool { margin: 34px 0 0; }

.tool__box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.tool__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 650;
}

.tool__status { margin-left: auto; font-size: 13px; color: var(--ink-soft); }

textarea {
  width: 100%;
  min-height: 96px;
  padding: 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 21px;
  line-height: 1.45;
  resize: vertical;
  outline: none;
  display: block;
}

textarea::placeholder { color: color-mix(in srgb, var(--ink-soft) 60%, transparent); }

.tool__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 55%, transparent);
}

.meter { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }

.meter__track {
  width: 92px;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.meter__bar { height: 100%; width: 0; background: var(--accent); transition: width 120ms linear; }
.meter__bar.is-over { background: #b91c1c; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.25, 0.1, 0.25, 1), background 140ms;
}

.btn:hover { background: var(--bg-soft); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  margin-left: auto;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }

/* ---------- chips ---------- */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 140ms;
}

.chip:hover { border-color: var(--line-strong); color: var(--ink); }

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ---------- results ---------- */

.results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 0;
}

@media (max-width: 760px) {
  .results { grid-template-columns: 1fr; }
}

.row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 140ms, box-shadow 140ms;
}

.row:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

.row__top { display: flex; align-items: center; gap: 8px; }

.row__name { font-size: 12.5px; font-weight: 650; letter-spacing: 0.02em; color: var(--ink-soft); }

.badge {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  white-space: nowrap;
}

.badge--safe {
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 14%, transparent);
}

.badge--over {
  color: #b91c1c;
  background: color-mix(in srgb, #b91c1c 14%, transparent);
}

[data-theme="dark"] .badge--over {
  color: #fca5a5;
  background: color-mix(in srgb, #fca5a5 16%, transparent);
}

.row__preview {
  font-size: 20px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-height: 28px;
  max-height: 132px;
  overflow: auto;
  overflow-x: hidden;
  cursor: pointer;
  padding-right: 4px;
}

.row__body { display: flex; align-items: center; gap: 14px; margin-top: auto; }

.row__preview { flex: 1; min-width: 0; }

.copy {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: all 140ms;
}

.copy:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.copy.is-done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }

.star {
  border: 0;
  background: none;
  padding: 2px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1;
}

.star[aria-pressed="true"] { color: var(--accent); }

/* ---------- content ---------- */

.section { padding: 56px 0 0; }

.section h2, .h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
}

.section p { color: var(--ink-soft); max-width: 68ch; }
.section p strong { color: var(--ink); }

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } }

.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 650; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

table.limits {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 14.5px;
}

table.limits th, table.limits td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

table.limits th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
table.limits td:last-child, table.limits th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.faq { margin-top: 18px; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 20px;
  transition: transform 160ms;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq p { margin: 0 0 18px; font-size: 15px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- bio preview ---------- */

.preview {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #f0a37a);
  flex: 0 0 auto;
}

.preview__body { min-width: 0; }
.preview__name { font-weight: 650; font-size: 15px; }
.preview__bio { white-space: pre-wrap; font-size: 15px; line-height: 1.5; color: var(--ink); }
.preview__meta { margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- symbols ---------- */

.symbols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.symbol {
  padding: 14px 8px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 19px;
  cursor: pointer;
  transition: all 140ms;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.symbol:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.symbol:active { transform: scale(0.97); }
.symbol.is-done { color: var(--ok); }

/* ---------- misc ---------- */

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.note strong { color: var(--ink); }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.link-card {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all 140ms;
}

.link-card:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }

footer.site {
  margin-top: 88px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13.5px;
}

footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
footer.site nav { margin-left: auto; display: flex; gap: 18px; }
footer.site a:hover { color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 550;
  opacity: 0;
  pointer-events: none;
  transition: all 180ms cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 90;
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- component extras ---------- */

.h2--small { font-size: 22px; margin-top: 30px; }

.tool__foot--flat {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-top: 14px;
  background: var(--surface);
}

.tool__hint { font-size: 12.5px; color: var(--ink-soft); }

#zalgo-range { accent-color: var(--accent); width: 130px; }

select.btn {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b665c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

#lb-output {
  white-space: pre-wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  min-height: 110px;
  overflow-x: auto;
}


/* ---------- hero meta ---------- */

.hero__mark {
  position: absolute;
  top: -24px;
  right: -18px;
  font-family: var(--serif);
  font-size: clamp(190px, 24vw, 300px);
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 1080px) {
  .hero__mark { display: none; }
}

/* ---------- empty state ---------- */

.empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
}

.empty strong { color: var(--ink); font-size: 16px; font-weight: 650; }

/* ---------- mobile edit bar ---------- */

.editbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transform: translateY(160%);
  transition: transform 240ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.editbar.is-on { transform: none; }

.editbar__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.editbar__btn {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.editbar__btn:active { transform: scale(0.97); }

@media (max-width: 780px) {
  .editbar { display: flex; }
}


/* ---------- example pages ---------- */

.steps {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.steps li { margin: 10px 0; }
.steps li::marker { color: var(--accent); font-weight: 650; }

.card--link {
  display: block;
  transition: border-color 140ms, transform 140ms, box-shadow 140ms;
}

.card--link:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}

.card--link h3 { font-size: 15.5px; line-height: 1.35; }

.card__meta {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.result-legend--preset { color: var(--ink); }
.result-legend--preset strong { color: var(--accent); }

.hub-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 44px;
}

.hub-group:first-child { margin-top: 8px; }

.hub-group span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 2px 9px;
}


/* ---------- gallery ---------- */

.chips--filters { padding-top: 8px; }

.looks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.looks .look[hidden] { display: none; }

@media (max-width: 980px) { .looks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .looks { grid-template-columns: 1fr; } }

.look {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 180ms cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 180ms, border-color 180ms;
}

.look:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.look__head { display: flex; align-items: center; gap: 11px; }

.look__avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, hsl(var(--hue, 20) 55% 62%), hsl(calc(var(--hue, 20) + 32) 48% 42%));
}

.look__meta { min-width: 0; display: flex; flex-direction: column; }
.look__handle { font-size: 13px; font-weight: 650; letter-spacing: -0.01em; }
.look__stats { font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.look__platform {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}

.look__name {
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  min-height: 40px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.look__bio {
  white-space: pre-line;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  min-height: 44px;
}

.look__foot {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.look__tag {
  font-size: 11px;
  color: var(--ink-soft);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.look__foot .copy { margin-left: auto; }


.look__stretch {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 20px;
}

.look__stretch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.look .copy, .look__open { position: relative; z-index: 2; }

.look__open {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.look .copy { flex: 0 0 auto; }

.look__open:hover { color: var(--accent); }

.look--feature { padding: 26px; }
.look--feature .look__name { font-size: 34px; }
.look--feature .look__bio { font-size: 15.5px; }

.look--mini .look__name { font-size: 20px; }
.look--mini .look__bio { font-size: 13px; min-height: 38px; }
.look--mini .look__foot { padding-top: 10px; }

.looks--single { grid-template-columns: 1fr; max-width: 560px; margin-top: 26px; }
.looks--single .look:hover { transform: none; }

.size-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.size-row__label {
  flex: 0 0 auto;
  width: 96px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.take { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }


/* ---------- mobile menu ---------- */

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 15px;
  height: 1.5px;
  margin: 3.5px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.nav__sheet {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: 6px 20px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(23, 21, 15, 0.12);
}

.nav__sheet[hidden] { display: none; }

.nav__sheet a {
  padding: 14px 2px;
  font-size: 16.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.nav__sheet a:last-child { border-bottom: 0; }

.nav__sheet a[aria-current="page"] { color: var(--accent); }

html.nav-open { overflow: hidden; }
html.nav-open .nav { background: var(--bg); }
html.nav-open .nav__links { opacity: 0.4; }

@media (max-width: 780px) {
  .nav__inner { gap: 8px; }
  .nav__links { display: none; }
  .menu-btn { display: block; margin-left: 2px; }
  .theme-toggle { margin-left: auto; }
}


.nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(15, 14, 12, 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.nav__backdrop[hidden] { display: none; }

.nav__sheet {
  border-radius: 0 0 18px 18px;
}

@media (min-width: 781px) {
  .nav__sheet, .nav__backdrop { display: none !important; }
}


/* ---------- look editor ---------- */

.editor {
  margin-top: 18px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.editor__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.editor__label:first-child { margin-top: 0; }

.editor__count {
  margin-left: auto;
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.editor__count.is-over { color: #b91c1c; }
[data-theme="dark"] .editor__count.is-over { color: #fca5a5; }

.editor__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  outline: none;
  transition: box-shadow 140ms, border-color 140ms;
}

.editor__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.editor__input--area { resize: vertical; min-height: 86px; }

.editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.editor__actions .btn--primary { margin-left: 0; }

.look__live {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
}

.editor__hint {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}


/* ---------- mode switch + profile builder ---------- */

.modes {
  display: inline-flex;
  gap: 4px;
  margin-top: 30px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: 999px;
}

.mode {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 140ms, color 140ms;
}

.mode[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(23, 21, 15, 0.06);
}

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
}

.builder__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.builder__field { min-width: 0; }

select.editor__input {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b665c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.builder__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.builder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder__actions .btn--primary { margin-left: 0; }

.look--builder .look__name { min-height: 48px; }

@media (max-width: 520px) {
  .builder__row { grid-template-columns: 1fr; }
}


/* prose links inside content sections */
.section p a, .section li a, .steps a, .note a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.section p a:hover, .steps a:hover { text-decoration-thickness: 2px; }
