/* ============================================================
   búsqueda — visualizador editorial
   diseño: Mike Bermeo
   ============================================================ */

:root {
  /* tinta y papel */
  --bg:        #0d0b08;
  --surface:   #14110d;
  --surface-2: #1b1712;
  --surface-3: #241f18;
  --line:      #2e2820;
  --line-2:    #403828;

  /* tipografía */
  --ink:      #f3ead7;   /* cream */
  --ink-2:    #d9cfb7;
  --ink-dim:  #a9a086;
  --ink-mute: #6f6a5b;

  /* acentos tierra-académicos */
  --gold:      #e7b75f;
  --ocre:      #c8934a;
  --terra:     #e16a4d;
  --sage:      #96b082;
  --steel:     #7aa5c9;
  --plum:      #a58bb6;

  /* semántica del grid */
  --c-wall:     #0a0806;
  --c-empty:    #ede3ca;
  --c-start:    #96b082;
  --c-goal:     #e16a4d;
  --c-frontier: #e7b75f;
  --c-closed:   #a58bb6;
  --c-current:  #ef8a4d;
  --c-path:     #7aa5c9;

  --serif: "Fraunces", "EB Garamond", Georgia, serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* textura de grano sutil sobre todo el viewport */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

body > *:not(.grain) { position: relative; z-index: 2; }

/* ============================================================
   MASTHEAD — cabecera editorial
   ============================================================ */

.masthead {
  border-bottom: 1px solid var(--line);
  padding: 28px 48px 56px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(231, 183, 95, 0.06), transparent 50%),
    radial-gradient(ellipse at 90% 0%, rgba(225, 106, 77, 0.05), transparent 55%);
}

.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
}

.brand-mark {
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-dot {
  color: var(--gold);
  font-size: 22px;
  margin: 0 2px;
}

.brand-sub {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  font-weight: 500;
}

.byline {
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.byline-label {
  display: block;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 10px;
}

.byline-author {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
  letter-spacing: 0;
}

.byline-amp {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 19px;
  margin: 0 2px;
  font-weight: 400;
}

.masthead-title { margin-top: 56px; max-width: 1060px; }

.masthead-title h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}

.masthead-title h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.masthead-title h1 .t-italic {
  font-style: italic;
  color: var(--ink-dim);
}

.masthead-lede {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.65;
  margin: 0;
}

.masthead-lede code {
  font-family: var(--mono);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--gold);
  border: 1px solid var(--line);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */

main {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) minmax(300px, 360px);
  gap: 28px;
  padding: 48px 48px 64px;
  align-items: flex-start;
}

