/* ARTNONYMOUS: version oscura de Macro Magazine (plantilla page-artnonymous.php). */

.an {
  --an-bg: #000;
  --an-fg: #fff;
  --an-dim: rgba(255, 255, 255, 0.72);
  --an-line: rgba(255, 255, 255, 0.55);
  --an-cond: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --an-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --an-sans: Inter, Arial, sans-serif;

  background: var(--an-bg);
  color: var(--an-fg);
  font-family: var(--an-sans);
  line-height: 1.5;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px) clamp(20px, 3vw, 32px);
  margin: clamp(16px, 3vw, 32px) 0;
}

.an-wrap { max-width: 1440px; }

.an a { color: inherit; text-decoration: none; }
.an a:hover { opacity: 0.7; }
.an p { margin: 0; }

.an-label,
.an-crumb,
.an-about-list,
.an-btn,
.an-more,
.an-card-meta,
.an-card-date {
  font-family: var(--an-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.an-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.an-crumb { color: var(--an-dim); }
.an-crumb strong { color: var(--an-fg); font-weight: 500; }
.an-crumb span { margin: 0 0.6em; }
.an-logo { font-family: var(--an-cond); font-weight: 700; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: 0.02em; }

.an-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  margin-top: 16px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--an-line);
}

.an .an-title {
  font-family: var(--an-cond);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 112px);
  font-size: clamp(40px, 13cqw, 112px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  margin: 0 0 18px;
  color: var(--an-fg);
}
.an-intro { container-type: inline-size; min-width: 0; }
.an-tagline { font-size: clamp(18px, 2.2vw, 28px); letter-spacing: 0.04em; margin-bottom: 28px !important; }
.an-body { font-family: var(--an-mono); font-size: 13px; line-height: 1.55; color: var(--an-dim); max-width: 600px; }
.an-body p + p { margin-top: 1em; }
.an-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.an-btn { display: inline-flex; gap: 24px; align-items: center; border: 1px solid var(--an-fg); padding: 10px 20px; min-width: 172px; justify-content: space-between; }
.an-btn:hover { background: var(--an-fg); color: var(--an-bg) !important; opacity: 1 !important; }

.an-about { border-left: 1px solid var(--an-line); padding-left: 48px; margin-top: 12px; display: flex; flex-direction: column; }
.an-label { font-weight: 500; margin-bottom: 20px !important; }
.an-about-list { list-style: none; margin: 0; padding: 0 0 44px; border-bottom: 1px solid var(--an-line); color: var(--an-dim); }
.an-about-list li + li { margin-top: 12px; }
.an-note { font-size: 12px; letter-spacing: 0.06em; color: var(--an-dim); margin-top: 40px !important; max-width: 230px; }

.an-lower { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; padding: 28px 0 28px; border-bottom: 1px solid var(--an-line); }
.an-latest-head { display: flex; justify-content: space-between; align-items: baseline; }
.an-more { color: var(--an-dim); }
.an-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.an-card-img { aspect-ratio: 16 / 9; background: #1a1a1a; overflow: hidden; margin-bottom: 18px; }
.an-card-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); display: block; }
.an .an-card-title { font-family: var(--an-cond); font-weight: 500; font-size: 20px; line-height: 1.15; margin: 0 0 14px; color: var(--an-fg); }
.an-card-meta { font-size: 9.5px; color: var(--an-dim); }
.an-card-meta span { margin: 0 0.4em; }
.an-card-date { font-size: 9.5px; color: var(--an-dim); margin-top: 10px !important; }
.an-empty { font-family: var(--an-mono); font-size: 13px; color: var(--an-dim); }

.an-search { border-left: 1px solid var(--an-line); padding-left: 42px; }
.an-search-form { display: flex; border-bottom: 1px solid var(--an-line); margin-bottom: 30px; }
.an-search-form input { flex: 1; background: transparent; border: 0; color: var(--an-fg); font: 12px var(--an-sans); padding: 8px 0; outline: none; }
.an-search-form input::placeholder { color: var(--an-dim); }
.an-search-form button { background: none; border: 0; color: var(--an-fg); cursor: pointer; padding: 0 4px; }
.an-label-sm { color: var(--an-dim); font-weight: 400; margin-bottom: 14px !important; }
.an-cats { list-style: none; margin: 0; padding: 0; font-size: 12px; letter-spacing: 0.04em; color: var(--an-dim); }
.an-cats li + li { margin-top: 5px; }

