/* ==========================================================================
   A Boy's Dream — Specimen (direction A)
   Brief: clean, generous whitespace, large margins, small type, hierarchy by
   size. No paper textures, no collage, no vintage backgrounds, no streetwear.
   Broken white ground (19-ago Jorge). Home newspaper = other chat.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bone: #efebe3;
  --ink: #111111;
  --line: rgba(17, 17, 17, 0.16);
  --line-soft: rgba(17, 17, 17, 0.08);
  --muted: rgba(17, 17, 17, 0.55);
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

#app.dir:not(.dir-paper) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- shared chrome ---------- */
.site-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 10;
}
.site-head .brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 13px;
}
.site-head .brand:hover {
  text-decoration: none;
}
.brand-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand-slash {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.capricho {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
  cursor: pointer;
}
.capricho:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.site-nav a.nav-mark {
  font-weight: 700;
}
.site-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.site-nav a.active {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-nav a.nav-press {
  color: #c42021;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.site-nav a.nav-press:hover {
  color: #c42021;
  text-decoration: none;
}
.cart {
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.site-main {
  flex: 1 1 auto;
}
.frame {
  padding: 56px 40px 96px;
  max-width: 1360px;
  margin: 0 auto;
}

.site-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 22px 40px;
  border-top: 1px solid var(--line);
  background: var(--bone);
  font-size: 11px;
  letter-spacing: 0.08em;
  z-index: 20;
}
.foot-mid {
  text-align: center;
}
.foot-links {
  text-align: right;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.lead {
  max-width: 46ch;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 44px;
}
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
}

/* ---------- photo slots ---------- */
.photo {
  margin: 0;
}
.photo figcaption {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.photo-side {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.photo-side figcaption {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.16em;
  flex-shrink: 0;
}
.photo-side .photo-plate {
  flex: 1;
  min-width: 0;
}
.photo-plate {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.photo-code {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(17, 17, 17, 0.35);
  padding: 8px;
}
.photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.photo-plate[data-zoom],
.arc-thumb[data-zoom] {
  cursor: zoom-in;
}

/* ---------- lightbox ---------- */
body.is-zoomed {
  overflow: hidden;
}
.zoom {
  position: fixed;
  inset: 0;
  z-index: 120;
}
.zoom[hidden] {
  display: none;
}
.zoom-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: var(--bone);
  cursor: pointer;
}
.zoom-stage {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 28px 56px 48px;
}
.zoom-frame {
  margin: 0;
  max-width: min(1280px, 96vw);
  max-height: 92vh;
  pointer-events: none;
}
.zoom-media {
  line-height: 0;
}
.zoom-media picture,
.zoom-img {
  display: block;
  max-width: min(1280px, 96vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}
.zoom-cap {
  margin-top: 10px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.zoom-close,
.zoom-nav {
  pointer-events: auto;
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}
.zoom-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.zoom-close:hover,
.zoom-nav:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  padding: 12px;
}
.zoom-prev {
  left: 8px;
}
.zoom-next {
  right: 8px;
}

/* ---------- listing grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
/* Available: smaller images than Archive (Jorge 19-ago) */
.grid-avail {
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
  max-width: 980px;
}
.grid-avail .photo-plate {
  aspect-ratio: 3 / 4;
}
.card .photo-plate {
  aspect-ratio: 3 / 4;
}
.card:hover {
  text-decoration: none;
}
.card-rail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.card-n {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}
.card-rail .avail-mark {
  margin-top: 0;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.card-rail .avail-mark:not(.avail-off)::before,
.card-rail .avail-mark:not(.avail-off)::after {
  content: "\2014";
  margin: 0 0.35em;
  color: var(--muted);
}
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.card-meta .code {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.card-meta .name {
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.03em;
}
.card-meta .level-dots {
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
}
.avail-mark {
  font-size: 9px;
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.avail-off {
  color: #9b1c1c;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.avail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- register table ---------- */
.reg-table {
  border-top: 1px solid var(--line);
}
.reg-row {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr 1.2fr 1.2fr 0.9fr 0.7fr;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  align-items: baseline;
}
.reg-row:hover {
  background: rgba(17, 17, 17, 0.03);
  text-decoration: none;
}
.reg-head {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.reg-row .c-name {
  font-weight: 600;
}
.reg-row .c-price {
  text-align: right;
}

/* ---------- quiet grid ---------- */
.qgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 64px;
}
.qcard .photo-plate {
  aspect-ratio: 4 / 5;
}
.qcard:hover {
  text-decoration: none;
}
.qcard-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
}

/* ---------- studies ---------- */
.studies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 72px;
  max-width: 1000px;
}
.study-code {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.study-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 10px 0 12px;
}
.study-body {
  max-width: 42ch;
  color: rgba(17, 17, 17, 0.75);
  margin: 0 0 12px;
}
.study-date {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- information ---------- */
.info {
  max-width: 60ch;
}
.info-lead {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0 0 32px;
}
.info p {
  color: rgba(17, 17, 17, 0.8);
  margin: 0 0 18px;
}
.info-h {
  font-size: 11px;
  letter-spacing: 0.1em;
  margin: 40px 0 12px;
}
.info-list {
  padding-left: 18px;
  margin: 0;
  color: rgba(17, 17, 17, 0.8);
}
.info-list li {
  margin-bottom: 8px;
}

/* ---------- PDP shared ---------- */
.swatches {
  display: inline-flex;
  gap: 7px;
  margin: 4px 0 18px;
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-block;
}
.buy-marks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 12px;
}
.buy-marks .swatches {
  margin: 0;
}
.ident {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.ident .code {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.ident .pname {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.meta {
  margin: 0 0 18px;
  border-top: 1px solid var(--line-soft);
}
.meta > div {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.meta dt {
  color: var(--muted);
  margin: 0;
}
.meta dd {
  margin: 0;
  text-align: right;
}
.price-line {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0 16px;
}
/* Available empty state — points at the archive */
.avail-empty {
  max-width: 46ch;
}
.buy {
  display: inline-block;
  width: auto;
  background: var(--ink);
  color: var(--bone);
  border: none;
  padding: 6px 10px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  cursor: pointer;
  margin: 4px 0 20px;
  transition: opacity 0.15s ease;
}
.buy:hover {
  opacity: 0.82;
}
.buy-off {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  text-align: center;
  cursor: default;
  padding: 6px 10px;
}
.spec h3 {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 20px 0 6px;
}
.spec p,
.spec ul {
  margin: 0;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.82);
}
.spec ul {
  padding-left: 16px;
}
.spec p:first-of-type {
  margin-top: 0;
}
.spec-clip {
  position: relative;
  margin-bottom: 8px;
}
.spec-clip.is-clipped {
  max-height: 200px;
  overflow: hidden;
  padding-bottom: 28px;
}
.spec-clip.is-clipped.is-open {
  max-height: none;
  overflow: visible;
  padding-bottom: 8px;
}
.spec-clip.is-clipped .read-more {
  display: flex;
}
.read-more {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: none;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  z-index: 1;
}
.spec-clip.is-clipped:not(.is-open)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(239, 235, 227, 0), var(--bone));
  pointer-events: none;
}
.spec-clip.is-open .read-more span {
  display: inline-block;
  transform: rotate(180deg);
}

/* accordions */
.acc {
  border-top: 1px solid var(--line-soft);
  padding: 11px 0;
}
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: 0.1em;
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc[open] .pm {
  transform: rotate(45deg);
}
.pm {
  display: inline-block;
  transition: transform 0.15s ease;
}
.acc-body {
  padding: 10px 0 4px;
  font-size: 11.5px;
  color: var(--muted);
  max-width: 40ch;
}
.acc-body h3 {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  margin: 14px 0 6px;
  color: var(--ink);
}
.acc-body ul {
  padding-left: 16px;
  margin: 0 0 10px;
}
.acc-body li {
  margin-bottom: 6px;
}

/* PDP: 3-column (specimen) */
.pdp-3 {
  display: grid;
  grid-template-columns: 230px 1fr 250px;
  gap: 48px;
  align-items: start;
}

/* Image grid adapts to photo count so images fill the available width */
.pdp-photos {
  display: grid;
  gap: 26px;
  align-content: start;
}
.pdp-photos.cols-1 {
  grid-template-columns: 1fr;
}
.pdp-photos.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.pdp-photos.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
/* a lone photo reads better a touch less tall */
.pdp-photos.cols-1 .photo-plate {
  aspect-ratio: 4 / 5;
}

/* PDP: 2-column (register) */
.pdp-2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.pdp-2 .pdp-photos {
  gap: 22px;
}

/* PDP: quiet */
.pdp-quiet {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
}
.photo-plate.hero {
  aspect-ratio: 4 / 5;
}
.pdp-hero {
  max-width: 760px;
  margin: 0 auto 64px;
  width: 100%;
}
.pdp-quiet-body {
  max-width: 52ch;
  margin: 0 auto 80px;
  text-align: left;
}
.pdp-quiet-ident {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.pdp-quiet-ident .pname {
  font-size: 20px;
  font-weight: 700;
}
.pdp-quiet-body > p {
  color: rgba(17, 17, 17, 0.8);
  margin-bottom: 24px;
}
.pdp-quiet-rest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  max-width: 760px;
  margin: 0 auto;
}

/* ==========================================================================
   Direction A — SPECIMEN
   ========================================================================== */
.dir-specimen,
body {
  background: var(--bone);
}
.dir-specimen .hero-line {
  font-size: clamp(30px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0 0 28px;
  max-width: 16ch;
}
.dir-specimen .hero-line-sm {
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.08em;
  font-weight: 700;
  max-width: none;
  margin: 0 0 12px;
}
.dir-specimen .tagline-sm {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 36px;
}
.dir-specimen .home-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 18px;
}
.dir-specimen .home-placeholder .lead {
  margin-bottom: 40px;
  max-width: 52ch;
}
.dir-specimen .home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin: 0;
}
.dir-specimen .spec-home .lead {
  margin-bottom: 64px;
}
.level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}
.level-label {
  font-size: 10px;
}

/* ==========================================================================
   Direction B — REGISTER: workshop ledger, monospaced data, lighter ground
   ========================================================================== */
.dir-register {
  background: #f6f5f1;
  --line: rgba(17, 17, 17, 0.2);
}
.dir-register body,
.dir-register .site-nav,
.dir-register .cart,
.dir-register .card-meta,
.dir-register .meta > div,
.dir-register .study-code,
.dir-register .study-date {
  font-family: var(--mono);
}
.dir-register .site-head .brand {
  font-family: var(--mono);
  font-weight: 700;
}
.dir-register .lead {
  font-family: var(--mono);
  font-size: 12px;
}
.dir-register .buy {
  font-family: var(--mono);
}
.dir-register .study-title,
.dir-register .info-lead {
  font-family: var(--sans);
}

/* ==========================================================================
   Direction C — QUIET IMAGE: warm ground, image dominant, maximum air
   ========================================================================== */
.dir-quiet {
  background: #efece4;
}
.dir-quiet .frame {
  padding: 80px 48px 120px;
}
.dir-quiet .site-nav {
  gap: 34px;
}
.quiet-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  place-items: center;
}
.quiet-hero {
  width: 100%;
  max-width: 520px;
}
.quiet-hero .photo-plate {
  aspect-ratio: 3 / 4;
  max-height: 60vh;
}
.quiet-hero .photo figcaption {
  display: none;
}
.quiet-hero-cap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  max-width: 44ch;
  color: rgba(17, 17, 17, 0.7);
}
.quiet-hero-cap span:first-child {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.quiet-hero-cap a {
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ==========================================================================
   CHOOSER (meeting root)
   ========================================================================== */
.chooser {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.chooser-wrap {
  max-width: 1080px;
  width: 100%;
}
.chooser-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}
.chooser-sub {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 8px 0 0;
}
.chooser-intro {
  max-width: 60ch;
  margin: 36px 0 44px;
  font-size: 14px;
  line-height: 1.6;
}
.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.choice {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 28px 26px 24px;
  min-height: 260px;
  transition: background 0.15s ease;
}
.choice:hover {
  background: rgba(17, 17, 17, 0.04);
  text-decoration: none;
}
.choice-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.choice-thesis {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.78);
  flex-grow: 1;
}
.choice-note {
  font-size: 11px;
  color: var(--muted);
}
.choice-go {
  font-size: 11px;
  letter-spacing: 0.12em;
}
.chooser-ref {
  margin: 44px 0 0;
  max-width: 320px;
}
.chooser-ref img {
  width: 100%;
  border: 1px solid var(--line);
}
.chooser-ref figcaption {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.chooser-foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  max-width: 64ch;
}

/* ==========================================================================
   Development level (point 6) — dotted, compact, reusable
   ========================================================================== */
.level {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  margin: 2px 0 14px;
}
.level-dots {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--ink);
}
.level-label {
  color: var(--muted);
}

/* ==========================================================================
   Status pills (point 5 vocabulary)
   ========================================================================== */
.pill {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  line-height: 1.6;
  white-space: nowrap;
}
.pill-available {
  border-color: var(--ink);
  color: var(--ink);
}
.pill-sold,
.pill-archived {
  color: var(--muted);
}
.pill-personal {
  color: var(--muted);
  border-style: dashed;
}
.pill-abandoned {
  color: rgba(17, 17, 17, 0.4);
  border-style: dotted;
}

/* ==========================================================================
   ARCHIVE — toolbar, filters, register table, contact sheet
   ========================================================================== */
.arc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.arc-count {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-family: var(--mono);
}
.arc-views {
  display: flex;
  border: 1px solid var(--line);
}
.arc-views .chip {
  border: none;
  border-right: 1px solid var(--line);
}
.arc-views .chip:last-child {
  border-right: none;
}
.arc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-left: auto;
}
.arc-fgroup {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.arc-flabel {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.arc-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: -8px 0 22px;
}
.arc-colfilter {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.arc-colbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.arc-colbtn:hover {
  color: var(--ink);
}
.arc-colfilter.is-on .arc-colbtn {
  color: var(--ink);
}
.arc-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  flex-shrink: 0;
  position: relative;
}
.arc-caret::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 2.5px solid transparent;
  border-right: 2.5px solid transparent;
  border-top: 3.5px solid currentColor;
}
.arc-colfilter.is-open .arc-caret::after {
  border-top: none;
  border-bottom: 3.5px solid currentColor;
}
.arc-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 148px;
  max-height: 240px;
  overflow: auto;
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 4px 0;
}
.arc-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink);
  cursor: pointer;
}
.arc-opt:hover {
  background: rgba(17, 17, 17, 0.06);
}
.arc-opt.on {
  background: var(--ink);
  color: var(--bone);
}
.arc-empty {
  margin: 24px 4px;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.chip:hover {
  background: rgba(17, 17, 17, 0.06);
}
.chip-on {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.dir-register .chip {
  font-family: var(--mono);
}

.arc-table {
  border-top: 1px solid var(--line);
}
.arc-row {
  display: grid;
  grid-template-columns: 64px 1.1fr 2fr 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.arc-row:hover {
  background: rgba(17, 17, 17, 0.03);
  text-decoration: none;
}
.arc-head {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  align-items: center;
}
.arc-head:hover {
  background: transparent;
}
.dir-register .arc-row {
  font-family: var(--mono);
}
.arc-c-record {
  font-family: var(--mono);
}
.arc-c-desc {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.arc-c-desc .arc-name {
  font-weight: 600;
}
.arc-c-desc .arc-dots {
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
}
.arc-c-study {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.arc-thumb {
  display: inline-block;
  line-height: 0;
}
.arc-thumb-img {
  width: 44px;
  height: 56px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line-soft);
}
.arc-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 56px;
  border: 1px solid var(--line-soft);
  color: rgba(17, 17, 17, 0.35);
  font-size: 11px;
}

.arc-sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 26px;
}
.arc-cell:hover {
  text-decoration: none;
}
.arc-cell .photo-plate {
  aspect-ratio: 3 / 4;
}
.arc-cell-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-family: var(--mono);
}

/* ==========================================================================
   STUDIES — investigation blocks with their records
   ========================================================================== */
.studies {
  grid-template-columns: 1fr;
  gap: 44px;
  max-width: 860px;
}
.study {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.study-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.study-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}
.study-date {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
}
.study-body {
  max-width: 62ch;
  color: rgba(17, 17, 17, 0.75);
  margin: 10px 0 18px;
}
.study-recs {
  display: flex;
  flex-direction: column;
}
.study-rec {
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  gap: 16px;
  align-items: center;
  padding: 9px 4px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
}
.study-rec:hover {
  background: rgba(17, 17, 17, 0.03);
  text-decoration: none;
}
.study-rec span:first-child {
  font-family: var(--mono);
  color: var(--muted);
}

/* ==========================================================================
   INFORMATION — development levels list
   ========================================================================== */
.info-levels {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.info-levels li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  color: rgba(17, 17, 17, 0.8);
}
.lvl-dots {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink);
  min-width: 34px;
}