@media (max-width: 1280px) {
  main { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .masthead { padding: 20px 24px 40px; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow:
    0 1px 0 rgba(255, 225, 170, 0.03) inset,
    0 20px 40px -20px rgba(0,0,0,0.6);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.panel-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  flex: 1;
}

.panel-icon {
  width: 18px;
  height: 18px;
  color: var(--ink-dim);
}

.sub-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sub-head h3 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin: 0;
}

.sub-head .ico { width: 13px; height: 13px; color: var(--ink-dim); }

/* ============================================================
   CONTROLS
   ============================================================ */

.group { margin-bottom: 22px; }
.group:last-child { margin-bottom: 0; }

.group-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.group-hint {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 11px;
}

select, input[type=number] {
  width: 100%;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a086' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 34px;
  cursor: pointer;
}

select:hover, input:hover { border-color: var(--line-2); }
select:focus, input:focus { border-color: var(--gold); background: var(--surface-3); }

.hint {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
}

.hint code {
  font-family: var(--mono);
  font-style: normal;
  color: var(--ocre);
  font-size: 11.5px;
}

/* costes — píldoras con icono */
.costs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cost-pill {
  display: grid;
  grid-template-columns: 16px auto 1fr;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  transition: all 0.15s;
}

.cost-pill:hover { border-color: var(--line-2); }

.cost-pill .ico {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.cost-pill span {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

.cost-pill input {
  background: transparent;
  border: none;
  padding: 2px 0;
  width: 100%;
  text-align: right;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.cost-pill input:focus { background: transparent; }

/* herramientas y presets — botones con icono */
.tools, .presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tools button, .presets button {
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.tools button .ico, .presets button .ico {
  width: 13px;
  height: 13px;
  color: var(--ink-dim);
  transition: color 0.18s;
}

.tools button:hover, .presets button:hover {
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.tools button:hover .ico, .presets button:hover .ico {
  color: var(--gold);
}

.tools .tool.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 6px 20px -8px var(--gold);
}

.tools .tool.active .ico { color: var(--bg); }

/* view toggle (Mapa / Grafo) */
.view-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}

.view-toggle button {
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.view-toggle button .ico { width: 12px; height: 12px; }

.view-toggle button:hover { color: var(--ink); }

.view-toggle button.active {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 2px 8px -2px var(--gold);
}

/* ============================================================
   CANVAS — el mapa, protagonista
   ============================================================ */

.canvas { display: flex; flex-direction: column; }

.canvas-frame {
  background:
    linear-gradient(180deg, rgba(231,183,95,0.04), transparent 40%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.canvas-frame::before,
.canvas-frame::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  opacity: 0.6;
  pointer-events: none;
}
.canvas-frame::before {
  top: 10px; left: 10px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.canvas-frame::after {
  bottom: 10px; right: 10px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

#grid {
  display: grid;
  gap: 2px;
  padding: 0;
  user-select: none;
}

.cell {
  width: 38px;
  height: 38px;
  background: var(--c-empty);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #2a241c;
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.cell:hover:not(.wall) { transform: scale(1.04); }

.cell.wall     { background: var(--c-wall); box-shadow: inset 0 0 0 1px #1a150f; }
.cell.frontier { background: var(--c-frontier); color: #3a2a0a; }
.cell.closed   { background: var(--c-closed); color: #2f2340; }
.cell.current  { background: var(--c-current); color: #fff; box-shadow: 0 0 0 2px var(--terra), 0 4px 12px -2px var(--current); }
.cell.path     { background: var(--c-path); color: #fff; box-shadow: 0 2px 8px -2px var(--steel); }
.cell.start    { background: var(--c-start); color: #1a2411; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 15px; }
.cell.goal     { background: var(--c-goal);  color: #fff; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 15px; }

.cell .g, .cell .h {
  position: absolute;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0.72;
  line-height: 1;
}
.cell .g { top: 2px; left: 3px; }
.cell .h { bottom: 2px; right: 3px; }

/* ============================================================
   GRAFO — árbol de búsqueda en SVG
   ============================================================ */

.graph-wrap {
  flex: 1 1 100%;
  min-width: 0;
  align-self: stretch;
  width: 100%;
  overflow: auto;
  max-height: 560px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.graph-wrap::-webkit-scrollbar { height: 8px; width: 8px; }
.graph-wrap::-webkit-scrollbar-track { background: transparent; }
.graph-wrap::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

#graph {
  display: block;
  margin: 0 auto;
  font-family: var(--mono);
}

#graph .edge {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.4;
  opacity: 0.75;
  transition: stroke 0.25s, stroke-width 0.25s, opacity 0.25s;
}

#graph .edge-path {
  stroke: var(--c-path);
  stroke-width: 2.6;
  opacity: 1;
}

#graph .edge-label {
  fill: var(--ink-mute);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

#graph .node circle {
  fill: var(--surface-3);
  stroke: var(--line-2);
  stroke-width: 1.5;
  transition: fill 0.25s, stroke 0.25s;
}

#graph .node-coord {
  fill: var(--ink);
  font-size: 9.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  pointer-events: none;
}

#graph .node-metric {
  fill: var(--ink-dim);
  font-size: 8px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

#graph .node-closed   circle { fill: var(--c-closed); stroke: var(--plum); }
#graph .node-closed   .node-coord  { fill: #2f2340; }
#graph .node-closed   .node-metric { fill: #4a3a5e; }

#graph .node-frontier circle { fill: var(--c-frontier); stroke: var(--ocre); }
#graph .node-frontier .node-coord  { fill: #3a2a0a; }
#graph .node-frontier .node-metric { fill: #6a4a1a; }

#graph .node-current  circle { fill: var(--c-current); stroke: var(--terra); stroke-width: 2.5; filter: drop-shadow(0 0 6px var(--c-current)); }
#graph .node-current  .node-coord, #graph .node-current .node-metric { fill: #fff; }

#graph .node-path     circle { fill: var(--c-path); stroke: var(--steel); stroke-width: 2; }
#graph .node-path     .node-coord, #graph .node-path .node-metric { fill: #fff; }

#graph .node-start    circle { fill: var(--c-start); stroke: var(--sage); stroke-width: 2; }
#graph .node-start    .node-coord, #graph .node-start .node-metric { fill: #1a2411; }

#graph .node-goal     circle { fill: var(--c-goal); stroke: var(--terra); stroke-width: 2.5; }
#graph .node-goal     .node-coord, #graph .node-goal .node-metric { fill: #fff; }

#graph .graph-placeholder {
  fill: var(--ink-mute);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
}

/* acciones bajo el mapa */
.actions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 18px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s;
}

.btn .ico { width: 14px; height: 14px; }

.btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--surface-3);
  transform: translateY(-1px);
}

.btn:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  box-shadow: 0 8px 22px -10px var(--gold);
}

.btn-primary:hover:not(:disabled) {
  background: #f0c471;
  border-color: #f0c471;
  box-shadow: 0 10px 24px -8px var(--gold);
}

.btn-ghost { background: transparent; color: var(--ink-dim); }
.btn-ghost:hover:not(:disabled) { color: var(--terra); border-color: var(--terra); }

/* velocidad */
.speed {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.speed-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  font-weight: 600;
}

.speed-head .ico { width: 13px; height: 13px; color: var(--gold); }
.speed-head span:nth-of-type(1) { flex: 1; }

.speed-val {
  font-family: var(--mono);
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

input[type=range] {
  width: 100%;
  appearance: none;
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(231, 183, 95, 0.15);
}

input[type=range]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--gold); cursor: pointer; border: none;
  box-shadow: 0 0 0 4px rgba(231, 183, 95, 0.15);
}

/* leyenda */
.legend {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 14px;
  font-size: 11.5px;
  color: var(--ink-dim);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend kbd {
  font-family: var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 5px;
  font-size: 10px;
  color: var(--gold);
  margin-left: 2px;
}

.legend .sw {
  width: 13px; height: 13px;
  border-radius: 3px;
  flex-shrink: 0;
}
.legend .sw.start    { background: var(--c-start); }
.legend .sw.goal     { background: var(--c-goal); }
.legend .sw.wall     { background: var(--c-wall); border: 1px solid var(--line-2); }
.legend .sw.frontier { background: var(--c-frontier); }
.legend .sw.closed   { background: var(--c-closed); }
.legend .sw.current  { background: var(--c-current); }
.legend .sw.path     { background: var(--c-path); }

/* ============================================================
   STATS
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}

.stat:hover { border-color: var(--line-2); }

.stat-wide { grid-column: span 2; }

.stat-k {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.stat-v {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-v.accent { color: var(--gold); }

.stat-status {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
  font-weight: 400;
}

/* log */
.log {
  max-height: 280px;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11.2px;
  line-height: 1.7;
  color: var(--ink-2);
}

.log::-webkit-scrollbar { width: 6px; }
.log::-webkit-scrollbar-track { background: transparent; }
.log::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

.log div { white-space: pre-wrap; letter-spacing: -0.01em; }
.log .hl { color: var(--terra); }
.log .ok { color: var(--sage); }
.log .muted { color: var(--ink-mute); }

/* ============================================================
   COLOPHON — pie editorial con firma
   ============================================================ */

.colophon {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 40px 48px 64px;
  background:
    radial-gradient(ellipse at 80% 100%, rgba(231, 183, 95, 0.04), transparent 60%);
}

.colophon-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .colophon { padding: 32px 24px; }
  .colophon-inner { grid-template-columns: 1fr; gap: 24px; }
}

.colophon-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--gold);
  margin: 0 0 8px;
}

.colophon-left p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 12.5px;
  line-height: 1.7;
  max-width: 620px;
}

.colophon-left code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ocre);
  background: var(--surface-2);
  padding: 0 5px;
  border-radius: 3px;
}

.colophon-left em {
  font-family: var(--serif);
  color: var(--ink-2);
  font-style: italic;
}

.colophon-right {
  text-align: right;
  border-left: 1px solid var(--line);
  padding-left: 48px;
  min-width: 180px;
}

@media (max-width: 800px) {
  .colophon-right { text-align: left; border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}

.colophon-signature {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-dim);
}

.colophon-signature em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
}

.colophon-signature strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.signature-co {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.signature-co .amp {
  color: var(--ink-mute);
  font-size: 19px;
  margin-right: 3px;
}

.colophon-year {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
}