.an-foot { padding-top: 20px; font-size: 11px; letter-spacing: 0.04em; color: var(--an-dim); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.an-foot span { margin: 0 0.6em; }
.an-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Texto individual (single-artnonymous.php) */
.an-text-head { max-width: 760px; margin: clamp(40px, 7vw, 88px) auto 40px; }
.an-text-num { font-size: 11px; letter-spacing: 0.18em; color: var(--an-dim); margin-bottom: 18px !important; }
.an .an-text-title { font-family: var(--an-cond); font-weight: 700; font-size: clamp(34px, 5.5vw, 64px); line-height: 1.02; margin: 0 0 22px; color: var(--an-fg); }
.an-text-meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--an-dim); }
.an-text-meta span { margin: 0 0.5em; }
.an-text-body { max-width: 760px; margin: 0 auto; font-size: 1.125rem; line-height: 1.75; color: rgba(255, 255, 255, 0.9); }
.an-text-body p { margin: 0 0 1.3em; }
.an-text-body a { text-decoration: underline; text-underline-offset: 3px; }
.an-text-body h2, .an-text-body h3 { font-family: var(--an-cond); color: var(--an-fg); margin: 1.8em 0 0.6em; }
.an-text-body blockquote { border-left: 1px solid var(--an-line); margin: 1.5em 0; padding-left: 1.2em; color: var(--an-dim); }
.an-text-body img { max-width: 100%; height: auto; filter: grayscale(1); }
.an-text-tools { max-width: 760px; margin: 48px auto 0; display: flex; flex-wrap: wrap; gap: 16px; }
.an-text-tools .an-btn { background: none; color: var(--an-fg); cursor: pointer; font-family: var(--an-sans); }
.an-text-note { max-width: 760px; margin: 20px auto 56px !important; font-size: 12px; color: var(--an-dim); }
.an-text-note a, .an-foot a { text-decoration: underline; text-underline-offset: 3px; }
.an-text-body ul, .an-text-body ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.an-text-body li + li { margin-top: 0.4em; }
.an-text-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 1.5em; }
.an-text-body th, .an-text-body td { border-bottom: 1px solid var(--an-line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.an-text-body th { font-family: var(--an-sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.an-page-body { margin-bottom: 64px; }
.an-text .an-foot { border-top: 1px solid var(--an-line); }
.an a:focus-visible, .an button:focus-visible, .an input:focus-visible { outline: 1px solid var(--an-fg); outline-offset: 3px; }

@media (max-width: 1100px) {
  .an-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .an-hero,
  .an-lower { grid-template-columns: 1fr; }
  .an-about,
  .an-search { border-left: 0; padding-left: 0; border-top: 1px solid var(--an-line); padding-top: 28px; }
}

@media (max-width: 560px) {
  .an-cards { grid-template-columns: 1fr; }
  .an-btn { width: 100%; }
}

/* Formulario de participacion ([artnonymous_formulario]) */
.an-form { margin-top: 32px; }
.an-field { margin: 0 0 28px; border: 0; padding: 0; }
.an-field > label:not(.an-choice):not(.an-sub), .an-field legend { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; margin-bottom: 10px; color: var(--an-fg); }
.an-opt { text-transform: none; letter-spacing: 0.02em; color: var(--an-dim); font-weight: 400; }
.an-form input[type="text"], .an-form input[type="email"], .an-form select, .an-form textarea {
  width: 100%; background: transparent; color: var(--an-fg); border: 1px solid var(--an-line); border-radius: 0;
  padding: 12px 14px; font: 16px/1.6 var(--an-sans);
}
.an-form textarea { font-family: var(--an-mono); font-size: 15px; min-height: 320px; resize: vertical; }
.an-form select option { color: #000; }
.an-form input:focus, .an-form select:focus, .an-form textarea:focus { outline: 1px solid var(--an-fg); outline-offset: 0; }
.an-choice { display: block; margin: 0 0 8px; font-size: 15px; letter-spacing: 0.01em; text-transform: none; cursor: pointer; }
.an-choice input { accent-color: #fff; margin-right: 8px; }
.an-sub { display: block; font-size: 13px; color: var(--an-dim); margin: 14px 0 6px; }
.an-help { display: block; font-size: 13px; color: var(--an-dim); margin-top: 8px; }
.an-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.an-form .an-btn { background: none; color: var(--an-fg); cursor: pointer; font-family: var(--an-sans); }
.an-form-errors { border: 1px solid var(--an-fg); padding: 16px 20px; margin: 24px 0; }
.an-form-errors ul { margin: 8px 0 0; padding-left: 1.2em; }
.an-form-ok { border: 1px solid var(--an-line); padding: 24px; margin: 24px 0; }
.an-form-ok p + p { margin-top: 0.8em; }
.an-form-test { border: 1px dashed var(--an-line); padding: 10px 14px; font-size: 13px; color: var(--an-dim); }
.an-form-closed { font-family: var(--an-mono); color: var(--an-dim); }

/* Archivo (archive-artnonymous.php) */
.an-archive-head { margin: clamp(32px, 5vw, 64px) 0 32px; }
.an-archive-head .an-tagline { color: var(--an-dim); font-size: clamp(16px, 1.6vw, 20px); margin: 0 !important; }
.an-archive-year { color: var(--an-dim); font-weight: 500; }
.an-archive-body { border-top: 1px solid var(--an-line); }
.an-index { list-style: none; margin: 0; padding: 0; }
.an-index-row { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.an-index-row:first-child { border-top: 0; }
.an-index-row a { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 8px 28px; align-items: baseline; padding: 20px 0; }
.an-index-meta, .an-index-sign { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--an-dim); }
.an-index-title { font-family: var(--an-cond); font-weight: 500; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
.an-index-sign { white-space: nowrap; }
.an-cats a[aria-current="page"] { color: var(--an-fg); text-decoration: underline; text-underline-offset: 3px; }
.an-label-gap { margin-top: 28px !important; }
.an-pager { margin-top: 28px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.an-pager .nav-links { display: flex; flex-wrap: wrap; gap: 14px; }
.an-pager .current { text-decoration: underline; text-underline-offset: 3px; }
.an-pager .screen-reader-text { position: absolute; left: -9999px; }
.an-archive .an-foot { border-top: 0; }

@media (max-width: 760px) {
  .an-index-row a { grid-template-columns: 1fr; }
  .an-index-sign { white-space: normal; }
}

/* Bloques numerados de la portada (01-04) */
.an-num-label { color: var(--an-dim); font-weight: 400; margin-bottom: 8px !important; }
.an .an-block-title { font-family: var(--an-cond); font-weight: 500; font-size: 22px; line-height: 1.15; margin: 0 0 22px; color: var(--an-fg); }
.an .an-block-big { font-weight: 700; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; margin-bottom: 18px; }
.an-lower-single { grid-template-columns: 1fr; }
.an-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--an-line); }
.an-block { padding: 40px 36px 44px 0; }
.an-block + .an-block { border-left: 1px solid var(--an-line); padding-left: 36px; }
.an-block:last-child { padding-right: 0; }
.an .an-blocks .an-block-big { font-size: clamp(26px, 2.6vw, 40px); }
.an-block-archivo .an-search-form { margin-bottom: 24px; }
.an-block-text { color: var(--an-dim); max-width: 460px; margin-bottom: 24px !important; }
.an-latest-head { align-items: flex-end; }
@media (max-width: 1000px) {
  .an-blocks { grid-template-columns: 1fr; }
  .an-block, .an-block + .an-block { padding: 32px 0; border-left: 0; }
  .an-block + .an-block { border-top: 1px solid var(--an-line); }
}

/* Control de tamano de lectura (single-artnonymous.php) */
.an-readsize { display: inline-flex; gap: 8px; margin-top: 18px; }
.an-readsize button { background: none; border: 1px solid var(--an-line); color: var(--an-fg); font: 12px var(--an-sans); letter-spacing: 0.1em; padding: 6px 10px; cursor: pointer; }
.an-readsize button[aria-pressed="true"] { border-color: var(--an-fg); }
.an-text-body.an-size-2 { font-size: 1.3rem; }
.an-text-body.an-size-3 { font-size: 1.55rem; }