/* ---------- Capricho modal + A Medida soon ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.28);
  border: none;
  padding: 0;
  cursor: pointer;
}
.modal-card {
  position: relative;
  max-width: 36ch;
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 28px 26px 22px;
}
.modal-kicker,
.soon-kicker {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 10px;
}
.modal-card h2,
.soon-title {
  font-size: 18px;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.modal-card p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.8);
  margin: 0 0 18px;
}
.modal-close {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.14em;
  cursor: pointer;
  color: var(--ink);
}
.modal-close:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.soon {
  max-width: 52ch;
}
.soon .lead {
  margin-bottom: 18px;
}

/* ==========================================================================
   Responsive — desktop-first, keep mobile usable (not the focus)
   ========================================================================== */
@media (max-width: 900px) {
  .site-head,
  .site-foot {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
  }
  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }
  .cart,
  .foot-links,
  .foot-mid {
    text-align: left;
    justify-content: flex-start;
  }
  .frame,
  .dir-quiet .frame {
    padding: 36px 22px 160px;
  }
  .grid,
  .grid-avail,
  .qgrid,
  .studies,
  .choices {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
  }
  .pdp-3,
  .pdp-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pdp-photos.cols-2,
  .pdp-photos.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .reg-row {
    grid-template-columns: 1.4fr 1fr;
    gap: 4px 16px;
  }
  .reg-row .c-study,
  .reg-row .c-level {
    display: none;
  }
  .arc-row {
    grid-template-columns: 44px 1fr 1fr;
    gap: 6px 12px;
  }
  .arc-row .arc-c-study {
    display: none;
  }
  .arc-c-desc .arc-dots {
    display: none;
  }
  .arc-sheet {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
  .arc-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

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

/* ==========================================================================
   SIZE GUIDE — this piece's flat measurements on a redrawn technical flat
   ========================================================================== */
/* Let the guide use the full column instead of the accordion's reading width. */
.acc-body:has(.sg) {
  max-width: none;
}
.sg {
  --sg-accent: #c42021;
}
.sg-intro {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 46ch;
}
.sg-panel + .sg-panel,
.sg-body {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---- figure ---- */
.sg-figure {
  color: var(--ink);
}
.fig {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  margin: 0 auto 6px;
  overflow: visible;
}
.fig-gm {
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.5;
}
.fig-dots circle {
  fill: currentColor;
  stroke: none;
  opacity: 0.55;
}
.fig-dim {
  stroke: var(--muted);
  color: var(--muted);
  stroke-width: 1;
  transition: stroke 0.12s ease, color 0.12s ease, stroke-width 0.12s ease;
}
.fig-val {
  font-family: var(--mono);
  font-size: 9px;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--bone);
  stroke-width: 3px;
  stroke-linejoin: round;
  transition: fill 0.12s ease;
}
.fig-cota.is-empty .fig-val {
  fill: var(--muted);
}
.fig-cota.is-active .fig-dim {
  stroke: var(--sg-accent);
  color: var(--sg-accent);
  stroke-width: 1.5;
}
.fig-cota.is-active .fig-val {
  fill: var(--sg-accent);
}

/* ---- measurement list ---- */
.sg-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.sg-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  outline: none;
}
.sg-k {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.12s ease;
}
.sg-v {
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
  transition: color 0.12s ease;
}
.sg-row.is-empty .sg-v {
  color: var(--muted);
}
.sg-row:hover .sg-k,
.sg-row:focus-visible .sg-k {
  color: var(--ink);
}
.sg-row.is-active .sg-k,
.sg-row.is-active .sg-v {
  color: var(--sg-accent);
}
.sg-row:focus-visible {
  box-shadow: inset 2px 0 0 var(--sg-accent);
}
.sg-how {
  grid-column: 1 / -1;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;
}
.sg-row:hover .sg-how,
.sg-row:focus-within .sg-how,
.sg-row.is-open .sg-how {
  max-height: 7em;
  opacity: 1;
  margin-top: 5px;
}

/* ---- captions ---- */
.sg-unit {
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 12px 0 0;
}
.sg-empty {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 44ch;
}
.sg-noteline {
  font-size: 10.5px;
  color: var(--muted);
  margin: 8px 0 0;
  font-style: italic;
}

/* ---- body reference ---- */
.sg-body-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 10px;
}
.sg-note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 44ch;
}
.sg-figure-body .fig {
  max-width: 150px;
}
.sg-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
  margin: 14px 0 0;
}
.sg-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.sg-facts dt {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}
.sg-facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
}
