@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fraunces-400.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fraunces-500.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fraunces-500-italic.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/outfit-500.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/outfit-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #1c1917;
  --muted: #57534e;
  --paper: #f6f1ea;
  --link: #9a3412;
  --link-soft: #c2410c;
  --bar: #1c1917;
  --bar-ink: #faf7f2;
  --line: #e7e0d6;
  --slot: #a8a29e;
  --card: #fffdfb;
  --card-line: #e7e0d6;
  --button: #faf7f2;
  --button-ink: #1c1917;
  color: var(--ink);
  background: var(--paper);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #faf7f2;
    --muted: #a8a29e;
    --paper: #141210;
    --link: #fdba74;
    --link-soft: #fb923c;
    --bar: #2a211c;
    --bar-ink: #faf7f2;
    --line: #292524;
    --slot: #57534e;
    --card: #1c1917;
    --card-line: #292524;
    --button: #e7e5e4;
    --button-ink: #1c1917;
  }
}

body {
  margin: 0;
  overflow-wrap: break-word;
}

::selection {
  background: var(--link);
  color: #fff;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: var(--link);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link-soft);
  outline-offset: 3px;
}

.barra-edad[hidden],
.play[hidden] {
  display: none;
}

.tope {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bar);
  color: var(--bar-ink);
  box-shadow: 0 2px 0 var(--link);
}

.barra-edad {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: var(--bar);
  color: var(--bar-ink);
  font-family: Outfit, sans-serif;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(250, 247, 242, 0.16);
}

.barra-edad p {
  margin: 0;
}

.barra-edad button,
.play,
.thumb {
  font: inherit;
  cursor: pointer;
}

.barra-edad button {
  border: 0;
  border-radius: 2px;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--button);
  color: var(--button-ink);
}

.marca {
  padding: 14px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
}

.marca a {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  color: var(--bar-ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.pagina {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left));
}

h1.entrada {
  max-width: 16em;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h2 {
  margin: 36px 0 0;
  color: var(--muted);
  font-family: Outfit, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro {
  font-size: 1.06rem;
}

.intro p {
  margin: 0 0 1em;
}

.miga,
.anillo,
.pie,
.hojas,
.tira {
  font-family: Outfit, sans-serif;
  font-size: 0.95rem;
}

.miga {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.miga a {
  color: var(--link);
  text-decoration: none;
}

.player,
.youtube iframe {
  position: relative;
  display: block;
  width: 100%;
  margin: 8px 0 20px;
  background: #111;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 2px;
}

.player {
  overflow: hidden;
}

.youtube iframe + iframe {
  margin-top: 12px;
}

.player iframe,
.player .play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.play {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: rgba(12, 10, 9, 0.42);
  color: #fff;
  font-family: Outfit, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.thumbs,
.tira {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tira {
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0;
}

.thumb {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--card);
}

.thumb img,
.tira img {
  display: block;
  width: 100%;
  height: auto;
}

.tira a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.hojas {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.hojas li {
  position: relative;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  background: var(--card);
}

.hojas li::after {
  content: "→";
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--link);
  font-family: Outfit, sans-serif;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.hojas a {
  display: block;
  padding: 16px 44px 16px 16px;
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}

.hojas a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hojas li:has(p) a {
  padding-bottom: 4px;
}

.hojas li:hover {
  border-color: var(--link);
}

.hojas li:hover::after {
  transform: translateX(3px);
}

.hojas a:focus-visible {
  outline: none;
}

.hojas li:has(a:focus-visible) {
  outline: 2px solid var(--link-soft);
  outline-offset: 3px;
}

.hojas p {
  margin: 0;
  padding: 0 44px 16px 16px;
  color: var(--muted);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.45;
}

.slot:empty,
.cams:empty {
  display: none;
}

.slot,
.cams {
  margin: 20px 0;
  padding: 12px;
  border: 1px dashed var(--slot);
  border-radius: 2px;
  font-family: Outfit, sans-serif;
}

.anillo {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.anillo a {
  text-decoration: none;
}

.pie {
  margin-top: 48px;
  padding: 32px max(16px, env(safe-area-inset-right)) 36px max(16px, env(safe-area-inset-left));
  background: var(--bar);
  color: var(--bar-ink);
  box-shadow: inset 0 2px 0 var(--link);
}

.pie nav,
.pie ul {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.pie nav {
  font-size: 1.05rem;
}

.pie a {
  color: var(--link);
  text-decoration: none;
}

.pie ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(250, 247, 242, 0.16);
  list-style: none;
  font-size: 0.85rem;
}

.pie ul a {
  color: var(--bar-ink);
}

@media (max-width: 640px) {
  .barra-edad {
    align-items: stretch;
    flex-direction: column;
  }

  .thumbs,
  .tira {
    grid-template-columns: repeat(2, 1fr);
  }
}
