@import url("./tokens.css");

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background: var(--fondo);
  color: var(--tinta);
  font: 500 1rem/1.5 "IBM Plex Sans", sans-serif;
}
.entry {
  display: grid;
  position: relative;
  align-items: center;
  min-height: min(100svh, 56.25vw);
  isolation: isolate;
}
.entry-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("./Imagen/oretally-imagen-principal.svg") right center / contain no-repeat;
}
.entry-actions {
  width: min(19rem, 26vw);
  margin-left: clamp(2rem, 7vw, 9rem);
  display: grid;
  gap: .75rem;
}
.entry h1 { margin: 0 0 2.5rem; line-height: 1; }
.entry h1 img { display: block; max-width: 100%; height: auto; width: 14rem; }
.entry-language {
  position: absolute;
  top: 1.5rem;
  right: clamp(1rem, 4vw, 4rem);
  z-index: 1;
  display: flex;
  border: 1px solid var(--linea);
  border-radius: 4px;
  background: var(--papel);
}
.entry-language a {
  min-width: 44px;
  min-height: 44px;
  padding: .5rem;
  display: grid;
  place-items: center;
  font-size: .8125rem;
  text-decoration: none;
  color: var(--tinta-suave);
}
.entry-language a[aria-current] { background: var(--cobre-suave); color: var(--cobre-tinta); }
a:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }
@media (max-width: 700px) {
  body { display: block; }
  .entry { display: block; }
  .entry-art {
    position: relative;
    height: min(92vw, 27rem);
    background-size: auto 100%;
    background-position: right bottom;
  }
  .entry-actions { margin: 2rem auto; width: min(22rem, calc(100% - 3rem)); }
  .entry h1 { margin: 0 0 1.5rem; }
  .entry h1 img { width: 12rem; }
  .entry-language { top: .75rem; right: 1rem; }
}

.entry-denied { width: min(34rem, calc(100% - 3rem)); margin: clamp(5rem, 12vh, 8rem) auto; }
.entry-denied > img { width: 12rem; height: auto; }
.entry-denied h1 { margin: 2rem 0 1rem; }
.entry-denied bdi { overflow-wrap: anywhere; }
.entry-denied code { font-family: "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.entry-denied form { display: grid; gap: 1rem; margin: 1.5rem 0; }
.entry-denied label { display: grid; gap: .45rem; }
.entry-denied textarea { padding: .7rem; font: inherit; color: var(--tinta); background: var(--papel); border: 1px solid var(--linea); }
.entry-denied button { justify-self: start; padding: .65rem 1.5rem; font: inherit; border: 1px solid var(--cobre-tinta); border-radius: 4px; background: var(--papel); color: var(--cobre-tinta); cursor: pointer; }
.entry-denied :is(button,textarea):focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }
.entry-denied a { display: inline-block; padding: .65rem 1.5rem; border: 1px solid var(--linea); border-radius: 4px; color: var(--cobre-tinta); background: var(--papel); }
